|
|
@ -187,21 +187,21 @@ public class ProofingInformationServiceImpl implements ProofingInformationServic |
|
|
if (data.getProofingId() == null) { |
|
|
if (data.getProofingId() == null) { |
|
|
data.setProofingId(data.getProofingId()); |
|
|
data.setProofingId(data.getProofingId()); |
|
|
} |
|
|
} |
|
|
try { |
|
|
|
|
|
if (data.getDocumentId() == null) { |
|
|
if (data.getDocumentId() == null) { |
|
|
if (data.getDocumentDefinitionListId().equalsIgnoreCase("-1")) { |
|
|
|
|
|
proofingInformationMapper.deleteProofingDocument1(data); |
|
|
|
|
|
}else { |
|
|
|
|
|
proofingInformationMapper.deleteDocumentType(data); |
|
|
|
|
|
proofingInformationMapper.deleteProofingDocument1(data); |
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
if (data.getDocumentDefinitionListId().equalsIgnoreCase("-1")) { |
|
|
|
|
|
proofingInformationMapper.deleteProofingDocument1(data); |
|
|
|
|
|
}else { |
|
|
|
|
|
proofingInformationMapper.deleteDocumentType(data); |
|
|
|
|
|
proofingInformationMapper.deleteProofingDocument1(data); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
throw new RuntimeException("删除失败:" + e.getMessage(), e); |
|
|
} |
|
|
} |
|
|
return R.ok(); |
|
|
return R.ok(); |
|
|
}else { |
|
|
}else { |
|
|
throw new RuntimeException("该文档类型存在上传的文件!"); |
|
|
throw new RuntimeException("该文档类型存在上传的文件!"); |
|
|
} |
|
|
} |
|
|
} catch (Exception e) { |
|
|
|
|
|
throw new RuntimeException("删除失败:" + e.getMessage(), e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|