|
@@ -22,10 +22,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
+ <result property="isSigned" column="is_signed" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTBranchLearningVo">
|
|
|
- select u.learning_id, u.user_id, u.file_id, u.learning_status, u.learning_time_required, u.learning_time_studied, u.learning_progress, u.learning_deadline, u.del_flag, u.create_by, u.create_time, u.update_by, u.update_time, u.dept_id,
|
|
|
+ select u.learning_id, u.is_signed, u.user_id, u.file_id, u.learning_status, u.learning_time_required, u.learning_time_studied, u.learning_progress, u.learning_deadline, u.del_flag, u.create_by, u.create_time, u.update_by, u.update_time, u.dept_id,
|
|
|
us.nick_name,
|
|
|
f.name as file_name, f.url as file_url
|
|
|
from t_branch_learning u
|
|
@@ -46,11 +47,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="learningProgress != null and learningProgress != ''"> and u.learning_progress = #{learningProgress}</if>
|
|
|
<if test="learningDeadline != null and learningDeadline != ''"> and u.learning_deadline = #{learningDeadline}</if>
|
|
|
<if test="deptId != null "> and u.dept_id = #{deptId}</if>
|
|
|
+ <if test="isSigned != null "> and u.is_signed = #{isSigned}</if>
|
|
|
and u.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
- order by u.learning_status asc, u.learning_deadline asc
|
|
|
+ order by u.learning_status asc, u.learning_deadline asc, u.is_signed asc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTBranchLearningByLearningId" parameterType="Long" resultMap="TBranchLearningResult">
|
|
@@ -79,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
+ <if test="isSigned != null">is_signed,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="learningId != null">#{learningId},</if>
|
|
@@ -95,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="isSigned != null">#{isSigned},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -114,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ <if test="isSigned != null">is_signed = #{isSigned},</if>
|
|
|
</trim>
|
|
|
where learning_id = #{learningId}
|
|
|
</update>
|