|
@ -86,6 +86,10 @@ public class DcEventImportantFileServiceImpl implements IDcEventImportantFileSer |
|
|
if (StringUtils.isEmpty(dcEventImportantFile.getEventId())){ |
|
|
if (StringUtils.isEmpty(dcEventImportantFile.getEventId())){ |
|
|
return AjaxResult.error("事件id不能为空!"); |
|
|
return AjaxResult.error("事件id不能为空!"); |
|
|
} |
|
|
} |
|
|
|
|
|
if ("1".equals(dcEventImportantFile.getType()) || "3".equals(dcEventImportantFile.getType())){ |
|
|
|
|
|
dcEventImportantFileMapper.deleteDcEventImportantFile(dcEventImportantFile.getEventId(),dcEventImportantFile.getType()); |
|
|
|
|
|
} |
|
|
|
|
|
dcEventImportantFileMapper.selectDcEventImportantFileList(dcEventImportantFile); |
|
|
int i = dcEventImportantFileMapper.insertDcEventImportantFile(dcEventImportantFile); |
|
|
int i = dcEventImportantFileMapper.insertDcEventImportantFile(dcEventImportantFile); |
|
|
if (i > 0){ |
|
|
if (i > 0){ |
|
|
if (StringUtils.isNotEmpty(dcEventImportantFile.getStatus()) && "1".equals(dcEventImportantFile.getStatus())) { |
|
|
if (StringUtils.isNotEmpty(dcEventImportantFile.getStatus()) && "1".equals(dcEventImportantFile.getStatus())) { |
|
|