Ver código fonte

文档列表

5 anos atrás
pai
commit
c43710028c

+ 1 - 1
cloud-model/src/main/java/com/hssx/cloudmodel/controller/MouldController.java

@@ -122,7 +122,7 @@ public class MouldController {
     @ApiOperation("模具保养提醒")
     @RequestMapping("/maintenanceReminder")
     @ResponseBody
-    @Scheduled(cron = "0/5 * * * * ?")//配置时间点触发
+    @Scheduled(cron = "0 0 12 * * ?")//配置时间点触发(每日中午12点)
     public HttpRespMsg maintenanceReminder() throws Exception {
         HttpRespMsg msg = mouldService.maintenanceReminder();
         return msg;

+ 22 - 5
cloud-model/src/main/java/com/hssx/cloudmodel/controller/PartController.java

@@ -1,6 +1,7 @@
 package com.hssx.cloudmodel.controller;
 
 
+import com.hssx.cloudmodel.entity.Part;
 import com.hssx.cloudmodel.entity.vo.UserVO;
 import com.hssx.cloudmodel.service.PartService;
 import com.hssx.cloudmodel.util.HttpRespMsg;
@@ -41,20 +42,36 @@ public class PartController {
     PartService partService;
 
     /**
-     * 零件 Excel 导入
-     *  file excel文件 token 用户身份凭证 mouldId 模具id
+     * 批量零件 Excel 导入
+     * file excel文件 token 用户身份凭证 mouldId 模具id
+     *
      * @param file
      * @throws Exception
      */
-    @ApiOperation("公司列表")
+    @ApiOperation("零件的excel导入")
     @RequestMapping(value = "/importAppLogin")
     @ResponseBody
     public HttpRespMsg importAppLogin(
             @RequestParam(value = "file", required = false) MultipartFile file,
             UserVO userVO) {
         HttpRespMsg msg = new HttpRespMsg();
-           msg =  partService.importPartExcel(file,userVO);
-           return msg;
+        msg = partService.importPartExcel(file, userVO);
+        return msg;
     }
+//    /**
+//     * 单个零件添加
+//     * file excel文件 token 用户身份凭证 mouldId 模具id
+//     * @throws Exception
+//     */
+//    @ApiOperation("零件的excel导入")
+//    @RequestMapping(value = "/importAppLogin")
+//    @ResponseBody
+//    public HttpRespMsg addOrUpdate(
+//            Part part,
+//            UserVO userVO) {
+//        HttpRespMsg msg = new HttpRespMsg();
+//        msg = partService.add();
+//        return msg;
+//    }
 }