|
@ -162,21 +162,13 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
public List<WarehouseInfo> getWarehouseInfo() { |
|
|
public List<WarehouseInfo> getWarehouseInfo() { |
|
|
List<WarehouseInfo> warehouseInfoList = easOutInBillMapper.getWarehouseInfo(); |
|
|
List<WarehouseInfo> warehouseInfoList = easOutInBillMapper.getWarehouseInfo(); |
|
|
//三期的仓库放在前面
|
|
|
//三期的仓库放在前面
|
|
|
List<WarehouseInfo> second = warehouseInfoList.stream() |
|
|
List<WarehouseInfo> second = warehouseInfoList.stream().filter(r -> r.getCkmc().contains("三期")).collect(Collectors.toList()); |
|
|
.filter(r -> r.getCkmc().contains("三期")) |
|
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
//三期原材料库放在最前面
|
|
|
//三期原材料库放在最前面
|
|
|
Optional<WarehouseInfo> first = second.stream() |
|
|
Optional<WarehouseInfo> first = second.stream().filter(r -> r.getCkbm().equals("3.03.013")).findFirst(); |
|
|
.filter(r -> r.getCkbm().equals("3.03.013")) |
|
|
|
|
|
.findFirst(); |
|
|
|
|
|
List<WarehouseInfo> sortedList = new ArrayList<>(); |
|
|
List<WarehouseInfo> sortedList = new ArrayList<>(); |
|
|
first.ifPresent(sortedList::add); |
|
|
first.ifPresent(sortedList::add); |
|
|
second.stream() |
|
|
second.stream().filter(r -> !r.equals(first.orElse(null))).forEach(sortedList::add); |
|
|
.filter(r -> !r.equals(first.orElse(null))) |
|
|
warehouseInfoList.stream().filter(r -> !second.contains(r)).forEach(sortedList::add); |
|
|
.forEach(sortedList::add); |
|
|
|
|
|
warehouseInfoList.stream() |
|
|
|
|
|
.filter(r -> !second.contains(r)) |
|
|
|
|
|
.forEach(sortedList::add); |
|
|
|
|
|
return sortedList; |
|
|
return sortedList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -217,31 +209,36 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
@Override |
|
|
@Override |
|
|
@SaIgnore |
|
|
@SaIgnore |
|
|
public CommonPage<EasOutInBill> page(EasOutInBillQuery params) { |
|
|
public CommonPage<EasOutInBill> page(EasOutInBillQuery params) { |
|
|
Page<EasOutInBill> easOutInBills = easOutInBillMapper.selectPage(new Page<>(params.getPage(), params.getSize()), new QueryWrapper<EasOutInBill>() |
|
|
Page<EasOutInBill> pageObject = new Page<>(params.getPage(), params.getSize()); |
|
|
.lambda() |
|
|
Page<EasOutInBill> receiptBills = easOutInBillMapper.selectPageList(pageObject, params.getFuzzy(),params.getDjlx(),params.getCgybm(), params.getCkbm()); |
|
|
.eq(ObjectUtil.isNotEmpty(params.getDjlx()), EasOutInBill::getDjlx, params.getDjlx()) |
|
|
// Page<EasOutInBill> easOutInBills = easOutInBillMapper.selectPage(new Page<>(params.getPage(), params.getSize()), new QueryWrapper<EasOutInBill>()
|
|
|
.eq(ObjectUtil.isNotEmpty(params.getCkbm()), EasOutInBill::getCkbm, params.getCkbm()) |
|
|
// .lambda()
|
|
|
.eq(ObjectUtil.isNotEmpty(params.getCgybm()), EasOutInBill::getCgybm, params.getCgybm()) |
|
|
// .eq(ObjectUtil.isNotEmpty(params.getDjlx()), EasOutInBill::getDjlx, params.getDjlx())
|
|
|
//.eq(ObjectUtil.isNotEmpty(params.getDjzt()), EasOutInBill::getDjzt, "1".equals(params.getDjzt()) ? "提交" : "审核")
|
|
|
// .eq(ObjectUtil.isNotEmpty(params.getWlbm()), EasOutInBill::getWlbm, params.getCkbm())
|
|
|
.eq(EasOutInBill::getDjzt, "提交") |
|
|
// .eq(ObjectUtil.isNotEmpty(params.getCkbm()), EasOutInBill::getCkbm, params.getCkbm())
|
|
|
.nested(ObjectUtil.isNotEmpty(params.getFuzzy()), |
|
|
// .eq(ObjectUtil.isNotEmpty(params.getCgybm()), EasOutInBill::getCgybm, params.getCgybm())
|
|
|
i -> i.like(EasOutInBill::getDjid, params.getFuzzy()) |
|
|
// //.eq(ObjectUtil.isNotEmpty(params.getDjzt()), EasOutInBill::getDjzt, "1".equals(params.getDjzt()) ? "提交" : "审核")
|
|
|
.or() |
|
|
// .eq(EasOutInBill::getDjzt, "提交")
|
|
|
.like(EasOutInBill::getDjbh, params.getFuzzy()) |
|
|
// .nested(ObjectUtil.isNotEmpty(params.getFuzzy()),
|
|
|
.or() |
|
|
// i -> i.like(EasOutInBill::getDjid, params.getFuzzy())
|
|
|
.like(EasOutInBill::getZzbm, params.getFuzzy()) |
|
|
// .or()
|
|
|
.or() |
|
|
// .like(EasOutInBill::getDjbh, params.getFuzzy())
|
|
|
.like(EasOutInBill::getZzmc, params.getFuzzy()) |
|
|
// .or()
|
|
|
.or() |
|
|
// .like(EasOutInBill::getZzbm, params.getFuzzy())
|
|
|
.like(EasOutInBill::getCkmc, params.getFuzzy()) |
|
|
// .or()
|
|
|
.or() |
|
|
// .like(EasOutInBill::getZzmc, params.getFuzzy())
|
|
|
.like(EasOutInBill::getCkbm, params.getFuzzy()) |
|
|
// .or()
|
|
|
.or() |
|
|
// .like(EasOutInBill::getCkmc, params.getFuzzy())
|
|
|
.like(EasOutInBill::getCjr, params.getFuzzy() |
|
|
// .or()
|
|
|
) |
|
|
// .like(EasOutInBill::getWlbm, params.getFuzzy())
|
|
|
).orderByDesc(EasOutInBill::getCjsj) |
|
|
// .or()
|
|
|
); |
|
|
// .like(EasOutInBill::getCkbm, params.getFuzzy())
|
|
|
return CommonPage.getPage(easOutInBills); |
|
|
// .or()
|
|
|
|
|
|
// .like(EasOutInBill::getCjr, params.getFuzzy()
|
|
|
|
|
|
// )
|
|
|
|
|
|
// ).orderByDesc(EasOutInBill::getCjsj)
|
|
|
|
|
|
// );
|
|
|
|
|
|
return CommonPage.getPage(receiptBills); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -252,12 +249,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<EasOutInBill> query(EasOutInBillQuery params) { |
|
|
public List<EasOutInBill> query(EasOutInBillQuery params) { |
|
|
return easOutInBillMapper.selectList(new QueryWrapper<EasOutInBill>() |
|
|
return easOutInBillMapper.selectList(new QueryWrapper<EasOutInBill>().lambda().eq(ObjectUtil.isNotEmpty(params), EasOutInBill::getYwlx, params.getFuzzy()).or().eq(ObjectUtil.isNotEmpty(params), EasOutInBill::getDjid, params.getFuzzy())); |
|
|
.lambda() |
|
|
|
|
|
.eq(ObjectUtil.isNotEmpty(params), EasOutInBill::getYwlx, params.getFuzzy()) |
|
|
|
|
|
.or() |
|
|
|
|
|
.eq(ObjectUtil.isNotEmpty(params), EasOutInBill::getDjid, params.getFuzzy()) |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -324,9 +316,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
public void insertInOutBills(List<EasOutInBillDetail> easOutInBillDetails, List<EasOutInBillDetail> existingIds) { |
|
|
public void insertInOutBills(List<EasOutInBillDetail> easOutInBillDetails, List<EasOutInBillDetail> existingIds) { |
|
|
Set<String> ids = existingIds.stream().map(EasOutInBillDetail::getFlid).collect(Collectors.toSet()); |
|
|
Set<String> ids = existingIds.stream().map(EasOutInBillDetail::getFlid).collect(Collectors.toSet()); |
|
|
// 过滤出需要插入的新单据,并根据来源设置 ID
|
|
|
// 过滤出需要插入的新单据,并根据来源设置 ID
|
|
|
List<EasOutInBillDetail> insertEasBills = easOutInBillDetails.stream() |
|
|
List<EasOutInBillDetail> insertEasBills = easOutInBillDetails.stream().filter(bill -> !ids.contains(bill.getFlid())).peek(bill -> { |
|
|
.filter(bill -> !ids.contains(bill.getFlid())) |
|
|
|
|
|
.peek(bill -> { |
|
|
|
|
|
bill.setId(IdUtil.getStringId()); |
|
|
bill.setId(IdUtil.getStringId()); |
|
|
bill.setCode(IdUtil.getStringId()); |
|
|
bill.setCode(IdUtil.getStringId()); |
|
|
bill.setTjkwbm(bill.getKwbm()); |
|
|
bill.setTjkwbm(bill.getKwbm()); |
|
@ -347,8 +337,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
bill.setCjsj(LocalDateTime.parse(bill.getCjsj(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).toLocalDate().toString()); |
|
|
bill.setCjsj(LocalDateTime.parse(bill.getCjsj(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).toLocalDate().toString()); |
|
|
bill.setDjly("2"); |
|
|
bill.setDjly("2"); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}).collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(insertEasBills)) { |
|
|
if (CollectionUtils.isNotEmpty(insertEasBills)) { |
|
|
this.insertBills(insertEasBills); |
|
|
this.insertBills(insertEasBills); |
|
|
} |
|
|
} |
|
@ -356,11 +345,8 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void insertBills(List<EasOutInBillDetail> detailList) { |
|
|
private void insertBills(List<EasOutInBillDetail> detailList) { |
|
|
List<EasOutInBillDetail> distinctDetailList = new ArrayList<>(detailList.stream() |
|
|
List<EasOutInBillDetail> distinctDetailList = new ArrayList<>(detailList.stream().collect(Collectors.toMap(EasOutInBillDetail::getDjid, Function.identity(), (existing, replacement) -> existing)).values()); |
|
|
.collect(Collectors.toMap(EasOutInBillDetail::getDjid, Function.identity(), (existing, replacement) -> existing)) |
|
|
List<EasOutInBill> billList = distinctDetailList.stream().map(detail -> { |
|
|
.values()); |
|
|
|
|
|
List<EasOutInBill> billList = distinctDetailList.stream() |
|
|
|
|
|
.map(detail -> { |
|
|
|
|
|
EasOutInBill bill = new EasOutInBill(); |
|
|
EasOutInBill bill = new EasOutInBill(); |
|
|
bill.setId(IdUtil.getStringId()); |
|
|
bill.setId(IdUtil.getStringId()); |
|
|
bill.setBmbm(detail.getBmbm()); |
|
|
bill.setBmbm(detail.getBmbm()); |
|
@ -385,8 +371,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
bill.setCgybm(detail.getCgybm()); |
|
|
bill.setCgybm(detail.getCgybm()); |
|
|
bill.setCgymc(detail.getCgymc()); |
|
|
bill.setCgymc(detail.getCgymc()); |
|
|
return bill; |
|
|
return bill; |
|
|
}) |
|
|
}).collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
CompletableFuture.runAsync(() -> { |
|
|
CompletableFuture.runAsync(() -> { |
|
|
//主表
|
|
|
//主表
|
|
|
for (EasOutInBill entity : billList) { |
|
|
for (EasOutInBill entity : billList) { |
|
@ -411,14 +396,11 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
|
|
|
|
|
|
private void updateBills(List<EasOutInBillDetail> easOutInBillDetails, List<EasOutInBillDetail> existingIds) { |
|
|
private void updateBills(List<EasOutInBillDetail> easOutInBillDetails, List<EasOutInBillDetail> existingIds) { |
|
|
// 过滤出需要插入的新单据,并根据来源设置 ID
|
|
|
// 过滤出需要插入的新单据,并根据来源设置 ID
|
|
|
List<EasOutInBillDetail> updateEasBills = easOutInBillDetails.stream() |
|
|
List<EasOutInBillDetail> updateEasBills = easOutInBillDetails.stream().filter(r -> r.getXgsj() != null).collect(Collectors.toList()); |
|
|
.filter(r -> r.getXgsj() != null) |
|
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(updateEasBills)) { |
|
|
if (CollectionUtils.isNotEmpty(updateEasBills)) { |
|
|
//比较insertEasBills与existingIds的修改时间进行按需更新
|
|
|
//比较insertEasBills与existingIds的修改时间进行按需更新
|
|
|
for (EasOutInBillDetail entity : updateEasBills) { |
|
|
for (EasOutInBillDetail entity : updateEasBills) { |
|
|
EasOutInBillDetail existing = existingIds.stream() |
|
|
EasOutInBillDetail existing = existingIds.stream().filter(e -> { |
|
|
.filter(e -> { |
|
|
|
|
|
boolean isUpdate = false; |
|
|
boolean isUpdate = false; |
|
|
try { |
|
|
try { |
|
|
if (e.getFlid().equals(entity.getFlid())) { |
|
|
if (e.getFlid().equals(entity.getFlid())) { |
|
@ -430,9 +412,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
throw new RuntimeException(ex); |
|
|
throw new RuntimeException(ex); |
|
|
} |
|
|
} |
|
|
return isUpdate; |
|
|
return isUpdate; |
|
|
}) |
|
|
}).findFirst().orElse(null); |
|
|
.findFirst() |
|
|
|
|
|
.orElse(null); |
|
|
|
|
|
if (existing != null) { |
|
|
if (existing != null) { |
|
|
EasOutInBillDetail updateEntity = new EasOutInBillDetail(); |
|
|
EasOutInBillDetail updateEntity = new EasOutInBillDetail(); |
|
|
updateEntity.setDjid(entity.getDjid()); |
|
|
updateEntity.setDjid(entity.getDjid()); |
|
@ -483,29 +463,20 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
try { |
|
|
try { |
|
|
// 获取距离今天30天前的日期
|
|
|
// 获取距离今天30天前的日期
|
|
|
LocalDate eightDaysAgo = LocalDate.now().minusDays(30); |
|
|
LocalDate eightDaysAgo = LocalDate.now().minusDays(30); |
|
|
existingIds = existingIds.stream() |
|
|
existingIds = existingIds.stream().filter(e -> "提交".equals(e.getDjzt()) || "未入库".equals(e.getDjzt())).filter(e -> { |
|
|
.filter(e -> "提交".equals(e.getDjzt()) || "未入库".equals(e.getDjzt())) |
|
|
|
|
|
.filter(e -> { |
|
|
|
|
|
try { |
|
|
try { |
|
|
return org.nl.common.utils.DateUtil.getDateFormat(e.getCjsj()).toInstant().atZone(ZoneId.systemDefault()).toLocalDate().isAfter(eightDaysAgo); |
|
|
return org.nl.common.utils.DateUtil.getDateFormat(e.getCjsj()).toInstant().atZone(ZoneId.systemDefault()).toLocalDate().isAfter(eightDaysAgo); |
|
|
} catch (ParseException ex) { |
|
|
} catch (ParseException ex) { |
|
|
throw new RuntimeException(ex); |
|
|
throw new RuntimeException(ex); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}).collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
// 获取easOutInBillDetails中flid字段的集合
|
|
|
// 获取easOutInBillDetails中flid字段的集合
|
|
|
Set<String> easFlidSet = easOutInBillDetails.stream() |
|
|
Set<String> easFlidSet = easOutInBillDetails.stream().map(EasOutInBillDetail::getFlid).collect(Collectors.toSet()); |
|
|
.map(EasOutInBillDetail::getFlid) |
|
|
|
|
|
.collect(Collectors.toSet()); |
|
|
|
|
|
// 找出existingIds中flid字段集合不在easOutInBillDetails中flid字段集合中的记录
|
|
|
// 找出existingIds中flid字段集合不在easOutInBillDetails中flid字段集合中的记录
|
|
|
List<EasOutInBillDetail> idsToDelete = existingIds.stream() |
|
|
List<EasOutInBillDetail> idsToDelete = existingIds.stream().filter(e -> !easFlidSet.contains(e.getFlid())).collect(Collectors.toList()); |
|
|
.filter(e -> !easFlidSet.contains(e.getFlid())) |
|
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(idsToDelete)) { |
|
|
if (CollectionUtils.isNotEmpty(idsToDelete)) { |
|
|
Map<String, Long> idCount1 = idsToDelete.stream() |
|
|
Map<String, Long> idCount1 = idsToDelete.stream().collect(Collectors.groupingBy(EasOutInBillDetail::getDjid, Collectors.counting())); |
|
|
.collect(Collectors.groupingBy(EasOutInBillDetail::getDjid, Collectors.counting())); |
|
|
Map<String, Long> idCount2 = existingIds.stream().collect(Collectors.groupingBy(EasOutInBillDetail::getDjid, Collectors.counting())); |
|
|
Map<String, Long> idCount2 = existingIds.stream() |
|
|
|
|
|
.collect(Collectors.groupingBy(EasOutInBillDetail::getDjid, Collectors.counting())); |
|
|
|
|
|
Set<String> billIds = new HashSet<>(); |
|
|
Set<String> billIds = new HashSet<>(); |
|
|
idCount1.forEach((k, v) -> { |
|
|
idCount1.forEach((k, v) -> { |
|
|
//遍历idCount1中的djid,与idCount2的比较,如果相等,判断value的个等于idCount2,则记录key到一个新的set集合中
|
|
|
//遍历idCount1中的djid,与idCount2的比较,如果相等,判断value的个等于idCount2,则记录key到一个新的set集合中
|
|
@ -528,17 +499,9 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
//查询主单据进行对比
|
|
|
//查询主单据进行对比
|
|
|
Set<String> bills = queryBills(); |
|
|
Set<String> bills = queryBills(); |
|
|
Set<String> easBills = easOutInBillDetails.stream().map(EasOutInBillDetail::getDjid).collect(Collectors.toSet()); |
|
|
Set<String> easBills = easOutInBillDetails.stream().map(EasOutInBillDetail::getDjid).collect(Collectors.toSet()); |
|
|
Set<String> notInExits = bills.stream() |
|
|
Set<String> notInExits = bills.stream().filter(r -> !easBills.contains(r)).collect(Collectors.toSet()); |
|
|
.filter(r -> !easBills.contains(r)) |
|
|
|
|
|
.collect(Collectors.toSet()); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(notInExits)) { |
|
|
if (CollectionUtils.isNotEmpty(notInExits)) { |
|
|
UpdateWrapper<EasOutInBill> updateWrapper = new UpdateWrapper<EasOutInBill>() |
|
|
UpdateWrapper<EasOutInBill> updateWrapper = new UpdateWrapper<EasOutInBill>().set("update_id", SecurityUtils.getCurrentUserId()).set("update_name", SecurityUtils.getCurrentNickName()).set("update_time", DateUtil.format(DateUtil.beginOfDay(DateUtil.date()), "yyyy-MM-dd")).set("djzt", "审核").set("btbz", "扫描EAS,此单据在EAS已查询不到,或为已审核状态。").in("djid", notInExits); |
|
|
.set("update_id", SecurityUtils.getCurrentUserId()) |
|
|
|
|
|
.set("update_name", SecurityUtils.getCurrentNickName()) |
|
|
|
|
|
.set("update_time", DateUtil.format(DateUtil.beginOfDay(DateUtil.date()), "yyyy-MM-dd")) |
|
|
|
|
|
.set("djzt", "审核") |
|
|
|
|
|
.set("btbz", "扫描EAS,此单据在EAS已查询不到,或为已审核状态。") |
|
|
|
|
|
.in("djid", notInExits); |
|
|
|
|
|
easOutInBillMapper.update(null, updateWrapper); |
|
|
easOutInBillMapper.update(null, updateWrapper); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -595,8 +558,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
EasOutInBillDetailDto dto = new EasOutInBillDetailDto(); |
|
|
EasOutInBillDetailDto dto = new EasOutInBillDetailDto(); |
|
|
BeanUtils.copyProperties(r, dto); |
|
|
BeanUtils.copyProperties(r, dto); |
|
|
entrys.add(dto); |
|
|
entrys.add(dto); |
|
|
} |
|
|
}); |
|
|
); |
|
|
|
|
|
easOutInBillDto.setEntrys(entrys); |
|
|
easOutInBillDto.setEntrys(entrys); |
|
|
if ("1".equals(easOutInBillDto.getDjly())) { |
|
|
if ("1".equals(easOutInBillDto.getDjly())) { |
|
|
easBills.add(easOutInBillDto); |
|
|
easBills.add(easOutInBillDto); |
|
@ -615,8 +577,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
//报文组合
|
|
|
//报文组合
|
|
|
if (CollectionUtils.isNotEmpty(easOutInBillList)) { |
|
|
if (CollectionUtils.isNotEmpty(easOutInBillList)) { |
|
|
easOutInBillList.forEach(b -> { |
|
|
easOutInBillList.forEach(b -> { |
|
|
List<EasOutInBillDetailDto> billDetails = easOutInBillDetailList.stream().filter(d -> |
|
|
List<EasOutInBillDetailDto> billDetails = easOutInBillDetailList.stream().filter(d -> Objects.equals(d.getDjid(), b.getBillId())).collect(Collectors.toList()); |
|
|
Objects.equals(d.getDjid(), b.getBillId())).collect(Collectors.toList()); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(billDetails)) { |
|
|
if (CollectionUtils.isNotEmpty(billDetails)) { |
|
|
if (b.getYwlx().contains(EasBillTypeEnum.OUT.getCode())) { |
|
|
if (b.getYwlx().contains(EasBillTypeEnum.OUT.getCode())) { |
|
|
//只提交大于数量大于0的物料明细
|
|
|
//只提交大于数量大于0的物料明细
|
|
@ -729,11 +690,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void updateBills(EasOutInBillDto bill, String msg) { |
|
|
private void updateBills(EasOutInBillDto bill, String msg) { |
|
|
UpdateWrapper<EasOutInBill> updateWrapper = new UpdateWrapper<EasOutInBill>() |
|
|
UpdateWrapper<EasOutInBill> updateWrapper = new UpdateWrapper<EasOutInBill>().set("update_id", SecurityUtils.getCurrentUserId()).set("update_name", SecurityUtils.getCurrentNickName()).set("update_time", DateUtil.format(DateUtil.beginOfDay(DateUtil.date()), "yyyy-MM-dd")).eq("djid", bill.getBillId()); |
|
|
.set("update_id", SecurityUtils.getCurrentUserId()) |
|
|
|
|
|
.set("update_name", SecurityUtils.getCurrentNickName()) |
|
|
|
|
|
.set("update_time", DateUtil.format(DateUtil.beginOfDay(DateUtil.date()), "yyyy-MM-dd")) |
|
|
|
|
|
.eq("djid", bill.getBillId()); |
|
|
|
|
|
if (StringUtils.isNoneBlank(msg)) { |
|
|
if (StringUtils.isNoneBlank(msg)) { |
|
|
updateWrapper.set("shjg", msg); |
|
|
updateWrapper.set("shjg", msg); |
|
|
} else { |
|
|
} else { |
|
|