Commit e31727855f9c2e736de49b7ee9b66f68d03b0a6d

Authored by shiyang
1 parent 6f4191c7ed

公卫2.0-新增新生儿家庭访视-上传接口

Showing 4 changed files with 1043 additions and 34 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/lhxfy/model/SaveChildHomeVisitInfo.java View file @ e317278
  1 +package com.lyms.hospitalapi.lhxfy.model;
  2 +
  3 +import com.lyms.platform.common.utils.DateUtil;
  4 +import com.lyms.platform.common.utils.StringUtils;
  5 +import com.lyms.platform.permission.dao.master.CouponMapper;
  6 +import com.lyms.platform.pojo.BabyModel;
  7 +import com.lyms.platform.pojo.NewbornVisit;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +
  10 +import java.util.List;
  11 +
  12 +/**
  13 + * 公卫2.0-新增新生儿家庭访视
  14 + */
  15 +public class SaveChildHomeVisitInfo {
  16 + private Integer isAppCreate; //类型:Number 必有字段 备注:各厂商对接时,再确定具体的值
  17 + private String standard; //类型:String 必有字段 备注:国家规范版本号
  18 + private String visitDoctorId; //类型:String 必有字段 备注:访视医师ID
  19 + private String visitDoctorName; //类型:String 必有字段 备注:访视医师姓名
  20 + private String newbornSexCode; //类型:String 必有字段 备注:新生儿性别代码
  21 + private String newbornIdNo; //类型:String 必有字段 备注:新生儿身份证号码
  22 + private String newbornBirthDate; //类型:String 必有字段 备注:新生儿出生日期
  23 + private String fatherIdno; //类型:String 可有字段 备注:父亲身份证号
  24 + private String motherIdno; //类型:String 可有字段 备注:母亲身份证号
  25 + private String presentAddrProvince; //类型:String 可有字段 备注:家庭住址
  26 + private String fatherName; //类型:String 可有字段 备注:父亲姓名
  27 + private String fatherOccupName; //类型:String 可有字段 备注:父亲职业类别名称
  28 + private String fatherTelNo; //类型:String 可有字段 备注:父亲电话号码
  29 + private String referralContacts; //类型:String 可有字段 备注:转诊联系人(济南规范)
  30 + private String fatherBirthDate; //类型:String 可有字段 备注:父亲出生日期
  31 + private String referralResultCode; //类型:String 可有字段 备注:转诊结果(1到位2未到位)(济南规范)
  32 + private String referralOrgName; //类型:String 可有字段 备注:转诊机构名称(济南规范)
  33 + private String referralDepartment; //类型:String 可有字段 备注:转诊科室名称(济南规范)
  34 + private String referralTel; //类型:String 可有字段 备注:转诊电话(济南规范)
  35 + private String fatherWorkUnit; //类型:String 可有字段 备注:无
  36 + private String motherName; //类型:String 必有字段 备注:母亲姓名
  37 + private String motherOccupName; //类型:String 必有字段 备注:母亲职业类别名称
  38 + private String motherTelNo; //类型:String 必有字段 备注:母亲电话号码
  39 + private String motherBirthDate; //类型:String 必有字段 备注:母亲出生日期
  40 + private Integer birthGestWeeks; //类型:Number 必有字段 备注:出生孕周
  41 + private Integer birthGestDays; //类型:Number 必有字段 备注:出生孕天
  42 + private String deliveryOrgName; //类型:String 可有字段 备注:助产机构名称
  43 + private String asphyxiaCode; //类型:String 可有字段 备注:新生儿窒息标志
  44 + private String malformCode; //类型:String 可有字段 备注:新生儿畸形标志
  45 + private String hearingScreenCode; //类型:String 可有字段 备注:新生儿听力筛查情况代码
  46 + private String feedWayCode; //类型:String 可有字段 备注:喂养方式类别代码
  47 + private String apgarScoreCode; //类型:String 可有字段 备注:Apgar评分代码(是否不详 1是0否)
  48 + private String apgarScore; //类型:String 可有字段 备注:Apgar评分值(分)
  49 + private String apgarScore1; //类型:String 可有字段 备注:1分钟Apgar评分(apgarScoreCode为1不详时填写)
  50 + private String apgarScore5; //类型:String 可有字段 备注:5分钟Apgar评分(apgarScoreCode为1不详时填写)
  51 + private String vomitCode; //类型:String 可有字段 备注:呕吐标志
  52 + private String birthWeight; //类型:String 可有字段 备注:出生体重(kg)
  53 + private String birthLength; //类型:String 可有字段 备注:出生身长(cm)
  54 + private String motherHdcpOthersDesc; //类型:String 可有字段 备注:母亲妊娠期其他患病描述
  55 + private String malformDesc; //类型:String 可有字段 备注:新生儿畸形描述
  56 + private String newbornComplexionCode; //类型:String 可有字段 备注:新生儿面色代码
  57 + private String newbornComplexionOthersDesc; //类型:String 可有字段 备注:新生儿面色其他描述
  58 + private String bregmaTensionCode; //类型:String 可有字段 备注:前囟张力代码
  59 + private String bregmaTensionOthersDesc; //类型:String 可有字段 备注:前囟张力其他描述
  60 + private String eyeAbnormCode; //类型:String 可有字段 备注:眼外观检查异常标志
  61 + private String earAbnormCode; //类型:String 可有字段 备注:耳外观检查异常标志
  62 + private String earAbnormDesc; //类型:String 可有字段 备注:耳外观检查异常结果描述
  63 + private String anusCode; //类型:String 可有字段 备注:肛门检查异常标志
  64 + private String anusAbnormDesc; //类型:String 可有字段 备注:肛门检查异常结果描述
  65 + private String heartAbnormCode; //类型:String 可有字段 备注:心脏听诊异常标志
  66 + private String heartAbnormDesc; //类型:String 可有字段 备注:心脏听诊异常结果描述
  67 + private String eyeAbnormDesc; //类型:String 可有字段 备注:眼外观检查异常结果描述
  68 + private String limbsAbnormCode; //类型:String 可有字段 备注:四肢活动度异常标志
  69 + private String limbsAbnormDesc; //类型:String 可有字段 备注:四肢活动度异常结果描述
  70 + private String neckMassCode; //类型:String 可有字段 备注:颈部包块标志
  71 + private String neckMassDesc; //类型:String 可有字段 备注:颈部包块检查结果描述
  72 + private String noseAbnormCode; //类型:String 可有字段 备注:鼻检查异常标志
  73 + private String noseAbnormDesc; //类型:String 可有字段 备注:鼻检查异常结果描述
  74 + private String skinCode; //类型:String 可有字段 备注:皮肤检查结果代码
  75 + private String skinOthersDesc; //类型:String 可有字段 备注:皮肤检查其他描述
  76 + private String oralAbnormCode; //类型:String 可有字段 备注:口腔检查异常标志
  77 + private String oralAbnormDesc; //类型:String 可有字段 备注:口腔检查异常结果描述
  78 + private String chestCode; //类型:String 可有字段 备注:胸部检查异常标志
  79 + private String chestAbnormDesc; //类型:String 可有字段 备注:胸部检查异常描述
  80 + private String abdomenAbnormCode; //类型:String 可有字段 备注:腹部触诊异常标志
  81 + private String abdomenAbnormDesc; //类型:String 可有字段 备注:腹部触诊异常结果描述
  82 + private String spineAbnormCode; //类型:String 可有字段 备注:脊柱检查异常标志
  83 + private String spineAbnormDesc; //类型:String 可有字段 备注:脊柱检查异常结果描述
  84 + private String genitaliaCode; //类型:String 可有字段 备注:外生殖器检查异常标志
  85 + private String genitaliaAbnormDesc; //类型:String 可有字段 备注:外生殖器检查异常结果描述
  86 + private String umbCordResultCode; //类型:String 可有字段 备注:脐带检查结果代码
  87 + private String umbCordOthersDesc; //类型:String 可有字段 备注:脐带检查结果其他描述
  88 + private String referralCode; //类型:String 可有字段 备注:转诊标志
  89 + private String referralReason; //类型:String 可有字段 备注:转诊原因
  90 + private String refertoDeptName; //类型:String 可有字段 备注:转入机构科室名称
  91 + private List<Object> recordChoice; //类型:Array 可有字段 备注:选项指标记录,用来前后交互传输数据使用的
  92 + private String newbornName; //类型:String 可有字段 备注:新生儿姓名
  93 + private String newbornVisitFormNo; //类型:String 可有字段 备注:新生儿家庭访视记录表单编号
  94 + private String nextVisitTypeCode; //类型:String 可有字段 备注:下次一次随访类型
  95 + private String weight; //类型:String 可有字段 备注:体重(kg)
  96 + private String feedingAmountEachTime; //类型:String 可有字段 备注:每次吃奶量(mL)
  97 + private String dailyFeedingTimes; //类型:String 可有字段 备注:每天吃奶次数
  98 + private String stoolPropCode; //类型:String 可有字段 备注:新生儿大便性状代码
  99 + private String stoolTimes; //类型:String 可有字段 备注:大便次数(次/日)
  100 + private String bodyTemperature; //类型:String 可有字段 备注:体温(℃)
  101 + private String pulses; //类型:String 可有字段 备注:心(脉)率(次/分钟)
  102 + private String breathingRate; //类型:String 可有字段 备注:呼吸频率(次/分钟)
  103 + private String bregmaHorizDiameter; //类型:String 可有字段 备注:前囟横径(cm)
  104 + private String bregmaVertDiameter; //类型:String 可有字段 备注:前囟纵径(cm)
  105 + private String thisVisitDate; //类型:String 必有字段 备注:本次访视日期
  106 + private String nextVisitDate; //类型:String 可有字段 备注:下次访视日期
  107 + private String nextVisitPlace; //类型:String 可有字段 备注:下次访视地点
  108 + private String personInfoId; //类型:String 必有字段 备注:个人档案ID
  109 + @Autowired
  110 + private CouponMapper couponMapper;
  111 + public void convertToDataModel(NewbornVisit newbornVisit){
  112 + setIsAppCreate(null==newbornVisit.getIsAppCreate()?0:newbornVisit.getIsAppCreate());
  113 + setStandard(StringUtils.isEmpty(newbornVisit.getStandard())?"无":newbornVisit.getStandard());
  114 + setVisitDoctorId(StringUtils.isEmpty(newbornVisit.getDoctor())?"无":newbornVisit.getDoctor());
  115 + String visitDoctorName=couponMapper.findUserName(newbornVisit.getDoctor());
  116 + setVisitDoctorName(StringUtils.isEmpty(visitDoctorName)?"无":visitDoctorName);
  117 + setNewbornSexCode(StringUtils.isEmpty(newbornVisit.getNewbornSexCode())?"无":newbornVisit.getNewbornSexCode());
  118 + setNewbornIdNo(StringUtils.isEmpty(newbornVisit.getNewbornIdNo())?"无":newbornVisit.getNewbornIdNo());
  119 + setNewbornBirthDate(StringUtils.isEmpty(newbornVisit.getNewbornBirthDate())?"无":newbornVisit.getNewbornBirthDate());
  120 + setFatherIdno(null);
  121 + setMotherIdno(null);
  122 + setPresentAddrProvince(null);
  123 + setFatherName(null);
  124 + setFatherOccupName(null);
  125 + setFatherTelNo(null);
  126 + setReferralContacts(null);
  127 + setFatherBirthDate(null);
  128 + setReferralResultCode(null);
  129 + setReferralOrgName(null);
  130 + setReferralDepartment(null);
  131 + setReferralTel(null);
  132 + setFatherWorkUnit(null);
  133 + setMotherName(StringUtils.isEmpty(newbornVisit.getMotherName())?"无":newbornVisit.getMotherName());
  134 + setMotherOccupName(StringUtils.isEmpty(newbornVisit.getMotherOccupName())?"无":newbornVisit.getMotherOccupName());
  135 + setMotherTelNo(StringUtils.isEmpty(newbornVisit.getMotherTelNo())?"无":newbornVisit.getMotherTelNo());
  136 + setMotherBirthDate(StringUtils.isEmpty(newbornVisit.getMotherBirthDate())?"无":newbornVisit.getMotherBirthDate());
  137 + setBirthGestWeeks(null==newbornVisit.getCsWeek()?0:newbornVisit.getCsWeek());
  138 + setBirthGestDays(null==newbornVisit.getCsDay()?0:newbornVisit.getCsDay());
  139 + setDeliveryOrgName(null);
  140 + setAsphyxiaCode(null);
  141 + setMalformCode(null);
  142 + setHearingScreenCode(null);
  143 + setFeedWayCode(null);
  144 + setApgarScoreCode(null);
  145 + setApgarScore(null);
  146 + setApgarScore1(null);
  147 + setApgarScore5(null);
  148 + setVomitCode(null);
  149 + setBirthWeight(null);
  150 + setBirthLength(null);
  151 + setMotherHdcpOthersDesc(null);
  152 + setMalformDesc(null);
  153 + setNewbornComplexionCode(null);
  154 + setNewbornComplexionOthersDesc(null);
  155 + setBregmaTensionCode(null);
  156 + setBregmaTensionOthersDesc(null);
  157 + setEyeAbnormCode(null);
  158 + setEarAbnormCode(null);
  159 + setEarAbnormDesc(null);
  160 + setAnusCode(null);
  161 + setAnusAbnormDesc(null);
  162 + setHeartAbnormCode(null);
  163 + setHeartAbnormDesc(null);
  164 + setEyeAbnormDesc(null);
  165 + setLimbsAbnormCode(null);
  166 + setLimbsAbnormDesc(null);
  167 + setNeckMassCode(null);
  168 + setNeckMassDesc(null);
  169 + setNoseAbnormCode(null);
  170 + setNoseAbnormDesc(null);
  171 + setSkinCode(null);
  172 + setSkinOthersDesc(null);
  173 + setOralAbnormCode(null);
  174 + setOralAbnormDesc(null);
  175 + setChestCode(null);
  176 + setChestAbnormDesc(null);
  177 + setAbdomenAbnormCode(null);
  178 + setAbdomenAbnormDesc(null);
  179 + setSpineAbnormCode(null);
  180 + setSpineAbnormDesc(null);
  181 + setGenitaliaCode(null);
  182 + setGenitaliaAbnormDesc(null);
  183 + setUmbCordResultCode(null);
  184 + setUmbCordOthersDesc(null);
  185 + setReferralCode(null);
  186 + setReferralReason(null);
  187 + setRefertoDeptName(null);
  188 + setRecordChoice(null);
  189 + setNewbornName(null);
  190 + setNewbornVisitFormNo(null);
  191 + setNextVisitTypeCode(null);
  192 + setWeight(null);
  193 + setFeedingAmountEachTime(null);
  194 + setDailyFeedingTimes(null);
  195 + setStoolPropCode(null);
  196 + setStoolTimes(null);
  197 + setBodyTemperature(null);
  198 + setPulses(null);
  199 + setBreathingRate(null);
  200 + setBregmaHorizDiameter(null);
  201 + setBregmaVertDiameter(null);
  202 + String thisVisitDate=DateUtil.getyyyy_MM_dd(newbornVisit.getCheckTime());
  203 + setThisVisitDate(StringUtils.isEmpty(thisVisitDate)?"无":thisVisitDate);
  204 + setNextVisitDate(null);
  205 + setNextVisitPlace(null);
  206 + setPersonInfoId(StringUtils.isEmpty(newbornVisit.getBabyId())?"无":newbornVisit.getBabyId());
  207 + }
  208 +
  209 + public Integer getIsAppCreate() {
  210 + return isAppCreate;
  211 + }
  212 +
  213 + public void setIsAppCreate(Integer isAppCreate) {
  214 + this.isAppCreate = isAppCreate;
  215 + }
  216 +
  217 + public String getStandard() {
  218 + return standard;
  219 + }
  220 +
  221 + public void setStandard(String standard) {
  222 + this.standard = standard;
  223 + }
  224 +
  225 + public String getVisitDoctorId() {
  226 + return visitDoctorId;
  227 + }
  228 +
  229 + public void setVisitDoctorId(String visitDoctorId) {
  230 + this.visitDoctorId = visitDoctorId;
  231 + }
  232 +
  233 + public String getVisitDoctorName() {
  234 + return visitDoctorName;
  235 + }
  236 +
  237 + public void setVisitDoctorName(String visitDoctorName) {
  238 + this.visitDoctorName = visitDoctorName;
  239 + }
  240 +
  241 + public String getNewbornSexCode() {
  242 + return newbornSexCode;
  243 + }
  244 +
  245 + public void setNewbornSexCode(String newbornSexCode) {
  246 + this.newbornSexCode = newbornSexCode;
  247 + }
  248 +
  249 + public String getNewbornIdNo() {
  250 + return newbornIdNo;
  251 + }
  252 +
  253 + public void setNewbornIdNo(String newbornIdNo) {
  254 + this.newbornIdNo = newbornIdNo;
  255 + }
  256 +
  257 + public String getNewbornBirthDate() {
  258 + return newbornBirthDate;
  259 + }
  260 +
  261 + public void setNewbornBirthDate(String newbornBirthDate) {
  262 + this.newbornBirthDate = newbornBirthDate;
  263 + }
  264 +
  265 + public String getFatherIdno() {
  266 + return fatherIdno;
  267 + }
  268 +
  269 + public void setFatherIdno(String fatherIdno) {
  270 + this.fatherIdno = fatherIdno;
  271 + }
  272 +
  273 + public String getMotherIdno() {
  274 + return motherIdno;
  275 + }
  276 +
  277 + public void setMotherIdno(String motherIdno) {
  278 + this.motherIdno = motherIdno;
  279 + }
  280 +
  281 + public String getPresentAddrProvince() {
  282 + return presentAddrProvince;
  283 + }
  284 +
  285 + public void setPresentAddrProvince(String presentAddrProvince) {
  286 + this.presentAddrProvince = presentAddrProvince;
  287 + }
  288 +
  289 + public String getFatherName() {
  290 + return fatherName;
  291 + }
  292 +
  293 + public void setFatherName(String fatherName) {
  294 + this.fatherName = fatherName;
  295 + }
  296 +
  297 + public String getFatherOccupName() {
  298 + return fatherOccupName;
  299 + }
  300 +
  301 + public void setFatherOccupName(String fatherOccupName) {
  302 + this.fatherOccupName = fatherOccupName;
  303 + }
  304 +
  305 + public String getFatherTelNo() {
  306 + return fatherTelNo;
  307 + }
  308 +
  309 + public void setFatherTelNo(String fatherTelNo) {
  310 + this.fatherTelNo = fatherTelNo;
  311 + }
  312 +
  313 + public String getReferralContacts() {
  314 + return referralContacts;
  315 + }
  316 +
  317 + public void setReferralContacts(String referralContacts) {
  318 + this.referralContacts = referralContacts;
  319 + }
  320 +
  321 + public String getFatherBirthDate() {
  322 + return fatherBirthDate;
  323 + }
  324 +
  325 + public void setFatherBirthDate(String fatherBirthDate) {
  326 + this.fatherBirthDate = fatherBirthDate;
  327 + }
  328 +
  329 + public String getReferralResultCode() {
  330 + return referralResultCode;
  331 + }
  332 +
  333 + public void setReferralResultCode(String referralResultCode) {
  334 + this.referralResultCode = referralResultCode;
  335 + }
  336 +
  337 + public String getReferralOrgName() {
  338 + return referralOrgName;
  339 + }
  340 +
  341 + public void setReferralOrgName(String referralOrgName) {
  342 + this.referralOrgName = referralOrgName;
  343 + }
  344 +
  345 + public String getReferralDepartment() {
  346 + return referralDepartment;
  347 + }
  348 +
  349 + public void setReferralDepartment(String referralDepartment) {
  350 + this.referralDepartment = referralDepartment;
  351 + }
  352 +
  353 + public String getReferralTel() {
  354 + return referralTel;
  355 + }
  356 +
  357 + public void setReferralTel(String referralTel) {
  358 + this.referralTel = referralTel;
  359 + }
  360 +
  361 + public String getFatherWorkUnit() {
  362 + return fatherWorkUnit;
  363 + }
  364 +
  365 + public void setFatherWorkUnit(String fatherWorkUnit) {
  366 + this.fatherWorkUnit = fatherWorkUnit;
  367 + }
  368 +
  369 + public String getMotherName() {
  370 + return motherName;
  371 + }
  372 +
  373 + public void setMotherName(String motherName) {
  374 + this.motherName = motherName;
  375 + }
  376 +
  377 + public String getMotherOccupName() {
  378 + return motherOccupName;
  379 + }
  380 +
  381 + public void setMotherOccupName(String motherOccupName) {
  382 + this.motherOccupName = motherOccupName;
  383 + }
  384 +
  385 + public String getMotherTelNo() {
  386 + return motherTelNo;
  387 + }
  388 +
  389 + public void setMotherTelNo(String motherTelNo) {
  390 + this.motherTelNo = motherTelNo;
  391 + }
  392 +
  393 + public String getMotherBirthDate() {
  394 + return motherBirthDate;
  395 + }
  396 +
  397 + public void setMotherBirthDate(String motherBirthDate) {
  398 + this.motherBirthDate = motherBirthDate;
  399 + }
  400 +
  401 + public Integer getBirthGestWeeks() {
  402 + return birthGestWeeks;
  403 + }
  404 +
  405 + public void setBirthGestWeeks(Integer birthGestWeeks) {
  406 + this.birthGestWeeks = birthGestWeeks;
  407 + }
  408 +
  409 + public Integer getBirthGestDays() {
  410 + return birthGestDays;
  411 + }
  412 +
  413 + public void setBirthGestDays(Integer birthGestDays) {
  414 + this.birthGestDays = birthGestDays;
  415 + }
  416 +
  417 + public String getDeliveryOrgName() {
  418 + return deliveryOrgName;
  419 + }
  420 +
  421 + public void setDeliveryOrgName(String deliveryOrgName) {
  422 + this.deliveryOrgName = deliveryOrgName;
  423 + }
  424 +
  425 + public String getAsphyxiaCode() {
  426 + return asphyxiaCode;
  427 + }
  428 +
  429 + public void setAsphyxiaCode(String asphyxiaCode) {
  430 + this.asphyxiaCode = asphyxiaCode;
  431 + }
  432 +
  433 + public String getMalformCode() {
  434 + return malformCode;
  435 + }
  436 +
  437 + public void setMalformCode(String malformCode) {
  438 + this.malformCode = malformCode;
  439 + }
  440 +
  441 + public String getHearingScreenCode() {
  442 + return hearingScreenCode;
  443 + }
  444 +
  445 + public void setHearingScreenCode(String hearingScreenCode) {
  446 + this.hearingScreenCode = hearingScreenCode;
  447 + }
  448 +
  449 + public String getFeedWayCode() {
  450 + return feedWayCode;
  451 + }
  452 +
  453 + public void setFeedWayCode(String feedWayCode) {
  454 + this.feedWayCode = feedWayCode;
  455 + }
  456 +
  457 + public String getApgarScoreCode() {
  458 + return apgarScoreCode;
  459 + }
  460 +
  461 + public void setApgarScoreCode(String apgarScoreCode) {
  462 + this.apgarScoreCode = apgarScoreCode;
  463 + }
  464 +
  465 + public String getApgarScore() {
  466 + return apgarScore;
  467 + }
  468 +
  469 + public void setApgarScore(String apgarScore) {
  470 + this.apgarScore = apgarScore;
  471 + }
  472 +
  473 + public String getApgarScore1() {
  474 + return apgarScore1;
  475 + }
  476 +
  477 + public void setApgarScore1(String apgarScore1) {
  478 + this.apgarScore1 = apgarScore1;
  479 + }
  480 +
  481 + public String getApgarScore5() {
  482 + return apgarScore5;
  483 + }
  484 +
  485 + public void setApgarScore5(String apgarScore5) {
  486 + this.apgarScore5 = apgarScore5;
  487 + }
  488 +
  489 + public String getVomitCode() {
  490 + return vomitCode;
  491 + }
  492 +
  493 + public void setVomitCode(String vomitCode) {
  494 + this.vomitCode = vomitCode;
  495 + }
  496 +
  497 + public String getBirthWeight() {
  498 + return birthWeight;
  499 + }
  500 +
  501 + public void setBirthWeight(String birthWeight) {
  502 + this.birthWeight = birthWeight;
  503 + }
  504 +
  505 + public String getBirthLength() {
  506 + return birthLength;
  507 + }
  508 +
  509 + public void setBirthLength(String birthLength) {
  510 + this.birthLength = birthLength;
  511 + }
  512 +
  513 + public String getMotherHdcpOthersDesc() {
  514 + return motherHdcpOthersDesc;
  515 + }
  516 +
  517 + public void setMotherHdcpOthersDesc(String motherHdcpOthersDesc) {
  518 + this.motherHdcpOthersDesc = motherHdcpOthersDesc;
  519 + }
  520 +
  521 + public String getMalformDesc() {
  522 + return malformDesc;
  523 + }
  524 +
  525 + public void setMalformDesc(String malformDesc) {
  526 + this.malformDesc = malformDesc;
  527 + }
  528 +
  529 + public String getNewbornComplexionCode() {
  530 + return newbornComplexionCode;
  531 + }
  532 +
  533 + public void setNewbornComplexionCode(String newbornComplexionCode) {
  534 + this.newbornComplexionCode = newbornComplexionCode;
  535 + }
  536 +
  537 + public String getNewbornComplexionOthersDesc() {
  538 + return newbornComplexionOthersDesc;
  539 + }
  540 +
  541 + public void setNewbornComplexionOthersDesc(String newbornComplexionOthersDesc) {
  542 + this.newbornComplexionOthersDesc = newbornComplexionOthersDesc;
  543 + }
  544 +
  545 + public String getBregmaTensionCode() {
  546 + return bregmaTensionCode;
  547 + }
  548 +
  549 + public void setBregmaTensionCode(String bregmaTensionCode) {
  550 + this.bregmaTensionCode = bregmaTensionCode;
  551 + }
  552 +
  553 + public String getBregmaTensionOthersDesc() {
  554 + return bregmaTensionOthersDesc;
  555 + }
  556 +
  557 + public void setBregmaTensionOthersDesc(String bregmaTensionOthersDesc) {
  558 + this.bregmaTensionOthersDesc = bregmaTensionOthersDesc;
  559 + }
  560 +
  561 + public String getEyeAbnormCode() {
  562 + return eyeAbnormCode;
  563 + }
  564 +
  565 + public void setEyeAbnormCode(String eyeAbnormCode) {
  566 + this.eyeAbnormCode = eyeAbnormCode;
  567 + }
  568 +
  569 + public String getEarAbnormCode() {
  570 + return earAbnormCode;
  571 + }
  572 +
  573 + public void setEarAbnormCode(String earAbnormCode) {
  574 + this.earAbnormCode = earAbnormCode;
  575 + }
  576 +
  577 + public String getEarAbnormDesc() {
  578 + return earAbnormDesc;
  579 + }
  580 +
  581 + public void setEarAbnormDesc(String earAbnormDesc) {
  582 + this.earAbnormDesc = earAbnormDesc;
  583 + }
  584 +
  585 + public String getAnusCode() {
  586 + return anusCode;
  587 + }
  588 +
  589 + public void setAnusCode(String anusCode) {
  590 + this.anusCode = anusCode;
  591 + }
  592 +
  593 + public String getAnusAbnormDesc() {
  594 + return anusAbnormDesc;
  595 + }
  596 +
  597 + public void setAnusAbnormDesc(String anusAbnormDesc) {
  598 + this.anusAbnormDesc = anusAbnormDesc;
  599 + }
  600 +
  601 + public String getHeartAbnormCode() {
  602 + return heartAbnormCode;
  603 + }
  604 +
  605 + public void setHeartAbnormCode(String heartAbnormCode) {
  606 + this.heartAbnormCode = heartAbnormCode;
  607 + }
  608 +
  609 + public String getHeartAbnormDesc() {
  610 + return heartAbnormDesc;
  611 + }
  612 +
  613 + public void setHeartAbnormDesc(String heartAbnormDesc) {
  614 + this.heartAbnormDesc = heartAbnormDesc;
  615 + }
  616 +
  617 + public String getEyeAbnormDesc() {
  618 + return eyeAbnormDesc;
  619 + }
  620 +
  621 + public void setEyeAbnormDesc(String eyeAbnormDesc) {
  622 + this.eyeAbnormDesc = eyeAbnormDesc;
  623 + }
  624 +
  625 + public String getLimbsAbnormCode() {
  626 + return limbsAbnormCode;
  627 + }
  628 +
  629 + public void setLimbsAbnormCode(String limbsAbnormCode) {
  630 + this.limbsAbnormCode = limbsAbnormCode;
  631 + }
  632 +
  633 + public String getLimbsAbnormDesc() {
  634 + return limbsAbnormDesc;
  635 + }
  636 +
  637 + public void setLimbsAbnormDesc(String limbsAbnormDesc) {
  638 + this.limbsAbnormDesc = limbsAbnormDesc;
  639 + }
  640 +
  641 + public String getNeckMassCode() {
  642 + return neckMassCode;
  643 + }
  644 +
  645 + public void setNeckMassCode(String neckMassCode) {
  646 + this.neckMassCode = neckMassCode;
  647 + }
  648 +
  649 + public String getNeckMassDesc() {
  650 + return neckMassDesc;
  651 + }
  652 +
  653 + public void setNeckMassDesc(String neckMassDesc) {
  654 + this.neckMassDesc = neckMassDesc;
  655 + }
  656 +
  657 + public String getNoseAbnormCode() {
  658 + return noseAbnormCode;
  659 + }
  660 +
  661 + public void setNoseAbnormCode(String noseAbnormCode) {
  662 + this.noseAbnormCode = noseAbnormCode;
  663 + }
  664 +
  665 + public String getNoseAbnormDesc() {
  666 + return noseAbnormDesc;
  667 + }
  668 +
  669 + public void setNoseAbnormDesc(String noseAbnormDesc) {
  670 + this.noseAbnormDesc = noseAbnormDesc;
  671 + }
  672 +
  673 + public String getSkinCode() {
  674 + return skinCode;
  675 + }
  676 +
  677 + public void setSkinCode(String skinCode) {
  678 + this.skinCode = skinCode;
  679 + }
  680 +
  681 + public String getSkinOthersDesc() {
  682 + return skinOthersDesc;
  683 + }
  684 +
  685 + public void setSkinOthersDesc(String skinOthersDesc) {
  686 + this.skinOthersDesc = skinOthersDesc;
  687 + }
  688 +
  689 + public String getOralAbnormCode() {
  690 + return oralAbnormCode;
  691 + }
  692 +
  693 + public void setOralAbnormCode(String oralAbnormCode) {
  694 + this.oralAbnormCode = oralAbnormCode;
  695 + }
  696 +
  697 + public String getOralAbnormDesc() {
  698 + return oralAbnormDesc;
  699 + }
  700 +
  701 + public void setOralAbnormDesc(String oralAbnormDesc) {
  702 + this.oralAbnormDesc = oralAbnormDesc;
  703 + }
  704 +
  705 + public String getChestCode() {
  706 + return chestCode;
  707 + }
  708 +
  709 + public void setChestCode(String chestCode) {
  710 + this.chestCode = chestCode;
  711 + }
  712 +
  713 + public String getChestAbnormDesc() {
  714 + return chestAbnormDesc;
  715 + }
  716 +
  717 + public void setChestAbnormDesc(String chestAbnormDesc) {
  718 + this.chestAbnormDesc = chestAbnormDesc;
  719 + }
  720 +
  721 + public String getAbdomenAbnormCode() {
  722 + return abdomenAbnormCode;
  723 + }
  724 +
  725 + public void setAbdomenAbnormCode(String abdomenAbnormCode) {
  726 + this.abdomenAbnormCode = abdomenAbnormCode;
  727 + }
  728 +
  729 + public String getAbdomenAbnormDesc() {
  730 + return abdomenAbnormDesc;
  731 + }
  732 +
  733 + public void setAbdomenAbnormDesc(String abdomenAbnormDesc) {
  734 + this.abdomenAbnormDesc = abdomenAbnormDesc;
  735 + }
  736 +
  737 + public String getSpineAbnormCode() {
  738 + return spineAbnormCode;
  739 + }
  740 +
  741 + public void setSpineAbnormCode(String spineAbnormCode) {
  742 + this.spineAbnormCode = spineAbnormCode;
  743 + }
  744 +
  745 + public String getSpineAbnormDesc() {
  746 + return spineAbnormDesc;
  747 + }
  748 +
  749 + public void setSpineAbnormDesc(String spineAbnormDesc) {
  750 + this.spineAbnormDesc = spineAbnormDesc;
  751 + }
  752 +
  753 + public String getGenitaliaCode() {
  754 + return genitaliaCode;
  755 + }
  756 +
  757 + public void setGenitaliaCode(String genitaliaCode) {
  758 + this.genitaliaCode = genitaliaCode;
  759 + }
  760 +
  761 + public String getGenitaliaAbnormDesc() {
  762 + return genitaliaAbnormDesc;
  763 + }
  764 +
  765 + public void setGenitaliaAbnormDesc(String genitaliaAbnormDesc) {
  766 + this.genitaliaAbnormDesc = genitaliaAbnormDesc;
  767 + }
  768 +
  769 + public String getUmbCordResultCode() {
  770 + return umbCordResultCode;
  771 + }
  772 +
  773 + public void setUmbCordResultCode(String umbCordResultCode) {
  774 + this.umbCordResultCode = umbCordResultCode;
  775 + }
  776 +
  777 + public String getUmbCordOthersDesc() {
  778 + return umbCordOthersDesc;
  779 + }
  780 +
  781 + public void setUmbCordOthersDesc(String umbCordOthersDesc) {
  782 + this.umbCordOthersDesc = umbCordOthersDesc;
  783 + }
  784 +
  785 + public String getReferralCode() {
  786 + return referralCode;
  787 + }
  788 +
  789 + public void setReferralCode(String referralCode) {
  790 + this.referralCode = referralCode;
  791 + }
  792 +
  793 + public String getReferralReason() {
  794 + return referralReason;
  795 + }
  796 +
  797 + public void setReferralReason(String referralReason) {
  798 + this.referralReason = referralReason;
  799 + }
  800 +
  801 + public String getRefertoDeptName() {
  802 + return refertoDeptName;
  803 + }
  804 +
  805 + public void setRefertoDeptName(String refertoDeptName) {
  806 + this.refertoDeptName = refertoDeptName;
  807 + }
  808 +
  809 + public List<Object> getRecordChoice() {
  810 + return recordChoice;
  811 + }
  812 +
  813 + public void setRecordChoice(List<Object> recordChoice) {
  814 + this.recordChoice = recordChoice;
  815 + }
  816 +
  817 + public String getNewbornName() {
  818 + return newbornName;
  819 + }
  820 +
  821 + public void setNewbornName(String newbornName) {
  822 + this.newbornName = newbornName;
  823 + }
  824 +
  825 + public String getNewbornVisitFormNo() {
  826 + return newbornVisitFormNo;
  827 + }
  828 +
  829 + public void setNewbornVisitFormNo(String newbornVisitFormNo) {
  830 + this.newbornVisitFormNo = newbornVisitFormNo;
  831 + }
  832 +
  833 + public String getNextVisitTypeCode() {
  834 + return nextVisitTypeCode;
  835 + }
  836 +
  837 + public void setNextVisitTypeCode(String nextVisitTypeCode) {
  838 + this.nextVisitTypeCode = nextVisitTypeCode;
  839 + }
  840 +
  841 + public String getWeight() {
  842 + return weight;
  843 + }
  844 +
  845 + public void setWeight(String weight) {
  846 + this.weight = weight;
  847 + }
  848 +
  849 + public String getFeedingAmountEachTime() {
  850 + return feedingAmountEachTime;
  851 + }
  852 +
  853 + public void setFeedingAmountEachTime(String feedingAmountEachTime) {
  854 + this.feedingAmountEachTime = feedingAmountEachTime;
  855 + }
  856 +
  857 + public String getDailyFeedingTimes() {
  858 + return dailyFeedingTimes;
  859 + }
  860 +
  861 + public void setDailyFeedingTimes(String dailyFeedingTimes) {
  862 + this.dailyFeedingTimes = dailyFeedingTimes;
  863 + }
  864 +
  865 + public String getStoolPropCode() {
  866 + return stoolPropCode;
  867 + }
  868 +
  869 + public void setStoolPropCode(String stoolPropCode) {
  870 + this.stoolPropCode = stoolPropCode;
  871 + }
  872 +
  873 + public String getStoolTimes() {
  874 + return stoolTimes;
  875 + }
  876 +
  877 + public void setStoolTimes(String stoolTimes) {
  878 + this.stoolTimes = stoolTimes;
  879 + }
  880 +
  881 + public String getBodyTemperature() {
  882 + return bodyTemperature;
  883 + }
  884 +
  885 + public void setBodyTemperature(String bodyTemperature) {
  886 + this.bodyTemperature = bodyTemperature;
  887 + }
  888 +
  889 + public String getPulses() {
  890 + return pulses;
  891 + }
  892 +
  893 + public void setPulses(String pulses) {
  894 + this.pulses = pulses;
  895 + }
  896 +
  897 + public String getBreathingRate() {
  898 + return breathingRate;
  899 + }
  900 +
  901 + public void setBreathingRate(String breathingRate) {
  902 + this.breathingRate = breathingRate;
  903 + }
  904 +
  905 + public String getBregmaHorizDiameter() {
  906 + return bregmaHorizDiameter;
  907 + }
  908 +
  909 + public void setBregmaHorizDiameter(String bregmaHorizDiameter) {
  910 + this.bregmaHorizDiameter = bregmaHorizDiameter;
  911 + }
  912 +
  913 + public String getBregmaVertDiameter() {
  914 + return bregmaVertDiameter;
  915 + }
  916 +
  917 + public void setBregmaVertDiameter(String bregmaVertDiameter) {
  918 + this.bregmaVertDiameter = bregmaVertDiameter;
  919 + }
  920 +
  921 + public String getThisVisitDate() {
  922 + return thisVisitDate;
  923 + }
  924 +
  925 + public void setThisVisitDate(String thisVisitDate) {
  926 + this.thisVisitDate = thisVisitDate;
  927 + }
  928 +
  929 + public String getNextVisitDate() {
  930 + return nextVisitDate;
  931 + }
  932 +
  933 + public void setNextVisitDate(String nextVisitDate) {
  934 + this.nextVisitDate = nextVisitDate;
  935 + }
  936 +
  937 + public String getNextVisitPlace() {
  938 + return nextVisitPlace;
  939 + }
  940 +
  941 + public void setNextVisitPlace(String nextVisitPlace) {
  942 + this.nextVisitPlace = nextVisitPlace;
  943 + }
  944 +
  945 + public String getPersonInfoId() {
  946 + return personInfoId;
  947 + }
  948 +
  949 + public void setPersonInfoId(String personInfoId) {
  950 + this.personInfoId = personInfoId;
  951 + }
  952 +}
platform-operate-api/src/main/java/com/lyms/hospitalapi/lhxfy/model/SaveChildInfo.java View file @ e317278
... ... @@ -58,9 +58,9 @@
58 58 public void convertToDataModel(BabyModel babyModel){
59 59  
60 60 setRecordChoice(babyModel.getRecordChoice());
61   - setIsAppCreate(babyModel.getIsAppCreate());
62   - int babaySc=Integer.valueOf(StringUtils.isEmpty(babyModel.getBabySc())?"0":babyModel.getBabySc());
63   - setChildrenBookIsBuild(babaySc);
  61 + setIsAppCreate(null==babyModel.getIsAppCreate()?0:babyModel.getIsAppCreate());
  62 + int babySc=Integer.valueOf(StringUtils.isEmpty(babyModel.getBabySc())?"0":babyModel.getBabySc());
  63 + setChildrenBookIsBuild(babySc);
64 64 setChildrenBookBuildDate(StringUtils.isEmpty(babyModel.getChildrenBookBuildDate())? DateUtil.getyyyy_MM_dd(babyModel.getCreated()):babyModel.getChildrenBookBuildDate());
65 65 setCloseCaseCode(null==babyModel.getEndCase()?"0":babyModel.getEndCase().toString());
66 66 setCloseCaseReason(StringUtils.isEmpty(babyModel.getReason())?"无":babyModel.getReason());
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/Public2PathController.java View file @ e317278
... ... @@ -48,6 +48,21 @@
48 48 BaseResponse baseResponse=public2PathFacade.saveChildHealthExam(startDate,endDate,hospitalId);
49 49 return baseResponse;
50 50 }
  51 + /**
  52 + * 公卫2.0-新增新生儿家庭访视
  53 + * @param startDate
  54 + * @param endDate
  55 + * @param hospitalId
  56 + */
  57 + @ResponseBody
  58 + @TokenRequired
  59 + @RequestMapping(value = "/saveChildHomeVisit", method = RequestMethod.GET)
  60 + public BaseResponse saveChildHomeVisit(@RequestParam String startDate,
  61 + @RequestParam String endDate,
  62 + @RequestParam String hospitalId) {
  63 + BaseResponse baseResponse=public2PathFacade.saveChildHomeVisit(startDate,endDate,hospitalId);
  64 + return baseResponse;
  65 + }
51 66  
52 67 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/Public2PathFacade.java View file @ e317278
1 1 package com.lyms.platform.operate.web.facade;
2 2  
3 3 import com.alibaba.fastjson.JSON;
  4 +import com.lyms.hospitalapi.lhxfy.model.SaveChildHomeVisitInfo;
4 5 import com.lyms.hospitalapi.lhxfy.model.SaveChildInfo;
5 6 import com.lyms.hospitalapi.lhxfy.model.UploadResult;
6 7 import com.lyms.hospitalapi.lhxfy.model.UploadResult_Public2;
7 8  
8 9  
... ... @@ -12,8 +13,14 @@
12 13 import com.lyms.platform.common.utils.*;
13 14 import com.lyms.platform.operate.web.utils.CollectionUtils;
14 15 import com.lyms.platform.pojo.BabyModel;
  16 +import com.lyms.platform.pojo.NewbornVisit;
15 17 import com.lyms.platform.query.BabyModelQuery;
  18 +import jxl.common.BaseUnit;
  19 +import org.apache.poi.ss.formula.functions.T;
16 20 import org.springframework.beans.factory.annotation.Autowired;
  21 +import org.springframework.data.mongodb.core.MongoTemplate;
  22 +import org.springframework.data.mongodb.core.query.Criteria;
  23 +import org.springframework.data.mongodb.core.query.Query;
17 24 import org.springframework.stereotype.Component;
18 25  
19 26 import java.util.*;
20 27  
21 28  
22 29  
23 30  
24 31  
25 32  
26 33  
27 34  
28 35  
29 36  
30 37  
31 38  
32 39  
33 40  
34 41  
... ... @@ -27,79 +34,114 @@
27 34 public class Public2PathFacade {
28 35  
29 36 @Autowired
  37 + private MongoTemplate mongoTemplate;
  38 + @Autowired
30 39 BabyBookbuildingService babyBookbuildingService;
31 40  
32 41 private static final String URL = "http://222.223.187.132:7076/ph-s-report/";
33 42 public BaseResponse saveChildHealthExam(String startDate, String endDate,String hospitalId) {
34 43 BaseResponse baseResponse=new BaseResponse();
35   - BabyModelQuery babyModelQuery=new BabyModelQuery();
36 44 List<String> baseResponseList=new ArrayList<>();//记录错误信息
  45 + BabyModelQuery babyModelQuery=new BabyModelQuery();
37 46 babyModelQuery.setYn(YnEnums.YES.getId());
38 47 babyModelQuery.setHospitalId(hospitalId);
39 48 babyModelQuery.setBuildDateStart(DateUtil.getDayFirstSecond(DateUtil.parseYMD(startDate)));
40 49 babyModelQuery.setBuildDateEnd(DateUtil.getDayLastSecond(DateUtil.parseYMD(endDate)));
41 50 List<BabyModel> babyModelList = babyBookbuildingService.queryBabyBuildByCond(babyModelQuery);
42 51 String urladd=URL+"thirdApi/saveChildHealthExam/v1";//新增上传
43   - for (BabyModel babyModel : babyModelList) {
  52 + for (BabyModel model : babyModelList) {
44 53 try {
45 54 //数据转换
46   - String model = buildData(babyModel);
  55 + SaveChildInfo saveChildInfo=new SaveChildInfo();
  56 + saveChildInfo.convertToDataModel(model);
  57 + String jsonString = JSON.toJSONString(saveChildInfo);
47 58 //上传数据
48   - String result=repeatPost(urladd,model);
  59 + String result=repeatPost(urladd,jsonString);
49 60 if(StringUtils.isNotEmpty(result)){
50 61 List<UploadResult_Public2> results=JsonUtil.jsonToList(result, UploadResult.class);
51 62 if("0".equals(results.get(0).getCode())){
52   - baseResponseList.add(babyModel.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
53   - LogUtil.taskInfo(babyModel.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
  63 + baseResponseList.add("新增儿童健康检查---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
  64 + LogUtil.taskInfo("新增儿童健康检查---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
54 65 }else {
55   - baseResponseList.add(babyModel.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
56   - LogUtil.error(babyModel.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage(),null);
  66 + baseResponseList.add("新增儿童健康检查---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
  67 + LogUtil.error("新增儿童健康检查---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage(),null);
57 68 }
58 69 }else {
59   - baseResponseList.add(babyModel.getId()+"---新增儿童健康检查上传返回结果为null");
60   - LogUtil.error(babyModel.getId()+"---新增儿童健康检查上传返回结果为null",null);
  70 + baseResponseList.add("新增儿童健康检查---"+model.getId()+"---上传返回结果为null");
  71 + LogUtil.error("新增儿童健康检查---"+model.getId()+"---上传返回结果为null",null);
61 72 }
62 73 } catch (Exception e) {
63 74 e.printStackTrace();
64   - LogUtil.error(babyModel.getId()+"---"+e.getMessage(),null);
65   - baseResponse.setErrormsg(babyModel.getId()+"---"+e.getMessage());
  75 + LogUtil.error("新增儿童健康检查---"+model.getId()+"---"+e.getMessage(),null);
  76 + baseResponse.setErrormsg("新增儿童健康检查---"+model.getId()+"---"+e.getMessage());
66 77 }
67 78 }
68 79 baseResponse.setObject(baseResponseList);
69 80 return baseResponse;
70 81 }
71   - public String buildData(BabyModel babyModel){
72   - SaveChildInfo saveChildInfo=new SaveChildInfo();
73   - saveChildInfo.convertToDataModel(babyModel);
74   - Map<String,Object> mapjson= JSON.parseObject(JSON.toJSONString(saveChildInfo),Map.class);
75   - return JsonUtil.obj2Str(mapjson);
76   - }
77 82 /**
78 83 * 重试三次
79 84 * @param apiUrl
80 85 * @param json
81 86 * @return
82 87 */
83   - private String repeatPost(String apiUrl, Object json)
84   - {
85   - for (int i = 0; i <= 2; i++)
86   - {
  88 + private String repeatPost(String apiUrl, Object json) {
  89 + for (int i = 0; i <= 2; i++) {
87 90 String result = HttpClientUtil.doPostSSL(apiUrl,json);
88   - if (result == null)
89   - {
90   - try{
  91 + if (result == null) {
  92 + try {
91 93 Thread.sleep(1000);
  94 + } catch (InterruptedException e) {
  95 + e.printStackTrace();
92 96 }
93   - catch (Exception e){
94   - }
95   - continue;
96   - }
97   - else
98   - {
  97 + } else {
99 98 return result;
100 99 }
101 100 }
102 101 return null;
  102 + }
  103 +
  104 + public BaseResponse saveChildHomeVisit(String startDate, String endDate, String hospitalId) {
  105 + BaseResponse baseResponse=new BaseResponse();
  106 + List<String> baseResponseList=new ArrayList<>();//记录错误信息
  107 + Query query=new Query();
  108 + query.addCriteria(Criteria.where("yn").is("1"));
  109 + query.addCriteria(Criteria.where("hospitalId").is(hospitalId));
  110 + query.addCriteria(Criteria.where("checkTime")
  111 + .gte(DateUtil.getDayFirstSecond(DateUtil.parseYMD(startDate)))
  112 + .lte(DateUtil.getDayLastSecond(DateUtil.parseYMD(endDate))));
  113 +
  114 + List<NewbornVisit> newbornVisits = mongoTemplate.find(query, NewbornVisit.class);
  115 + String urladd=URL+"thirdApi/saveChildHealthExam/v1";//新增上传
  116 + for (NewbornVisit model : newbornVisits) {
  117 + try {
  118 + //数据转换
  119 + SaveChildHomeVisitInfo saveChildHomeVisitInfo=new SaveChildHomeVisitInfo();
  120 + saveChildHomeVisitInfo.convertToDataModel(model);
  121 + String jsonString = JSON.toJSONString(saveChildHomeVisitInfo);
  122 + //上传数据
  123 + String result=repeatPost(urladd,jsonString);
  124 + if(StringUtils.isNotEmpty(result)){
  125 + List<UploadResult_Public2> results=JsonUtil.jsonToList(result, UploadResult.class);
  126 + if("0".equals(results.get(0).getCode())){
  127 + baseResponseList.add("新增新生儿家庭访视---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
  128 + LogUtil.taskInfo("新增新生儿家庭访视---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
  129 + }else {
  130 + baseResponseList.add("新增新生儿家庭访视---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage());
  131 + LogUtil.error("新增新生儿家庭访视---"+model.getId()+"---code:"+results.get(0).getCode()+"message:"+results.get(0).getMessage(),null);
  132 + }
  133 + }else {
  134 + baseResponseList.add("新增新生儿家庭访视---"+model.getId()+"---上传返回结果为null");
  135 + LogUtil.error("新增新生儿家庭访视---"+model.getId()+"---上传返回结果为null",null);
  136 + }
  137 + } catch (Exception e) {
  138 + e.printStackTrace();
  139 + LogUtil.error("新增新生儿家庭访视---"+model.getId()+"---"+e.getMessage(),null);
  140 + baseResponse.setErrormsg("新增新生儿家庭访视---"+model.getId()+"---"+e.getMessage());
  141 + }
  142 + }
  143 + baseResponse.setObject(baseResponseList);
  144 + return baseResponse;
103 145 }
104 146 }