123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?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_Housingconstruction_Mapper2">
- <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_yhjbxx" type="com.sooka.model.bo.Guiji_housingconstruction_yhjjxx_Bean"></parameterMap>
- <insert id="add_guiji_housingconstruction_yhjbxx" parameterMap="pm_yhjbxx">
- insert into t_guiji_housingconstruction_yhjbxx (
- <include refid="global_name"></include>
- YHBH,YHMC,YHDZ,YSYF,YSL,SFJF,JFSJ)
- values (
- <include refid="global_value"></include>
- #{YHBH},#{YHMC},#{YHDZ},#{YSYF},#{YSL},#{SFJF},#{JFSJ}
- )
- </insert>
- <update id="update_guiji_housingconstruction_yhjbxx" parameterMap="pm_yhjbxx">
- update t_guiji_housingconstruction_yhjbxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="YHBH != null and YHBH != ''">
- YHBH = #{YHBH},
- </if>
- <if test="YHMC != null and YHMC != ''">
- YHMC = #{YHMC},
- </if>
- <if test="YHDZ != null and YHDZ != ''">
- YHDZ = #{YHDZ},
- </if>
- <if test="YSYF != null and YSYF != ''">
- YSYF = #{YSYF},
- </if>
- <if test="YSL != null and YSL != ''">
- YSL = #{YSL},
- </if>
- <if test="SFJF != null and SFJF != ''">
- SFJF = #{SFJF},
- </if>
- <if test="JFSJ != null and JFSJ != ''">
- JFSJ = #{JFSJ},
- </if>
- </trim>
- where id = #{id}
- </update>
- <parameterMap id="pm_ysljc" type="com.sooka.model.bo.Guiji_housingconstruction_ysljc_Bean"></parameterMap>
- <insert id="add_guiji_housingconstruction_ysljc" parameterMap="pm_ysljc">
- insert into t_guiji_housingconstruction_ysljc (
- <include refid="global_name"></include>
- name,dnm,snm,value,time
- )
- values (
- <include refid="global_value"></include>
- #{name},#{dnm},#{snm},#{value},#{time}
- )
- </insert>
- <update id="update_guiji_housingconstruction_ysljc" parameterMap="pm_ysljc">
- update t_guiji_housingconstruction_ysljc
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="name != null and name != ''">
- name = #{name},
- </if>
- <if test="dnm != null and dnm != ''">
- dnm = #{dnm},
- </if>
- <if test="snm != null and snm != ''">
- snm = #{snm},
- </if>
- <if test="value != null and value != ''">
- value = #{value},
- </if>
- <if test="time != null and time != ''">
- time = #{time},
- </if>
- </trim>
- where id=#{id}
- </update>
- <parameterMap id="pm_zlskfrx" type="com.sooka.model.bo.Guiji_housingconstruction_zlskfrx_Bean"></parameterMap>
- <insert id="add_guiji_housingconstruction_zlskfrx" parameterMap="pm_zlskfrx">
- insert into t_guiji_housingconstruction_zlskfrx (
- <include refid="global_name"></include>
- CaseId,IncomingCall,Name,Address,Content,CreateOn)
- values (
- <include refid="global_value"></include>
- #{CaseId},#{IncomingCall},#{Name},#{Address},#{Content},#{CreateOn}
- )
- </insert>
- <update id="update_guiji_housingconstruction_zlskfrx" parameterMap="pm_zlskfrx">
- update t_guiji_housingconstruction_zlskfrx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="IncomingCall != null and IncomingCall != ''">
- IncomingCall= #{IncomingCall},
- </if>
- <if test="Name != null and Name != ''">
- Name= #{Name},
- </if>
- <if test="Address != null and Address != ''">
- Address= #{Address},
- </if>
- <if test="Content != null and Content != ''">
- Content = #{Content},
- </if>
- <if test="CreateOn != null and CreateOn != ''">
- CreateOn = #{CreateOn},
- </if>
- </trim>
- where CaseId = #{CaseId}
- </update>
- <parameterMap id="pm_ysxt" type="com.sooka.model.bo.Guiji_housingconstruction_ysxt_Bean"></parameterMap>
- <insert id="add_guiji_housingconstruction_ysxt" parameterMap="pm_ysxt">
- insert into t_guiji_housingconstruction_ysxt (
- <include refid="global_name"></include>
- YHBH,YHMC,YHDZ,YSYF,YSL,SFJF,JFSJ)
- values (
- <include refid="global_value"></include>
- #{YHBH},#{YHMC},#{YHDZ},#{YSYF},#{YSL},#{SFJF},#{JFSJ}
- )
- </insert>
- <update id="update_guiji_housingconstruction_ysxt" parameterMap="pm_ysxt">
- updat t_guiji_housingconstruction_ysxt
- <if test="YHBH != null and YHBH != ''">
- YHBH = #{YHBH},
- </if>
- <if test="YHMC != null and YHMC != ''">
- YHMC = #{YHMC},
- </if>
- <if test="YHDZ != null and YHDZ != ''">
- YHDZ = #{YHDZ},
- </if>
- <if test="YSYF != null and YSYF != ''">
- YSYF = #{YSYF},
- </if>
- <if test="YSL != null and YSL != ''">
- YSL = #{YSL},
- </if>
- <if test="SFJF != null and SFJF != ''">
- SFJF = #{SFJF},
- </if>
- <if test="cardno != null and cardno != ''">
- JFSJ = #{JFSJ},
- </if>
- where YHBH = #{YHBH}
- </update>
- <parameterMap id="pm_hqrlsj" type="com.sooka.model.bo.Guiji_housingconstruction_hqrlsj_Bean"></parameterMap>
- <insert id="add_guiji_housingconstruction_hqrlsj" parameterMap="pm_hqrlsj">
- insert into t_guiji_housingconstruction_hqrlsj (
- <include refid="global_name"></include>
- name,time,type)
- values (
- <include refid="global_value"></include>
- #{name},now(),#{type}
- )
- </insert>
- <insert id="add_guiji_housingconstruction_hqrlsj_detail" parameterMap="pm_hqrlsj">
- insert into t_guiji_housingconstruction_hqrlsj_detail (
- <include refid="global_name"></include>
- name,value,hqrlsj_id
- )
- values (
- <include refid="global_value"></include>
- #{name},#{value},#{hqrlsj_id}
- )
- </insert>
- <resultMap id="rm_yhjbxx" type="com.sooka.model.bo.Guiji_housingconstruction_yhjjxx_Bean"></resultMap>
- <select id="select_guiji_housingconstruction_yhjbxx" parameterMap="pm_yhjbxx" resultMap="rm_yhjbxx">
- select
- YHBH,YHMC,YHDZ,YSYF,YSL,SFJF,JFSJ from t_guiji_housingconstruction_yhjbxx
- where
- <if test="YHMC != null and YHMC != ''">
- YHMC = #{YHMC}
- </if>
- </select>
- </mapper>
|