新增 运营商表新增营业执照url字段

This commit is contained in:
Lemon
2025-06-04 14:25:04 +08:00
parent f5e6e29f00
commit 3399a2480c
2 changed files with 55 additions and 3 deletions

View File

@@ -87,6 +87,11 @@ public class PileMerchantInfo extends BaseEntity {
@Excel(name = "logo") @Excel(name = "logo")
private String logoUrl; private String logoUrl;
/**
* 营业执照url
*/
private String businessLicenseUrl;
/** /**
* 运营商的小程序appId * 运营商的小程序appId
*/ */
@@ -129,6 +134,7 @@ public class PileMerchantInfo extends BaseEntity {
.append("managerPhone", getManagerPhone()) .append("managerPhone", getManagerPhone())
.append("servicePhone", getServicePhone()) .append("servicePhone", getServicePhone())
.append("logoUrl", getLogoUrl()) .append("logoUrl", getLogoUrl())
.append("businessLicenseUrl", getBusinessLicenseUrl())
.append("createBy", getCreateBy()) .append("createBy", getCreateBy())
.append("createTime", getCreateTime()) .append("createTime", getCreateTime())
.append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())

View File

@@ -17,6 +17,7 @@
<result column="manager_phone" jdbcType="VARCHAR" property="managerPhone" /> <result column="manager_phone" jdbcType="VARCHAR" property="managerPhone" />
<result column="service_phone" jdbcType="VARCHAR" property="servicePhone" /> <result column="service_phone" jdbcType="VARCHAR" property="servicePhone" />
<result column="logo_url" jdbcType="VARCHAR" property="logoUrl" /> <result column="logo_url" jdbcType="VARCHAR" property="logoUrl" />
<result column="business_license_url" jdbcType="VARCHAR" property="businessLicenseUrl" />
<result column="app_id" jdbcType="VARCHAR" property="appId" /> <result column="app_id" jdbcType="VARCHAR" property="appId" />
<result column="alipay_app_id" jdbcType="VARCHAR" property="alipayAppId" /> <result column="alipay_app_id" jdbcType="VARCHAR" property="alipayAppId" />
<result column="withdrawal_type" jdbcType="VARCHAR" property="withdrawalType" /> <result column="withdrawal_type" jdbcType="VARCHAR" property="withdrawalType" />
@@ -30,7 +31,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!--@mbg.generated--> <!--@mbg.generated-->
id, merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode, id, merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode,
organization_code, manager_name, manager_phone, service_phone, logo_url, app_id, organization_code, manager_name, manager_phone, service_phone, logo_url, business_license_url, app_id,
alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by, alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by,
update_time, del_flag update_time, del_flag
</sql> </sql>
@@ -86,6 +87,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
logo_url, logo_url,
</if> </if>
<if test="businessLicenseUrl != null">
business_license_url,
</if>
<if test="appId != null"> <if test="appId != null">
app_id, app_id,
</if> </if>
@@ -151,6 +155,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
#{logoUrl,jdbcType=VARCHAR}, #{logoUrl,jdbcType=VARCHAR},
</if> </if>
<if test="businessLicenseUrl != null">
#{businessLicenseUrl,jdbcType=VARCHAR},
</if>
<if test="appId != null"> <if test="appId != null">
#{appId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
</if> </if>
@@ -220,6 +227,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
logo_url = #{logoUrl,jdbcType=VARCHAR}, logo_url = #{logoUrl,jdbcType=VARCHAR},
</if> </if>
<if test="businessLicenseUrl != null">
business_license_url = #{businessLicenseUrl,jdbcType=VARCHAR},
</if>
<if test="appId != null"> <if test="appId != null">
app_id = #{appId,jdbcType=VARCHAR}, app_id = #{appId,jdbcType=VARCHAR},
</if> </if>
@@ -314,6 +324,11 @@
when id = #{item.id,jdbcType=INTEGER} then #{item.logoUrl,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.logoUrl,jdbcType=VARCHAR}
</foreach> </foreach>
</trim> </trim>
<trim prefix="business_license_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.businessLicenseUrl,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="app_id = case" suffix="end,"> <trim prefix="app_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.appId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.appId,jdbcType=VARCHAR}
@@ -453,6 +468,13 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="business_license_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.businessLicenseUrl != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.businessLicenseUrl,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="app_id = case" suffix="end,"> <trim prefix="app_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.appId != null"> <if test="item.appId != null">
@@ -526,7 +548,7 @@
<!--@mbg.generated--> <!--@mbg.generated-->
insert into pile_merchant_info insert into pile_merchant_info
(merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode, (merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode,
organization_code, manager_name, manager_phone, service_phone, logo_url, app_id, organization_code, manager_name, manager_phone, service_phone, logo_url, business_license_url, app_id,
alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by, alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by,
update_time, del_flag) update_time, del_flag)
values values
@@ -535,7 +557,7 @@
#{item.address,jdbcType=VARCHAR}, #{item.deptId,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, #{item.address,jdbcType=VARCHAR}, #{item.deptId,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR},
#{item.delayMode,jdbcType=VARCHAR}, #{item.organizationCode,jdbcType=VARCHAR}, #{item.delayMode,jdbcType=VARCHAR}, #{item.organizationCode,jdbcType=VARCHAR},
#{item.managerName,jdbcType=VARCHAR}, #{item.managerPhone,jdbcType=VARCHAR}, #{item.servicePhone,jdbcType=VARCHAR}, #{item.managerName,jdbcType=VARCHAR}, #{item.managerPhone,jdbcType=VARCHAR}, #{item.servicePhone,jdbcType=VARCHAR},
#{item.logoUrl,jdbcType=VARCHAR}, #{item.appId,jdbcType=VARCHAR}, #{item.alipayAppId,jdbcType=VARCHAR}, #{item.logoUrl,jdbcType=VARCHAR}, #{item.businessLicenseUrl,jdbcType=VARCHAR}, #{item.appId,jdbcType=VARCHAR}, #{item.alipayAppId,jdbcType=VARCHAR},
#{item.withdrawalType,jdbcType=VARCHAR}, #{item.reservedAmount,jdbcType=DECIMAL}, #{item.withdrawalType,jdbcType=VARCHAR}, #{item.reservedAmount,jdbcType=DECIMAL},
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR}) #{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR})
@@ -560,6 +582,7 @@
manager_phone, manager_phone,
service_phone, service_phone,
logo_url, logo_url,
business_license_url,
app_id, app_id,
alipay_app_id, alipay_app_id,
withdrawal_type, withdrawal_type,
@@ -587,6 +610,7 @@
#{managerPhone,jdbcType=VARCHAR}, #{managerPhone,jdbcType=VARCHAR},
#{servicePhone,jdbcType=VARCHAR}, #{servicePhone,jdbcType=VARCHAR},
#{logoUrl,jdbcType=VARCHAR}, #{logoUrl,jdbcType=VARCHAR},
#{businessLicenseUrl,jdbcType=VARCHAR},
#{appId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
#{alipayAppId,jdbcType=VARCHAR}, #{alipayAppId,jdbcType=VARCHAR},
#{withdrawalType,jdbcType=VARCHAR}, #{withdrawalType,jdbcType=VARCHAR},
@@ -614,6 +638,7 @@
manager_phone = #{managerPhone,jdbcType=VARCHAR}, manager_phone = #{managerPhone,jdbcType=VARCHAR},
service_phone = #{servicePhone,jdbcType=VARCHAR}, service_phone = #{servicePhone,jdbcType=VARCHAR},
logo_url = #{logoUrl,jdbcType=VARCHAR}, logo_url = #{logoUrl,jdbcType=VARCHAR},
business_license_url = #{businessLicenseUrl,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR}, app_id = #{appId,jdbcType=VARCHAR},
alipay_app_id = #{alipayAppId,jdbcType=VARCHAR}, alipay_app_id = #{alipayAppId,jdbcType=VARCHAR},
withdrawal_type = #{withdrawalType,jdbcType=VARCHAR}, withdrawal_type = #{withdrawalType,jdbcType=VARCHAR},
@@ -668,6 +693,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
logo_url, logo_url,
</if> </if>
<if test="businessLicenseUrl != null">
business_license_url,
</if>
<if test="appId != null"> <if test="appId != null">
app_id, app_id,
</if> </if>
@@ -737,6 +765,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
#{logoUrl,jdbcType=VARCHAR}, #{logoUrl,jdbcType=VARCHAR},
</if> </if>
<if test="businessLicenseUrl != null">
#{businessLicenseUrl,jdbcType=VARCHAR},
</if>
<if test="appId != null"> <if test="appId != null">
#{appId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
</if> </if>
@@ -806,6 +837,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
logo_url = #{logoUrl,jdbcType=VARCHAR}, logo_url = #{logoUrl,jdbcType=VARCHAR},
</if> </if>
<if test="businessLicenseUrl != null">
business_license_url = #{businessLicenseUrl,jdbcType=VARCHAR},
</if>
<if test="appId != null"> <if test="appId != null">
app_id = #{appId,jdbcType=VARCHAR}, app_id = #{appId,jdbcType=VARCHAR},
</if> </if>
@@ -872,6 +906,9 @@
<if test="logoUrl != null and logoUrl != ''"> <if test="logoUrl != null and logoUrl != ''">
and logo_url = #{logoUrl} and logo_url = #{logoUrl}
</if> </if>
<if test="businessLicenseUrl != null and businessLicenseUrl != ''">
and business_license_url = #{businessLicenseUrl}
</if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
<if test="merchantDeptIds != null and merchantDeptIds.size() != 0"> <if test="merchantDeptIds != null and merchantDeptIds.size() != 0">
and dept_id in and dept_id in
@@ -937,6 +974,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
logo_url, logo_url,
</if> </if>
<if test="businessLicenseUrl != null">
business_license_url,
</if>
<if test="appId != null"> <if test="appId != null">
app_id, app_id,
</if> </if>
@@ -999,6 +1039,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
#{logoUrl}, #{logoUrl},
</if> </if>
<if test="businessLicenseUrl != null">
#{businessLicenseUrl},
</if>
<if test="appId != null"> <if test="appId != null">
#{appId}, #{appId},
</if> </if>
@@ -1062,6 +1105,9 @@
<if test="logoUrl != null"> <if test="logoUrl != null">
logo_url = #{logoUrl}, logo_url = #{logoUrl},
</if> </if>
<if test="businessLicenseUrl != null">
business_license_url = #{businessLicenseUrl},
</if>
<if test="appId != null"> <if test="appId != null">
app_id = #{appId}, app_id = #{appId},
</if> </if>