Jelajahi Sumber

aps-自动调度

guoqu1919 6 bulan lalu
induk
melakukan
86464e8882

+ 2 - 1
cx-aps/cx-aps-common/src/main/resources/mybatis/ApsBlankOrderDao.xml

@@ -198,7 +198,8 @@
                 apope.PLANENDDATE=apope.ACTUALFINISHDATE
         where
             apo.DELETED='0' and apope.deleted='0'
-          and apope.ACTUALFINISHDATE > DATE_ADD(CURRENT_DATE,INTERVAL 1 DAY)
+          and apope.ACTUALFINISHDATE is not null
+          and  apope.PLANENDDATE > CURRENT_TIME
           and apo.PROCESS != '铸轧'
     </update>
     <update id="removeLockNextDayProcessEqu">

+ 1 - 1
cx-aps/cx-aps-server/src/main/java/com/rongwei/bsserver/controller/ApsBlankOrderController.java

@@ -61,7 +61,7 @@ public class ApsBlankOrderController {
      * 自动调度
      */
     @GetMapping("/apsScheduleRestart")
-    public R apsScheduleRestart() throws Exception {
+    public R apsScheduleRestart() {
         apsBlankOrderService.apsScheduleRestart();
         return R.ok();
     }