44255-优化:非排序工艺路线支持所有路线主表明细批量导入

tags/yfai-mes-ext-v2.8
xiangwei.zhang 4 months ago
parent 9317426969
commit 191704bbae

@ -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(),

Loading…
Cancel
Save