Переглянути джерело

添加医疗器械经营许可照片

Duan_xu 2 роки тому
батько
коміт
9ec8677035

+ 4 - 0
src/main/java/com/caimei365/user/mapper/ShopMapper.java

@@ -68,6 +68,10 @@ public interface ShopMapper {
      * 公司资质照片
      */
     List<String> getShopCertById(Integer shopId, int shopCertTypeId);
+    /**
+     * 医疗器械经营许可
+     */
+    String medicalPracticeLicense(Integer shopId);
 
     /**
      * 供应商首页-轮播图片

+ 4 - 0
src/main/java/com/caimei365/user/model/vo/ShopHomeVo.java

@@ -70,6 +70,10 @@ public class ShopHomeVo implements Serializable {
      * 上架商品数量
      */
     private Integer normalNum;
+    /**
+     * 医疗器械经营许可
+     */
+   private String medicalPracticeLicense;
     /**
      * 公司资质照片1
      */

+ 1 - 0
src/main/java/com/caimei365/user/service/impl/ShopServiceImpl.java

@@ -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);

+ 3 - 0
src/main/resources/mapper/ShopMapper.xml

@@ -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}