|
|
@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* 工作端,用户登录,用户管理相关接口 |
|
|
@ -34,11 +33,10 @@ public class ApiWorkUserController { |
|
|
|
private WorkUserService workUserService; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 工作端-获取token |
|
|
|
* |
|
|
|
* @params [formDto] |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.result.EpdcWorkAppAuthorizationDTO> |
|
|
|
* @params [formDto] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2019/11/19 17:23 |
|
|
|
*/ |
|
|
@ -49,11 +47,10 @@ public class ApiWorkUserController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 工作端-用户登录 |
|
|
|
* |
|
|
|
* @params [formDto] |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.common.token.dto.WorkUserAuthorizationDTO> |
|
|
|
* @params [formDto] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2019/11/19 23:03 |
|
|
|
*/ |
|
|
@ -70,7 +67,7 @@ public class ApiWorkUserController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("residentDetail") |
|
|
|
public Result<EpdcResidentDetailResultDTO> residentDetail(@RequestBody EpdcResidentDetailFormDTO formDto) { |
|
|
|
public Result<EpdcResidentDetailResultDTO> residentDetail(EpdcResidentDetailFormDTO formDto) { |
|
|
|
ValidatorUtils.validateEntity(formDto); |
|
|
|
return workUserService.residentDetail(formDto); |
|
|
|
} |
|
|
@ -118,8 +115,8 @@ public class ApiWorkUserController { |
|
|
|
* @date 2019/11/19 10:54 |
|
|
|
*/ |
|
|
|
@GetMapping("unauthorizedAmount") |
|
|
|
public Result<Integer> unauthorizedAmount(@LoginUser TokenDto userDetail, EpdcUnauthorizedAmountFromDTO fromDto){ |
|
|
|
return workUserService.getUnauthorizedAmount(userDetail,fromDto); |
|
|
|
public Result<Integer> unauthorizedAmount(@LoginUser TokenDto userDetail, EpdcUnauthorizedAmountFromDTO fromDto) { |
|
|
|
return workUserService.getUnauthorizedAmount(userDetail, fromDto); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -142,8 +139,21 @@ public class ApiWorkUserController { |
|
|
|
* @Date 2019/11/22 13:16 |
|
|
|
**/ |
|
|
|
@GetMapping("authenticateHistory") |
|
|
|
public Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(@RequestBody EpdcAuthenticateHistoryFormDTO formDTO) { |
|
|
|
public Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(EpdcAuthenticateHistoryFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return workUserService.authenticateHistory(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取用户扫码的网格 |
|
|
|
* |
|
|
|
* @param userId |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcUserGridResultDTO>> |
|
|
|
* @author work@yujt.net.cn |
|
|
|
* @date 2019/11/26 15:52 |
|
|
|
*/ |
|
|
|
@GetMapping("listGrid") |
|
|
|
public Result<List<EpdcUserGridResultDTO>> listUserGrid(String userId) { |
|
|
|
return workUserService.listUserGrid(userId); |
|
|
|
} |
|
|
|
} |
|
|
|