Commit e2a74137 authored by 张永's avatar 张永

sSaleUnit

parent df591790
...@@ -71,7 +71,6 @@ public class CartServiceImpl implements CartService { ...@@ -71,7 +71,6 @@ public class CartServiceImpl implements CartService {
if(cartList != null && cartList.size() > 0) { if(cartList != null && cartList.size() > 0) {
for(int i = 0; i<cartList.size();i++) { for(int i = 0; i<cartList.size();i++) {
JSONObject cartObj = cartList.getJSONObject(i); JSONObject cartObj = cartList.getJSONObject(i);
String saleUnit = Util.objTo(cartObj.get("saleUnit"), String.class, null);
Integer nGoodsTypeID = Util.objTo(cartObj.get("goodsTypeID"), Integer.class, 0); Integer nGoodsTypeID = Util.objTo(cartObj.get("goodsTypeID"), Integer.class, 0);
Integer nSaleQty = Util.objTo(cartObj.get("saleQty"), Integer.class, null); Integer nSaleQty = Util.objTo(cartObj.get("saleQty"), Integer.class, null);
BigDecimal nSetPrice = Util.objTo(cartObj.get("setPrice"), BigDecimal.class, null); BigDecimal nSetPrice = Util.objTo(cartObj.get("setPrice"), BigDecimal.class, null);
...@@ -81,10 +80,10 @@ public class CartServiceImpl implements CartService { ...@@ -81,10 +80,10 @@ public class CartServiceImpl implements CartService {
String sPromoGroupNO = Util.objTo(cartObj.get("promoGroupNO"), String.class, null); String sPromoGroupNO = Util.objTo(cartObj.get("promoGroupNO"), String.class, null);
String sSaleUnit = Util.objTo(cartObj.get("saleUnit"),String.class,null); String sSaleUnit = Util.objTo(cartObj.get("saleUnit"),String.class,null);
if(StringUtil.isNotBlank(sPromoPaperNO)) { if(StringUtil.isNotBlank(sPromoPaperNO)) {
jdbcTemplate.executeUpdate("update tCart set sPromoPaperNO = ?, sPromoGroupNO = ? where sOrgNO = ? and sShopNO = ? and sAgentContractNO = ? and nGoodsID = ? and nTag = ? and sSaleUnit = ? and (sPromoPaperNO is null or sPromoPaperNO = '')",sPromoPaperNO, sPromoGroupNO, orgNo, shopNO, sAgentContractNO, nGoodsID, nGoodsTypeID,saleUnit); jdbcTemplate.executeUpdate("update tCart set sPromoPaperNO = ?, sPromoGroupNO = ? where sOrgNO = ? and sShopNO = ? and sAgentContractNO = ? and nGoodsID = ? and nTag = ? and sSaleUnit = ? and (sPromoPaperNO is null or sPromoPaperNO = '')",sPromoPaperNO, sPromoGroupNO, orgNo, shopNO, sAgentContractNO, nGoodsID, nGoodsTypeID,sSaleUnit);
} }
List<String> strs = new ArrayList<String>(); List<String> strs = new ArrayList<String>();
strs.add("sSaleUnit = '" + saleUnit + "'"); strs.add("sSaleUnit = '" + sSaleUnit + "'");
strs.add("sOrgNO = '" + orgNo + "'"); strs.add("sOrgNO = '" + orgNo + "'");
strs.add("sShopNO = '" + shopNO + "'"); strs.add("sShopNO = '" + shopNO + "'");
strs.add("nTag = " + nGoodsTypeID); strs.add("nTag = " + nGoodsTypeID);
......
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