Commit dff19960 authored by 赵啸非's avatar 赵啸非

添加目录字段

parent 80f03da9
...@@ -25,6 +25,8 @@ import com.mortals.xhx.module.child.dao.ChildLicenseDao; ...@@ -25,6 +25,8 @@ import com.mortals.xhx.module.child.dao.ChildLicenseDao;
import com.mortals.xhx.module.child.model.ChildLicenseEntity; import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import com.mortals.xhx.module.child.service.ChildLicenseService; import com.mortals.xhx.module.child.service.ChildLicenseService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ObjectUtils;
/** /**
* ChildLicenseService * ChildLicenseService
* 行业许可子证 service实现 * 行业许可子证 service实现
...@@ -69,10 +71,12 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens ...@@ -69,10 +71,12 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens
this.update(oldChildList); this.update(oldChildList);
} }
if(isAdd) { if(isAdd) {
// List<CertificateChildEntity> childEntityList = certificateChildService.find(new CertificateChildQuery().catalogId(applyLogEntity.getCatalogId())); List<CertificateChildEntity> childEntityList = certificateChildService.find(new CertificateChildQuery().catalogId(applyLogEntity.getCatalogId()));
// List<Long> documentIdList = childEntityList.stream().map(CertificateChildEntity::getDocumentId).collect(Collectors.toList()); List<Long> documentIdList = childEntityList.stream().map(CertificateChildEntity::getDocumentId).collect(Collectors.toList());
// if(ObjectUtils.isEmpty(documentIdList)) return result;
List<CertificateDocumentEntity> documentEntityList = certificateDocumentService.find(new CertificateDocumentQuery().status(StatusEnum.ENABLE.getValue())); CertificateDocumentQuery certificateDocumentQuery = new CertificateDocumentQuery();
certificateDocumentQuery.setIdList(documentIdList);
List<CertificateDocumentEntity> documentEntityList = certificateDocumentService.find(certificateDocumentQuery);
if (CollectionUtils.isNotEmpty(documentEntityList)) { if (CollectionUtils.isNotEmpty(documentEntityList)) {
List<ChildLicenseEntity> childLicense = new ArrayList<>(); List<ChildLicenseEntity> childLicense = new ArrayList<>();
for (CertificateDocumentEntity item : documentEntityList) { for (CertificateDocumentEntity item : documentEntityList) {
......
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