|
@@ -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;
|
|
|
+// }
|
|
|
}
|
|
|
|