Commit d6cca963 authored by Quxl's avatar Quxl

x

parent f5dab925
...@@ -240,6 +240,8 @@ public class UserController { ...@@ -240,6 +240,8 @@ public class UserController {
@ApiImplicitParam(paramType = "query", dataType = "string", name = "customerName", value = "客户姓名", required=true), @ApiImplicitParam(paramType = "query", dataType = "string", name = "customerName", value = "客户姓名", required=true),
@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", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"), @ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"), @ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"),
...@@ -264,6 +266,7 @@ public class UserController { ...@@ -264,6 +266,7 @@ public class UserController {
String email, String email,
String memo, String memo,
String langID, String langID,
String salesmanNO1,
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);
...@@ -282,6 +285,7 @@ public class UserController { ...@@ -282,6 +285,7 @@ public class UserController {
parameters.put("email", email); parameters.put("email", email);
parameters.put("memo", memo); parameters.put("memo", memo);
parameters.put("langID", langID); parameters.put("langID", langID);
parameters.put("salesmanNO1", salesmanNO1);
return userService.modifyShopAuthInfo(parameters); return userService.modifyShopAuthInfo(parameters);
} }
......
...@@ -430,6 +430,7 @@ public class UserServiceImpl implements UserService { ...@@ -430,6 +430,7 @@ public class UserServiceImpl implements UserService {
map.put("sAddress", shopMap.get("sAddress")); map.put("sAddress", shopMap.get("sAddress"));
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"));
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) {
...@@ -478,11 +479,12 @@ public class UserServiceImpl implements UserService { ...@@ -478,11 +479,12 @@ public class UserServiceImpl implements UserService {
String customerName = (String)parameters.get("customerName"); String customerName = (String)parameters.get("customerName");
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");
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 tShop set sShopName = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ? where nShopID = ?", shopName, provinceId, cityId, districtId, address, email, memo, shopId); jdbcTemplate.update("update tShop set sShopName = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where nShopID = ?", shopName, 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