| | |
| | | |
| | | 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; |
| | |
| | | protected final Logger logger = LoggerFactory.getLogger(getClass()); |
| | | @Resource |
| | | private TmsProductInfoMapper tmsProductInfoMapper; |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | |
| | | |
| | | /** |
| | |
| | | @Override |
| | | public int insertTmsProductInfo(TmsProductInfo tmsProductInfo) |
| | | { |
| | | tmsProductInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | |
| | | tmsProductInfo.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsProductInfoMapper.insertTmsProductInfo(tmsProductInfo); |
| | | } |
| | |
| | | @Override |
| | | public int updateTmsProductInfo(TmsProductInfo tmsProductInfo) |
| | | { |
| | | tmsProductInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | tmsProductInfo.setUpdateTime(DateUtils.getNowDate()); |
| | | return tmsProductInfoMapper.updateTmsProductInfo(tmsProductInfo); |
| | | } |