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);
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);
}
}
...
@@ -101,12 +104,12 @@ public class CartServiceImpl implements CartService {
...
@@ -101,12 +104,12 @@ 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));