|
|
|
@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTdTrainVo">
|
|
|
|
|
select ID, USERNAME, DEPT_NAME, TRAIN_TYPE, TRAIN_SUBJECT, TRAIN_ADDRESS, TRAIN_DATE, CREATE_STAFFID, CREATE_DEPARTID, CREATE_DATE, UPDATE_DEPARTID, UPDATE_STAFFID, UPDATE_DATE, AREAID, FRAMEWORK, TRAIN_NAME, TRAIN_STATE, TRAIN_TIMEEND, PART, TRAININFO,dept_id from td_train
|
|
|
|
|
select ID, USERNAME, DEPT_NAME, TRAIN_TYPE, TRAIN_SUBJECT, TRAIN_ADDRESS, TRAIN_DATE, CREATE_STAFFID, CREATE_DEPARTID, CREATE_DATE, UPDATE_DEPARTID, UPDATE_STAFFID, UPDATE_DATE, AREAID, FRAMEWORK, TRAIN_NAME, TRAIN_STATE, TRAIN_TIMEEND, PART, TRAININFO,dept_id from td_train d
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectTdTrainList" parameterType="TdTrain" resultMap="TdTrainResult">
|
|
|
|
@ -55,6 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="PART != null and PART != ''"> and PART = #{PART}</if>
|
|
|
|
|
<if test="TRAININFO != null and TRAININFO != ''"> and TRAININFO = #{TRAININFO}</if>
|
|
|
|
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
|
|
|
|
|
<!-- 数据范围过滤 -->
|
|
|
|
|
${params.dataScope}
|
|
|
|
|
</where>
|
|
|
|
|
order by CREATE_DATE desc
|
|
|
|
|
</select>
|
|
|
|
|