liyong
昨天 8b25631cdce4d0d5830c2e8b3fd3fa4eb67c7407
采购管理-来票登记 修改产品中录入日期为空
已修改1个文件
3 ■■■■■ 文件已修改
src/main/java/com/ruoyi/purchase/service/impl/PurchaseLedgerServiceImpl.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/purchase/service/impl/PurchaseLedgerServiceImpl.java
@@ -14,6 +14,7 @@
import com.ruoyi.basic.pojo.SupplierManage;
import com.ruoyi.common.enums.FileNameType;
import com.ruoyi.common.exception.base.BaseException;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.security.LoginUser;
@@ -196,6 +197,7 @@
        List<SalesLedgerProduct> updateList = partitionedProducts.get(true);
        List<SalesLedgerProduct> insertList = partitionedProducts.get(false);
        SalesLedger salesLedger = salesLedgerMapper.selectById(salesLedgerId);
        // 执行更新操作
        if (!updateList.isEmpty()) {
@@ -208,6 +210,7 @@
        if (!insertList.isEmpty()) {
            for (SalesLedgerProduct salesLedgerProduct : insertList) {
                salesLedgerProduct.setType(type);
                salesLedgerProduct.setRegisterDate(salesLedger.getEntryDate().toString());
                salesLedgerProductMapper.insert(salesLedgerProduct);
            }
        }