|
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updaterCode != null and updaterCode != ''"> and updater_code = #{updaterCode}</if>
|
|
<if test="updaterCode != null and updaterCode != ''"> and updater_code = #{updaterCode}</if>
|
|
<if test="updatedate != null "> and updatedate = #{updatedate}</if>
|
|
<if test="updatedate != null "> and updatedate = #{updatedate}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
- <if test="planTrainingdate != null "> and plan_trainingdate = #{planTrainingdate}</if>
|
|
|
|
|
|
+ <if test="planTrainingdate != null "> and to_char(plan_trainingdate, 'yyyy-mm') = to_char(#{planTrainingdate}, 'yyyy-mm') </if>
|
|
<if test="actualCompletedate != null "> and actual_completedate = #{actualCompletedate}</if>
|
|
<if test="actualCompletedate != null "> and actual_completedate = #{actualCompletedate}</if>
|
|
<if test="lecturer != null and lecturer != ''"> and lecturer = #{lecturer}</if>
|
|
<if test="lecturer != null and lecturer != ''"> and lecturer = #{lecturer}</if>
|
|
<if test="hour != null and hour != ''"> and hour = #{hour}</if>
|
|
<if test="hour != null and hour != ''"> and hour = #{hour}</if>
|
|
@@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
|
|
+ order by year desc,plan_trainingdate
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectTTrainingbccRegularById" parameterType="Long" resultMap="TTrainingbccRegularResult">
|
|
<select id="selectTTrainingbccRegularById" parameterType="Long" resultMap="TTrainingbccRegularResult">
|