jdbcTemplate.executeUpdate("update tCart set sPromoPaperNO = ?, sPromoGroupNO = ? where sOrgNO = ? and sShopNO = ? and sAgentContractNO = ? and nGoodsID = ? and nTag = ? and (sPromoPaperNO is null or sPromoPaperNO = '')",sPromoPaperNO,sPromoGroupNO,orgNo,shopNO,sAgentContractNO,nGoodsID,nGoodsTypeID);
jdbcTemplate.executeUpdate("update tCart set sPromoPaperNO = ?, sPromoGroupNO = ? where sOrgNO = ? and sShopNO = ? and sAgentContractNO = ? and nGoodsID = ? and nTag = ? and (sPromoPaperNO is null or sPromoPaperNO = '')",sPromoPaperNO,sPromoGroupNO,orgNo,shopNO,sAgentContractNO,nGoodsID,nGoodsTypeID);
}
}
...
@@ -85,8 +86,8 @@ public class CartServiceImpl implements CartService {
...
@@ -85,8 +86,8 @@ public class CartServiceImpl implements CartService {
}
}
List<Map<String,Object>>list=jdbcTemplate.queryForList("select nIdx, nSaleQty, sPromoPaperNO from tCart"+StringUtil.join(" and "," where ","",strs));
List<Map<String,Object>>list=jdbcTemplate.queryForList("select nIdx, nSaleQty, sPromoPaperNO from tCart"+StringUtil.join(" and "," where ","",strs));
StringgSql="select t.*, ap.nRealSalePrice nApSalePrice from V_OrgGoods t left join tAgentCustTypePrice ap on ap.sCustTypeID = ? and ap.sAgentContractNO = t.sAgentContractNO and ap.nGoodsID = t.nGoodsID where t.sOrgNO = ? and t.sAgentContractNO = ? and t.nGoodsID = ? ";
StringgSql="select t.*, ap.nRealSalePrice nApSalePrice from V_OrgGoods t left join tAgentCustTypePrice ap on ap.sCustTypeID = ? and ap.sAgentContractNO = t.sAgentContractNO and ap.nGoodsID = t.nGoodsID where t.sOrgNO = ? and t.sAgentContractNO = ? and t.nGoodsID = ? ";
Map<String,Object>detail=null;
Map<String,Object>detail=null;
...
@@ -181,6 +197,7 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -181,6 +197,7 @@ public class GoodsServiceImpl implements GoodsService {
if(nApSalePrice!=null){
if(nApSalePrice!=null){
detail.put("nRealSalePrice",nApSalePrice);
detail.put("nRealSalePrice",nApSalePrice);
}
}
detail.put("IsGoodsUnit",IsGoodsUnit);
}catch(EmptyResultDataAccessExceptione){
}catch(EmptyResultDataAccessExceptione){
thrownewXException("商品已下架");
thrownewXException("商品已下架");
}
}
...
@@ -246,6 +263,19 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -246,6 +263,19 @@ public class GoodsServiceImpl implements GoodsService {