Procházet zdrojové kódy

总后台-汇付多支付配置菜单新增关联小程序名称查询与展示

cgp před 1 týdnem
rodič
revize
f7a51d7242

+ 3 - 0
fs-service/src/main/java/com/fs/his/domain/FsHfpayConfig.java

@@ -59,5 +59,8 @@ public class FsHfpayConfig extends BaseEntity{
     @Excel(name = "appId")
     private String hfRsaPublicKey;
 
+    /** fs_course_play_source_config表的name字段*/
+    @Excel(name = "appName")
+    private String appName;
 
 }

+ 58 - 12
fs-service/src/main/resources/mapper/his/FsHfpayConfigMapper.xml

@@ -18,25 +18,71 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="hfRsaPublicKey"    column="hf_rsa_public_key"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateTime"    column="update_time"    />
+        <result property="appName"    column="app_name"    />
     </resultMap>
 
     <sql id="selectFsHfpayConfigVo">
         select id, app_id, hf_product_id, hf_sys_id, huifu_id, hf_pay_notify_url, hf_pay_online_notify_url, hf_refund_notify_url, hf_online_refund_notify_url, hf_rsa_private_key, hf_rsa_public_key, create_time, update_time from fs_hfpay_config
     </sql>
 
+<!--    <select id="selectFsHfpayConfigList" parameterType="FsHfpayConfig" resultMap="FsHfpayConfigResult">-->
+<!--            <include refid="selectFsHfpayConfigVo"/>-->
+<!--            <where>  -->
+<!--                <if test="appId != null  and appId != ''"> and app_id = #{appId}</if>-->
+<!--                <if test="hfProductId != null  and hfProductId != ''"> and hf_product_id = #{hfProductId}</if>-->
+<!--                <if test="hfSysId != null  and hfSysId != ''"> and hf_sys_id = #{hfSysId}</if>-->
+<!--                <if test="huifuId != null  and huifuId != ''"> and huifu_id = #{huifuId}</if>-->
+<!--                <if test="hfPayNotifyUrl != null  and hfPayNotifyUrl != ''"> and hf_pay_notify_url = #{hfPayNotifyUrl}</if>-->
+<!--                <if test="hfPayOnlineNotifyUrl != null  and hfPayOnlineNotifyUrl != ''"> and hf_pay_online_notify_url = #{hfPayOnlineNotifyUrl}</if>-->
+<!--                <if test="hfRefundNotifyUrl != null  and hfRefundNotifyUrl != ''"> and hf_refund_notify_url = #{hfRefundNotifyUrl}</if>-->
+<!--                <if test="hfOnlineRefundNotifyUrl != null  and hfOnlineRefundNotifyUrl != ''"> and hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl}</if>-->
+<!--                <if test="hfRsaPrivateKey != null  and hfRsaPrivateKey != ''"> and hf_rsa_private_key = #{hfRsaPrivateKey}</if>-->
+<!--                <if test="hfRsaPublicKey != null  and hfRsaPublicKey != ''"> and hf_rsa_public_key = #{hfRsaPublicKey}</if>-->
+<!--            </where>-->
+<!--    </select>-->
     <select id="selectFsHfpayConfigList" parameterType="FsHfpayConfig" resultMap="FsHfpayConfigResult">
-        <include refid="selectFsHfpayConfigVo"/>
-        <where>  
-            <if test="appId != null  and appId != ''"> and app_id = #{appId}</if>
-            <if test="hfProductId != null  and hfProductId != ''"> and hf_product_id = #{hfProductId}</if>
-            <if test="hfSysId != null  and hfSysId != ''"> and hf_sys_id = #{hfSysId}</if>
-            <if test="huifuId != null  and huifuId != ''"> and huifu_id = #{huifuId}</if>
-            <if test="hfPayNotifyUrl != null  and hfPayNotifyUrl != ''"> and hf_pay_notify_url = #{hfPayNotifyUrl}</if>
-            <if test="hfPayOnlineNotifyUrl != null  and hfPayOnlineNotifyUrl != ''"> and hf_pay_online_notify_url = #{hfPayOnlineNotifyUrl}</if>
-            <if test="hfRefundNotifyUrl != null  and hfRefundNotifyUrl != ''"> and hf_refund_notify_url = #{hfRefundNotifyUrl}</if>
-            <if test="hfOnlineRefundNotifyUrl != null  and hfOnlineRefundNotifyUrl != ''"> and hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl}</if>
-            <if test="hfRsaPrivateKey != null  and hfRsaPrivateKey != ''"> and hf_rsa_private_key = #{hfRsaPrivateKey}</if>
-            <if test="hfRsaPublicKey != null  and hfRsaPublicKey != ''"> and hf_rsa_public_key = #{hfRsaPublicKey}</if>
+        SELECT
+        fhc.id,
+        fhc.app_id,
+        fcpsc.name as app_name,
+        fhc.hf_product_id,
+        fhc.hf_sys_id,
+        fhc.huifu_id,
+        fhc.hf_pay_notify_url,
+        fhc.hf_pay_online_notify_url,
+        fhc.hf_refund_notify_url,
+        fhc.hf_online_refund_notify_url,
+        fhc.hf_rsa_private_key,
+        fhc.hf_rsa_public_key,
+        fhc.create_time,
+        fhc.update_time
+        FROM
+        fs_hfpay_config fhc
+        LEFT JOIN fs_course_play_source_config fcpsc ON fcpsc.appid = fhc.app_id
+        <where>
+            <if test="appId != null  and appId != ''">and fhc.app_id = #{appId}</if>
+            <if test="hfProductId != null  and hfProductId != ''">and fhc.hf_product_id = #{hfProductId}</if>
+            <if test="hfSysId != null  and hfSysId != ''">and fhc.hf_sys_id = #{hfSysId}</if>
+            <if test="huifuId != null  and huifuId != ''">and fhc.huifu_id = #{huifuId}</if>
+            <if test="hfPayNotifyUrl != null  and hfPayNotifyUrl != ''">and fhc.hf_pay_notify_url = #{hfPayNotifyUrl}
+            </if>
+            <if test="hfPayOnlineNotifyUrl != null  and hfPayOnlineNotifyUrl != ''">and fhc.hf_pay_online_notify_url =
+                #{hfPayOnlineNotifyUrl}
+            </if>
+            <if test="hfRefundNotifyUrl != null  and hfRefundNotifyUrl != ''">and fhc.hf_refund_notify_url =
+                #{hfRefundNotifyUrl}
+            </if>
+            <if test="hfOnlineRefundNotifyUrl != null  and hfOnlineRefundNotifyUrl != ''">and
+                fhc.hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl}
+            </if>
+            <if test="hfRsaPrivateKey != null  and hfRsaPrivateKey != ''">and fhc.hf_rsa_private_key =
+                #{hfRsaPrivateKey}
+            </if>
+            <if test="hfRsaPublicKey != null  and hfRsaPublicKey != ''">and fhc.hf_rsa_public_key = #{hfRsaPublicKey}
+            </if>
+            <if test="appName != null and appName != ''">
+                and fcpsc.name LIKE CONCAT('%', #{appName}, '%')
+            </if>
         </where>
     </select>