| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.scheduling.annotation.Async; |
| | |
| | | if (tmsCarKeyDispatch == null) { |
| | | return AjaxResult.error("查无符合要求的调度单,请联系调度人员",3); |
| | | } |
| | | if (StringUtils.isEmpty(tmsCarKeyDispatch.getVehicleCarKeyNo())){ |
| | | return AjaxResult.error("车钥匙柜号为空,请联系调度人员",3); |
| | | |
| | | } |
| | | tmsCarKeyDispatch.setStatus(1); |
| | | tmsCarKeyDispatch.setCarKeyCollectionTime(new Date()); |
| | | tmsCarKeyDispatchMapper.updateTmsCarKeyDispatch(tmsCarKeyDispatch); |