| | |
| | | public void save(FailureLogging failureLogging) throws Exception { |
| | | WorkLogging workLogging = new WorkLogging(); |
| | | workLogging.setId(UUIDUtil.getUUID()); |
| | | workLogging.setWorkDate(failureLogging.getPersonDate()); |
| | | workLogging.setWorkDate(DateUtil.getCurrentDate()); |
| | | workLogging.setUsername(failureLogging.getPersonName()); |
| | | workLogging.setContent("更换ip为"+failureLogging.getOldDeviceIp()+"的"+failureLogging.getOldDeviceModel()+",替换为"+failureLogging.getNewDeviceIp()+"的"+failureLogging.getNewDeviceModel()); |
| | | workLogging.setContentText("更换ip为"+failureLogging.getOldDeviceIp()+"的"+failureLogging.getOldDeviceModel()+",替换为"+failureLogging.getNewDeviceIp()+"的"+failureLogging.getNewDeviceModel()); |
| | | workLoggingMapper.save(workLogging); |
| | | } |
| | | |
| | | /** |
| | | * 保存更换设备日志 |
| | | * @param failureLogging |
| | | * @throws Exception |
| | | */ |
| | | public void update(FailureLogging failureLogging) throws Exception { |
| | | WorkLogging workLogging = new WorkLogging(); |
| | | workLogging.setId(UUIDUtil.getUUID()); |
| | | workLogging.setWorkDate(DateUtil.getCurrentDate()); |
| | | workLogging.setUsername(failureLogging.getPersonName()); |
| | | workLogging.setContentText("修改ip为"+failureLogging.getOldDeviceIp()+"的"+failureLogging.getOldDeviceModel()+"设备,修改为"+failureLogging.getNewDeviceIp()+"的"+failureLogging.getNewDeviceModel()); |
| | | workLoggingMapper.save(workLogging); |
| | | } |
| | | |
| | |
| | | public void save(InspectionTask inspectionTask) throws Exception { |
| | | WorkLogging workLogging = new WorkLogging(); |
| | | workLogging.setId(UUIDUtil.getUUID()); |
| | | workLogging.setWorkDate(inspectionTask.getCreateTime()); |
| | | workLogging.setWorkDate(DateUtil.getCurrentDate()); |
| | | workLogging.setUsername("管理员"); |
| | | workLogging.setContent("创立"+inspectionTask.getStartDate()+"-"+inspectionTask.getEndDate()+"的任务,标题为"+inspectionTask.getTitle()); |
| | | workLogging.setContentText("创立"+inspectionTask.getStartDate()+"到"+inspectionTask.getEndDate()+"的任务,标题为"+inspectionTask.getTitle()); |
| | | workLoggingMapper.save(workLogging); |
| | | } |
| | | |
| | | /** |
| | | * 保存创立任务日志 |
| | | * @param |
| | | * @throws Exception |
| | | */ |
| | | public void update(InspectionTask inspectionTask) throws Exception { |
| | | WorkLogging workLogging = new WorkLogging(); |
| | | workLogging.setId(UUIDUtil.getUUID()); |
| | | workLogging.setWorkDate(DateUtil.getCurrentDate()); |
| | | workLogging.setUsername("管理员"); |
| | | workLogging.setContentText("修改"+inspectionTask.getStartDate()+"到"+inspectionTask.getEndDate()+"的任务"); |
| | | workLoggingMapper.save(workLogging); |
| | | } |
| | | } |