zhangback
7 天以前 ca412ade3b178fbc8ba0a4b6215a040acdede954
tms/src/main/java/com/ruoyi/tms/service/impl/TmsPlanOrderServiceImpl.java
@@ -2,8 +2,13 @@
import java.util.List;
import com.ruoyi.common.enums.SystemDataNoEnum;
import com.ruoyi.common.utils.DateUtils;
import javax.annotation.Resource;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.system.service.ISystemDataNoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import org.springframework.scheduling.annotation.Async;
@@ -34,7 +39,8 @@
    @Resource
    private TmsPlanOrderMapper tmsPlanOrderMapper;
    @Autowired
    ISystemDataNoService systemDataNoService;
    /**
     * 查询运输需求计划管理
     *
@@ -102,6 +108,8 @@
    @Override
    public int insertTmsPlanOrder(TmsPlanOrder tmsPlanOrder)
    {
        tmsPlanOrder.setPlanCode(systemDataNoService.getNoByKey(SystemDataNoEnum.JH));
        tmsPlanOrder.setCreateBy(SecurityUtils.getUsername());
        tmsPlanOrder.setCreateTime(DateUtils.getNowDate());
        return tmsPlanOrderMapper.insertTmsPlanOrder(tmsPlanOrder);
    }
@@ -128,6 +136,7 @@
    @Override
    public int updateTmsPlanOrder(TmsPlanOrder tmsPlanOrder)
    {
        tmsPlanOrder.setUpdateBy(SecurityUtils.getUsername());
        tmsPlanOrder.setUpdateTime(DateUtils.getNowDate());
        return tmsPlanOrderMapper.updateTmsPlanOrder(tmsPlanOrder);
    }