|
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* Description
|
|
@@ -36,6 +37,20 @@ public class SupplierServiceImpl implements SupplierService {
|
|
|
if (!StringUtils.isEmpty(supplier.getBusinessScope())) {
|
|
|
String[] businessScope = supplier.getBusinessScope().split("/");
|
|
|
supplier.setBusinessScopeArr(businessScope);
|
|
|
+ supplier.setMedicalPracticeLicense(supplierDao.medicalPracticeLicense(supplierId));
|
|
|
+ }
|
|
|
+ //公司资质照片
|
|
|
+ List<String> productionLicence = supplierDao.getShopCertById(supplierId, 2);
|
|
|
+ if (null != productionLicence && productionLicence.size() > 0) {
|
|
|
+ supplier.setMedicalPracticeLicenseImg1(productionLicence.get(0));
|
|
|
+ }
|
|
|
+ List<String> hygienicLicense = supplierDao.getShopCertById(supplierId, 5);
|
|
|
+ if (null != hygienicLicense && hygienicLicense.size() > 0) {
|
|
|
+ supplier.setMedicalPracticeLicenseImg2(hygienicLicense.get(0));
|
|
|
+ }
|
|
|
+ List<String> taxLicense = supplierDao.getShopCertById(supplierId, 6);
|
|
|
+ if (null != taxLicense && taxLicense.size() > 0) {
|
|
|
+ supplier.setMedicalPracticeLicenseImg3(taxLicense.get(0));
|
|
|
}
|
|
|
return supplier;
|
|
|
}
|