Browse Source

/gov/project/icEvent/myreport-detail不限制userId

master
yinzuomei 3 years ago
parent
commit
9f48bc8197
  1. 2
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java
  2. 6
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

2
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java

@ -413,7 +413,7 @@ public class IcEventController {
@PostMapping("myreport-detail") @PostMapping("myreport-detail")
public Result<MyReportIcEvResDTO> myReportDetail(@LoginUser TokenDto tokenDto, @RequestBody MyReportIcEvFormDTO formDTO) { public Result<MyReportIcEvResDTO> myReportDetail(@LoginUser TokenDto tokenDto, @RequestBody MyReportIcEvFormDTO formDTO) {
formDTO.setCustomerId(tokenDto.getCustomerId()); formDTO.setCustomerId(tokenDto.getCustomerId());
formDTO.setUserId(tokenDto.getUserId()); // formDTO.setUserId(tokenDto.getUserId());
ValidatorUtils.validateEntity(formDTO, MyReportIcEvFormDTO.DetailGroup.class); ValidatorUtils.validateEntity(formDTO, MyReportIcEvFormDTO.DetailGroup.class);
return new Result<MyReportIcEvResDTO>().ok(icEventService.myReportDetail(formDTO)); return new Result<MyReportIcEvResDTO>().ok(icEventService.myReportDetail(formDTO));
} }

6
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

@ -1682,7 +1682,13 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit
@Override @Override
public MyReportIcEvResDTO myReportDetail(MyReportIcEvFormDTO formDTO) { public MyReportIcEvResDTO myReportDetail(MyReportIcEvFormDTO formDTO) {
// 1.分页查询 // 1.分页查询
// <if test="userId != null and userId != '' ">
// AND ie.REPORT_USER_ID = #{userId}
// </if>
List<MyReportIcEvResDTO> list=baseDao.selectMyReport(formDTO); List<MyReportIcEvResDTO> list=baseDao.selectMyReport(formDTO);
if(CollectionUtils.isEmpty(list)){
return null;
}
if (!CollectionUtils.isEmpty(list)) { if (!CollectionUtils.isEmpty(list)) {
//封装数据 //封装数据
for (MyReportIcEvResDTO dto : list) { for (MyReportIcEvResDTO dto : list) {

Loading…
Cancel
Save