Commit 1c5646e8 authored by 张永's avatar 张永

1

parent f5fa07fd
...@@ -25,6 +25,7 @@ import com.egolm.common.exception.ReflectException; ...@@ -25,6 +25,7 @@ import com.egolm.common.exception.ReflectException;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.ResultMutil; import com.egolm.common.jdbc.ResultMutil;
import com.egolm.shop.api.service.CartQueryService; import com.egolm.shop.api.service.CartQueryService;
import com.egolm.shop.common.XException;
/** /**
* 购物车数据缓存服务 * 购物车数据缓存服务
...@@ -836,7 +837,12 @@ public class CartQueryServiceImpl implements CartQueryService { ...@@ -836,7 +837,12 @@ public class CartQueryServiceImpl implements CartQueryService {
} }
private List<Map<String, Object>> getGoodsList(String orgNo, String shopNo, String terminal) { private List<Map<String, Object>> getGoodsList(String orgNo, String shopNo, String terminal) {
String sCustTypeID = jdbcTemplate.queryForString("select c.sCustTypeID from tCustomer c, tShop s where c.sCustNO = s.sCustNO and s.sShopNO = ?", shopNo); String sCustTypeID;
try {
sCustTypeID = jdbcTemplate.queryForString("select c.sCustTypeID from tCustomer c, tShop s where c.sCustNO = s.sCustNO and s.sShopNO = ?", shopNo);
} catch (Exception e) {
throw new XException("未查到用户信息");
}
String sqlCustBwList = "select bw.sPromoPaperNO from tPromoCustBWList bw, tCustomer c, tShop s where bw.sShopNO = c.sCustTypeID and c.sCustNO = s.sCustNO and s.sShopNO = '" + shopNo + "'"; String sqlCustBwList = "select bw.sPromoPaperNO from tPromoCustBWList bw, tCustomer c, tShop s where bw.sShopNO = c.sCustTypeID and c.sCustNO = s.sCustNO and s.sShopNO = '" + shopNo + "'";
String sqlPromoTag = String sqlPromoTag =
"SELECT " "SELECT "
......
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