Browse Source

[feat]修改销售订单修改方法缺失添加删除后无添加

dev
zhangsiqi 4 months ago
parent
commit
a372b0e508
  1. 7
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java

7
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java

@ -219,7 +219,12 @@ public class SysSalesOrderServiceImpl implements ISysSalesOrderService
sysSalesOrderChildService.deleteSysSalesOrderChildByQuoteId(sysSalesOrder.getSalesOrderCode());
for (int i = 0; i < sysSalesOrderChildList.size(); i++) {
SysSalesOrderChild sysSalesOrderChild = sysSalesOrderChildList.get(i);
sysSalesOrderChildService.updateSysSalesOrderChild(sysSalesOrderChild);
sysSalesOrderChild.setQuoteId(sysSalesOrder.getSalesOrderCode());
sysSalesOrderChild.setCreateBy(loginName);
sysSalesOrderChild.setCreateTime(DateUtils.getNowDate());
sysSalesOrderChild.setUpdateBy(loginName);
sysSalesOrderChild.setUpdateTime(DateUtils.getNowDate());
sysSalesOrderChildService.insertSysSalesOrderChild(sysSalesOrderChild);
}
}
int result = sysSalesOrderMapper.updateSysSalesOrder(sysSalesOrder);

Loading…
Cancel
Save