|
|
|
@ -54,9 +54,9 @@ public class MesCraftRouteController extends BaseMesController<MesCraftRoute> {
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "/all/import")
|
|
|
|
|
@ApiOperation(value = "流程导入")
|
|
|
|
|
public ResultBean allImport(@RequestParam("file") MultipartFile file, String organizeCode) {
|
|
|
|
|
ValidatorBean.checkNotNull(organizeCode, "参数organizeCode(工厂代码)不可为空或长度为0的字符串");
|
|
|
|
|
public ResultBean allImport(@RequestParam("file") MultipartFile file) {
|
|
|
|
|
try {
|
|
|
|
|
String organizeCode = AuthUtil.getOrganizeCode();
|
|
|
|
|
//数据空校验以及转换
|
|
|
|
|
ExcelTool excelTool = new ExcelTool(entityManager, RedisCacheTool.getImppRedis());
|
|
|
|
|
List<MesCraftRoute> routeList = getDataAndInitValid(excelTool, file.getOriginalFilename(), file.getInputStream(),
|
|
|
|
|