Commit 7e8cc38a authored by Quxl's avatar Quxl

x

parent 49f52412
......@@ -417,17 +417,38 @@ public class UserServiceImpl implements UserService {
String sCertifType = "营业执照";
Map<String, Object> map = new HashMap<String, Object>();
Map<String, Object> shopMap = jdbcTemplate.queryForMap("select * from tShop where nShopID = ?", shopId);
String sProvinceID = (String)shopMap.get("sProvinceID");
String sCityID = (String)shopMap.get("sCityID");
String sDistrictID = (String)shopMap.get("sDistrictID");
List<Map<String, Object>> addrNameList = jdbcTemplate.queryForList("select sRegionNO, sRegionDesc from tRegion where sRegionNO = ? or sRegionNO = ? or sRegionNO = ?", sProvinceID, sCityID, sDistrictID);
Map<String, Map<String, Object>> addrmm = Util.listToMM(addrNameList, "sRegionNO");
Map<String, Object> pMap = addrmm.get(sProvinceID);
Map<String, Object> cMap = addrmm.get(sCityID);
Map<String, Object> dMap = addrmm.get(sDistrictID);
String sProvince = pMap == null ? null : (String)pMap.get("sRegionDesc");
String sCity = cMap == null ? null : (String)cMap.get("sRegionDesc");
String sDistrict = dMap == null ? null : (String)dMap.get("sRegionDesc");
sProvince = sProvince == null ? "" : sProvince;
sCity = sCity == null ? "" : sCity;
sDistrict = sDistrict == null ? "" : sDistrict;
String custNo = (String) shopMap.get("sCustNO");
Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo);
map.put("nTag", custMap.get("nTag"));
map.put("sCustName", custMap.get("sCustName"));
map.put("sCustNO", custMap.get("sCustNO"));
map.put("sShopNO", shopMap.get("sShopNO"));
map.put("nShopID", shopMap.get("nShopID"));
map.put("sShopName", shopMap.get("sShopName"));
map.put("sProvinceID", shopMap.get("sProvinceID"));
map.put("sCityID", shopMap.get("sCityID"));
map.put("sDistrictID", shopMap.get("sDistrictID"));
map.put("sProvinceID", sProvinceID);
map.put("sCityID", sCityID);
map.put("sDistrictID", sDistrictID);
map.put("sProvince", sProvince);
map.put("sCity", sCity);
map.put("sDistrict", sDistrict);
map.put("sAddress", shopMap.get("sAddress"));
map.put("sEmail", shopMap.get("sEmail"));
map.put("sMemo", shopMap.get("sMemo"));
......
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