Commit 1a019490 authored by 廖旭伟's avatar 廖旭伟

bug修改

parent 500af89e
......@@ -71,7 +71,7 @@ public class BusinessLicenseServiceImpl extends AbstractCRUDServiceImpl<Business
if(StringUtils.isEmpty(businessLicenseEntity.getBusinessLicense())){
throw new AppException("执照编码businessLicense不能为空");
}
List<ApplyLogEntity> applyLogEntities = applyLogService.find(new ApplyLogQuery().certificateCode(businessLicenseEntity.getBusinessLicense()));
List<ApplyLogEntity> applyLogEntities = applyLogService.find(new ApplyLogQuery().certificateCode(businessLicenseEntity.getBusinessLicense()).recordStatus(0));
if(CollectionUtils.isNotEmpty(applyLogEntities)){
throw new AppException("执照编码"+businessLicenseEntity.getBusinessLicense()+"已生成过文件,请勿重复生成");
}
......
......@@ -50,7 +50,7 @@ public class DataInterfaceController extends BaseJsonBodyController {
byte code = 1;
String busiDesc = "调用微中台接口生成证照";
try {
List<ApplyLogEntity> applyLogEntities = applyLogService.find(new ApplyLogQuery().certificateCode(midCertificatePdu.getCertificateNumber()));
List<ApplyLogEntity> applyLogEntities = applyLogService.find(new ApplyLogQuery().certificateCode(midCertificatePdu.getCertificateNumber()).recordStatus(0));
if(CollectionUtils.isNotEmpty(applyLogEntities)){
throw new AppException("系统已存在编号:"+midCertificatePdu.getCertificateNumber()+"的证照信息");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment