| | |
| | | return Convert.toList(EnforceComplaintLogVo.class , list); |
| | | } |
| | | |
| | | @Override//列表查询 |
| | | public List<EnforceComplaintLogVo> complaintList(EnforceComplaintLogQueryBo bo) |
| | | { |
| | | QueryWrapper<EnforceComplaintLog> qw = getQw(bo); |
| | | qw.ne("complaint_type","-1"); |
| | | List<EnforceComplaintLog> list = this.list(qw); |
| | | return Convert.toList(EnforceComplaintLogVo.class , list); |
| | | } |
| | | |
| | | @Override |
| | | public List<EnforceComplaintLogVo> queryPleaseList(EnforceComplaintLogQueryBo bo) { |
| | | QueryWrapper<EnforceComplaintLog> qw = getQw(bo); |
| | | qw.eq("complaint_type","-1"); |
| | | List<EnforceComplaintLog> list = this.list(qw); |
| | | return Convert.toList(EnforceComplaintLogVo.class , list); |
| | | } |
| | | |
| | | @Override//id查询 |
| | | public EnforceComplaintLogVo queryById(Long id) |
| | | { |
| | |
| | | List<OrderNodeVo> vos = new ArrayList<>(); |
| | | EnforceComplaintLog order = this.getById(id); |
| | | if (order.getComplaintTime()!=null){ |
| | | vos.add(new OrderNodeVo("发起投诉",order.getCompanyUser(),order.getCompanyName(),order.getComplaintTime(), null)); |
| | | vos.add(new OrderNodeVo("发起诉求",order.getCompanyUser(),order.getCompanyName(),order.getComplaintTime(), null)); |
| | | } |
| | | if (order.getInTime()!=null && StringUtils.isNotEmpty(order.getInUser())){ |
| | | |
| | |
| | | ){ |
| | | throw new BaseException("投诉企业不能为空!"); |
| | | } |
| | | if (entity.getExecuteDeptId() == null |
| | | || StringUtils.isEmpty(entity.getExecuteDeptName()) |
| | | ){ |
| | | throw new BaseException("投诉单位不能为空!"); |
| | | } |
| | | // if (entity.getExecuteDeptId() == null |
| | | // || StringUtils.isEmpty(entity.getExecuteDeptName()) |
| | | // ){ |
| | | // throw new BaseException("投诉单位不能为空!"); |
| | | // } |
| | | if (StringUtils.isEmpty(entity.getComplaintType())){ |
| | | throw new BaseException("请选择要投诉类型!"); |
| | | } |