| | |
| | | |
| | | 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; |
| | |
| | | @Resource |
| | | private TmsPlanOrderMapper tmsPlanOrderMapper; |
| | | |
| | | |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | /** |
| | | * 查询运输需求计划管理 |
| | | * |
| | |
| | | @Override |
| | | public int insertTmsPlanOrder(TmsPlanOrder tmsPlanOrder) |
| | | { |
| | | tmsPlanOrder.setPlanCode(systemDataNoService.getNoByKey(SystemDataNoEnum.JH)); |
| | | tmsPlanOrder.setCreateBy(SecurityUtils.getUsername()); |
| | | tmsPlanOrder.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsPlanOrderMapper.insertTmsPlanOrder(tmsPlanOrder); |
| | | } |
| | |
| | | @Override |
| | | public int updateTmsPlanOrder(TmsPlanOrder tmsPlanOrder) |
| | | { |
| | | tmsPlanOrder.setUpdateBy(SecurityUtils.getUsername()); |
| | | tmsPlanOrder.setUpdateTime(DateUtils.getNowDate()); |
| | | return tmsPlanOrderMapper.updateTmsPlanOrder(tmsPlanOrder); |
| | | } |