From f318c9c7c127b00f353bf45f273096d1dc4b424f Mon Sep 17 00:00:00 2001 From: admin <1101184511@qq.com> Date: 星期三, 20 八月 2025 01:10:48 +0800 Subject: [PATCH] 功能完善 --- src/main/java/com/taoke/autopay/controller/admin/js2/AdminOrderTaskController.java | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/taoke/autopay/controller/admin/js2/AdminOrderTaskController.java b/src/main/java/com/taoke/autopay/controller/admin/js2/AdminOrderTaskController.java index d5d3d2b..bda539e 100644 --- a/src/main/java/com/taoke/autopay/controller/admin/js2/AdminOrderTaskController.java +++ b/src/main/java/com/taoke/autopay/controller/admin/js2/AdminOrderTaskController.java @@ -11,10 +11,12 @@ import com.taoke.autopay.entity.js2.OrderTaskExecutionDetail; import com.taoke.autopay.exception.OrderTaskException; import com.taoke.autopay.factory.js2.OrderTaskFactory; +import com.taoke.autopay.service.js2.OrderTaskExecutionDetailService; import com.taoke.autopay.service.js2.OrderTaskService; import com.taoke.autopay.utils.TimeUtil; import com.taoke.autopay.vo.admin.js2.OrderTaskVO; import net.sf.json.JSONObject; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -24,6 +26,7 @@ import javax.annotation.Resource; import java.io.IOException; +import java.sql.Time; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Arrays; @@ -63,6 +66,8 @@ return new Date(); } }).create(); + @Autowired + private OrderTaskExecutionDetailService orderTaskExecutionDetailService; /** * 浠诲姟鍒楄〃鏌ヨ锛堟寜鐓у叧閿瓧锛屾棩鏈熸煡璇級 @@ -267,4 +272,26 @@ return JsonUtil.loadFalseResult("绯荤粺寮傚父锛�" + e.getMessage()); } } + + @ResponseBody + @RequestMapping("updateExpectedReviewTime") + public String updateExpectedReviewTime(String id, String expectedReviewTime) { + try { + if (StringUtil.isNullOrEmpty(id)) { + return JsonUtil.loadFalseResult("ID涓嶈兘涓虹┖"); + } + + OrderTaskExecutionDetail update = OrderTaskExecutionDetail.builder() + .id( id) + .expectedReviewTime(new Date(TimeUtil.convertToTimeTemp(expectedReviewTime, "yyyy-MM-dd HH:mm:ss"))) + .updateTime(new Date()) + .build(); + orderTaskExecutionDetailService.updateOrderTaskExecutionDetail(update); + return JsonUtil.loadTrueResult(""); + } catch (Exception e) { + return JsonUtil.loadFalseResult("绯荤粺寮傚父锛�" + e.getMessage()); + } + } + + } \ No newline at end of file -- Gitblit v1.8.0