Commit 28179408 by 杨卫

feat:代码冲突

1 parent 6acf6459
...@@ -81,8 +81,6 @@ public interface InspectionWorkOrderRepository extends BaseRepository<Inspection ...@@ -81,8 +81,6 @@ public interface InspectionWorkOrderRepository extends BaseRepository<Inspection
@Query("select AVG(TIMESTAMPDIFF(SECOND, inspectionTime, inspectionCompletedTime)) AS avg_cost_seconds from InspectionWorkOrder where deleteFlag = 'N' AND status = 3 AND inspectionTime IS NOT null AND inspectionCompletedTime IS NOT NULL and inspector = ?1 and inspectionTime >= ?2 and inspectionTime <= ?3 ") @Query("select AVG(TIMESTAMPDIFF(SECOND, inspectionTime, inspectionCompletedTime)) AS avg_cost_seconds from InspectionWorkOrder where deleteFlag = 'N' AND status = 3 AND inspectionTime IS NOT null AND inspectionCompletedTime IS NOT NULL and inspector = ?1 and inspectionTime >= ?2 and inspectionTime <= ?3 ")
Optional<Integer> summaryAVGInspectTimeByInspectorIdAndTime(Inspector inspector, LocalDateTime start, LocalDateTime end); Optional<Integer> summaryAVGInspectTimeByInspectorIdAndTime(Inspector inspector, LocalDateTime start, LocalDateTime end);
Optional<InspectionWorkOrder> findByIdAndDeleteFlag(Long id, String deleteFlag);
@Override @Override
@EntityGraph(attributePaths = {"vehicle", "inspector"}) @EntityGraph(attributePaths = {"vehicle", "inspector"})
Page<InspectionWorkOrder> findAll(Specification<InspectionWorkOrder> spec, Pageable pageable); Page<InspectionWorkOrder> findAll(Specification<InspectionWorkOrder> spec, Pageable pageable);
......
...@@ -37,8 +37,6 @@ public enum ErrorCodeEnum { ...@@ -37,8 +37,6 @@ public enum ErrorCodeEnum {
NODE_NOT_LEAF(1001102, "[{0}-{1}]不是叶子节点,无法保存检测值"), NODE_NOT_LEAF(1001102, "[{0}-{1}]不是叶子节点,无法保存检测值"),
NODE_CHECK_ERROR(1001103, "数据校验失败:[]"), NODE_CHECK_ERROR(1001103, "数据校验失败:[]"),
DATA_ALREADY_EXISTS(1001004, "工单唯一ID已存在:{0}"),
PHONE_ALREADY_EXISTS(1001005, "手机号[{0}]已存在"),
OPERATION_ERROR(1001006, "已绑定的检测报告不允许删除"), OPERATION_ERROR(1001006, "已绑定的检测报告不允许删除"),
; ;
private final Integer code; private final Integer code;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!