|
|
@ -90,10 +90,10 @@ public class IcComplaintsController { |
|
|
|
*/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("getComplaintsById") |
|
|
|
public Result<IcComplaintsDTO> getComplaintsById(@LoginUser TokenDto tokenDto, @RequestParam Map<String, String> params) { |
|
|
|
public Result<IcComplaintsDTO> getComplaintsById(@LoginUser TokenDto tokenDto, @RequestBody Map<String, Object> params) { |
|
|
|
if (null != tokenDto) { |
|
|
|
if (StringUtils.isNotEmpty(params.get("id"))) { |
|
|
|
return new Result<IcComplaintsDTO>().ok(icComplaintsService.get(params.get("id"))); |
|
|
|
if (StringUtils.isNotEmpty((String) params.get("id"))) { |
|
|
|
return new Result<IcComplaintsDTO>().ok(icComplaintsService.get((String) params.get("id"))); |
|
|
|
} else { |
|
|
|
throw new EpmetException("参数错误,请检查参数是否正确或联系管理员!"); |
|
|
|
} |
|
|
@ -110,7 +110,7 @@ public class IcComplaintsController { |
|
|
|
*/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("myComplanintsList") |
|
|
|
public Result<List<IcComplaintsDTO>> myComplanintsList(@LoginUser TokenDto tokenDto, @RequestParam Map<String, Object> params) { |
|
|
|
public Result<List<IcComplaintsDTO>> myComplanintsList(@LoginUser TokenDto tokenDto, @RequestBody Map<String, Object> params) { |
|
|
|
List<IcComplaintsDTO> result = icComplaintsService.myComplanintsList(tokenDto.getUserId(), params); |
|
|
|
return new Result<List<IcComplaintsDTO>>().ok(result); |
|
|
|
} |
|
|
|