Browse Source

WMS bug HL-6249:所有具有撤销功能的创建日期是否正确

hella_online_20241017
gaojs 4 months ago
parent
commit
3b16197c21
  1. 4
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/productionscrapRecord/ProductionscrapRecordMainServiceImpl.java
  2. 4
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/scrapRecord/ScrapRecordMainServiceImpl.java
  3. 4
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/unplannedreceiptRecord/UnplannedreceiptRecordMainServiceImpl.java

4
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/productionscrapRecord/ProductionscrapRecordMainServiceImpl.java

@ -274,6 +274,10 @@ public class ProductionscrapRecordMainServiceImpl implements ProductionscrapReco
productionscrapRecordDetailDO.setMasterId(productionscrapRecordMainDONew.getId()); productionscrapRecordDetailDO.setMasterId(productionscrapRecordMainDONew.getId());
productionscrapRecordDetailDO.setNumber(number); productionscrapRecordDetailDO.setNumber(number);
productionscrapRecordDetailDO.setAmount(productionscrapRecordDetailDO.getAmount().negate()); productionscrapRecordDetailDO.setAmount(productionscrapRecordDetailDO.getAmount().negate());
productionscrapRecordDetailDO.setCreateTime(LocalDateTime.now());
productionscrapRecordDetailDO.setCreator(null);
productionscrapRecordDetailDO.setUpdateTime(null);
productionscrapRecordDetailDO.setUpdater(null);
productionscrapRecordDetailDOS.add(productionscrapRecordDetailDO); productionscrapRecordDetailDOS.add(productionscrapRecordDetailDO);
} }
productionscrapRecordDetailMapper.insertBatch(productionscrapRecordDetailDOS); productionscrapRecordDetailMapper.insertBatch(productionscrapRecordDetailDOS);

4
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/scrapRecord/ScrapRecordMainServiceImpl.java

@ -333,6 +333,10 @@ public class ScrapRecordMainServiceImpl implements ScrapRecordMainService {
scrapRecordDetailDO.setAmount(scrapRecordDetailDO.getAmount().negate()); scrapRecordDetailDO.setAmount(scrapRecordDetailDO.getAmount().negate());
scrapRecordDetailDO.setMasterId(scrapRecordMainDONew.getId()); scrapRecordDetailDO.setMasterId(scrapRecordMainDONew.getId());
scrapRecordDetailDO.setNumber(number); scrapRecordDetailDO.setNumber(number);
scrapRecordDetailDO.setCreateTime(LocalDateTime.now());
scrapRecordDetailDO.setCreator(null);
scrapRecordDetailDO.setUpdateTime(null);
scrapRecordDetailDO.setUpdater(null);
newScrapDetailList.add(scrapRecordDetailDO); newScrapDetailList.add(scrapRecordDetailDO);
} }
scrapRecordDetailMapper.insertBatch(newScrapDetailList); scrapRecordDetailMapper.insertBatch(newScrapDetailList);

4
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/unplannedreceiptRecord/UnplannedreceiptRecordMainServiceImpl.java

@ -415,6 +415,10 @@ public class UnplannedreceiptRecordMainServiceImpl implements UnplannedreceiptRe
unplannedreceiptRecordDetailDO.setMasterId(unplannedreceiptRecordMainDONew.getId()); unplannedreceiptRecordDetailDO.setMasterId(unplannedreceiptRecordMainDONew.getId());
unplannedreceiptRecordDetailDO.setNumber(number); unplannedreceiptRecordDetailDO.setNumber(number);
unplannedreceiptRecordDetailDO.setAmount(unplannedreceiptRecordDetailDO.getAmount().negate()); unplannedreceiptRecordDetailDO.setAmount(unplannedreceiptRecordDetailDO.getAmount().negate());
unplannedreceiptRecordDetailDO.setCreateTime(LocalDateTime.now());
unplannedreceiptRecordDetailDO.setCreator(null);
unplannedreceiptRecordDetailDO.setUpdateTime(null);
unplannedreceiptRecordDetailDO.setUpdater(null);
unplannedreceiptRecordDetailDOList.add(unplannedreceiptRecordDetailDO); unplannedreceiptRecordDetailDOList.add(unplannedreceiptRecordDetailDO);
} }
unplannedreceiptRecordDetailMapper.insertBatch(unplannedreceiptRecordDetailDOList); unplannedreceiptRecordDetailMapper.insertBatch(unplannedreceiptRecordDetailDOList);

Loading…
Cancel
Save