From c26a9d5eda9cb575df18fbf9a5a5c94869e99f88 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期三, 03 九月 2025 10:24:19 +0800 Subject: [PATCH] 获取轮灌组时取消项目ID --- pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigatePlan/IrrigatePlanCtrl.java | 55 +------------------------------------------------------ 1 files changed, 1 insertions(+), 54 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigatePlan/IrrigatePlanCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigatePlan/IrrigatePlanCtrl.java index 3321270..6f5032d 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigatePlan/IrrigatePlanCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigatePlan/IrrigatePlanCtrl.java @@ -52,15 +52,6 @@ private final IrrigatePlanSv irrigatePlanSv; private final CommandSv commandSv; - /** - * 鍒涘缓鐏屾簤璁″垝 - * 1. 娣诲姞鐏屾簤璁″垝 - * 2. 娣诲姞鐏屾簤娆″簭 - * 3. 娣诲姞鐏屾簤璁″垝鎿嶄綔璁板綍 - * @param planAndSchedule - * @param bindingResult - * @return - */ @PostMapping(path = "createPlan", consumes = MediaType.APPLICATION_JSON_VALUE) //@Transactional(rollbackFor = Exception.class) public BaseResponse<Boolean> createPlan(@RequestBody @Valid IrrigatePlan planAndSchedule, BindingResult bindingResult){ @@ -165,12 +156,6 @@ return BaseResponseUtils.buildSuccess(); } - /** - * 鍒犻櫎鐏屾簤璁″垝 - * @param planSimple - * @param bindingResult - * @return - */ @PostMapping(path = "deletePlan") public BaseResponse<Boolean> deletePlan(@RequestBody @Valid PlanSimple planSimple, BindingResult bindingResult) { if(bindingResult != null && bindingResult.hasErrors()){ @@ -184,15 +169,6 @@ return BaseResponseUtils.buildSuccess() ; } - /** - * 鍙戝竷鐏屾簤璁″垝 - * 1. 淇敼鐏屾簤璁″垝鐘舵�佷负鍙戝竷鐘舵�� - * 2. 娣诲姞鐏屾簤璁″垝鎿嶄綔璁板綍 - * 3. 鐢熸垚寮�闃�璁″垝 - * @param planSimple - * @param bindingResult - * @return - */ @PostMapping(path = "publishPlan", consumes = MediaType.APPLICATION_JSON_VALUE) //@Transactional(rollbackFor = Exception.class) public BaseResponse<Boolean> publishPlan(@RequestBody @Valid PlanSimple planSimple, BindingResult bindingResult){ @@ -290,11 +266,6 @@ //return BaseResponseUtils.buildSuccess(); } - /** - * 鏍规嵁璁″垝ID鑾峰彇璁″垝鏈�鏂扮姸鎬� - * @param planId - * @return - */ @GetMapping(path = "/getPlanLatestState") public BaseResponse<Integer> getPlanLatestState(@RequestParam Long planId) { if(planId == null) { @@ -309,12 +280,6 @@ } } - /** - * 缁堟鐏屾簤璁″垝 - * @param planSimple - * @param bindingResult - * @return - */ @PostMapping(path = "terminatePlan", consumes = MediaType.APPLICATION_JSON_VALUE) //@Transactional(rollbackFor = Exception.class) public BaseResponse<Boolean> terminatePlan(@RequestBody @Valid PlanSimple planSimple, BindingResult bindingResult){ @@ -329,7 +294,7 @@ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); String terminateStartTimeStr = LocalDate.now().getYear() + "-01-01 00:00:00"; Date terminateStartTime = Date.from(LocalDateTime.parse(terminateStartTimeStr, formatter).atZone(ZoneId.systemDefault()).toInstant()); - Integer terminateDuration = 9999; + Integer terminateDuration = 0; // 鍒ゆ柇璇ヨ鍒掓槸鍚﹀彲鎵ц缁堟鎿嶄綔锛氭湭鍒犻櫎銆佹湭缁堟銆佸凡鍙戝竷銆佸綋鍓嶆椂闂村皬浜庤鍒掔粨鏉熸椂闂� Date planStartTime = irrigatePlanSv.getToTerminatePlan(planId); @@ -397,10 +362,6 @@ return BaseResponseUtils.buildSuccess(); } - /** - * 鑾峰彇鏈畬鎴愮殑璁″垝鍒楄〃锛屽皬绋嬪簭璁″垝鍒楄〃椤典娇鐢� - * @return - */ @GetMapping(path = "/getNotCompletePlans") public BaseResponse<List<VoPlans>> getNotCompletePlans() { try { @@ -412,10 +373,6 @@ } } - /** - * 鑾峰彇宸插畬鎴愮殑璁″垝鍒楄〃锛屽皬绋嬪簭璁″垝鍒楄〃椤典娇鐢� - * @return - */ @GetMapping(path = "/getCompletedPlans") public BaseResponse<QueryResultVo<List<VoPlans>>> getCompletedPlans(QueryConditionVo qo) { try { @@ -426,11 +383,6 @@ } } - /** - * 鏍规嵁璁″垝ID鑾峰彇璁″垝鍙戝竷缁撴灉 - * @param planId - * @return - */ @GetMapping(path = "/getPublishResults") public BaseResponse<VoPlanDetails> getPublishResults(@RequestParam Long planId) { if(planId == null) { @@ -446,11 +398,6 @@ } } - /** - * 鏍规嵁璁″垝ID鑾峰彇璁″垝缁堟鎿嶄綔缁撴灉 - * @param planId - * @return - */ @GetMapping(path = "/getTerminateResults") public BaseResponse<VoPlanDetails> getTerminateResults(@RequestParam Long planId) { if(planId == null) { -- Gitblit v1.8.0