代码优化
This commit is contained in:
parent
43adbfb0b7
commit
99bac03ea0
|
|
@ -143,6 +143,7 @@ public class CoordinatePhotoServiceImpl implements CoordinatePhotoService {
|
||||||
}
|
}
|
||||||
ComprehensiveQueryVo comprehensiveQueryVo = new ComprehensiveQueryVo();
|
ComprehensiveQueryVo comprehensiveQueryVo = new ComprehensiveQueryVo();
|
||||||
BeanUtils.copyProperties(data,comprehensiveQueryVo);
|
BeanUtils.copyProperties(data,comprehensiveQueryVo);
|
||||||
|
comprehensiveQueryVo.setUploadType("4");
|
||||||
comprehensiveQueryVo.setVioPlace(data.getBuildPlace());
|
comprehensiveQueryVo.setVioPlace(data.getBuildPlace());
|
||||||
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
||||||
|
|
@ -155,8 +155,7 @@ public class ImportantMatterServiceImpl implements ImportantMatterService {
|
||||||
if (data.getTime() != null && !data.getTime().trim().isEmpty()) {
|
if (data.getTime() != null && !data.getTime().trim().isEmpty()) {
|
||||||
comprehensiveQueryVo.setRectDate(dateFormat.parse(data.getTime()));
|
comprehensiveQueryVo.setRectDate(dateFormat.parse(data.getTime()));
|
||||||
}
|
}
|
||||||
comprehensiveQueryVo.setTitle(data.getTitle());
|
comprehensiveQueryVo.setUploadType("5");
|
||||||
comprehensiveQueryVo.setContent(data.getContent());
|
|
||||||
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.toString(), e);
|
log.error(e.toString(), e);
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,7 @@ public class SafetyMeasuresServiceImpl implements SafetyMeasuresService {
|
||||||
}
|
}
|
||||||
comprehensiveQueryVo.setVioPlace(data.getCheckPlace());
|
comprehensiveQueryVo.setVioPlace(data.getCheckPlace());
|
||||||
comprehensiveQueryVo.setVioDesc(data.getCheckDesc());
|
comprehensiveQueryVo.setVioDesc(data.getCheckDesc());
|
||||||
|
comprehensiveQueryVo.setUploadType("3");
|
||||||
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.toString(), e);
|
log.error(e.toString(), e);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue