|
|
|
@ -315,6 +315,44 @@ public class SupManufacturerController {
|
|
|
|
|
if (StrUtil.isEmpty(supManufacturerEntity.getManufacturerId()) || StrUtil.isEmpty(supManufacturerEntity.getCustomerId())) {
|
|
|
|
|
return ResultVOUtils.error(500, "参数错误!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//验证证书是否齐全
|
|
|
|
|
FilterCertSetsRequest filterCertSetsRequest = new FilterCertSetsRequest();
|
|
|
|
|
filterCertSetsRequest.setType(ConstantStatus.CERT_MANUFACTURER);
|
|
|
|
|
List<SupCertSetEntity> supCertSetEntities = supCertSetService.filterCertSets(filterCertSetsRequest);
|
|
|
|
|
ListIterator<SupCertSetEntity> iterable = supCertSetEntities.listIterator();
|
|
|
|
|
while (iterable.hasNext()) {
|
|
|
|
|
SupCertSetEntity supCertSetEntity = iterable.next();
|
|
|
|
|
|
|
|
|
|
if (( supCertSetEntity.getForeign() != null && supCertSetEntity.getForeign() == 2
|
|
|
|
|
&& StrUtil.trimToEmpty(supManufacturerEntity.getCompanyType()).equals("2"))
|
|
|
|
|
||
|
|
|
|
|
(
|
|
|
|
|
supCertSetEntity.getForeign() != null && supCertSetEntity.getForeign() == 1
|
|
|
|
|
&& StrUtil.trimToEmpty(supManufacturerEntity.getCompanyType()).equals("2"))
|
|
|
|
|
||
|
|
|
|
|
( supCertSetEntity.getForeign() != null
|
|
|
|
|
&& supCertSetEntity.getForeign() == 1
|
|
|
|
|
&& supManufacturerEntity.getCompanyType().equals("1"))
|
|
|
|
|
||
|
|
|
|
|
( supCertSetEntity.getForeign() != null
|
|
|
|
|
&& supCertSetEntity.getForeign() == 3
|
|
|
|
|
&& supManufacturerEntity.getCompanyType().equals("1"))) {
|
|
|
|
|
} else {
|
|
|
|
|
iterable.remove();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
String errMsg = "";
|
|
|
|
|
if (supCertSetEntities.size() > 0) {
|
|
|
|
|
for (SupCertSetEntity supCertSetEntity : supCertSetEntities) {
|
|
|
|
|
errMsg = errMsg + "," + supCertSetEntity.getName();
|
|
|
|
|
}
|
|
|
|
|
return ResultVOUtils.error(500, errMsg.substring(1) + "等证书未上传,无法完成审核!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询是否包含审核未通过的证书
|
|
|
|
|
if (supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_PASS ||
|
|
|
|
|
supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_CHANGE_PASS) {
|
|
|
|
|