12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?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.sooka.mapper.Guiji_civiladministration_Mapper">
- <sql id="global_name">
- id,create_time,cd_time,cd_batch,cd_operation,cd_source,
- </sql>
- <sql id="global_value">
- #{id},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
- </sql>
- <sql id="update_sql">
- create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
- </sql>
- <parameterMap id="pm_szxxsj" type="com.sooka.model.bo.Guiji_civiladministration_szxxsj_Bean"></parameterMap>
- <insert id="add_guiji_civiladministration_szxxsj" parameterMap="pm_szxxsj">
- insert into t_guiji_civiladministration_szxxsj (
- <include refid="global_name"></include>
- DNAME,DSFZH,DSEX,DMZ,DAGE,BIRTH,DHJLY,DXZQH,ADDRESS,DTIME,DREASON,DADDRESS,
- HHSJ,RELATIONSHIP,LINKMAN,LINKMANPHONE,LINKMANADDRESS,OPERTM,OPERID,OPERDW)
- values (
- <include refid="global_value"></include>
- #{DNAME},#{DSFZH},#{DSEX},#{DMZ},#{DAGE},#{BIRTH},#{DHJLY},#{DXZQH},#{ADDRESS},
- #{DTIME},#{DREASON},#{DADDRESS},#{HHSJ},#{RELATIONSHIP},#{LINKMAN},#{LINKMANPHONE},
- #{LINKMANADDRESS},#{OPERTM},#{OPERID},#{OPERDW}
- )
- </insert>
- <update id="update_guiji_civiladministration_szxxsj" parameterMap="pm_szxxsj">
- update t_guiji_civiladministration_szxxsj
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="DNAME != null and DNAME != ''">
- DSFZH = #{DSFZH},
- </if>
- <if test="DSEX != null and DSEX != ''">
- DSEX = #{DSEX},
- </if>
- <if test="DMZ != null and DMZ != ''">
- DMZ = #{DMZ},
- </if>
- <if test="DAGE != null and DAGE != ''">
- DAGE = #{DAGE},
- </if>
- <if test="BIRTH != null and BIRTH != ''">
- BIRTH = #{BIRTH},
- </if>
- <if test="DHJLY != null and DHJLY != ''">
- DHJLY = #{DHJLY},
- </if>
- <if test="DXZQH != null and DXZQH != ''">
- DXZQH = #{DXZQH},
- </if>
- <if test="ADDRESS != null and ADDRESS != ''">
- ADDRESS = #{ADDRESS},
- </if>
- <if test="DTIME != null and DTIME != ''">
- DTIME = #{DTIME},
- </if>
- <if test="DREASON != null and DREASON != ''">
- DREASON = #{DREASON},
- </if>
- <if test="HHSJ != null and HHSJ != ''">
- HHSJ = #{HHSJ},
- </if>
- <if test="DADDRESS != null and DADDRESS != ''">
- DADDRESS = #{DADDRESS},
- </if>
- <if test="RELATIONSHIP != null and RELATIONSHIP != ''">
- RELATIONSHIP = #{RELATIONSHIP},
- </if>
- <if test="LINKMAN != null and LINKMAN != ''">
- LINKMAN = #{LINKMAN},
- </if>
- <if test="LINKMANPHONE != null and LINKMANPHONE != ''">
- LINKMANPHONE = #{LINKMANPHONE},
- </if>
- <if test="LINKMANADDRESS != null and LINKMANADDRESS != ''">
- LINKMANADDRESS = #{LINKMANADDRESS},
- </if>
- <if test="OPERTM != null and OPERTM != ''">
- OPERTM = #{OPERTM},
- </if>
- <if test="OPERID != null and OPERID != ''">
- OPERID = #{OPERID},
- </if>
- <if test="OPERDW != null and OPERDW != ''">
- OPERDW = #{OPERDW},
- </if>
- </trim>
- where id=#{id}
- </update>
- </mapper>
|