diff --git a/mallinkAdmin/src/main/resources/db/migration/V2022102600001__add_wx_receicer_apply.sql b/mallinkAdmin/src/main/resources/db/migration/V2022102600001__add_wx_receicer_apply.sql index d2ef06d49..1fcc95445 100644 --- a/mallinkAdmin/src/main/resources/db/migration/V2022102600001__add_wx_receicer_apply.sql +++ b/mallinkAdmin/src/main/resources/db/migration/V2022102600001__add_wx_receicer_apply.sql @@ -1,3 +1,7 @@ ALTER TABLE `mallink`.`wx_profit_sharing_receiver_apply` ADD COLUMN `function_state` smallint(1) COMMENT '功能开通状态' AFTER `applyment_state_desc`, -ADD COLUMN `function_state_desc` varchar(255) COMMENT '功能开通状态描述' AFTER `function_state`; \ No newline at end of file +ADD COLUMN `function_state_desc` varchar(255) COMMENT '功能开通状态描述' AFTER `function_state`; + + + +update `mallink`.`wx_profit_sharing_receiver_apply` set `function_state` = 0 where `applyment_state` is not null \ No newline at end of file diff --git a/mallinkService/src/main/resources/mapper/WxProfitSharingReceiverApplyMapper.xml b/mallinkService/src/main/resources/mapper/WxProfitSharingReceiverApplyMapper.xml index 87fcb441a..109227e43 100644 --- a/mallinkService/src/main/resources/mapper/WxProfitSharingReceiverApplyMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxProfitSharingReceiverApplyMapper.xml @@ -174,8 +174,8 @@ m.`id` as merchantId,m.`name` as merchantName,m.`link_person` as merchantlinkPerson,m.`link_phone` as merchantLinkPhone,m.`status` as merchantStatus, wpsra.`id` as applyId, wpsra.`tenant_id` as tenantId,wpsra.`parent_tenant_id` as parentTenantId,wpsra.`out_request_no` as outRequestNo,wpsra.`plat` as plat, wpsra.`organization_type` as organizationType, - wpsra.`business_license_info`->'$.merchant_name' as businessName,wpsra.`business_license_info`->'$.legal_person' as businessLegalPerson,wpsra.`merchant_shortname` as businessShortName, - wpsra.`contact_info`->'$.contact_name' as contactName,wpsra.`contact_info`->'$.mobile_phone' as contactPhone,wpsra.`contact_info`->'$.contact_email' as contactEmail, + wpsra.`business_license_info`->>'$.merchant_name' as businessName,wpsra.`business_license_info`->>'$.legal_person' as businessLegalPerson,wpsra.`merchant_shortname` as businessShortName, + wpsra.`contact_info`->>'$.contact_name' as contactName,wpsra.`contact_info`->>'$.mobile_phone' as contactPhone,wpsra.`contact_info`->>'$.contact_email' as contactEmail, wpsra.`applyment_id` as applymentId,wpsra.`applyment_state` as applymentState,wpsra.`applyment_state_desc` as applymentStateDesc, wpsra.`function_state` as functionState,wpsra.`function_state_desc` as functionStateDesc,wpsra.`sign_state` as signState,wpsra.`sign_url` as signUrl, wpsra.`sub_mchid` as subMchid, @@ -205,10 +205,10 @@ and wpsra.`organization_type` = #{organizationType} - and wpsra.`business_license_info`->'$.merchant_name' like concat('%', #{businessName},'%') + and wpsra.`business_license_info`->>'$.merchant_name' like concat('%', #{businessName},'%') - and wpsra.`contact_info`->'$.contact_name' like concat('%', #{contactName},'%') + and wpsra.`contact_info`->>'$.contact_name' like concat('%', #{contactName},'%') and wpsra.`applyment_id` = #{applymentId}