123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- <?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" >
- <mapper namespace="com.zhyc.xps.sys.mapper.EntMapper">
- <resultMap id="EntResultMap" type="com.zhyc.xps.sys.entity.Ent">
- <id column="oc_id" property="ocId" jdbcType="BIGINT"/>
- <result column="ent_name" property="entName" jdbcType="VARCHAR"/><!--企业名称-->
- <result column="ent_cat_id" property="entCatId" jdbcType="BIGINT"/> <!--企业类别ID-->
- <result column="ent_zch" property="entZch" jdbcType="VARCHAR"/><!--注册号-->
- <result column="ent_tyshxydm" property="entTyshxydm" jdbcType="VARCHAR"/><!--组织机构代码-->
- <result column="ent_clrq" property="entClrq" jdbcType="DATE"/><!--成立日期-->
- <result column="ent_fddbr" property="entFddbr" jdbcType="VARCHAR"/><!--法定代表人-->
- <result column="ent_lxdh" property="entLxdh" jdbcType="VARCHAR"/><!--联系电话-->
- <result column="ent_dzyx" property="entDzyx" jdbcType="VARCHAR"/><!--电子邮箱-->
- <result column="ent_zcdz" property="entZcdz" jdbcType="VARCHAR"/><!--注册地址-->
- <result column="ent_yzbm" property="entYzbm" jdbcType="VARCHAR"/><!--邮政编码-->
- <result column="ent_jjlxdm" property="entJjlxdm" jdbcType="INTEGER"/><!--经济类型代码-->
- <result column="ent_xzqhdm" property="entXzqhdm" jdbcType="VARCHAR"/><!--行政区划代码-->
- <result column="ent_xzqhmc" property="entXzqhmc" jdbcType="VARCHAR"/><!--行政区划名称-->
- <result column="ent_hylbdm" property="entHylbdm" jdbcType="VARCHAR"/><!--行业类别代码-->
- <result column="ent_jyfw" property="entJyfw" jdbcType="VARCHAR"/><!--经营范围-->
- <result column="ent_qyzt" property="entQyzt" jdbcType="BIT"/><!--企业状态-->
- <result column="ent_qywzjd" property="entQywzjd" jdbcType="DECIMAL"/><!--企业位置经度-->
- <result column="ent_qywzwd" property="entQywzwd" jdbcType="DECIMAL"/><!--企业位置纬度-->
- <result column="ent_scjydz" property="entScjydz" jdbcType="VARCHAR"/> <!--生产/经营地址-->
- <result column="ent_gmqk" property="entGmqk" jdbcType="BIT"/> <!--规模情况-->
- <result column="ent_qygm" property="entQygm" jdbcType="BIT"/> <!--企业规模-->
- <result column="ent_zyfzr" property="entZyfzr" jdbcType="VARCHAR"/> <!--主要负责人-->
- <result column="ent_zyfzrgddhhm" property="entZyfzrgddhhm" jdbcType="VARCHAR"/> <!--主要负责人固定电话号码-->
- <result column="ent_zyfzryddhhm" property="entZyfzryddhhm" jdbcType="VARCHAR"/> <!--主要负责人移动电话号码-->
- <result column="ent_zyfzrdzyx" property="entZyfzrdzyx" jdbcType="VARCHAR"/> <!--主要负责人电子邮箱-->
- <result column="ent_aqfzr" property="entAqfzr" jdbcType="VARCHAR"/> <!--安全负责人-->
- <result column="ent_aqfzrgddhhm" property="entAqfzrgddhhm" jdbcType="VARCHAR"/> <!--安全负责人固定电话号码-->
- <result column="ent_aqfzryddhhm" property="entAqfzryddhhm" jdbcType="VARCHAR"/> <!--安全负责人移动电话号码-->
- <result column="ent_aqfzrdzyx" property="entAqfzrdzyx" jdbcType="VARCHAR"/> <!--安全负责人电子邮箱-->
- <result column="ent_aqjgszqk" property="entAqjgszqk" jdbcType="BIT"/> <!--安全机构设置情况-->
- <result column="ent_cyrysl" property="entCyrysl" jdbcType="INTEGER"/> <!--从业人员数量-->
- <result column="ent_tzzyrysl" property="entTzzyrysl" jdbcType="INTEGER"/> <!--特种作业人员数量-->
- <result column="ent_zzaqscglrys" property="entZzaqscglrys" jdbcType="INTEGER"/> <!--专职安全生产管理人员数-->
- <result column="ent_zzyjglrys" property="entZzyjglrys" jdbcType="INTEGER"/> <!--专职应急管理人员数-->
- <result column="ent_zcaqgcsrys" property="entZcaqgcsrys" jdbcType="INTEGER"/> <!--注册安全工程师人员数-->
- <result column="ent_aqjgjcjg" property="entAqjgjcjg" jdbcType="VARCHAR"/> <!--安全监管监察机构-->
- <result column="created_by" property="createdBy" jdbcType="BIGINT"/>
- <result column="created_at" property="createdAt" jdbcType="TIMESTAMP"/>
- <result column="updated_by" property="updatedBy" jdbcType="BIGINT"/>
- <result column="updated_at" property="updatedAt" jdbcType="TIMESTAMP"/>
- </resultMap>
- <!--CompanyDto-->
- <resultMap id="EntDtoResultMap" type="com.zhyc.xps.sys.dto.EntDto" extends="EntResultMap">
- <result column="ent_cat_title" property="entCatTitle" jdbcType="VARCHAR"/>
- <result column="root_id" property="rootId" jdbcType="BIGINT"/>
- <result column="parent_id" property="parentId" jdbcType="BIGINT"/>
- <result column="admin_id" property="adminId" jdbcType="BIGINT"/>
- <result column="group_id" property="groupId" jdbcType="BIGINT"/>
- <result column="node_left" property="nodeLeft" jdbcType="BIGINT"/>
- <result column="node_right" property="nodeRight" jdbcType="BIGINT"/>
- <result column="node_level" property="nodeLevel" jdbcType="BIGINT"/>
- <result column="is_leaf" property="isLeaf" jdbcType="BIGINT"/>
- <result column="status" property="status" jdbcType="BIGINT"/>
- <result column="admin_name" property="adminName" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="EntDto_Column_List">
- A.oc_id,
- A.ent_name,
- A.ent_cat_id,
- D.ent_cat_title,
- A.ent_zch,
- A.ent_tyshxydm,
- A.ent_clrq,
- A.ent_fddbr,
- A.ent_lxdh,
- A.ent_dzyx,
- A.ent_zcdz,
- A.ent_yzbm,
- A.ent_jjlxdm,
- A.ent_xzqhdm,
- A.ent_xzqhmc,
- A.ent_jyfw,
- A.ent_qyzt,
- A.ent_qywzjd,
- A.ent_qywzwd,
- A.ent_scjydz,
- A.ent_gmqk,
- A.ent_qygm,
- A.ent_zyfzr,
- A.ent_zyfzrgddhhm,
- A.ent_zyfzryddhhm,
- A.ent_zyfzrdzyx,
- A.ent_aqfzr,
- A.ent_aqfzrgddhhm,
- A.ent_aqfzryddhhm,
- A.ent_aqfzrdzyx,
- A.ent_aqjgszqk,
- A.ent_cyrysl,
- A.ent_tzzyrysl,
- A.ent_zzaqscglrys,
- A.ent_zzyjglrys,
- A.ent_zcaqgcsrys,
- A.ent_aqjgjcjg,
- B.parent_id,
- B.root_id,
- B.admin_id,
- C.account_name AS admin_name,
- B.group_id,
- B.node_left,
- B.node_right,
- B.node_level,
- B.is_leaf,
- B.status
- </sql>
- <!--根据公司ID主键查询公司信息+安全信息-->
- <select id="getById" resultMap="EntDtoResultMap">
- SELECT
- <include refid="EntDto_Column_List"/>
- FROM ent AS A
- LEFT JOIN oc AS B ON (A.oc_id = B.oc_id)
- LEFT JOIN account AS C ON (B.oc_id = C.oc_id AND B.admin_id = C.account_id)
- LEFT JOIN ent_cat AS D ON (A.ent_cat_id = D.ent_cat_id)
- WHERE 1 = 1 AND A.deleted_flag = 0
- <if test="ocId != null">
- AND A.oc_id = #{ocId ,jdbcType = BIGINT}
- </if>
- </select>
- <select id="getByPage" parameterType="java.util.Map" resultMap="EntDtoResultMap">
- SELECT
- <include refid="EntDto_Column_List"/>
- FROM ent AS A
- LEFT JOIN oc AS B ON (A.oc_id = B.oc_id)
- LEFT JOIN account AS C ON (B.oc_id = C.oc_id AND B.admin_id = C.account_id)
- LEFT JOIN ent_cat AS D ON (A.ent_cat_id = D.ent_cat_id)
- WHERE 1 = 1 AND A.deleted_flag = 0
- <if test="ocId != null">
- AND A.oc_id = #{ocId ,jdbcType = BIGINT}
- </if>
- <if test="keywords != null and keywords != ''">
- AND ( A.oc_name LIKE "%"#{keyword}"%" )
- </if>
- ORDER BY A.oc_id DESC
- </select>
- <select id="getByList" parameterType="java.util.Map" resultMap="EntDtoResultMap">
- SELECT
- <include refid="EntDto_Column_List"/>
- FROM ent AS A
- LEFT JOIN oc AS B ON (A.oc_id = B.oc_id)
- LEFT JOIN account AS C ON (B.oc_id = C.oc_id AND B.admin_id = C.account_id)
- LEFT JOIN ent_cat AS D ON (A.ent_cat_id = D.ent_cat_id)
- WHERE 1 = 1 AND A.deleted_flag = 0
- <if test="ocId != null">
- AND A.oc_id = #{ocId ,jdbcType = BIGINT}
- </if>
- <if test="keywords != null and keywords != ''">
- AND ( A.oc_name LIKE "%"#{keyword}"%" )
- </if>
- ORDER BY A.oc_id DESC
- </select>
- <insert id="create" parameterType="com.zhyc.xps.sys.entity.Ent">
- insert into ent
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="ocId != null">
- oc_id,
- </if>
- <if test="entName != null and entName != ''">
- ent_name,
- </if>
- <if test="entCatId != null">
- ent_cat_id,
- </if>
- <if test="entZch != null and entZch != ''">
- ent_zch,
- </if>
- <if test="entTyshxydm != null and entTyshxydm != ''">
- ent_tyshxydm,
- </if>
- <if test="entClrq != null">
- ent_clrq,
- </if>
- <if test="entFddbr != null and entFddbr != ''">
- ent_fddbr,
- </if>
- <if test="entLxdh != null and entLxdh != ''">
- ent_lxdh,
- </if>
- <if test="entDzyx != null and entDzyx != ''">
- ent_dzyx,
- </if>
- <if test="entZcdz != null and entZcdz != ''">
- ent_zcdz,
- </if>
- <if test="entYzbm != null and entYzbm != ''">
- ent_yzbm,
- </if>
- <if test="entJjlxdm != null">
- ent_jjlxdm,
- </if>
- <if test="entXzqhdm != null and entXzqhdm != ''">
- ent_xzqhdm,
- </if>
- <if test="entXzqhmc != null and entXzqhmc != ''">
- ent_xzqhmc,
- </if>
- <if test="entJyfw != null and entJyfw != ''">
- ent_jyfw,
- </if>
- <if test="entQyzt != null">
- ent_qyzt,
- </if>
- <if test="entQywzjd != null">
- ent_qywzjd,
- </if>
- <if test="entQywzwd != null">
- ent_qywzwd,
- </if>
- <if test="entScjydz != null and entScjydz != ''">
- ent_scjydz,
- </if>
- <if test="entGmqk != null">
- ent_gmqk,
- </if>
- <if test="entQygm != null">
- ent_qygm,
- </if>
- <if test="entZyfzr != null and entZyfzr != ''">
- ent_zyfzr,
- </if>
- <if test="entZyfzrgddhhm != null and entZyfzrgddhhm != ''">
- ent_zyfzrgddhhm,
- </if>
- <if test="entZyfzryddhhm != null and entZyfzryddhhm != '' ">
- ent_zyfzryddhhm,
- </if>
- <if test="entZyfzrdzyx != null and entZyfzrdzyx != ''">
- ent_zyfzrdzyx,
- </if>
- <if test="entAqfzr != null and entAqfzr != ''">
- ent_aqfzr,
- </if>
- <if test="entAqfzrgddhhm != null and entAqfzrgddhhm != ''">
- ent_aqfzrgddhhm,
- </if>
- <if test="entAqfzryddhhm != null and entAqfzryddhhm != ''">
- ent_aqfzryddhhm,
- </if>
- <if test="entAqfzrdzyx != null and entAqfzrdzyx != ''">
- ent_aqfzrdzyx,
- </if>
- <if test="entAqjgszqk != null">
- ent_aqjgszqk,
- </if>
- <if test="entCyrysl != null">
- ent_cyrysl,
- </if>
- <if test="entTzzyrysl != null">
- ent_tzzyrysl,
- </if>
- <if test="entZzaqscglrys != null">
- ent_zzaqscglrys,
- </if>
- <if test="entZzyjglrys != null">
- ent_zzyjglrys,
- </if>
- <if test="entZcaqgcsrys != null">
- ent_zcaqgcsrys,
- </if>
- <if test="entAqjgjcjg != null and entAqjgjcjg != ''">
- ent_aqjgjcjg,
- </if>
- <if test="createdBy != null">
- created_by,
- </if>
- <if test="createdAt != null">
- created_at,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="ocId != null">
- #{ocId, jdbcType=BIGINT},
- </if>
- <if test="entName != null and entName != ''">
- #{entName,jdbcType=VARCHAR},
- </if>
- <if test="entCatId != null">
- #{entCatId, jdbcType=BIGINT},
- </if>
- <if test="entZch != null and entZch != ''">
- #{entZch, jdbcType=VARCHAR},
- </if>
- <if test="entTyshxydm != null and entTyshxydm != ''">
- #{entTyshxydm, jdbcType=VARCHAR},
- </if>
- <if test="entClrq != null">
- #{entClrq, jdbcType=DATE},
- </if>
- <if test="entFddbr != null and entFddbr != ''">
- #{entFddbr, jdbcType=VARCHAR},
- </if>
- <if test="entLxdh != null and entLxdh != ''">
- #{entLxdh, jdbcType=VARCHAR},
- </if>
- <if test="entDzyx != null and entDzyx != ''">
- #{entDzyx, jdbcType=VARCHAR},
- </if>
- <if test="entZcdz != null and entZcdz != ''">
- #{entZcdz, jdbcType=VARCHAR},
- </if>
- <if test="entYzbm != null and entYzbm != ''">
- #{entYzbm,jdbcType=VARCHAR},
- </if>
- <if test="entJjlxdm != null">
- #{entJjlxdm, jdbcType=INTEGER},
- </if>
- <if test="entXzqhdm != null and entXzqhdm != ''">
- #{entXzqhdm, jdbcType=VARCHAR},
- </if>
- <if test="entXzqhmc != null and entXzqhmc != ''">
- #{entXzqhmc, jdbcType=VARCHAR},
- </if>
- <if test="entJyfw != null and entJyfw != ''">
- #{entJyfw, jdbcType=VARCHAR},
- </if>
- <if test="entQyzt != null">
- #{entQyzt, jdbcType=BIT},
- </if>
- <if test="entQywzjd != null">
- #{entQywzjd, jdbcType=DECIMAL},
- </if>
- <if test="entQywzwd != null">
- #{entQywzwd, jdbcType=DECIMAL},
- </if>
- <if test="entScjydz != null and entScjydz != ''">
- #{entScjydz, jdbcType=VARCHAR},
- </if>
- <if test="entGmqk != null">
- #{entGmqk, jdbcType=INTEGER},
- </if>
- <if test="entQygm != null">
- #{entQygm, jdbcType=INTEGER},
- </if>
- <if test="entZyfzr != null and entZyfzr != ''">
- #{entZyfzr, jdbcType=VARCHAR},
- </if>
- <if test="entZyfzrgddhhm != null and entZyfzrgddhhm != ''">
- #{entZyfzrgddhhm, jdbcType=VARCHAR},
- </if>
- <if test="entZyfzryddhhm != null and entZyfzryddhhm != ''">
- #{entZyfzryddhhm, jdbcType=VARCHAR},
- </if>
- <if test="entZyfzrdzyx != null and entZyfzrdzyx != ''">
- #{entZyfzrdzyx, jdbcType=VARCHAR},
- </if>
- <if test="entAqfzr != null and entAqfzr != ''">
- #{entAqfzr, jdbcType=VARCHAR},
- </if>
- <if test="entAqfzrgddhhm != null and entAqfzrgddhhm != ''">
- #{entAqfzrgddhhm, jdbcType=VARCHAR},
- </if>
- <if test="entAqfzryddhhm != null and entAqfzryddhhm != ''">
- #{entAqfzryddhhm, jdbcType=VARCHAR},
- </if>
- <if test="entAqfzrdzyx != null and entAqfzrdzyx != ''">
- #{entAqfzrdzyx, jdbcType=VARCHAR},
- </if>
- <if test="entAqjgszqk != null">
- #{entAqjgszqk, jdbcType=INTEGER},
- </if>
- <if test="entCyrysl != null">
- #{entCyrysl, jdbcType=INTEGER},
- </if>
- <if test="entTzzyrysl != null">
- #{entTzzyrysl, jdbcType=INTEGER},
- </if>
- <if test="entZzaqscglrys != null">
- #{entZzaqscglrys, jdbcType=INTEGER},
- </if>
- <if test="entZzyjglrys != null">
- #{entZzyjglrys, jdbcType=INTEGER},
- </if>
- <if test="entZcaqgcsrys != null">
- #{entZcaqgcsrys, jdbcType=INTEGER},
- </if>
- <if test="entAqjgjcjg != null and entAqjgjcjg != ''">
- #{entAqjgjcjg, jdbcType=VARCHAR},
- </if>
- <if test="createdBy != null">
- #{createdBy, jdbcType=INTEGER},
- </if>
- <if test="createdAt != null">
- #{createdAt, jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <!--Update更新-->
- <update id="update" parameterType="com.zhyc.xps.sys.entity.Ent">
- UPDATE ent
- <set>
- <if test="entName != null and entName != ''">
- ent_name = #{entName,jdbcType=VARCHAR},
- </if>
- <if test="entCatId != null">
- ent_cat_id = #{entCatId, jdbcType=BIGINT},
- </if>
- <if test="entZch != null and entZch !=''">
- zch = #{entZch,jdbcType=VARCHAR},
- </if>
- <if test="entTyshxydm != null and entTyshxydm != ''">
- ent_tyshxydm = #{entTyshxydm,jdbcType=VARCHAR},
- </if>
- <if test="entClrq != null">
- ent_clrq = #{entClrq,jdbcType=DATE},
- </if>
- <if test="entFddbr != null and entFddbr != ''">
- ent_fddbr = #{entFddbr,jdbcType=VARCHAR},
- </if>
- <if test="entLxdh != null and entLxdh != ''">
- ent_lxdh = #{entLxdh,jdbcType=VARCHAR},
- </if>
- <if test="entDzyx != null and entDzyx != ''">
- ent_dzyx = #{entDzyx,jdbcType=VARCHAR},
- </if>
- <if test="entZcdz != null and entZcdz != ''">
- ent_zcdz = #{entZcdz,jdbcType=VARCHAR},
- </if>
- <if test="entYzbm != null and entYzbm != ''">
- ent_yzbm = #{entYzbm,jdbcType=VARCHAR},
- </if>
- <if test="entJjlxdm != null">
- ent_jjlxdm = #{entJjlxdm,jdbcType=INTEGER},
- </if>
- <if test="entXzqhdm != null and entXzqhdm != ''">
- ent_xzqhdm = #{entXzqhdm,jdbcType=VARCHAR},
- </if>
- <if test="entXzqhmc != null and entXzqhmc != ''">
- ent_xzqhmc = #{entXzqhmc,jdbcType=VARCHAR},
- </if>
- <if test="entJyfw != null and entJyfw != ''">
- ent_jyfw = #{entJyfw,jdbcType=VARCHAR},
- </if>
- <if test="entQyzt != null">
- ent_qyzt = #{entQyzt,jdbcType=BIT},
- </if>
- <if test="entQywzjd != null">
- ent_qywzjd = #{entQywzjd,jdbcType=DECIMAL},
- </if>
- <if test="entQywzwd != null">
- ent_qywzwd = #{entQywzwd,jdbcType=DECIMAL},
- </if>
- <if test="entScjydz != null and entScjydz !=''">
- ent_scjydz = #{entScjydz,jdbcType=VARCHAR},
- </if>
- <if test="entGmqk != null">
- ent_gmqk = #{entGmqk, jdbcType=INTEGER},
- </if>
- <if test="entQygm != null">
- ent_qygm = #{entQygm,jdbcType=INTEGER},
- </if>
- <if test="entZyfzr != null and entZyfzr != ''">
- ent_zyfzr = #{entZyfzr,jdbcType=VARCHAR},
- </if>
- <if test="entZyfzrgddhhm != null and entZyfzrgddhhm != ''">
- ent_zyfzrgddhhm = #{entZyfzrgddhhm,jdbcType=VARCHAR},
- </if>
- <if test="entZyfzryddhhm != null and entZyfzryddhhm != ''">
- ent_zyfzryddhhm = #{entZyfzryddhhm,jdbcType=VARCHAR},
- </if>
- <if test="entZyfzrdzyx != null and entZyfzrdzyx != ''">
- ent_zyfzrdzyx = #{entZyfzrdzyx,jdbcType=VARCHAR},
- </if>
- <if test="entAqfzr != null and entAqfzr != ''">
- ent_aqfzr = #{entAqfzr,jdbcType=VARCHAR},
- </if>
- <if test="entAqfzrgddhhm != null and entAqfzrgddhhm != ''">
- ent_aqfzrgddhhm = #{entAqfzrgddhhm,jdbcType=VARCHAR},
- </if>
- <if test="entAqfzryddhhm != null and entAqfzryddhhm != ''">
- ent_aqfzryddhhm = #{entAqfzryddhhm,jdbcType=VARCHAR},
- </if>
- <if test="entAqfzrdzyx != null and entAqfzrdzyx != ''">
- ent_aqfzrdzyx = #{entAqfzrdzyx,jdbcType=VARCHAR},
- </if>
- <if test="entAqjgszqk != null">
- ent_aqjgszqk = #{entAqjgszqk,jdbcType=INTEGER},
- </if>
- <if test="entCyrysl != null">
- ent_cyrysl = #{entCyrysl,jdbcType=INTEGER},
- </if>
- <if test="entTzzyrysl != null">
- ent_tzzyrysl = #{entTzzyrysl,jdbcType=INTEGER},
- </if>
- <if test="entZzaqscglrys != null">
- ent_zzaqscglrys = #{entZzaqscglrys,jdbcType=INTEGER},
- </if>
- <if test="entZzyjglrys != null">
- ent_zzyjglrys = #{entZzyjglrys,jdbcType=INTEGER},
- </if>
- <if test="entZcaqgcsrys != null">
- ent_zcaqgcsrys = #{entZcaqgcsrys,jdbcType=INTEGER},
- </if>
- <if test="entAqjgjcjg != null and entAqjgjcjg != ''">
- ent_aqjgjcjg = #{entAqjgjcjg,jdbcType=VARCHAR},
- </if>
- <if test="updatedBy != null">
- updated_by = #{updatedBy,jdbcType=BIGINT},
- </if>
- <if test="updatedAt != null">
- updated_at = #{updatedAt,jdbcType=TIMESTAMP}
- </if>
- </set>
- WHERE oc_id = #{ocId,jdbcType=BIGINT}
- </update>
- <update id="delete" parameterType="java.util.Map">
- UPDATE ent
- <trim suffixOverrides=",">
- <set>
- <if test="deletedBy != null">
- deleted_by = #{deletedBy ,jdbcType=BIGINT},
- </if>
- <if test="deletedAt != null">
- deleted_at = #{deletedAt ,jdbcType=DATE},
- </if>
- <if test="deletedFlag != null">
- deleted_flag = #{deletedFlag ,jdbcType=BIGINT}
- </if>
- </set>
- </trim>
- WHERE oc_id = #{ocId, jdbcType=BIGINT}
- </update>
- </mapper>
|