Commit 4151848f authored by Quxl's avatar Quxl

x

parent f60c490e
...@@ -151,7 +151,7 @@ public class BrandServiceImpl implements BrandService { ...@@ -151,7 +151,7 @@ public class BrandServiceImpl implements BrandService {
String sql = "SELECT IPID = a.sIPID, AgentContractNO = a.sAgentContractNO,OrgName = o.sOrgDesc,BrandID = a.sBrandID, BrandName = b.sBrandName,IPBrandTypeID = a.sIPBrandTypeID," String sql = "SELECT IPID = a.sIPID, AgentContractNO = a.sAgentContractNO,OrgName = o.sOrgDesc,BrandID = a.sBrandID, BrandName = b.sBrandName,IPBrandTypeID = a.sIPBrandTypeID,"
+ " IPBrandType = a.sIPBrandType, LogoUrl = a.sLogoUrl,Introduce = a.sIntroduce,Describe = a.sDescribe,Memo = a.sMemo, ba.nTag nTag_dtl, ba.sReason " + " IPBrandType = a.sIPBrandType, LogoUrl = a.sLogoUrl,Introduce = a.sIntroduce,Describe = a.sDescribe,Memo = a.sMemo, ba.nTag nTag_dtl, ba.sReason "
+ " FROM tIPBrand a left jion tIPBrandAuthorize ba on ba.sIPID = a.sIPID and ba.sCustNO = ? join tOrg o on a.sOrgNO = o.sOrgNO join tBrand b on a.sBrandID = b.sBrandID " + " FROM tIPBrand a left join tIPBrandAuthorize ba on ba.sIPID = a.sIPID and ba.sCustNO = ? join tOrg o on a.sOrgNO = o.sOrgNO join tBrand b on a.sBrandID = b.sBrandID "
+ " WHERE a.sIPID = ? and a.sOrgNO = ? and a.nTag=2 "; + " WHERE a.sIPID = ? and a.sOrgNO = ? and a.nTag=2 ";
Map<String,Object> map = jdbcTemplate.queryForMap(sql,custNo,ipId,orgNO); Map<String,Object> map = jdbcTemplate.queryForMap(sql,custNo,ipId,orgNO);
if(!map.isEmpty()) { if(!map.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment