Commit 30e345ff6de3d52e0e313933535637c9c078e173

Authored by wtt
1 parent 102071bd2c

3.0、2.0建档代码

Showing 1 changed file with 22 additions and 7 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ 30e345f
... ... @@ -57,6 +57,7 @@
57 57 import java.io.IOException;
58 58 import java.io.OutputStream;
59 59 import java.sql.*;
  60 +import java.text.SimpleDateFormat;
60 61 import java.util.*;
61 62 import java.util.Date;
62 63 import java.util.concurrent.Future;
63 64  
64 65  
65 66  
66 67  
67 68  
... ... @@ -751,20 +752,24 @@
751 752 * @return
752 753 */
753 754 private JSONObject getQueryParam(Patients patients) {
  755 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
754 756 JSONObject jsonObject = new JSONObject(64);
755 757 // TODO 2019/6/5 13:21 dongqing 数据组装
756   - jsonObject.put("id", patients.getId());
757 758 jsonObject.put("P_NAME", patients.getUsername());//姓名
758 759 jsonObject.put("P_CARDTYPE", patients.getPcerteTypeId());//证件类别
759 760 jsonObject.put("P_CARDNO", patients.getCardNo());//证件号码
760   - jsonObject.put("P_BIRTHDAY", patients.getBirth());//出生日期
  761 + jsonObject.put("P_BIRTHDAY", sdf.format(patients.getBirth()));//出生日期
761 762 jsonObject.put("P_COUNTRY", patients.getPcountryId());//国籍
762 763 jsonObject.put("P_NATION", patients.getPnationId());//民族
  764 + jsonObject.put("P_EDUCATIONLEVEL", "");//文化程度
  765 + jsonObject.put("P_OCCUPATIONID", "");//职业
763 766 jsonObject.put("P_MOBILEPHONE", patients.getPhone());//联系电话
764 767 jsonObject.put("P_UNITWORK", patients.getPworkUnit());//工作单位
  768 + jsonObject.put("P_JIATINGNIANRENJUNSHOURU", "");//家庭年人均收入
765 769 jsonObject.put("P_RRPROVINCE", patients.getProvinceId());//户口——省
766 770 jsonObject.put("P_RRCITY", patients.getCityId());//户口——市
767 771 jsonObject.put("P_RRCOUNTY", patients.getAreaId());//户口——区县
  772 + jsonObject.put("P_RRTOWNSHIP", "");//户口——乡镇
768 773 jsonObject.put("P_RRSTREET", patients.getStreetId());//户口——街道
769 774 jsonObject.put("P_ADDRESSPROVINCE", patients.getProvinceRegisterId());//省份
770 775 jsonObject.put("P_ADDRESSCITY", patients.getCityRegisterId());//城市
771 776  
772 777  
... ... @@ -773,13 +778,23 @@
773 778 jsonObject.put("P_POSTPARTUMPROVINCE", patients.getProvincePostRestId());//产后——省
774 779 jsonObject.put("P_POSTPARTUMCITY", patients.getCityPostRestId());//产后——市
775 780 jsonObject.put("P_POSTPARTUMCOUNTY", patients.getAreaPostRestId());//产后——区县
  781 + jsonObject.put("P_POSTPARTUMTOWNSHIP", "");//产后——乡镇
776 782 jsonObject.put("P_POSTPARTUMSTREET", patients.getStreetPostRestId());//产后——街道
777   -// jsonObject.put("P_RESIDETYPE", patients.getId());//居住类别(0:本地 1:非本地居住一年以下 2:非本地居住一年以上)
778   -// jsonObject.put("P_ACCOUNTTYPE", patients.getId());//户口类别(0:非农业户口 1:农业户口)
  783 + jsonObject.put("P_ADDRESSVILLAGE", "");
  784 + jsonObject.put("P_RRVILLAGE", "");
  785 + jsonObject.put("P_POSTPARTUMVILLAGE", "");
  786 + jsonObject.put("P_RESIDETYPE", "");
779 787 jsonObject.put("P_HUSBANDNAME", patients.getHusbandName());//丈夫姓名
780 788 jsonObject.put("P_HUSBANDCARDTYPE", patients.getHcertificateTypeId());//丈夫证件类型
781 789 jsonObject.put("P_HUSBANDCARDNO", patients.getHusbandBirth());//丈夫证件号码
782   - jsonObject.put("P_HUSBANDBIRTHDAY", patients.getHusbandBirth());//丈夫出生日期
  790 + jsonObject.put("P_HUSBANDBIRTHDAY", sdf.format(patients.getHusbandBirth()));//丈夫出生日期
  791 + jsonObject.put("P_HUSBANDEDUCATIONLEVEL","");
  792 + jsonObject.put("P_HUSBANDOCCUPATIONID","");
  793 + jsonObject.put("P_HUSBANDRRTOWNSHIP","");
  794 + jsonObject.put("P_HUSBANDRRVILLAGE","");
  795 + jsonObject.put("P_LASTMENSTRUALPERIOD","");
  796 + jsonObject.put("P_ISVIP","");
  797 + jsonObject.put("P_SERVICETYPE","");
783 798 jsonObject.put("P_HUSBANDCOUNTRY", patients.getHcountryId());//丈夫国籍
784 799 jsonObject.put("P_HUSBANDNATION", patients.getHnationId());//丈夫民族
785 800 jsonObject.put("P_HUSBANDMOBILEPHONE", patients.getHusbandPhone());//丈夫联系电话
786 801  
... ... @@ -789,10 +804,10 @@
789 804 jsonObject.put("P_HUSBANDRRCOUNTY", patients.getHareaRegisterId());//丈夫户口所在地 县
790 805 jsonObject.put("P_HUSBANDRRSTREET", patients.getHstreetRegisterId());//丈夫户口所在地 街道
791 806 jsonObject.put("P_CLINICNO", patients.getVcCardNo());//条码号
792   - jsonObject.put("P_HOSPITALID", patients.getBookbuildingDoctor());//建档人
  807 + jsonObject.put("P_DOCID", patients.getBookbuildingDoctor());//建档人
793 808 //让写死桃城区,董勤说最后定
794 809 jsonObject.put("P_HOSPITALID", "todo");//建党机构
795   - jsonObject.put("P_ISVIP", patients.getBookbuildingDate());//建档时间
  810 + jsonObject.put("P_FILINGTIME", sdf.format(patients.getBookbuildingDate()));//建档时间
796 811  
797 812 if (patients.getReqHusband() != null) {//丈夫信息是否必须
798 813 if (patients.getReqHusband()) {