Commit b89a3c7e authored by wei's avatar wei 🎱

导出供应商列表数据

parent 8da23d30
...@@ -171,46 +171,47 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme ...@@ -171,46 +171,47 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
Map<String, DictDataVO> qualificationsContentMap = this.getDictDataVO(Constants.QUALIFICATIONS_CONTENT); Map<String, DictDataVO> qualificationsContentMap = this.getDictDataVO(Constants.QUALIFICATIONS_CONTENT);
DxPageImpl<V> recursion = this.findRecursion(searchQueryCondition); DxPageImpl<V> recursion = this.findRecursion(searchQueryCondition);
List<ExtSupplierManageVO> content = (List<ExtSupplierManageVO>) recursion.getContent(); List<ExtSupplierManageVO> content = (List<ExtSupplierManageVO>) recursion.getContent();
if (CollectionUtils.isNotEmpty(content)) { if (CollectionUtils.isEmpty(content)) {
for (ExtSupplierManageVO extSupplierManageVO : content) { return list;
ExtSupplierVO extSupplierVO = new ExtSupplierVO(); }
BeanUtils.copyProperties(extSupplierManageVO, extSupplierVO); for (ExtSupplierManageVO extSupplierManageVO : content) {
DictDataVO supplierType = supplierTypeMap.get(extSupplierManageVO.getSupplierType()); ExtSupplierVO extSupplierVO = new ExtSupplierVO();
extSupplierVO.setSupplierType(supplierType.getDictValue()); BeanUtils.copyProperties(extSupplierManageVO, extSupplierVO);
for (ExtSupplierManageLinkVO extSupplierManageLink : extSupplierManageVO.getExtSupplierManageLinks()) { DictDataVO supplierType = supplierTypeMap.get(extSupplierManageVO.getSupplierType());
ExtQualificationsVO target = extSupplierManageLink.getTarget(); extSupplierVO.setSupplierType(supplierType.getDictValue());
String qualificationsContent = target.getQualificationsContent(); for (ExtSupplierManageLinkVO extSupplierManageLink : extSupplierManageVO.getExtSupplierManageLinks()) {
String certificateNumber = target.getCertificateNumber(); ExtQualificationsVO target = extSupplierManageLink.getTarget();
LocalDateTime certificateTime = target.getCertificateTime(); String qualificationsContent = target.getQualificationsContent();
DictDataVO qualifications = qualificationsContentMap.get(qualificationsContent); String certificateNumber = target.getCertificateNumber();
String dictValue = qualifications.getDictValue(); LocalDateTime certificateTime = target.getCertificateTime();
switch (qualificationsContent) { DictDataVO qualifications = qualificationsContentMap.get(qualificationsContent);
case "qsc": String dictValue = qualifications.getDictValue();
extSupplierVO.setQscQualificationsContent(dictValue); switch (qualificationsContent) {
extSupplierVO.setQscCertificateNumber(certificateNumber); case "qsc":
extSupplierVO.setQscCertificateTime(certificateTime); extSupplierVO.setQscQualificationsContent(dictValue);
break; extSupplierVO.setQscCertificateNumber(certificateNumber);
case "sp": extSupplierVO.setQscCertificateTime(certificateTime);
extSupplierVO.setSpQualificationsContent(dictValue); break;
extSupplierVO.setSpCertificateNumber(certificateNumber); case "sp":
extSupplierVO.setSpCertificateTime(certificateTime); extSupplierVO.setSpQualificationsContent(dictValue);
break; extSupplierVO.setSpCertificateNumber(certificateNumber);
case "cqc": extSupplierVO.setSpCertificateTime(certificateTime);
extSupplierVO.setCqcQualificationsContent(dictValue); break;
extSupplierVO.setCqcCertificateNumber(certificateNumber); case "cqc":
extSupplierVO.setCqcCertificateTime(certificateTime); extSupplierVO.setCqcQualificationsContent(dictValue);
break; extSupplierVO.setCqcCertificateNumber(certificateNumber);
case "cqm": extSupplierVO.setCqcCertificateTime(certificateTime);
extSupplierVO.setCqmQualificationsContent(dictValue); break;
extSupplierVO.setCqmCertificateNumber(certificateNumber); case "cqm":
extSupplierVO.setCqmCertificateTime(certificateTime); extSupplierVO.setCqmQualificationsContent(dictValue);
break; extSupplierVO.setCqmCertificateNumber(certificateNumber);
default: extSupplierVO.setCqmCertificateTime(certificateTime);
break; break;
} default:
break;
} }
list.add(extSupplierVO);
} }
list.add(extSupplierVO);
} }
return list; return list;
} }
......
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