|
@@ -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.sems.mapper.TSpecCheckMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TSpecCheck" id="TSpecCheckResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
@@ -26,7 +26,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="devId" column="dev_id" />
|
|
|
<result property="devType" column="dev_type" />
|
|
|
<result property="safeClass" column="safe_class" />
|
|
|
- <result property="deptName" column="dept_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSpecCheckVo">
|
|
@@ -35,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTSpecCheckList" parameterType="TSpecCheck" resultMap="TSpecCheckResult">
|
|
|
<include refid="selectTSpecCheckVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="createrCode != null "> and creater_code = #{createrCode}</if>
|
|
|
<if test="createdate != null "> and createdate = #{createdate}</if>
|
|
|
<if test="updaterCode != null "> and updater_code = #{updaterCode}</if>
|
|
@@ -58,14 +57,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
- ${params.dataScope}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTSpecCheckById" parameterType="Long" resultMap="TSpecCheckResult">
|
|
|
<include refid="selectTSpecCheckVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertTSpecCheck" parameterType="TSpecCheck">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
SELECT seq_t_spec_check.NEXTVAL as id FROM DUAL
|
|
@@ -156,5 +154,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
-
|
|
|
-</mapper>
|
|
|
+
|
|
|
+</mapper>
|