@@ -68,6 +68,10 @@ public interface ShopMapper {
* 公司资质照片
*/
List<String> getShopCertById(Integer shopId, int shopCertTypeId);
+ /**
+ * 医疗器械经营许可
+ */
+ String medicalPracticeLicense(Integer shopId);
/**
* 供应商首页-轮播图片
@@ -70,6 +70,10 @@ public class ShopHomeVo implements Serializable {
* 上架商品数量
private Integer normalNum;
+ private String medicalPracticeLicense;
* 公司资质照片1
@@ -245,6 +245,7 @@ public class ShopServiceImpl implements ShopService {
String[] businessScope = supplier.getBusinessScope().split("/");
supplier.setBusinessScopeArr(businessScope);
supplier.setLogo(ImageUtils.getImageURL("shopLogo", supplier.getLogo(), 0, wwwDomain));
+ supplier.setMedicalPracticeLicense(shopMapper.medicalPracticeLicense(shopId));
}
//公司资质照片
List<String> productionLicence = shopMapper.getShopCertById(shopId, 2);
@@ -118,6 +118,9 @@
<select id="getShopCertById" resultType="java.lang.String">
SELECT image FROM shopcert WHERE shopID = #{shopId} AND shopCertTypeID = #{shopCertTypeId}
</select>
+ <select id="medicalPracticeLicense" resultType="java.lang.String">
+ SELECT medicalPracticeLicenseImg1 FROM shop WHERE shopID = #{shopId}
+ </select>
<select id="getShopHomeImages" resultType="com.caimei365.user.model.vo.ShopBannerVo">
select shopBannerID AS id, shopID AS shopId, image, link, title, info
from shopbanner where shopID = #{shopId}