فهرست منبع

三类器械资质

plf 4 سال پیش
والد
کامیت
97d9bacf4a

+ 6 - 0
src/main/java/com/caimei365/user/model/dto/ShopRegisterDto.java

@@ -151,4 +151,10 @@ public class ShopRegisterDto implements Serializable {
      */
     @ApiModelProperty("微信小程序")
     private String wxApplets;
+
+    /**
+     * 如选择为医疗>>三类器械  则必须要上传资质
+     */
+    @ApiModelProperty("如选择为医疗>>三类器械  则必须要上传资质")
+    private String medicalPracticeLicenseImg;
 }

+ 4 - 0
src/main/java/com/caimei365/user/model/po/ShopPo.java

@@ -111,4 +111,8 @@ public class ShopPo implements Serializable {
      * 是否可用,1可用
      */
     private String validFlag;
+    /**
+     * 如选择为医疗>>三类器械  则必须要上传资质
+     */
+    private String medicalPracticeLicenseImg1;
 }

+ 2 - 0
src/main/java/com/caimei365/user/service/impl/RegisterServiceImpl.java

@@ -805,6 +805,8 @@ public class RegisterServiceImpl implements RegisterService {
         shop.setValidFlag("1");
         // 供应商:90:已上线,91:已下线,92:审核不通过,3:待审核
         shop.setStatus(3);
+        //如选择为医疗>>三类器械  则必须要上传资质
+        shop.setMedicalPracticeLicenseImg1(shopRegisterDto.getMedicalPracticeLicenseImg());
         /*
             保存数据库 shop
          */

+ 2 - 2
src/main/resources/mapper/RegisterMapper.xml

@@ -22,8 +22,8 @@
         values(#{organizeId},#{registerTime},#{registerIp},#{source},#{registerUserTypeId},#{name},#{userName},#{bindMobile},#{email},#{userIdentity},#{userPermission},#{manufacturerStatus},#{password},#{agreeFlag},#{validFlag})
     </insert>
     <insert id="insertShop" parameterType="com.caimei365.user.model.po.ShopPo" keyProperty="shopId" useGeneratedKeys="true">
-        insert into shop(`userID`, `name`, `sname`, `linkMan`, `contractMobile`, `contractEmail1`, `provinceID`, `cityID`, `townID`, `address`, `socialCreditCode`, `businessLicenseImage`, `firstShopType`, `secondShopType`, `mainpro`, `productDesc`, `info`, `website`, `wxOfficialAccount`, `wxApplets`, `addTime`, `validFlag`, `status`)
-        values(#{userId},#{name},#{shortName},#{linkMan},#{contractMobile},#{contractEmail},#{provinceId},#{cityId},#{townId},#{address},#{socialCreditCode},#{businessLicense},#{firstShopType},#{secondShopType},#{mainProduct},#{mainProductDesc},#{shopDesc},#{website},#{wxOfficialAccount},#{wxApplets},#{addTime},#{validFlag},#{status})
+        insert into shop(`userID`, `name`, `sname`, `linkMan`, `contractMobile`, `contractEmail1`, `provinceID`, `cityID`, `townID`, `address`, `socialCreditCode`, `businessLicenseImage`, `firstShopType`, `secondShopType`, `mainpro`, `productDesc`, `info`, `website`, `wxOfficialAccount`, `wxApplets`, `addTime`, `validFlag`, `status`,medicalPracticeLicenseImg1)
+        values(#{userId},#{name},#{shortName},#{linkMan},#{contractMobile},#{contractEmail},#{provinceId},#{cityId},#{townId},#{address},#{socialCreditCode},#{businessLicense},#{firstShopType},#{secondShopType},#{mainProduct},#{mainProductDesc},#{shopDesc},#{website},#{wxOfficialAccount},#{wxApplets},#{addTime},#{validFlag},#{status},#{medicalPracticeLicenseImg1})
     </insert>
     <update id="updateUserClubId">
         update user set clubID = #{clubId} where userID = #{userId}