diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/domain/SubConstructionUser.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/domain/SubConstructionUser.java index 8d28af2c..2048866f 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/domain/SubConstructionUser.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/domain/SubConstructionUser.java @@ -196,5 +196,8 @@ public class SubConstructionUser extends BaseEntity { */ private String remark; + /** + * 首次入职时间 + */ private LocalDate firstDate; } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/ISubConstructionUserService.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/ISubConstructionUserService.java index 70c4c62a..e4e7b5b9 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/ISubConstructionUserService.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/ISubConstructionUserService.java @@ -223,7 +223,13 @@ public interface ISubConstructionUserService extends IService queryUndistributedList(SubConstructionUserQueryReq req, PageQuery pageQuery); void deleteeBySysUserIds( List ids); diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/impl/SubConstructionUserServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/impl/SubConstructionUserServiceImpl.java index ee997a35..5182be8a 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/impl/SubConstructionUserServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/contractor/service/impl/SubConstructionUserServiceImpl.java @@ -750,13 +750,14 @@ public class SubConstructionUserServiceImpl extends ServiceImpl blackUserIdList; - if (projectId != null) { - blackUserIdList = constructionBlacklistService.queryIdListByProjectId(projectId); - } else { - blackUserIdList = constructionBlacklistService.queryIdListByProjectId(null); - } + List blackUserIdList = constructionBlacklistService.queryIdListByProjectId(projectId); if (CollUtil.isNotEmpty(blackUserIdList)) { lqw.notIn(SubConstructionUser::getSysUserId, blackUserIdList); } @@ -1290,7 +1286,13 @@ public class SubConstructionUserServiceImpl extends ServiceImpl queryUndistributedList(SubConstructionUserQueryReq req, PageQuery pageQuery) { LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/job/cycle/IncSyncYs7DeviceData.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/job/cycle/IncSyncYs7DeviceData.java index 66e1aaf3..8a98faaf 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/job/cycle/IncSyncYs7DeviceData.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/job/cycle/IncSyncYs7DeviceData.java @@ -6,6 +6,7 @@ import org.dromara.manager.ys7manager.Ys7Manager; import org.dromara.manager.ys7manager.vo.Ys7QueryDeviceResponseVo; import org.dromara.other.service.IOthYs7DeviceService; import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; import java.util.List; diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsConstructionSchedulePlanController.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsConstructionSchedulePlanController.java index 4e0b553f..4b2f71c3 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsConstructionSchedulePlanController.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsConstructionSchedulePlanController.java @@ -120,6 +120,20 @@ public class PgsConstructionSchedulePlanController extends BaseController { return toAjax(pgsConstructionSchedulePlanService.updateByBo(req)); } + /** + * 修改施工进度计划为完成状态 + * + * @param id 主键 + */ + @SaCheckPermission("progress:constructionSchedulePlan:editFinish") + @Log(title = "施工进度计划", businessType = BusinessType.UPDATE) + @RepeatSubmit() + @PutMapping("/finish/{id}") + public R editFinish(@NotNull(message = "主键不能为空") + @PathVariable Long id) { + return toAjax(pgsConstructionSchedulePlanService.updateFinish(id)); + } + /** * 删除施工进度计划 * diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java index be675a67..afc79314 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java @@ -67,8 +67,8 @@ public class PgsProgressPlanDetailController extends BaseController { * 新增进度计划详情(AI 填报) */ @PostMapping("/insert/numberAI") - public R insertNumberDetailByAI(@RequestPart("file") MultipartFile file) { - return toAjax(pgsProgressPlanDetailService.insertNumberDetailByAI(file)); + public R insertNumberDetailByAI(@RequestPart("file") MultipartFile file, Long projectId, String url) { + return toAjax(pgsProgressPlanDetailService.insertNumberDetailByAI(file, projectId, url)); } /** diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsConstructionSchedulePlanService.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsConstructionSchedulePlanService.java index 0adee6b3..7fcc1445 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsConstructionSchedulePlanService.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsConstructionSchedulePlanService.java @@ -54,6 +54,14 @@ public interface IPgsConstructionSchedulePlanService extends IService implements IPgsProgressPlanDetailService { @@ -97,6 +104,9 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl enumList = List.of(RecognizerTypeEnum.PHO); +/* List enumList = List.of(RecognizerTypeEnum.HOLE, RecognizerTypeEnum.PHO, + RecognizerTypeEnum.PILE, RecognizerTypeEnum.SHELVES);*/ + // 调用识别算法 + RecognizeVo recognize = recognizerManager.recognize(url, enumList); + if (recognize == null) { + return false; + } + if (recognize.getHasTarget().equals(RecognizerHasTargetEnum.NO.getValue())) { + log.info("没有识别到设施"); + return true; + } + // 处理设施 + List targets = recognize.getTargets(); + return true; } /** diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java index 3afbdf4f..1f986cf6 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java @@ -200,7 +200,7 @@ public class PgsProgressPlanServiceImpl extends ServiceImpl 0) { throw new ServiceException("已存在完成的设施,无法删除", HttpStatus.CONFLICT); } // 删除数据