| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.tms.domain.TmsDispatchOrderLog; |
| | | import com.ruoyi.tms.service.ITmsDispatchOrderLogService; |
| | | 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 TmsGoodsDetailMapper tmsGoodsDetailMapper; |
| | | @Autowired |
| | | private ITmsDispatchOrderLogService tmsDispatchOrderLogService; |
| | | |
| | | |
| | | /** |
| | |
| | | { |
| | | tmsGoodsDetail.setCreateBy(SecurityUtils.getUsername()); |
| | | tmsGoodsDetail.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsGoodsDetailMapper.insertTmsGoodsDetail(tmsGoodsDetail); |
| | | int result = tmsGoodsDetailMapper.insertTmsGoodsDetail(tmsGoodsDetail); |
| | | |
| | | if (result > 0 && tmsGoodsDetail.getDispatchId() != null) { |
| | | TmsDispatchOrderLog log = new TmsDispatchOrderLog(); |
| | | log.setHeadId(tmsGoodsDetail.getDispatchId()); |
| | | log.setCreateBy(SecurityUtils.getUsername()); |
| | | log.setCreateTime(DateUtils.getNowDate()); |
| | | log.setNode("填写运输货品登记"); |
| | | |
| | | tmsDispatchOrderLogService.insertTmsDispatchOrderLog(log); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | /** |