|
|
@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="version" column="version"/>
|
|
|
<result property="versionName" column="version_name"/>
|
|
|
<result property="onepcType" column="onepc_type"/>
|
|
|
+ <result property="apkInfo" column="apk_info"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
@@ -22,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select ul.*,ul.id apkId from apk_upload ul
|
|
|
<where>
|
|
|
<if test="onepcType != null "> and ul.onepc_type = #{onepcType} </if>
|
|
|
+ <if test="versionName != null "> and ul.version_name like concat("%", #{versionName}, "%") </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -33,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="version != null">version,</if>
|
|
|
<if test="versionName != null">version_name,</if>
|
|
|
<if test="onepcType != null">onepc_type,</if>
|
|
|
+ <if test="apkInfo != null">apk_info,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
@@ -45,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="version != null">#{version},</if>
|
|
|
<if test="versionName != null">#{versionName},</if>
|
|
|
<if test="onepcType != null">#{onepcType},</if>
|
|
|
+ <if test="apkInfo != null">#{apkInfo},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
@@ -57,4 +61,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
delete from apk_upload where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
+ <select id="getById" resultType="com.zd.laboratory.onemachine.domain.ApkUploadVo">
|
|
|
+ select * from apk_upload where id=#{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|