|
@@ -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.TTrainingCompanylevelMapper">
|
|
<mapper namespace="com.ruoyi.project.training.mapper.TTrainingCompanylevelMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="TTrainingCompanylevel" id="TTrainingCompanylevelResult">
|
|
<resultMap type="TTrainingCompanylevel" id="TTrainingCompanylevelResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="serialNum" column="serial_num" />
|
|
<result property="serialNum" column="serial_num" />
|
|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTTrainingCompanylevelList" parameterType="TTrainingCompanylevel" resultMap="TTrainingCompanylevelResult">
|
|
<select id="selectTTrainingCompanylevelList" parameterType="TTrainingCompanylevel" resultMap="TTrainingCompanylevelResult">
|
|
<include refid="selectTTrainingCompanylevelVo"/>
|
|
<include refid="selectTTrainingCompanylevelVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="serialNum != null "> and serial_num = #{serialNum}</if>
|
|
<if test="serialNum != null "> and serial_num = #{serialNum}</if>
|
|
<if test="courseCode != null and courseCode != ''"> and course_code like concat(concat('%', #{courseCode}), '%')</if>
|
|
<if test="courseCode != null and courseCode != ''"> and course_code like concat(concat('%', #{courseCode}), '%')</if>
|
|
<if test="item != null and item != ''"> and item like concat(concat('%', #{item}), '%')</if>
|
|
<if test="item != null and item != ''"> and item like concat(concat('%', #{item}), '%')</if>
|
|
@@ -38,14 +38,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
- order by d.serial_num asc
|
|
|
|
|
|
+ order by course_code, d.serial_num asc
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectTTrainingCompanylevelById" parameterType="Long" resultMap="TTrainingCompanylevelResult">
|
|
<select id="selectTTrainingCompanylevelById" parameterType="Long" resultMap="TTrainingCompanylevelResult">
|
|
<include refid="selectTTrainingCompanylevelVo"/>
|
|
<include refid="selectTTrainingCompanylevelVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertTTrainingCompanylevel" parameterType="TTrainingCompanylevel">
|
|
<insert id="insertTTrainingCompanylevel" parameterType="TTrainingCompanylevel">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
SELECT seq_t_training_companylevel.NEXTVAL as id FROM DUAL
|
|
SELECT seq_t_training_companylevel.NEXTVAL as id FROM DUAL
|
|
@@ -118,5 +118,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+</mapper>
|