Jelajahi Sumber

小程序配置列表显示商户号

xgb 1 Minggu lalu
induk
melakukan
31556d683a

+ 3 - 0
fs-service/src/main/java/com/fs/course/vo/FsCoursePlaySourceConfigVO.java

@@ -67,4 +67,7 @@ public class FsCoursePlaySourceConfigVO {
 
     @ApiModelProperty("小程序支付配置id")
     private Long merchantConfigId;
+
+    @ApiModelProperty("商户号")
+    private String merchantNo;
 }

+ 3 - 1
fs-service/src/main/resources/mapper/course/FsCoursePlaySourceConfigMapper.xml

@@ -6,8 +6,10 @@
 
     <select id="selectCoursePlaySourceConfigVOListByMap" resultType="com.fs.course.vo.FsCoursePlaySourceConfigVO">
         select
-            fcpsc.*
+            fcpsc.*,
+            mac.merchant_id as merchantNo
         from fs_course_play_source_config fcpsc
+        left join merchant_app_config mac on fcpsc.merchant_config_id = mac.id
         where fcpsc.is_del = 0
         <if test="params.name != null and params.name != ''">
             and fcpsc.name like concat('%', #{params.name}, '%')