Commit bf27c40b authored by Quxl's avatar Quxl

x

parent 33ba5a4c
...@@ -241,6 +241,7 @@ public class UserController { ...@@ -241,6 +241,7 @@ public class UserController {
@ApiImplicitParam(paramType = "query", dataType = "string", name = "email", value = "邮箱"), @ApiImplicitParam(paramType = "query", dataType = "string", name = "email", value = "邮箱"),
@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", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"), @ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
...@@ -267,6 +268,7 @@ public class UserController { ...@@ -267,6 +268,7 @@ public class UserController {
String memo, String memo,
String langID, String langID,
String salesmanNO1, String salesmanNO1,
String mainBusiness,
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("shopId", shopId); parameters.put("shopId", shopId);
...@@ -286,6 +288,7 @@ public class UserController { ...@@ -286,6 +288,7 @@ public class UserController {
parameters.put("memo", memo); parameters.put("memo", memo);
parameters.put("langID", langID); parameters.put("langID", langID);
parameters.put("salesmanNO1", salesmanNO1); parameters.put("salesmanNO1", salesmanNO1);
parameters.put("mainBusiness", mainBusiness);
return userService.modifyShopAuthInfo(parameters); return userService.modifyShopAuthInfo(parameters);
} }
......
...@@ -452,6 +452,7 @@ public class UserServiceImpl implements UserService { ...@@ -452,6 +452,7 @@ public class UserServiceImpl implements UserService {
map.put("sEmail", shopMap.get("sEmail")); map.put("sEmail", shopMap.get("sEmail"));
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"));
String shopNo = (String)shopMap.get("sShopNO"); String shopNo = (String)shopMap.get("sShopNO");
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) {
...@@ -501,12 +502,13 @@ public class UserServiceImpl implements UserService { ...@@ -501,12 +502,13 @@ public class UserServiceImpl implements UserService {
String email = (String)parameters.get("email"); String email = (String)parameters.get("email");
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");
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 = ? where sCustNO = ?", customerName, custNo); jdbcTemplate.update("update tCustomer set sCustName = ? where sCustNO = ?", customerName, 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 = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where nShopID = ?", shopName, provinceId, cityId, districtId, address, email, memo, salesmanNO1, shopId); jdbcTemplate.update("update tShop set sShopName = ? sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where nShopID = ?", shopName, mainBusiness, provinceId, cityId, districtId, address, email, memo, salesmanNO1, shopId);
List<Map<String, Object>> addrList = jdbcTemplate.queryForList("select * from tCustAddress where sCustNO = ? and sShopNO = ? and nTag&5 = 4", custNo, shopNo); List<Map<String, Object>> addrList = jdbcTemplate.queryForList("select * from tCustAddress where sCustNO = ? and sShopNO = ? and nTag&5 = 4", custNo, 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