|
|
@ -577,9 +577,10 @@ public class WtSpBasicServiceImpl extends ServiceImpl<WtSpBasicMapper, WtSpBasic |
|
|
|
ImportParams params = new ImportParams(); |
|
|
|
ImportParams params = new ImportParams(); |
|
|
|
params.setHeadRows(2); |
|
|
|
params.setHeadRows(2); |
|
|
|
List<WtSpManagementeExcelEntity> list = wtSpManagementMapper.findAll(AuthUtil.getTenantId()); |
|
|
|
List<WtSpManagementeExcelEntity> list = wtSpManagementMapper.findAll(AuthUtil.getTenantId()); |
|
|
|
List<String> codeList = list.stream().map(s -> s.getOneCode()).collect(Collectors.toList()); |
|
|
|
// List<String> codeList = list.stream().map(s -> s.getOneCode()).collect(Collectors.toList());
|
|
|
|
List<String> twoCodeList = list.stream().map(s -> s.getTwoCode()).collect(Collectors.toList()); |
|
|
|
// 只允许增加物品库存台账到第二级,不允许增加到第一级
|
|
|
|
codeList.addAll(twoCodeList); |
|
|
|
List<String> codeList = list.stream().map(s -> s.getTwoCode()).collect(Collectors.toList()); |
|
|
|
|
|
|
|
// codeList.addAll(twoCodeList);
|
|
|
|
String filename = file.getOriginalFilename(); |
|
|
|
String filename = file.getOriginalFilename(); |
|
|
|
ExcelToolListener excelToolListener = new ExcelToolListener(); |
|
|
|
ExcelToolListener excelToolListener = new ExcelToolListener(); |
|
|
|
if (org.springframework.util.StringUtils.isEmpty(filename)) { |
|
|
|
if (org.springframework.util.StringUtils.isEmpty(filename)) { |
|
|
|