소스 검색

工单问题 工单小程序接口调整

tags/v1.3.4
陈璐 4 달 전
부모
커밋
8f50c37953
4개의 변경된 파일50개의 추가작업 그리고 18개의 파일을 삭제
  1. +21
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/InspectionFileCheckRecord.java
  2. +21
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/entity/InspectionFileCheckRecord.java
  3. +7
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileHandleServiceImpl.java
  4. +1
    -18
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java

+ 21
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/InspectionFileCheckRecord.java 파일 보기

@@ -90,4 +90,25 @@ public class InspectionFileCheckRecord {
*/
private Integer mark;

/**
* 处理人ID
*/
private String handlerUser;

/**
* 处理后图片(多个图片逗号“,”分隔)
*/
private String handlerImage;

/**
* 处理结果
*/
private String handlerResult;

/**
* 处理完成时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date handlerTime;

}

+ 21
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/entity/InspectionFileCheckRecord.java 파일 보기

@@ -90,5 +90,26 @@ public class InspectionFileCheckRecord {
*/
private Integer mark;

/**
* 处理人ID
*/
private String handlerUser;

/**
* 处理后图片(多个图片逗号“,”分隔)
*/
private String handlerImage;

/**
* 处理结果
*/
private String handlerResult;

/**
* 处理完成时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date handlerTime;

}


+ 7
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileHandleServiceImpl.java 파일 보기

@@ -16,12 +16,15 @@ import com.tuoheng.miniprogram.enums.InspectionFileHandleEnum;
import com.tuoheng.miniprogram.enums.MarkEnum;
import com.tuoheng.miniprogram.enums.ServiceExceptionEnum;
import com.tuoheng.miniprogram.enums.WorkOrderStatusEnum;
import com.tuoheng.miniprogram.service.IInspectionFileCheckRecordsService;
import com.tuoheng.miniprogram.service.IInspectionFileHandleService;
import com.tuoheng.miniprogram.utils.CurrentUserUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;

@@ -47,6 +50,10 @@ public class InspectionFileHandleServiceImpl implements IInspectionFileHandleSer

@Autowired
private WorkOrderFileMapper workOrderFileMapper;

@Resource
private IInspectionFileCheckRecordsService inspectionFileCheckRecordsService;

/**
* 上传结果
* @param dto

+ 1
- 18
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java 파일 보기

@@ -156,14 +156,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL);
}
//登录用户信息
// User user = CurrentUserUtil.getUserInfo();
User user = new User();
user.setId("0d695f6ff9441e0ba21cdd86d5cafcbd")
.setDataPermission(1)
.setTenantId("f9c3de911d228b6e51eafb510aeaea7d")
.setDeptId("e2efb06b239beed004ef9672fed72934");


User user = CurrentUserUtil.getUserInfo();
if (ObjectUtil.isNull(user)) {
return JsonResult.error(WorkOrderEnum.USER_IS_NOT_EXIST.getCode(), WorkOrderEnum.USER_IS_NOT_EXIST.getMsg());
}
@@ -437,19 +430,9 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
//获取工单对应的审核结果和历史审核记录
List<InspectionFileHandle> inspectionFileHandles =
inspectionFileHandleMapper.selectList(new LambdaQueryWrapper<InspectionFileHandle>().in(InspectionFileHandle::getInspectionFileId, inspectionFiledIds));
//子表信息处理
Map<String, InspectionFileHandle> detailMap = new HashMap<>();
if (CollectionUtils.isNotEmpty(inspectionFileHandles)){

}
List<InspectionFileCheckRecord> inspectionFileCheckRecords =
inspectionFileCheckRecordMapper.selectList(new LambdaQueryWrapper<InspectionFileCheckRecord>().in(InspectionFileCheckRecord::getInspectionFileId, inspectionFiledIds)
.orderByDesc(InspectionFileCheckRecord::getCreateTime));
//历史审核记录
Map<String, List<InspectionFileCheckRecord>> checkRecordMap = new HashMap<>();
if (CollectionUtils.isNotEmpty(inspectionFileCheckRecords)){

}

List<WorkOrderHandleVo> list = inspectionFilePageData.getRecords().stream().map(t -> {
WorkOrderHandleVo vo = new WorkOrderHandleVo();

Loading…
취소
저장