Commit 467652ed authored by Quxl's avatar Quxl

cx

parent d7ec3f23
...@@ -225,7 +225,7 @@ public class UserController { ...@@ -225,7 +225,7 @@ public class UserController {
@ApiOperation("修改认证信息") @ApiOperation("修改认证信息")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", name = "shopId", value = "店铺ID", required=true), @ApiImplicitParam(paramType = "query", dataType = "string", name = "shopNo", value = "店铺ID", required=true),
@ApiImplicitParam(paramType = "query", dataType = "string", name = "shopName", value = "店铺名称", required=true), @ApiImplicitParam(paramType = "query", dataType = "string", name = "shopName", value = "店铺名称", required=true),
@ApiImplicitParam(paramType = "query", dataType = "string", name = "provinceId", value = "省ID", required=true), @ApiImplicitParam(paramType = "query", dataType = "string", name = "provinceId", value = "省ID", required=true),
@ApiImplicitParam(paramType = "query", dataType = "string", name = "cityId", value = "市ID", required=true), @ApiImplicitParam(paramType = "query", dataType = "string", name = "cityId", value = "市ID", required=true),
...@@ -251,7 +251,7 @@ public class UserController { ...@@ -251,7 +251,7 @@ public class UserController {
}) })
@RequestMapping(value = "/modifyShopAuthInfo",method=RequestMethod.POST) @RequestMapping(value = "/modifyShopAuthInfo",method=RequestMethod.POST)
public String modifyShopAuthInfo( public String modifyShopAuthInfo(
Integer shopId, String shopNo,
String shopName, String shopName,
String provinceId, String provinceId,
String cityId, String cityId,
...@@ -271,7 +271,7 @@ public class UserController { ...@@ -271,7 +271,7 @@ public class UserController {
String mainBusiness, 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("shopNo", shopNo);
parameters.put("shopName", shopName); parameters.put("shopName", shopName);
parameters.put("provinceId", provinceId); parameters.put("provinceId", provinceId);
parameters.put("cityId", cityId); parameters.put("cityId", cityId);
...@@ -294,7 +294,7 @@ public class UserController { ...@@ -294,7 +294,7 @@ public class UserController {
@ApiOperation("查询认证信息") @ApiOperation("查询认证信息")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", name = "shopNo", required=true), @ApiImplicitParam(paramType = "query", dataType = "string", name = "shopNo", required=true),
@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"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""), @ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
......
...@@ -496,10 +496,8 @@ public class UserServiceImpl implements UserService { ...@@ -496,10 +496,8 @@ public class UserServiceImpl implements UserService {
@Override @Override
public String modifyShopAuthInfo(Map<String, Object> parameters) { public String modifyShopAuthInfo(Map<String, Object> parameters) {
String langID = (String)parameters.get("langID"); String langID = (String)parameters.get("langID");
Integer shopId = (Integer)parameters.get("shopId"); String shopNo = (String)parameters.get("shopNo");
Map<String, Object> map = jdbcTemplate.queryForMap("select sShopNO, sCustNO from tShop where nShopID = ?", shopId); String custNo = jdbcTemplate.queryForString("select sCustNO from tShop where sShopNO = ?", shopNo);
String shopNo = (String)map.get("sShopNO");
String custNo = (String)map.get("sCustNO");
String shopName = (String)parameters.get("shopName"); String shopName = (String)parameters.get("shopName");
String provinceId = (String)parameters.get("provinceId"); String provinceId = (String)parameters.get("provinceId");
String cityId = (String)parameters.get("cityId"); String cityId = (String)parameters.get("cityId");
...@@ -522,7 +520,7 @@ public class UserServiceImpl implements UserService { ...@@ -522,7 +520,7 @@ public class UserServiceImpl implements UserService {
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 = ? where sCustNO = ?", customerName, salesmanNO1, 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 nShopID = ?", shopName, mainBusiness, provinceId, cityId, districtId, address, email, memo, salesmanNO1, shopId); 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);
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