|
|
|
@ -1,12 +1,13 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
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.szxc.mapper.SzxcLdInfoMapper">
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcLdInfoMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcLdInfo" id="SzxcLdInfoResult">
|
|
|
|
<resultMap type="SzxcLdInfo" id="SzxcLdInfoResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="xqId" column="xq_id" />
|
|
|
|
<result property="xqId" column="xq_id" />
|
|
|
|
|
|
|
|
<result property="xqName" column="xq_name" />
|
|
|
|
<result property="ldName" column="ld_name" />
|
|
|
|
<result property="ldName" column="ld_name" />
|
|
|
|
<result property="xqType" column="xq_type" />
|
|
|
|
<result property="xqType" column="xq_type" />
|
|
|
|
<result property="ldSort" column="ld_sort" />
|
|
|
|
<result property="ldSort" column="ld_sort" />
|
|
|
|
@ -26,13 +27,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcLdInfoVo">
|
|
|
|
<sql id="selectSzxcLdInfoVo">
|
|
|
|
select id, xq_id, ld_name, xq_type, ld_sort, ldjg, qnfs, lc_num, unit_num, hu_num, ld_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_ld_info
|
|
|
|
select id, xq_id, xq_name, ld_name, xq_type, ld_sort, ldjg, qnfs, lc_num, unit_num, hu_num, ld_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_ld_info
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult">
|
|
|
|
<select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult">
|
|
|
|
<include refid="selectSzxcLdInfoVo"/>
|
|
|
|
<include refid="selectSzxcLdInfoVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="xqId != null "> and xq_id = #{xqId}</if>
|
|
|
|
<if test="xqId != null "> and xq_id = #{xqId}</if>
|
|
|
|
|
|
|
|
<if test="xqName != null and xqName != ''"> and xq_name like concat('%', #{xqName}, '%')</if>
|
|
|
|
<if test="ldName != null and ldName != ''"> and ld_name like concat('%', #{ldName}, '%')</if>
|
|
|
|
<if test="ldName != null and ldName != ''"> and ld_name like concat('%', #{ldName}, '%')</if>
|
|
|
|
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
|
|
|
|
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
|
|
|
|
<if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if>
|
|
|
|
<if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if>
|
|
|
|
@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
insert into szxc_ld_info
|
|
|
|
insert into szxc_ld_info
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="xqId != null">xq_id,</if>
|
|
|
|
<if test="xqId != null">xq_id,</if>
|
|
|
|
|
|
|
|
<if test="xqName != null">xq_name,</if>
|
|
|
|
<if test="ldName != null">ld_name,</if>
|
|
|
|
<if test="ldName != null">ld_name,</if>
|
|
|
|
<if test="xqType != null">xq_type,</if>
|
|
|
|
<if test="xqType != null">xq_type,</if>
|
|
|
|
<if test="ldSort != null">ld_sort,</if>
|
|
|
|
<if test="ldSort != null">ld_sort,</if>
|
|
|
|
@ -73,9 +76,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="xqId != null">#{xqId},</if>
|
|
|
|
<if test="xqId != null">#{xqId},</if>
|
|
|
|
|
|
|
|
<if test="xqName != null">#{xqName},</if>
|
|
|
|
<if test="ldName != null">#{ldName},</if>
|
|
|
|
<if test="ldName != null">#{ldName},</if>
|
|
|
|
<if test="xqType != null">#{xqType},</if>
|
|
|
|
<if test="xqType != null">#{xqType},</if>
|
|
|
|
<if test="ldSort != null">#{ldSort},</if>
|
|
|
|
<if test="ldSort != null">#{ldSort},</if>
|
|
|
|
@ -92,13 +96,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateSzxcLdInfo" parameterType="SzxcLdInfo">
|
|
|
|
<update id="updateSzxcLdInfo" parameterType="SzxcLdInfo">
|
|
|
|
update szxc_ld_info
|
|
|
|
update szxc_ld_info
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="xqId != null">xq_id = #{xqId},</if>
|
|
|
|
<if test="xqId != null">xq_id = #{xqId},</if>
|
|
|
|
|
|
|
|
<if test="xqName != null">xq_name = #{xqName},</if>
|
|
|
|
<if test="ldName != null">ld_name = #{ldName},</if>
|
|
|
|
<if test="ldName != null">ld_name = #{ldName},</if>
|
|
|
|
<if test="xqType != null">xq_type = #{xqType},</if>
|
|
|
|
<if test="xqType != null">xq_type = #{xqType},</if>
|
|
|
|
<if test="ldSort != null">ld_sort = #{ldSort},</if>
|
|
|
|
<if test="ldSort != null">ld_sort = #{ldSort},</if>
|
|
|
|
|