| | |
| | | |
| | | 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 TmsRouteMapper tmsRouteMapper; |
| | | |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | |
| | | /** |
| | | * 查询运输路线管理 |
| | |
| | | @Override |
| | | public int insertTmsRoute(TmsRoute tmsRoute) |
| | | { |
| | | String noByKey = systemDataNoService.getNoByKey(SystemDataNoEnum.LX); |
| | | tmsRoute.setSystemCode(noByKey); |
| | | tmsRoute.setCreateBy(SecurityUtils.getUsername()); |
| | | tmsRoute.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsRouteMapper.insertTmsRoute(tmsRoute); |
| | | } |
| | |
| | | @Override |
| | | public int updateTmsRoute(TmsRoute tmsRoute) |
| | | { |
| | | tmsRoute.setUpdateBy(SecurityUtils.getUsername()); |
| | | tmsRoute.setUpdateTime(DateUtils.getNowDate()); |
| | | return tmsRouteMapper.updateTmsRoute(tmsRoute); |
| | | } |