|
@@ -0,0 +1,210 @@
|
|
|
|
+<?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_Funeral_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>
|
|
|
|
+
|
|
|
|
+ <insert id="add_guiji_funeral" parameterType="com.sooka.model.bo.Guiji_funeral1_the_dead_Bean">
|
|
|
|
+ insert into t_guiji_funeral_the_dead (
|
|
|
|
+ <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_funeral" parameterType="com.sooka.model.bo.Guiji_funeral1_the_dead_Bean">
|
|
|
|
+ update t_guiji_funeral_the_dead
|
|
|
|
+ <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>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <insert id="add_guiji_funeral2" parameterType="com.sooka.model.bo.Guiji_funeral2_pay_Bean">
|
|
|
|
+ insert into t_guiji_medicine_platform (
|
|
|
|
+ <include refid="global_name"></include>
|
|
|
|
+ platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
|
|
|
|
+ values (
|
|
|
|
+ <include refid="global_value"></include>
|
|
|
|
+ #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <update id="update_guiji_funeral2" parameterType="com.sooka.model.bo.Guiji_funeral2_pay_Bean">
|
|
|
|
+ update t_guiji_medicine_platform
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <include refid="update_sql"></include>
|
|
|
|
+ <if test="platformName != null and platformName != ''">
|
|
|
|
+ platformName = #{platformName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
|
+ constructingUnit = #{constructingUnit},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="constructingDate != null and constructingDate != ''">
|
|
|
|
+ constructingDate = #{constructingDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="platformAddress != null and platformAddress != ''">
|
|
|
|
+ platformAddress = #{platformAddress},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
|
+ platformAddressExt = #{platformAddressExt},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="platformLevel != null and platformLevel != ''">
|
|
|
|
+ platformLevel = #{platformLevel},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="platformType != null and platformType != ''">
|
|
|
|
+ platformType = #{platformType},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <insert id="add_guiji_funeral3" parameterType="com.sooka.model.bo.Guiji_funeral3_freeze_Bean">
|
|
|
|
+ insert into t_guiji_medicine_project (
|
|
|
|
+ <include refid="global_name"></include>
|
|
|
|
+ projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
|
|
|
|
+ values (
|
|
|
|
+ <include refid="global_value"></include>
|
|
|
|
+ #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <update id="update_guiji_funeral3" parameterType="com.sooka.model.bo.Guiji_funeral3_freeze_Bean">
|
|
|
|
+ update t_guiji_medicine_project
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <include refid="update_sql"></include>
|
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
|
+ projectName = #{projectName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
|
+ projectOrgName = #{projectOrgName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectAddress != null and projectAddress != ''">
|
|
|
|
+ projectAddress = #{projectAddress},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectStatus != null and projectStatus != ''">
|
|
|
|
+ projectStatus = #{projectStatus},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
|
|
|
|
+ projectTotalInvestment = #{projectTotalInvestment},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectStart != null and projectStart != ''">
|
|
|
|
+ projectStart = #{projectStart},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectEnd != null and projectEnd != ''">
|
|
|
|
+ projectEnd = #{projectEnd},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <insert id="add_guiji_funeral4" parameterType="com.sooka.model.bo.Guiji_funeral4_ashes_storage_Bean">
|
|
|
|
+ insert into t_guiji_medicine_industry (
|
|
|
|
+ <include refid="global_name"></include>
|
|
|
|
+ year, month, economyType, number, yearOnYear, cityProportion)
|
|
|
|
+ values (
|
|
|
|
+ <include refid="global_value"></include>
|
|
|
|
+ #{year}, #{month}, #{economyType}, #{number}, #{yearOnYear}, #{cityProportion})
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <update id="update_guiji_funeral4" parameterType="com.sooka.model.bo.Guiji_funeral4_ashes_storage_Bean">
|
|
|
|
+ update t_guiji_medicine_industry
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <include refid="update_sql"></include>
|
|
|
|
+ <if test="year != null and year != ''">
|
|
|
|
+ year = #{year},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="month != null and month != ''">
|
|
|
|
+ month = #{month},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="economyType != null and economyType != ''">
|
|
|
|
+ economyType = #{economyType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="number != null and number != ''">
|
|
|
|
+ number = #{number},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="yearOnYear != null and yearOnYear != ''">
|
|
|
|
+ yearOnYear = #{yearOnYear},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cityProportion != null and cityProportion != ''">
|
|
|
|
+ cityProportion = #{cityProportion},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</mapper>
|