|
@@ -3,7 +3,7 @@
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.project.training.mapper.TTrainingParticipantsMapper">
|
|
<mapper namespace="com.ruoyi.project.training.mapper.TTrainingParticipantsMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="TTrainingParticipants" id="TTrainingParticipantsResult">
|
|
<resultMap type="TTrainingParticipants" id="TTrainingParticipantsResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="staffId" column="staff_id" />
|
|
<result property="staffId" column="staff_id" />
|
|
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTTrainingParticipantsList" parameterType="TTrainingParticipants" resultMap="TTrainingParticipantsResult">
|
|
<select id="selectTTrainingParticipantsList" parameterType="TTrainingParticipants" resultMap="TTrainingParticipantsResult">
|
|
<include refid="selectTTrainingParticipantsVo"/>
|
|
<include refid="selectTTrainingParticipantsVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="staffId != null "> and d.staff_id = #{staffId}</if>
|
|
<if test="staffId != null "> and d.staff_id = #{staffId}</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
and d.del_flag = 0
|
|
and d.del_flag = 0
|
|
@@ -52,12 +52,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
order by end_date
|
|
order by end_date
|
|
</select>
|
|
</select>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectTTrainingParticipantsById" parameterType="Long" resultMap="TTrainingParticipantsResult">
|
|
<select id="selectTTrainingParticipantsById" parameterType="Long" resultMap="TTrainingParticipantsResult">
|
|
<include refid="selectTTrainingParticipantsVo"/>
|
|
<include refid="selectTTrainingParticipantsVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertTTrainingParticipants" parameterType="TTrainingParticipants">
|
|
<insert id="insertTTrainingParticipants" parameterType="TTrainingParticipants">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
SELECT seq_t_training_participants.NEXTVAL as id FROM DUAL
|
|
SELECT seq_t_training_participants.NEXTVAL as id FROM DUAL
|
|
@@ -161,11 +161,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update t_training_participants set del_flag = 2 where del_flag = 0
|
|
update t_training_participants set del_flag = 2 where del_flag = 0
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="deleteTParticipantsByCompanyId">
|
|
|
|
+ update t_training_participants set del_flag = 2 where company_id = #{companyId}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
<update id="deleteTTrainingParticipantsByIds" parameterType="String">
|
|
<update id="deleteTTrainingParticipantsByIds" parameterType="String">
|
|
update t_training_participants set del_flag = 2 where id in
|
|
update t_training_participants set del_flag = 2 where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+</mapper>
|