| | |
| | | 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; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.sql.Time; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Arrays; |
| | |
| | | return new Date(); |
| | | } |
| | | }).create(); |
| | | @Autowired |
| | | private OrderTaskExecutionDetailService orderTaskExecutionDetailService; |
| | | |
| | | /** |
| | | * 任务列表查询(按照关键字,日期查询) |
| | |
| | | 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()); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |