Commit a8d5ef2d authored by Quxl's avatar Quxl

x

parent 467652ed
...@@ -242,6 +242,7 @@ public class UserController { ...@@ -242,6 +242,7 @@ public class UserController {
@ApiImplicitParam(paramType = "query", dataType = "string", name = "memo", value = "备注"), @ApiImplicitParam(paramType = "query", dataType = "string", name = "memo", value = "备注"),
@ApiImplicitParam(paramType = "query", dataType = "string", name = "salesmanNO1", value = "业务员编号"), @ApiImplicitParam(paramType = "query", dataType = "string", name = "salesmanNO1", value = "业务员编号"),
@ApiImplicitParam(paramType = "query", dataType = "string", name = "mainBusiness", value = "主营业务"), @ApiImplicitParam(paramType = "query", dataType = "string", name = "mainBusiness", value = "主营业务"),
@ApiImplicitParam(paramType = "query", dataType = "int", name = "storeCount", value = "门店数量"),
/*=======================================================分界线=================================================================*/ /*=======================================================分界线=================================================================*/
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"), @ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
...@@ -269,6 +270,7 @@ public class UserController { ...@@ -269,6 +270,7 @@ public class UserController {
String langID, String langID,
String salesmanNO1, String salesmanNO1,
String mainBusiness, String mainBusiness,
Integer storeCount,
HttpServletRequest request, HttpServletResponse response) { HttpServletRequest request, HttpServletResponse response) {
Map<String, Object> parameters = new HashMap<String, Object>(); Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("shopNo", shopNo); parameters.put("shopNo", shopNo);
...@@ -289,6 +291,7 @@ public class UserController { ...@@ -289,6 +291,7 @@ public class UserController {
parameters.put("langID", langID); parameters.put("langID", langID);
parameters.put("salesmanNO1", salesmanNO1); parameters.put("salesmanNO1", salesmanNO1);
parameters.put("mainBusiness", mainBusiness); parameters.put("mainBusiness", mainBusiness);
parameters.put("storeCount", storeCount);
return userService.modifyShopAuthInfo(parameters); return userService.modifyShopAuthInfo(parameters);
} }
......
...@@ -454,6 +454,7 @@ public class UserServiceImpl implements UserService { ...@@ -454,6 +454,7 @@ public class UserServiceImpl implements UserService {
map.put("sCustName", custMap.get("sCustName")); map.put("sCustName", custMap.get("sCustName"));
map.put("sCustNO", custMap.get("sCustNO")); map.put("sCustNO", custMap.get("sCustNO"));
map.put("sAuthMemo", (String)custMap.get("sMemo")); map.put("sAuthMemo", (String)custMap.get("sMemo"));
map.put("nStoreCount", custMap.get("nStoreCount"));
map.put("sShopNO", shopMap.get("sShopNO")); map.put("sShopNO", shopMap.get("sShopNO"));
map.put("nShopID", shopMap.get("nShopID")); map.put("nShopID", shopMap.get("nShopID"));
map.put("sShopName", shopMap.get("sShopName")); map.put("sShopName", shopMap.get("sShopName"));
...@@ -468,6 +469,7 @@ public class UserServiceImpl implements UserService { ...@@ -468,6 +469,7 @@ public class UserServiceImpl implements UserService {
map.put("sMemo", shopMap.get("sMemo")); map.put("sMemo", shopMap.get("sMemo"));
map.put("sSalesmanNO1", shopMap.get("sSalesmanNO1")); map.put("sSalesmanNO1", shopMap.get("sSalesmanNO1"));
map.put("sMainBusiness", shopMap.get("sMainBusiness")); map.put("sMainBusiness", shopMap.get("sMainBusiness"));
List<Map<String, Object>> certifList = jdbcTemplate.queryForList("select * from tShopCertif where sShopNO = ? and sCertifTypeID = ?", shopNo, sCertifTypeID); List<Map<String, Object>> certifList = jdbcTemplate.queryForList("select * from tShopCertif where sShopNO = ? and sCertifTypeID = ?", shopNo, sCertifTypeID);
if(certifList.size() > 0) { if(certifList.size() > 0) {
Map<String, Object> certifMap = certifList.get(0); Map<String, Object> certifMap = certifList.get(0);
...@@ -515,10 +517,11 @@ public class UserServiceImpl implements UserService { ...@@ -515,10 +517,11 @@ public class UserServiceImpl implements UserService {
String memo = (String)parameters.get("memo"); String memo = (String)parameters.get("memo");
String salesmanNO1 = (String)parameters.get("salesmanNO1"); String salesmanNO1 = (String)parameters.get("salesmanNO1");
String mainBusiness = (String)parameters.get("mainBusiness"); String mainBusiness = (String)parameters.get("mainBusiness");
Integer storeCount = (Integer)parameters.get("storeCount");
Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo); Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo);
String sMobile = (String)custMap.get("sMobile"); String sMobile = (String)custMap.get("sMobile");
jdbcTemplate.update("update tCustomer set sCustName = ?, sSalesmanNO1 = ? where sCustNO = ?", customerName, salesmanNO1, custNo); jdbcTemplate.update("update tCustomer set sCustName = ?, sSalesmanNO1 = ?, nStoreCount = ? where sCustNO = ?", customerName, salesmanNO1, storeCount, custNo);
jdbcTemplate.update("update tCustomer set nTag = 4 where sCustNO = ? and nTag&2 != 2", custNo); jdbcTemplate.update("update tCustomer set nTag = 4 where sCustNO = ? and nTag&2 != 2", custNo);
jdbcTemplate.update("update tShop set sShopName = ?, sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where sShopNO = ?", shopName, mainBusiness, provinceId, cityId, districtId, address, email, memo, salesmanNO1, shopNo); jdbcTemplate.update("update tShop set sShopName = ?, sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where sShopNO = ?", shopName, mainBusiness, provinceId, cityId, districtId, address, email, memo, salesmanNO1, shopNo);
......
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