Browse Source

修正:物品类别台账导入

zhongwei
ty 4 months ago
parent
commit
66aa807444
  1. 7
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpBasicServiceImpl.java

7
hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpBasicServiceImpl.java

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

Loading…
Cancel
Save