Commit b89a3c7e authored by wei's avatar wei 🎱

导出供应商列表数据

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