Commit d762fae7c15793daa6212fad0aaf2f3607debb5f
1 parent
8a86ae3b
m
Showing
1 changed file
with
4 additions
and
1 deletions
trash-workFlow/src/main/java/com/trash/casefile/service/impl/ViolationWarningInformationServiceImpl.java
| ... | ... | @@ -191,7 +191,10 @@ public class ViolationWarningInformationServiceImpl implements IViolationWarning |
| 191 | 191 | if (violationWarningInformation.getViolationObjectType().equals("2")) { |
| 192 | 192 | violationWarningInformation.setProjectName(violationWarningInformation.getCompanyName()); |
| 193 | 193 | } |
| 194 | - | |
| 194 | + | |
| 195 | + if(violationWarningInformation.getProjectName() == null){ | |
| 196 | + violationWarningInformation.setProjectName(violationWarningInformation.getCompanyName()); | |
| 197 | + } | |
| 195 | 198 | log.info("违规预警信息新增"); |
| 196 | 199 | Integer result = violationWarningInformationMapper |
| 197 | 200 | .insertViolationWarningInformation(violationWarningInformation); | ... | ... |