Forráskód Böngészése

app版本 添加wgtUrl 以及是否热更新强制更新

ct 3 napja
szülő
commit
f9fadeeb7f

+ 4 - 0
fs-service/src/main/java/com/fs/his/domain/FsAppVersion.java

@@ -48,6 +48,10 @@ public class FsAppVersion extends BaseEntity
     @Excel(name = "是否强制更新")
     private Integer isForce;
 
+    /** 是否强制更新 */
+    @Excel(name = "热更新强制更新")
+    private Integer isHotForce;
+
     /** APP 类型 1医生端 2药师端 */
     @Excel(name = "APP 类型 1医生端 2药师端")
     private Integer appType;

+ 5 - 1
fs-service/src/main/resources/mapper/his/FsAppVersionMapper.xml

@@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="baiduUrl"    column="baidu_url"    />
         <result property="h5Url"    column="h5_url"    />
         <result property="wgtUrl"    column="wgt_url"    />
+        <result property="isHotForce"    column="is_hot_force"    />
     </resultMap>
 
     <sql id="selectFsAppVersionVo">
-        select version_id,baidu_url,update_config, version_name, version_code, note, url, type, is_force, create_time, app_type,h5_url,wgt_url from fs_app_version
+        select version_id,baidu_url,update_config, version_name, version_code, note, url, type, is_force, create_time, app_type,h5_url,wgt_url,is_hot_force from fs_app_version
     </sql>
 
     <select id="selectFsAppVersionList" parameterType="FsAppVersion" resultMap="FsAppVersionResult">
@@ -59,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="baiduUrl != null">baidu_url,</if>
             <if test="h5Url != null and h5Url !=''">h5_url,</if>
             <if test="wgtUrl != null and wgtUrl !=''">wgt_url,</if>
+            <if test="isHotForce != null">is_hot_force,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="versionName != null">#{versionName},</if>
@@ -73,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="baiduUrl != null">#{baiduUrl},</if>
             <if test="h5Url != null and h5Url !=''">#{h5Url},</if>
             <if test="wgtUrl != null and wgtUrl !=''">#{wgtUrl},</if>
+            <if test="isHotForce != null">#{isHotForce},</if>
          </trim>
     </insert>
 
@@ -91,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="baiduUrl != null">baidu_url = #{baiduUrl},</if>
             <if test="h5Url != null and h5Url !=''">h5_url = #{h5Url},</if>
             <if test="wgtUrl != null and wgtUrl !=''">wgt_url = #{wgtUrl},</if>
+            <if test="isHotForce != null">is_hot_force = #{isHotForce},</if>
         </trim>
         where version_id = #{versionId}
     </update>