|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.ResiEventNpcListFormDTO; |
|
|
@ -30,6 +31,9 @@ public class ResiEventController { |
|
|
|
@Autowired |
|
|
|
private ResiEventService resiEventService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private LoginUserUtil loginUserUtil; |
|
|
|
|
|
|
|
/** |
|
|
|
* @return |
|
|
|
* @Description 查询人大代表列表(客户下的) |
|
|
@ -40,7 +44,7 @@ public class ResiEventController { |
|
|
|
public Result<HashMap<String, List<ResiEventNpcResultDTO>>> listNpc(@RequestBody ResiEventNpcListFormDTO input) { |
|
|
|
ValidatorUtils.validateEntity(input); |
|
|
|
String customerId = input.getCustomerId(); |
|
|
|
List<ResiEventNpcResultDTO> npcs = resiEventService.listNpcByGrid(customerId); |
|
|
|
List<ResiEventNpcResultDTO> npcs = resiEventService.listNpcByGrid(customerId, loginUserUtil.getLoginUserId()); |
|
|
|
|
|
|
|
HashMap<String, List<ResiEventNpcResultDTO>> wrapper = new HashMap<>(); |
|
|
|
wrapper.put("reportTargets", npcs); |
|
|
|