|
|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcXqInfoMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcXqInfo" id="SzxcXqInfoResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="name" column="name" />
|
|
|
|
|
<result property="xqType" column="xq_type" />
|
|
|
|
|
<result property="ldNum" column="ld_num" />
|
|
|
|
|
<result property="jzArea" column="jz_area" />
|
|
|
|
|
@ -26,12 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcXqInfoVo">
|
|
|
|
|
select id, xq_type, ld_num, jz_area, zd_area, wy_type, wy_response, wy_phone, xq_address, build_date, xq_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_xq_info
|
|
|
|
|
select id, name, xq_type, ld_num, jz_area, zd_area, wy_type, wy_response, wy_phone, xq_address, build_date, xq_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_xq_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult">
|
|
|
|
|
<include refid="selectSzxcXqInfoVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
|
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
|
|
|
|
|
<if test="ldNum != null "> and ld_num = #{ldNum}</if>
|
|
|
|
|
<if test="jzArea != null and jzArea != ''"> and jz_area = #{jzArea}</if>
|
|
|
|
|
@ -56,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<insert id="insertSzxcXqInfo" parameterType="SzxcXqInfo" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into szxc_xq_info
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
|
<if test="xqType != null">xq_type,</if>
|
|
|
|
|
<if test="ldNum != null">ld_num,</if>
|
|
|
|
|
<if test="jzArea != null">jz_area,</if>
|
|
|
|
|
@ -73,8 +76,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
|
<if test="xqType != null">#{xqType},</if>
|
|
|
|
|
<if test="ldNum != null">#{ldNum},</if>
|
|
|
|
|
<if test="jzArea != null">#{jzArea},</if>
|
|
|
|
|
@ -92,12 +96,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateSzxcXqInfo" parameterType="SzxcXqInfo">
|
|
|
|
|
update szxc_xq_info
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
|
<if test="xqType != null">xq_type = #{xqType},</if>
|
|
|
|
|
<if test="ldNum != null">ld_num = #{ldNum},</if>
|
|
|
|
|
<if test="jzArea != null">jz_area = #{jzArea},</if>
|
|
|
|
|
|