Просмотр исходного кода

商家认证新增证件字段与门店菜单照片字段

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
qmj 1 день назад
Родитель
Сommit
7234a083da

+ 48 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/InfoUser.java

@@ -156,6 +156,22 @@ public class InfoUser
     @Excel(name = "商家说明")
     private String merchantIntroduction;
 
+    /** 營業登記證證明(图片URL,多张逗号分隔,如有) */
+    @Excel(name = "營業登記證")
+    private String businessLicense;
+
+    /** 董監事資料查詢截圖(图片URL,多张逗号分隔) */
+    @Excel(name = "董監事资料查询截图")
+    private String directorsScreenshot;
+
+    /** 食品業者登錄字號證明(图片URL,如有) */
+    @Excel(name = "食品業者登錄字號證明")
+    private String foodPermit;
+
+    /** 實質受益人聲明書 UBO(图片URL,如有) */
+    @Excel(name = "實質受益人聲明書")
+    private String uboStatement;
+
     /** 创建时间 */
     @TableField(fill = FieldFill.INSERT)
     private Date createdAt;
@@ -463,6 +479,38 @@ public class InfoUser
         this.merchantIntroduction = merchantIntroduction;
     }
 
+    public String getBusinessLicense() {
+        return businessLicense;
+    }
+
+    public void setBusinessLicense(String businessLicense) {
+        this.businessLicense = businessLicense;
+    }
+
+    public String getDirectorsScreenshot() {
+        return directorsScreenshot;
+    }
+
+    public void setDirectorsScreenshot(String directorsScreenshot) {
+        this.directorsScreenshot = directorsScreenshot;
+    }
+
+    public String getFoodPermit() {
+        return foodPermit;
+    }
+
+    public void setFoodPermit(String foodPermit) {
+        this.foodPermit = foodPermit;
+    }
+
+    public String getUboStatement() {
+        return uboStatement;
+    }
+
+    public void setUboStatement(String uboStatement) {
+        this.uboStatement = uboStatement;
+    }
+
     public Date getCreatedAt() {
         return createdAt;
     }

+ 4 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/PosStore.java

@@ -47,6 +47,10 @@ public class PosStore
     /** logo */
     private String logo;
 
+    /** 菜單照片(图片URL,多张逗号分隔) */
+    @Excel(name = "菜單照片")
+    private String menuPhoto;
+
     /** 起送价 */
     @Excel(name = "起送价")
     private String posPrice;

+ 4 - 0
ruoyi-system/src/main/resources/mapper/chanting/PosStoreMapper.xml

@@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="serverType"    column="serverType"    />
         <result property="telephone"    column="telephone"    />
         <result property="logo"    column="logo"    />
+        <result property="menuPhoto"    column="menu_photo"    />
         <result property="offShelf"    column="off_shelf"    />
         <result property="isStall"    column="is_stall"    />
         <result property="isNightMarket"    column="is_night_market"    />
@@ -82,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="windingUp != null">winding_up,</if>
             <if test="sort != null">sort,</if>
             <if test="logo != null">logo,</if>
+            <if test="menuPhoto != null">menu_photo,</if>
             <if test="userId != null">user_id,</if>
             <if test="isStall != null">is_stall,</if>
             <if test="isNightMarket != null">is_night_market,</if>
@@ -103,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="windingUp != null">#{windingUp},</if>
             <if test="sort != null">#{sort},</if>
             <if test="logo != null">#{logo},</if>
+            <if test="menuPhoto != null">#{menuPhoto},</if>
             <if test="userId != null">#{userId},</if>
             <if test="isStall != null">#{isStall},</if>
             <if test="isNightMarket != null">#{isNightMarket},</if>
@@ -128,6 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="windingUp != null">winding_up = #{windingUp},</if>
             <if test="sort != null">sort = #{sort},</if>
             <if test="logo != null">logo = #{logo},</if>
+            <if test="menuPhoto != null">menu_photo = #{menuPhoto},</if>
             <if test="isStall != null">is_stall = #{isStall},</if>
             <if test="isNightMarket != null">is_night_market = #{isNightMarket},</if>
             <if test="nightMarketId != null">night_market_id = #{nightMarketId},</if>

+ 16 - 0
ruoyi-system/src/main/resources/mapper/infouser/InfoUserMapper.xml

@@ -37,6 +37,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="passportPhoto"    column="passport_photo"    />
         <result property="bankPhoto"    column="bank_photo"    />
         <result property="merchantIntroduction"    column="merchant_introduction"    />
+        <result property="businessLicense"    column="business_license"    />
+        <result property="directorsScreenshot"    column="directors_screenshot"    />
+        <result property="foodPermit"    column="food_permit"    />
+        <result property="uboStatement"    column="ubo_statement"    />
         <result property="offline"    column="offline"    />
         <result property="storeId"    column="store_id"    />
         <result property="address"    column="address"    />
@@ -112,6 +116,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="passportPhoto != null">passport_photo,</if>
             <if test="bankPhoto != null">bank_photo,</if>
             <if test="merchantIntroduction != null">merchant_introduction,</if>
+            <if test="businessLicense != null">business_license,</if>
+            <if test="directorsScreenshot != null">directors_screenshot,</if>
+            <if test="foodPermit != null">food_permit,</if>
+            <if test="uboStatement != null">ubo_statement,</if>
             <if test="offline != null">offline,</if>
             <if test="storeId != null">store_id,</if>
             <if test="address != null and address != ''">address,</if>
@@ -147,6 +155,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="passportPhoto != null">#{passportPhoto},</if>
             <if test="bankPhoto != null">#{bankPhoto},</if>
             <if test="merchantIntroduction != null">#{merchantIntroduction},</if>
+            <if test="businessLicense != null">#{businessLicense},</if>
+            <if test="directorsScreenshot != null">#{directorsScreenshot},</if>
+            <if test="foodPermit != null">#{foodPermit},</if>
+            <if test="uboStatement != null">#{uboStatement},</if>
             <if test="offline !=null">#{offline},</if>
             <if test="storeId != null">#{storeId},</if>
             <if test="address != null and address != ''">#{address},</if>
@@ -186,6 +198,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="passportPhoto != null">passport_photo = #{passportPhoto},</if>
             <if test="bankPhoto != null">bank_photo = #{bankPhoto},</if>
             <if test="merchantIntroduction != null">merchant_introduction = #{merchantIntroduction},</if>
+            <if test="businessLicense != null">business_license = #{businessLicense},</if>
+            <if test="directorsScreenshot != null">directors_screenshot = #{directorsScreenshot},</if>
+            <if test="foodPermit != null">food_permit = #{foodPermit},</if>
+            <if test="uboStatement != null">ubo_statement = #{uboStatement},</if>
             <if test="offline != null">offline =#{offline},</if>
             <if test="storeId != null">store_id = #{storeId},</if>
             <if test="address != null and address != ''">address = #{address},</if>

+ 16 - 0
updatesql/sql.md

@@ -869,3 +869,19 @@ ALTER TABLE pos_order_line_payment
   NOT NULL DEFAULT 'ONLINE' COMMENT 'LINE支付模式:ONLINE/OFFLINE' AFTER currency,
   ADD KEY idx_line_payment_mode_due (payment_mode, status, next_reconcile_at, id);
 ```
+
+## 2026-08-25 商家认证证件材料 + 门店菜单照片字段
+
+```sql
+-- 仅记录迁移脚本,由开发者确认环境后手动执行;Codex 不直接执行数据库变更。
+-- 商家认证新增 4 个证件材料字段(图片URL,多张逗号分隔;營業登記證/食品業者/UBO 为"如有"可选)
+ALTER TABLE info_user
+  ADD COLUMN business_license VARCHAR(2000) DEFAULT NULL COMMENT '營業登記證證明(图片URL,多张逗号分隔,如有)',
+  ADD COLUMN directors_screenshot VARCHAR(2000) DEFAULT NULL COMMENT '董監事資料查詢截圖(图片URL,多张逗号分隔)',
+  ADD COLUMN food_permit VARCHAR(2000) DEFAULT NULL COMMENT '食品業者登錄字號證明(图片URL,如有)',
+  ADD COLUMN ubo_statement VARCHAR(2000) DEFAULT NULL COMMENT '實質受益人聲明書UBO(图片URL,如有)';
+
+-- 门店新增菜单照片字段(图片URL,多张逗号分隔)
+ALTER TABLE pos_store
+  ADD COLUMN menu_photo VARCHAR(2000) DEFAULT NULL COMMENT '菜單照片(图片URL,多张逗号分隔)' AFTER logo;
+```