Bladeren bron

流量拆分app和小程序

wangxy 1 week geleden
bovenliggende
commit
4f5cab8367

+ 2 - 0
fs-service/src/main/java/com/fs/course/domain/FsCourseTrafficLog.java

@@ -71,6 +71,8 @@ public class FsCourseTrafficLog extends BaseEntity
      */
     private String appId;
 
+    private Integer typeFlag;
+
 //    @JsonFormat(pattern = "yyyy-MM-dd")
 //    private Date time;
 

+ 5 - 0
fs-service/src/main/java/com/fs/course/param/FsCourseTrafficLogParam.java

@@ -45,4 +45,9 @@ public class FsCourseTrafficLogParam {
      */
     private Long companyUserId;
 
+    /**
+     * 类型标识 0 小程序 1 app
+     */
+    private String typeFlag;
+
 }

+ 8 - 0
fs-service/src/main/resources/mapper/course/FsCourseTrafficLogMapper.xml

@@ -147,6 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="periodId != null">period_id,</if>
             <if test="project != null">project,</if>
             <if test="appId != null">app_id,</if>
+            <if test="typeFlag != null">type_flag,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="userId != null">#{userId},</if>
@@ -162,6 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="periodId != null">#{periodId},</if>
             <if test="project != null">#{project},</if>
             <if test="appId != null">#{appId},</if>
+            <if test="typeFlag != null">#{typeFlag},</if>
          </trim>
     </insert>
 
@@ -181,6 +183,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="periodId != null">period_id,</if>
             <if test="project != null">project,</if>
             <if test="appId != null">app_id,</if>
+            <if test="typeFlag != null">type_flag,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="userId != null">#{userId},</if>
@@ -196,6 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="periodId != null">#{periodId},</if>
             <if test="project != null">#{project},</if>
             <if test="appId != null">#{appId},</if>
+            <if test="typeFlag != null">#{typeFlag},</if>
         </trim>
         on duplicate key update
         <trim suffixOverrides=",">
@@ -219,6 +223,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="periodId != null">period_id = #{periodId},</if>
             <if test="project != null">project = #{project},</if>
             <if test="appId != null">app_id = #{appId},</if>
+            <if test="typeFlag != null">type_flag = #{typeFlag},</if>
         </trim>
         where log_id = #{logId}
     </update>
@@ -284,6 +289,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test='companyId !=null'>
                 and log.company_id = #{companyId}
             </if>
+            <if test="typeFlag != null">
+                and log.type_flag = #{typeFlag}
+            </if>
             <if test="courseId != null">
                 and log.course_id = ${courseId}
             </if>