Commit 0d65a4ed authored by nie'hong's avatar nie'hong

mapper参数注解

parent f8b7a2ec
...@@ -75,8 +75,7 @@ public class WorkUserServiceImpl implements WorkUserService { ...@@ -75,8 +75,7 @@ public class WorkUserServiceImpl implements WorkUserService {
//根据主键和密码查找 //根据主键和密码查找
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("id", userId); map.put("id", userId);
map.put("password", Md5Util.digestMD5(oldPassword)); map.put("password", Md5Util.digestMD5(oldPassword));
map.put("password", oldPassword);
WorkUser user = workUserMapper.getUserInfo(map); WorkUser user = workUserMapper.getUserInfo(map);
if (user == null) { if (user == null) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.UPDATE_PASSWORD_FAIL_OLD_PASSWORD_ERROR); throw new BaseCustomException(BASE_RESP_CODE_ENUM.UPDATE_PASSWORD_FAIL_OLD_PASSWORD_ERROR);
......
...@@ -2,7 +2,6 @@ package cn.wisenergy.web.admin.controller.app; ...@@ -2,7 +2,6 @@ package cn.wisenergy.web.admin.controller.app;
import cn.wisenergy.common.utils.exception.*; import cn.wisenergy.common.utils.exception.*;
import cn.wisenergy.model.dto.ResultUser; import cn.wisenergy.model.dto.ResultUser;
import cn.wisenergy.service.StatisticsService;
import cn.wisenergy.service.WorkUserService; import cn.wisenergy.service.WorkUserService;
import cn.wisenergy.web.admin.controller.common.BaseController; import cn.wisenergy.web.admin.controller.common.BaseController;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -28,8 +27,6 @@ public class WorkUserController extends BaseController { ...@@ -28,8 +27,6 @@ public class WorkUserController extends BaseController {
@Autowired @Autowired
private WorkUserService workUserService; private WorkUserService workUserService;
@Autowired
private StatisticsService statisticsService;
@ApiOperation(value = "根据id获取用户信息", notes = "根据id获取用户信息", httpMethod = "GET") @ApiOperation(value = "根据id获取用户信息", notes = "根据id获取用户信息", httpMethod = "GET")
@ApiImplicitParam(name = "id", value = "用户id", dataType = "int", required = true) @ApiImplicitParam(name = "id", value = "用户id", dataType = "int", required = true)
......
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