|
|
@@ -12,6 +12,7 @@ import com.tuoheng.admin.entity.Report; |
|
|
|
import com.tuoheng.admin.entity.User; |
|
|
|
import com.tuoheng.admin.entity.WorkOrder; |
|
|
|
import com.tuoheng.admin.entity.WorkOrderFile; |
|
|
|
import com.tuoheng.admin.enums.AuditEnum; |
|
|
|
import com.tuoheng.admin.enums.DataPermissionEnum; |
|
|
|
import com.tuoheng.admin.enums.MarkEnum; |
|
|
|
import com.tuoheng.admin.enums.WorkOrderStatusEnum; |
|
|
@@ -46,6 +47,7 @@ import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
@@ -500,6 +502,7 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public JsonResult audit(InspectionFileHandleAuditRresultRequest request) { |
|
|
|
//获取当前用户信息 |
|
|
|
User user = CurrentUserUtil.getUserInfo(); |
|
|
@@ -537,7 +540,10 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
//巡检问题处理结果表 |
|
|
|
LambdaQueryWrapper<InspectionFileHandle> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
queryWrapper.in(InspectionFileHandle::getInspectionFileId, inspectionFileIdList); |
|
|
|
queryWrapper.eq(InspectionFileHandle::getAudit, 1); |
|
|
|
List<Integer> list = new ArrayList<>(); |
|
|
|
list.add(AuditEnum.ONE.getCode()); |
|
|
|
list.add(AuditEnum.TWO.getCode()); |
|
|
|
queryWrapper.in(InspectionFileHandle::getAudit, list); |
|
|
|
List<InspectionFileHandle> inspectionFileHandles = inspectionFileHandleMapper.selectList(queryWrapper); |
|
|
|
if (CollectionUtil.isEmpty(inspectionFileHandles)){ |
|
|
|
return JsonResult.success(); |