Pārlūkot izejas kodu

殡葬 6个接口_1 基础信息

wangzhe 2 gadi atpakaļ
vecāks
revīzija
0b092c7c1a

+ 1 - 1
test-api/src/main/java/com/sooka/mapper/Guiji_Funeral_Mapper2.java

@@ -5,7 +5,7 @@ import com.sooka.model.bo.*;
 import org.apache.ibatis.annotations.Mapper;
 
 @Mapper
-@DS("db8")
+@DS("db6")
 public interface Guiji_Funeral_Mapper2 {
 
     public void add_guiji_funeral(Guiji_funeral1_the_dead_Bean bean);

+ 41 - 0
test-api/src/main/java/com/sooka/model/bo/Guiji_funeral1_the_dead_Bean.java

@@ -9,6 +9,47 @@ import lombok.Setter;
 public class Guiji_funeral1_the_dead_Bean extends BaseBean_Guiji {
 
     String str;
+    //逝者姓名
+    String DNAME;
+    //身份证号
+    String DSFZH;
+    //性别
+    String DSEX;
+    //民族
+    String DMZ;
+    //年龄
+    String DAGE;
+    //出生日期
+    String BIRTH;
+    //户籍来源
+    String DHJLY;
+    //发证机关
+    String DXZQH;
+    //籍贯或家庭住址
+    String ADDRESS;
+    //死亡时间
+    String DTIME;
+    //死亡原因
+    String DREASON;
+    //死亡地点
+    String DADDRESS;
+    //火化时间
+    String HHSJ;
+    //与死者关系
+    String RELATIONSHIP;
+    //联系人
+    String LINKMAN;
+    //联系人电话
+    String LINKMANPHONE;
+    //联系人地址
+    String LINKMANADDRESS;
+    //登记时间
+    String OPERTM;
+    //登记人
+    String OPERID;
+    //登记单位
+    String OPERDW;
+
 //    String param;//业务条码、
 //    String param;//逝者姓名、
 //    String param;//身份证号、

+ 23 - 1
test-api/src/main/java/com/sooka/service/impl/Guiji_Funeral_ServiceImpl.java

@@ -9,6 +9,7 @@ import com.sooka.model.ResultModel;
 import com.sooka.model.bo.*;
 import com.sooka.service.Guiji_Funeral_Service;
 import com.sooka.utils.HttpUtil;
+import org.bouncycastle.util.encoders.Base64;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
@@ -34,11 +35,32 @@ public class Guiji_Funeral_ServiceImpl extends BaseService implements Guiji_Fune
             log.put("interfaceinfoName", "归集-市殡葬-逝者基本信息");
             Guiji_funeral1_the_dead_Bean bean = new Guiji_funeral1_the_dead_Bean();
             initBaseGuijiBean(str, bean);
-
             JSONObject Data = bean.getData();
             System.out.println(Data+"=Data");
             bean.setStr(str);
             bean.setId(Data.getString("id"));
+
+            bean.setDNAME(new String(Base64.decode(Data.getString("DNAME")),"UTF-8"));
+            bean.setDSFZH(new String(Base64.decode(Data.getString("DSFZH")),"UTF-8"));
+            bean.setDSEX(new String (Base64.decode(Data.getString("DSEX")),"UTF-8"));
+            bean.setDMZ(new String (Base64.decode(Data.getString("DMZ")),"UTF-8"));
+            bean.setDAGE(Data.getString("DAGE"));
+            bean.setBIRTH(Data.getString("BIRTH"));
+            bean.setDHJLY(new String (Base64.decode(Data.getString("DHJLY")),"UTF-8"));
+            bean.setDXZQH(new String (Base64.decode(Data.getString("DXZQH")),"UTF-8"));
+            bean.setADDRESS(new String (Base64.decode(Data.getString("ADDRESS")),"UTF-8"));
+            bean.setDTIME(Data.getString("DTIME"));
+            bean.setDREASON(new String (Base64.decode(Data.getString("DREASON")),"UTF-8"));
+            bean.setDADDRESS(new String (Base64.decode(Data.getString("DADDRESS")),"UTF-8"));
+            bean.setHHSJ(Data.getString("HHSJ"));
+            bean.setRELATIONSHIP(new String (Base64.decode(Data.getString("RELATIONSHIP")),"UTF-8"));
+            bean.setLINKMAN(new String (Base64.decode(Data.getString("LINKMAN")),"UTF-8"));
+            bean.setLINKMANPHONE(new String (Base64.decode(Data.getString("LINKMANPHONE")),"UTF-8"));
+            bean.setLINKMANADDRESS(new String (Base64.decode(Data.getString("LINKMANADDRESS")),"UTF-8"));
+            bean.setOPERTM(Data.getString("OPERTM"));
+            bean.setOPERID(new String (Base64.decode(Data.getString("OPERID")),"UTF-8"));
+            bean.setOPERDW(new String (Base64.decode(Data.getString("OPERDW")),"UTF-8"));
+
 //            bean.setEvent_laliyuan(Data.getString("event_laliyuan"));
 //            guiji_funeral_mapper.add_guiji_funeral(bean);
 //            guiji_funeral_mapper2.add_guiji_funeral(bean);

+ 61 - 17
test-api/src/main/resources/mapper/Guiji_Funeral_Mapper.xml

@@ -14,38 +14,82 @@
     </sql>
 
     <insert id="add_guiji_funeral" parameterType="com.sooka.model.bo.Guiji_funeral1_the_dead_Bean">
-        insert into t_guiji_medicine_plant (
+        insert into t_guiji_funeral_the_dead (
         <include refid="global_name"></include>
-        plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
+        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>
-        #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
+        #{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_medicine_plant
+        update t_guiji_funeral_the_dead
         <trim prefix="SET" suffixOverrides=",">
             <include refid="update_sql"></include>
-            <if test="plantName != null and plantName != ''">
-                plantName = #{plantName},
+
+            <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="plantAddress != null and plantAddress != ''">
-                plantAddress = #{plantAddress},
+            <if test="DTIME != null and DTIME != ''">
+                DTIME = #{DTIME},
             </if>
-            <if test="plantHectare != null and plantHectare != ''">
-                plantHectare = #{plantHectare},
+            <if test="DREASON != null and DREASON != ''">
+                DREASON = #{DREASON},
             </if>
-            <if test="produceTons != null and produceTons != ''">
-                produceTons = #{produceTons},
+            <if test="HHSJ != null and HHSJ != ''">
+                HHSJ = #{HHSJ},
             </if>
-            <if test="produceValue != null and produceValue != ''">
-                produceValue = #{produceValue},
+            <if test="DADDRESS != null and DADDRESS != ''">
+                DADDRESS = #{DADDRESS},
             </if>
-            <if test="plantYear != null and plantYear != ''">
-                plantYear = #{plantYear},
+            <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}
+        where id=#{id}
     </update>
 
 

+ 210 - 0
test-api/src/main/resources/mapper/Guiji_Funeral_Mapper2.xml

@@ -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>