zhangback
7 天以前 ca412ade3b178fbc8ba0a4b6215a040acdede954
tms/src/main/java/com/ruoyi/tms/service/impl/TmsProductInfoServiceImpl.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;
@@ -33,6 +38,8 @@
    protected final Logger logger = LoggerFactory.getLogger(getClass());
    @Resource
    private TmsProductInfoMapper tmsProductInfoMapper;
    @Autowired
    ISystemDataNoService systemDataNoService;
    /**
@@ -102,6 +109,8 @@
    @Override
    public int insertTmsProductInfo(TmsProductInfo tmsProductInfo)
    {
        tmsProductInfo.setCreateBy(SecurityUtils.getUsername());
        tmsProductInfo.setCreateTime(DateUtils.getNowDate());
        return tmsProductInfoMapper.insertTmsProductInfo(tmsProductInfo);
    }
@@ -128,6 +137,7 @@
    @Override
    public int updateTmsProductInfo(TmsProductInfo tmsProductInfo)
    {
        tmsProductInfo.setUpdateBy(SecurityUtils.getUsername());
        tmsProductInfo.setUpdateTime(DateUtils.getNowDate());
        return tmsProductInfoMapper.updateTmsProductInfo(tmsProductInfo);
    }