|
@@ -27,10 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<sql id="selectTTrainingbccDeviceVo">
|
|
<sql id="selectTTrainingbccDeviceVo">
|
|
select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time from t_trainingbcc_device d
|
|
select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time from t_trainingbcc_device d
|
|
left join t_staffmgr s on s.staffid = d.staff_id
|
|
left join t_staffmgr s on s.staffid = d.staff_id
|
|
|
|
+
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTTrainingbccDeviceList" parameterType="TTrainingbccDevice" resultMap="TTrainingbccDeviceResult">
|
|
<select id="selectTTrainingbccDeviceList" parameterType="TTrainingbccDevice" resultMap="TTrainingbccDeviceResult">
|
|
- <include refid="selectTTrainingbccDeviceVo"/>
|
|
|
|
|
|
+ select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time from t_trainingbcc_device d
|
|
|
|
+ left join t_staffmgr s on s.staffid = d.staff_id
|
|
|
|
+ left join t_trainingbcc t on t.id = d.regular_id and t.DEL_FLAG = 0
|
|
<where>
|
|
<where>
|
|
<if test="staffId != null and staffId != ''"> and staff_id = #{staffId}</if>
|
|
<if test="staffId != null and staffId != ''"> and staff_id = #{staffId}</if>
|
|
<if test="regularId != null "> and regular_id = #{regularId}</if>
|
|
<if test="regularId != null "> and regular_id = #{regularId}</if>
|
|
@@ -45,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="examState != null "> and exam_state = #{examState}</if>
|
|
<if test="examState != null "> and exam_state = #{examState}</if>
|
|
<if test="examId != null "> and exam_id = #{examId}</if>
|
|
<if test="examId != null "> and exam_id = #{examId}</if>
|
|
<if test="learnTime != null "> and learn_time = #{learnTime}</if>
|
|
<if test="learnTime != null "> and learn_time = #{learnTime}</if>
|
|
|
|
+ <if test="trainingType != null and trainingType != ''">and t.training_type = #{trainingType}</if>
|
|
and d.del_flag = 0
|
|
and d.del_flag = 0
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|