|
|
@@ -12,6 +12,10 @@
|
|
|
<id property="id" column="id"/>
|
|
|
<result property="identityImageUrls" column="identity_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
<result property="stallImageUrls" column="stall_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
+ <result property="bankProofImageUrls" column="bank_proof_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
+ <result property="businessRegistrationImageUrls" column="business_registration_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
+ <result property="directorScreenshotImageUrls" column="director_screenshot_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
+ <result property="uboDeclarationImageUrls" column="ubo_declaration_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
<result property="foodRegistrationImageUrls" column="food_registration_image_urls" typeHandler="com.ruoyi.system.handler.StallImageListTypeHandler"/>
|
|
|
</resultMap>
|
|
|
<insert id="ensureMaster">
|
|
|
@@ -29,12 +33,19 @@
|
|
|
<insert id="insertApplication" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO stall_qualification_application
|
|
|
(qualification_id, store_id, application_version, status, responsible_name, contact_phone, identity_number,
|
|
|
- identity_image_urls, stall_image_urls, food_registration_number, food_registration_image_urls,
|
|
|
+ email, stall_introduction, bank_account_name, bank_name, bank_account_no,
|
|
|
+ identity_image_urls, stall_image_urls, bank_proof_image_urls, business_registration_image_urls,
|
|
|
+ director_screenshot_image_urls, ubo_declaration_image_urls, food_registration_number, food_registration_image_urls,
|
|
|
stall_name_snapshot, stall_address_snapshot, night_market_id_snapshot, submitted_by, submitted_at,
|
|
|
version, create_time, update_time)
|
|
|
VALUES (#{qualificationId}, #{storeId}, #{applicationVersion}, #{status}, #{responsibleName}, #{contactPhone}, #{identityNumber},
|
|
|
+ #{email}, #{stallIntroduction}, #{bankAccountName}, #{bankName}, #{bankAccountNo},
|
|
|
#{identityImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
- #{stallImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler}, #{foodRegistrationNumber},
|
|
|
+ #{stallImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ #{bankProofImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ #{businessRegistrationImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ #{directorScreenshotImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ #{uboDeclarationImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler}, #{foodRegistrationNumber},
|
|
|
#{foodRegistrationImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
#{stallNameSnapshot}, #{stallAddressSnapshot}, #{nightMarketIdSnapshot}, #{submittedBy}, #{submittedAt}, 0, NOW(), NOW())
|
|
|
</insert>
|
|
|
@@ -42,8 +53,14 @@
|
|
|
<update id="updateDraft">
|
|
|
UPDATE stall_qualification_application SET status = #{status}, responsible_name = #{responsibleName},
|
|
|
contact_phone = #{contactPhone}, identity_number = #{identityNumber},
|
|
|
+ email = #{email}, stall_introduction = #{stallIntroduction},
|
|
|
+ bank_account_name = #{bankAccountName}, bank_name = #{bankName}, bank_account_no = #{bankAccountNo},
|
|
|
identity_image_urls = #{identityImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
stall_image_urls = #{stallImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ bank_proof_image_urls = #{bankProofImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ business_registration_image_urls = #{businessRegistrationImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ director_screenshot_image_urls = #{directorScreenshotImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
+ ubo_declaration_image_urls = #{uboDeclarationImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
food_registration_number = #{foodRegistrationNumber},
|
|
|
food_registration_image_urls = #{foodRegistrationImageUrls,typeHandler=com.ruoyi.system.handler.StallImageListTypeHandler},
|
|
|
stall_name_snapshot = #{stallNameSnapshot}, stall_address_snapshot = #{stallAddressSnapshot},
|
|
|
@@ -71,7 +88,8 @@
|
|
|
</select>
|
|
|
<sql id="filter">
|
|
|
<where>
|
|
|
- <if test="status != null">status = #{status}</if>
|
|
|
+ status != 0
|
|
|
+ <if test="status != null">AND status = #{status}</if>
|
|
|
<if test="storeId != null">AND store_id = #{storeId}</if>
|
|
|
</where>
|
|
|
</sql>
|