| | |
| | | vos.add(new OrderNodeVo("响应投诉",order.getInUser(),order.getInTime(), null)); |
| | | } |
| | | if (order.getResultTime()!=null){ |
| | | vos.add(new OrderNodeVo("投诉结果",order.getExecuteUser(),order.getResultTime(), order.getComplaintResult())); |
| | | if (order.getComplaintStatus()==-1){ |
| | | vos.add(new OrderNodeVo("已驳回",order.getExecuteUser(),order.getResultTime(), order.getComplaintResult())); |
| | | } else { |
| | | vos.add(new OrderNodeVo("已办结",order.getExecuteUser(),order.getResultTime(), order.getComplaintResult())); |
| | | } |
| | | } |
| | | return vos; |
| | | } |
| | |
| | | if (StringUtils.isEmpty(entity.getExecuteDeptName()) && entity.getExecuteDeptName()!=null){ |
| | | entity.setExecuteDeptName(deptService.getDeptAllName(entity.getExecuteDeptId())); |
| | | } |
| | | if (entity.getCompanyId()==null |
| | | || StringUtils.isEmpty(entity.getCompanyName()) |
| | | || StringUtils.isEmpty(entity.getCompanyUser()) |
| | | || StringUtils.isEmpty(entity.getCompanyPhone()) |
| | | ){ |
| | | throw new BaseException("投诉企业不能为空!"); |
| | | } |
| | | if (entity.getExecuteDeptId() == null |
| | | || StringUtils.isEmpty(entity.getExecuteDeptName()) |
| | | ){ |
| | | throw new BaseException("投诉单位不能为空!"); |
| | | } |
| | | if (StringUtils.isEmpty(entity.getComplaintType())){ |
| | | throw new BaseException("请选择要投诉类型!"); |
| | | } |
| | | if (StringUtils.isEmpty(entity.getComplaintReason())){ |
| | | throw new BaseException("请填写投诉内容!"); |
| | | } |
| | | if (entity.getId()==null){ |
| | | if (entity.getCompanyId()==null |
| | | || StringUtils.isEmpty(entity.getCompanyName()) |
| | | || StringUtils.isEmpty(entity.getCompanyUser()) |
| | | || StringUtils.isEmpty(entity.getCompanyPhone()) |
| | | ){ |
| | | throw new BaseException("投诉企业不能为空!"); |
| | | } |
| | | if (entity.getExecuteDeptId() == null |
| | | || StringUtils.isEmpty(entity.getExecuteDeptName()) |
| | | ){ |
| | | throw new BaseException("投诉单位不能为空!"); |
| | | } |
| | | if (StringUtils.isEmpty(entity.getComplaintType())){ |
| | | throw new BaseException("请选择要投诉类型!"); |
| | | } |
| | | if (StringUtils.isEmpty(entity.getComplaintReason())){ |
| | | throw new BaseException("请填写投诉内容!"); |
| | | } |
| | | |
| | | if (entity.getOrderId()!=null){ //执法单投诉 |
| | | int count = this.count(lq().eq(EnforceComplaintLog::getOrderId, entity.getOrderId())); |
| | | if (count >0){ |