|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sfzhm" column="sfzhm" />
|
|
|
<result property="xb" column="xb" />
|
|
|
<result property="csrq" column="csrq" />
|
|
|
+ <result property="cyrq" column="cyrq" />
|
|
|
<result property="whcd" column="whcd" />
|
|
|
<result property="shbn" column="shbn" />
|
|
|
<result property="zw" column="zw" />
|
|
@@ -43,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectYljgYgJbxxVo">
|
|
|
- select a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.rzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
+ select a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.rzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw,
|
|
|
a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name,
|
|
@@ -110,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sfzlx != null">sfzlx,</if>
|
|
|
<if test="sfzhm != null and sfzhm != ''">sfzhm,</if>
|
|
|
<if test="csrq != null and csrq != ''">csrq,</if>
|
|
|
+ <if test="cyrq != null">cyrq,</if>
|
|
|
<if test="xb != null and xb != ''">xb,</if>
|
|
|
<if test="lxdh != null and lxdh != ''">lxdh,</if>
|
|
|
<if test="whcd != null and whcd != ''">whcd,</if>
|
|
@@ -139,6 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sfzlx != null">#{sfzlx},</if>
|
|
|
<if test="sfzhm != null and sfzhm != ''">#{sfzhm},</if>
|
|
|
<if test="csrq != null and csrq != ''">#{csrq},</if>
|
|
|
+ <if test="cyrq != null and cyrq != ''">#{cyrq},</if>
|
|
|
<if test="xb != null and xb != ''">#{xb},</if>
|
|
|
<if test="lxdh != null and lxdh != ''">#{lxdh},</if>
|
|
|
<if test="whcd != null and whcd != ''">#{whcd},</if>
|
|
@@ -165,13 +168,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertYljgYgJbxxUpdateHi" parameterType="YljgYgJbxx">
|
|
|
- INSERT INTO `yljg_yg_jbxx_ls`(`id`, `jg_id`,`xm`,`sfzlx`,`sfzhm`,`xb`,`csrq`,`whcd`,`shbn`,`zw`,`lxdh`,`gwlx`,`zylx`,`zylx_qt`,`is_hlyyzs`,`hlydj`,`gq_hlydj`,`is_jnsb`,`zzzt`,`lzsj`,`create_time_str`, `create_user_id`, `create_by`, `create_user_type`, `create_area_code`,`create_unit`, `create_unit_name`, `update_time_str`, `update_user_id`, `update_by`, `update_unit`, `update_unit_name`,cfrq,cflx,pc)
|
|
|
- value(#{id}, #{jgId},#{xm},#{sfzlx},#{sfzhm},#{xb},#{csrq},#{whcd},#{shbn},#{zw},#{lxdh},#{gwlx},#{zylx},#{zylxQt},#{isHlyyzs},#{hlydj},#{gqHlydj},#{isJnsb},#{zzzt},#{lzsj},#{createTimeStr},#{createUserId},#{createBy},#{createUserType},#{createAreaCode},#{createUnit},#{createUnitName},#{updateTimeStr},#{updateUserId},#{updateBy},#{updateUnit},#{updateUnitName}, DATE_FORMAT(now(),'%Y%m%d'),'u',getuuid())
|
|
|
+ INSERT INTO `yljg_yg_jbxx_ls`(`id`, `jg_id`,`xm`,`sfzlx`,`sfzhm`,`xb`,`csrq`,`cyrq`,`whcd`,`shbn`,`zw`,`lxdh`,`gwlx`,`zylx`,`zylx_qt`,`is_hlyyzs`,`hlydj`,`gq_hlydj`,`is_jnsb`,`zzzt`,`lzsj`,`create_time_str`, `create_user_id`, `create_by`, `create_user_type`, `create_area_code`,`create_unit`, `create_unit_name`, `update_time_str`, `update_user_id`, `update_by`, `update_unit`, `update_unit_name`,cfrq,cflx,pc)
|
|
|
+ value(#{id}, #{jgId},#{xm},#{sfzlx},#{sfzhm},#{xb},#{csrq},#{cyrq},#{whcd},#{shbn},#{zw},#{lxdh},#{gwlx},#{zylx},#{zylxQt},#{isHlyyzs},#{hlydj},#{gqHlydj},#{isJnsb},#{zzzt},#{lzsj},#{createTimeStr},#{createUserId},#{createBy},#{createUserType},#{createAreaCode},#{createUnit},#{createUnitName},#{updateTimeStr},#{updateUserId},#{updateBy},#{updateUnit},#{updateUnitName}, DATE_FORMAT(now(),'%Y%m%d'),'u',getuuid())
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertYljgYgJbxxDeleteHi" parameterType="YljgYgJbxx">
|
|
|
- INSERT INTO `yljg_yg_jbxx_ls`(`id`, `jg_id`,`xm`,`sfzlx`,`sfzhm`,`xb`,`csrq`,`whcd`,`shbn`,`zw`,`lxdh`,`gwlx`,`zylx`,`zylx_qt`,`is_hlyyzs`,`hlydj`,`gq_hlydj`,`is_jnsb`,`zzzt`,`lzsj`,`create_time_str`, `create_user_id`, `create_by`, `create_user_type`, `create_area_code`,`create_unit`, `create_unit_name`, `update_time_str`, `update_user_id`, `update_by`, `update_unit`, `update_unit_name`,cfrq,cflx,pc)
|
|
|
- value(#{id}, #{jgId},#{xm},#{sfzlx},#{sfzhm},#{xb},#{csrq},#{whcd},#{shbn},#{zw},#{lxdh},#{gwlx},#{zylx},#{zylxQt},#{isHlyyzs},#{hlydj},#{gqHlydj},#{isJnsb},#{zzzt},#{lzsj},#{createTimeStr},#{createUserId},#{createBy},#{createUserType},#{createAreaCode},#{createUnit},#{createUnitName},#{updateTimeStr},#{updateUserId},#{updateBy},#{updateUnit},#{updateUnitName}, DATE_FORMAT(now(),'%Y%m%d'),'d',getuuid())
|
|
|
+ INSERT INTO `yljg_yg_jbxx_ls`(`id`, `jg_id`,`xm`,`sfzlx`,`sfzhm`,`xb`,`csrq`,`cyrq`,`whcd`,`shbn`,`zw`,`lxdh`,`gwlx`,`zylx`,`zylx_qt`,`is_hlyyzs`,`hlydj`,`gq_hlydj`,`is_jnsb`,`zzzt`,`lzsj`,`create_time_str`, `create_user_id`, `create_by`, `create_user_type`, `create_area_code`,`create_unit`, `create_unit_name`, `update_time_str`, `update_user_id`, `update_by`, `update_unit`, `update_unit_name`,cfrq,cflx,pc)
|
|
|
+ value(#{id}, #{jgId},#{xm},#{sfzlx},#{sfzhm},#{xb},#{csrq},#{cyrq},#{whcd},#{shbn},#{zw},#{lxdh},#{gwlx},#{zylx},#{zylxQt},#{isHlyyzs},#{hlydj},#{gqHlydj},#{isJnsb},#{zzzt},#{lzsj},#{createTimeStr},#{createUserId},#{createBy},#{createUserType},#{createAreaCode},#{createUnit},#{createUnitName},#{updateTimeStr},#{updateUserId},#{updateBy},#{updateUnit},#{updateUnitName}, DATE_FORMAT(now(),'%Y%m%d'),'d',getuuid())
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateYljgYgJbxx" parameterType="YljgYgJbxx">
|
|
@@ -181,6 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sfzlx != null">sfzlx = #{sfzlx},</if>
|
|
|
<if test="sfzhm != null and sfzhm != ''">sfzhm = #{sfzhm},</if>
|
|
|
<if test="csrq != null and csrq != ''">csrq = #{csrq},</if>
|
|
|
+ <if test="cyrq != null">cyrq = #{cyrq},</if>
|
|
|
<if test="xb != null and xb != ''">xb = #{xb},</if>
|
|
|
<if test="lxdh != null and lxdh != ''">lxdh = #{lxdh},</if>
|
|
|
<if test="whcd != null and whcd != ''">whcd = #{whcd},</if>
|
|
@@ -222,7 +226,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<sql id="selectYljgYgJbxxBussVo">
|
|
|
select
|
|
|
b.jgmc, getxzqhmcbycode(b.szxzqh) szxzqh_name,
|
|
|
- a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
+ a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw,
|
|
|
a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name,
|
|
@@ -263,7 +267,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectYljgYgJbxxAdvancedList" parameterType="YljgYgJbxx" resultMap="YljgYgJbxxResult">
|
|
|
select
|
|
|
- b.jgmc, a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj,
|
|
|
+ b.jgmc, a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj,
|
|
|
a.zylx, a.zylx_qt, a.gwlx, a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw,
|
|
|
a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name
|
|
@@ -357,7 +361,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectSqYljgYgJbxxListBuss" parameterType="YljgYgJbxx" resultMap="YljgYgJbxxResult">
|
|
|
select
|
|
|
b.jgmc, getxzqhmcbycode(b.szxzqh) szxzqh_name,
|
|
|
- a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
+ a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw,
|
|
|
a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name, a.state,
|
|
@@ -394,7 +398,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectPortalYljgYgJbxxList" parameterType="YljgYgJbxx" resultMap="YljgYgJbxxResult">
|
|
|
select
|
|
|
b.jgmc, getxzqhmcbycode(b.szxzqh) szxzqh_name,
|
|
|
- a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
+ a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a,cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw,
|
|
|
a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name,
|
|
@@ -427,7 +431,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectPortalSqYljgYgJbxxList" parameterType="YljgYgJbxx" resultMap="YljgYgJbxxResult">
|
|
|
select
|
|
|
b.jgmc, getxzqhmcbycode(b.szxzqh) szxzqh_name,
|
|
|
- a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
+ a.id, xm, a.sfzlx, a.sfzhm, a.csrq, a.cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw,
|
|
|
a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name
|
|
@@ -457,7 +461,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectPortalYljgYgJbxxById" parameterType="String" resultMap="YljgYgJbxxResult">
|
|
|
SELECT
|
|
|
- a.id, a.xm, a.sfzlx, a.sfzhm, a.csrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
+ a.id, a.xm, a.sfzlx, a.sfzhm, a.csrq, a.cyrq, a.xb, a.lxdh, a.whcd, a.shbn, a.zzzt, a.lzsj, a.zylx, a.zylx_qt, a.gwlx,
|
|
|
a.is_hlyyzs, a.is_jnsb, a.hlydj, a.gq_hlydj, a.jg_id, a.zw, d.zzmc
|
|
|
FROM yljg_yg_jbxx a
|
|
|
LEFT JOIN yljg_bmxx d ON a.shbn = d.id
|
|
@@ -481,11 +485,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="batchYgJbxx">
|
|
|
- insert into yljg_yg_jbxx( id, jg_id,xm, sfzlx, sfzhm,xb,csrq,shbn,zzzt, lxdh, whcd, zylx,zylx_qt,hlydj,is_hlyyzs,gwlx,is_jnsb,zw,create_time_str,
|
|
|
+ insert into yljg_yg_jbxx( id, jg_id,xm, sfzlx, sfzhm,xb,csrq,cyrq,shbn,zzzt, lxdh, whcd, zylx,zylx_qt,hlydj,is_hlyyzs,gwlx,is_jnsb,zw,create_time_str,
|
|
|
create_user_id,create_by,create_user_type,create_unit,create_unit_name,create_area_code) values
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
(
|
|
|
- (REPLACE( UUID(),"-","")),#{item.jgId},#{item.xm},#{item.sfzlx},#{item.sfzhm},#{item.xb},#{item.csrq},#{item.shbn},#{item.zzzt},
|
|
|
+ (REPLACE( UUID(),"-","")),#{item.jgId},#{item.xm},#{item.sfzlx},#{item.sfzhm},#{item.xb},#{item.csrq},#{item.cyrq},#{item.shbn},#{item.zzzt},
|
|
|
#{item.lxdh},#{item.whcd},#{item.zylx},#{item.zylxQt},#{item.hlydj},#{item.isHlyyzs},#{item.gwlx},
|
|
|
#{item.isJnsb},#{item.zw},#{item.createTimeStr},#{item.createUserId},
|
|
|
#{item.createBy},#{item.createUserType},#{item.createUnit},#{item.createUnitName},
|