|
@@ -6,11 +6,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="FgwDbd" id="FgwDbdResult">
|
|
<resultMap type="FgwDbd" id="FgwDbdResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
- <result property="dh" column="dh" />
|
|
|
|
<result property="xmId" column="xm_id" />
|
|
<result property="xmId" column="xm_id" />
|
|
- <result property="xmbh" column="xmbh" />
|
|
|
|
<result property="xmmc" column="xmmc" />
|
|
<result property="xmmc" column="xmmc" />
|
|
- <result property="dbnrId" column="dbnr_id" />
|
|
|
|
<result property="dbnrName" column="dbnr_name" />
|
|
<result property="dbnrName" column="dbnr_name" />
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptName" column="dept_name" />
|
|
<result property="deptName" column="dept_name" />
|
|
@@ -29,17 +26,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFgwDbdVo">
|
|
<sql id="selectFgwDbdVo">
|
|
- select id, dh, xm_id, xmbh, xmmc, dbnr_id, dbnr_name, dept_id, dept_name, dbdj, yqwcsj, cqts, is_wc, create_by, create_time, update_by, update_time, remark from fgw_dbd
|
|
|
|
|
|
+ select id, xm_id, xmmc, dbnr_name, dept_id, dept_name, dbdj, yqwcsj, cqts, is_wc, create_by, create_time, update_by, update_time, remark from fgw_dbd
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectFgwDbdList" parameterType="FgwDbd" resultMap="FgwDbdResult">
|
|
<select id="selectFgwDbdList" parameterType="FgwDbd" resultMap="FgwDbdResult">
|
|
SELECT
|
|
SELECT
|
|
id,
|
|
id,
|
|
- dh,
|
|
|
|
xm_id,
|
|
xm_id,
|
|
- xmbh,
|
|
|
|
xmmc,
|
|
xmmc,
|
|
- dbnr_id,
|
|
|
|
dbnr_name,
|
|
dbnr_name,
|
|
dept_id,
|
|
dept_id,
|
|
dept_name,
|
|
dept_name,
|
|
@@ -63,12 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
remark
|
|
remark
|
|
FROM
|
|
FROM
|
|
fgw_dbd
|
|
fgw_dbd
|
|
- <where>
|
|
|
|
- <if test="dh != null and dh != ''"> and dh = #{dh}</if>
|
|
|
|
|
|
+ <where>
|
|
<if test="xmId != null "> and xm_id = #{xmId}</if>
|
|
<if test="xmId != null "> and xm_id = #{xmId}</if>
|
|
- <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
|
<if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
|
|
<if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
|
|
- <if test="dbnrId != null "> and dbnr_id = #{dbnrId}</if>
|
|
|
|
<if test="dbnrName != null and dbnrName != ''"> and dbnr_name like concat('%', #{dbnrName}, '%')</if>
|
|
<if test="dbnrName != null and dbnrName != ''"> and dbnr_name like concat('%', #{dbnrName}, '%')</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
@@ -82,11 +73,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectFgwDbdById" parameterType="Long" resultMap="FgwDbdResult">
|
|
<select id="selectFgwDbdById" parameterType="Long" resultMap="FgwDbdResult">
|
|
SELECT
|
|
SELECT
|
|
id,
|
|
id,
|
|
- dh,
|
|
|
|
xm_id,
|
|
xm_id,
|
|
- xmbh,
|
|
|
|
xmmc,
|
|
xmmc,
|
|
- dbnr_id,
|
|
|
|
dbnr_name,
|
|
dbnr_name,
|
|
dept_id,
|
|
dept_id,
|
|
dept_name,
|
|
dept_name,
|
|
@@ -139,11 +127,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<insert id="insertFgwDbd" parameterType="FgwDbd" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertFgwDbd" parameterType="FgwDbd" useGeneratedKeys="true" keyProperty="id">
|
|
insert into fgw_dbd
|
|
insert into fgw_dbd
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="dh != null and dh != ''">dh,</if>
|
|
|
|
<if test="xmId != null">xm_id,</if>
|
|
<if test="xmId != null">xm_id,</if>
|
|
- <if test="xmbh != null">xmbh,</if>
|
|
|
|
<if test="xmmc != null and xmmc != ''">xmmc,</if>
|
|
<if test="xmmc != null and xmmc != ''">xmmc,</if>
|
|
- <if test="dbnrId != null">dbnr_id,</if>
|
|
|
|
<if test="dbnrName != null and dbnrName != ''">dbnr_name,</if>
|
|
<if test="dbnrName != null and dbnrName != ''">dbnr_name,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="deptName != null and deptName != ''">dept_name,</if>
|
|
<if test="deptName != null and deptName != ''">dept_name,</if>
|
|
@@ -158,11 +143,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
- <if test="dh != null and dh != ''">#{dh},</if>
|
|
|
|
<if test="xmId != null">#{xmId},</if>
|
|
<if test="xmId != null">#{xmId},</if>
|
|
- <if test="xmbh != null">#{xmbh},</if>
|
|
|
|
<if test="xmmc != null and xmmc != ''">#{xmmc},</if>
|
|
<if test="xmmc != null and xmmc != ''">#{xmmc},</if>
|
|
- <if test="dbnrId != null">#{dbnrId},</if>
|
|
|
|
<if test="dbnrName != null and dbnrName != ''">#{dbnrName},</if>
|
|
<if test="dbnrName != null and dbnrName != ''">#{dbnrName},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
@@ -181,11 +163,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<update id="updateFgwDbd" parameterType="FgwDbd">
|
|
<update id="updateFgwDbd" parameterType="FgwDbd">
|
|
update fgw_dbd
|
|
update fgw_dbd
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="dh != null and dh != ''">dh = #{dh},</if>
|
|
|
|
<if test="xmId != null">xm_id = #{xmId},</if>
|
|
<if test="xmId != null">xm_id = #{xmId},</if>
|
|
- <if test="xmbh != null">xmbh = #{xmbh},</if>
|
|
|
|
<if test="xmmc != null and xmmc != ''">xmmc = #{xmmc},</if>
|
|
<if test="xmmc != null and xmmc != ''">xmmc = #{xmmc},</if>
|
|
- <if test="dbnrId != null">dbnr_id = #{dbnrId},</if>
|
|
|
|
<if test="dbnrName != null and dbnrName != ''">dbnr_name = #{dbnrName},</if>
|
|
<if test="dbnrName != null and dbnrName != ''">dbnr_name = #{dbnrName},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|
|
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|