admin
10 天以前 f318c9c7c127b00f353bf45f273096d1dc4b424f
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());
        }
    }
}