| | |
| | | |
| | | 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 TmsVehicleDocumentMapper tmsVehicleDocumentMapper; |
| | | |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | |
| | | /** |
| | | * 查询车辆证件 |
| | |
| | | @Override |
| | | public int insertTmsVehicleDocument(TmsVehicleDocument tmsVehicleDocument) |
| | | { |
| | | String noByKey = systemDataNoService.getNoByKey(SystemDataNoEnum.ZJ); |
| | | tmsVehicleDocument.setSystemCode(noByKey); |
| | | tmsVehicleDocument.setCreateBy(SecurityUtils.getUsername()); |
| | | |
| | | tmsVehicleDocument.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsVehicleDocumentMapper.insertTmsVehicleDocument(tmsVehicleDocument); |
| | | } |
| | |
| | | @Override |
| | | public int updateTmsVehicleDocument(TmsVehicleDocument tmsVehicleDocument) |
| | | { |
| | | tmsVehicleDocument.setUpdateBy(SecurityUtils.getUsername()); |
| | | tmsVehicleDocument.setUpdateTime(DateUtils.getNowDate()); |
| | | return tmsVehicleDocumentMapper.updateTmsVehicleDocument(tmsVehicleDocument); |
| | | } |
| | |
| | | /** |
| | | * 删除车辆证件信息 |
| | | * |
| | | * @param systemId 车辆证件ID |
| | | * @param id 车辆证件ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |