|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.project.training.mapper.TTrainingrecordsMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TTrainingrecords" id="TTrainingrecordsResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="plantCode" column="plant_code" />
|
|
@@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTTrainingrecordsList" parameterType="TTrainingrecords" resultMap="TTrainingrecordsResult">
|
|
|
<include refid="selectTTrainingrecordsVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="year != null "> and year = #{year}</if>
|
|
|
<if test="name != null and name != ''"> and name like concat(concat('%', #{name}), '%')</if>
|
|
|
<if test="employeeid != null and employeeid != ''"> and employeeid like concat(concat('%', #{employeeid}), '%')</if>
|
|
@@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTTrainingrecordsById" parameterType="Long" resultMap="TTrainingrecordsResult">
|
|
|
<include refid="selectTTrainingrecordsVo"/>
|
|
|
where id = #{id}
|
|
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectTTrainingrecordsVo"/>
|
|
|
where d.staff_id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertTTrainingrecords" parameterType="TTrainingrecords">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
SELECT seq_t_trainingrecords.NEXTVAL as id FROM DUAL
|
|
@@ -215,5 +215,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
-
|
|
|
-</mapper>
|
|
|
+
|
|
|
+</mapper>
|