诏安,长泰患者信息修改

dev
anthonywj 1 year ago
parent 09ee4f3b74
commit ac10b51571

@ -31,6 +31,7 @@ import com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity;
import com.glxp.mipsdl.entity.basic.BasicCorpEntity;
import com.glxp.mipsdl.entity.basic.BasicProductsEntity;
import com.glxp.mipsdl.entity.basic.BasicUdirelEntity;
import com.glxp.mipsdl.entity.ctqyy.BasicSkPrescribeItemEntity;
import com.glxp.mipsdl.entity.ctqyy.MaterialDictEntity;
import com.glxp.mipsdl.entity.ctqyy.PriceClassEntity;
import com.glxp.mipsdl.entity.ctqyy.ThrHslbEntity;
@ -66,6 +67,8 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
@Slf4j
@ -286,7 +289,7 @@ public class CtqyyClient extends CommonHttpClient {
*/
public BaseResponse getSickInfo(GetSickRequest getSickRequest) {
CtqyyRequest ctqyyRequest = new CtqyyRequest();
ctqyyRequest.setMsgHeader(getMsgHeader("getMaterialDict"));
ctqyyRequest.setMsgHeader(getMsgHeader("getSickVisitInfo"));
ctqyyRequest.setMsgBody(JSONUtil.toJsonStr(getSickRequest));
String response = httpClient.postJson(thrSystemDetailService.getUrlExclude(Constants.URI_GET_SICKER), ctqyyRequest);
response = parserResult(response);
@ -294,9 +297,9 @@ public class CtqyyClient extends CommonHttpClient {
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
Map map = (Map) baseResponse.getData();
List<BasicSkSickerResponse> basicSkSickerResponses = JSON.parseArray(map.get("list") + "", BasicSkSickerResponse.class);
for (BasicSkSickerResponse productsResponse : basicSkSickerResponses) {
}
// for (BasicSkSickerResponse productsResponse : basicSkSickerResponses) {
//
// }
map.put("list", JSON.toJSON(basicSkSickerResponses));
baseResponse.setData("");
baseResponse.setData(map);
@ -316,7 +319,7 @@ public class CtqyyClient extends CommonHttpClient {
*/
public BaseResponse getSickPescribe(GetSickPrescribeRequest getSickPrescribeRequest) {
CtqyyRequest ctqyyRequest = new CtqyyRequest();
ctqyyRequest.setMsgHeader(getMsgHeader("getMaterialDict"));
ctqyyRequest.setMsgHeader(getMsgHeader("getResiPresInfo"));
ctqyyRequest.setMsgBody(JSONUtil.toJsonStr(getSickPrescribeRequest));
String response = httpClient.postJson(thrSystemDetailService.getUrlExclude(Constants.URI_GET_SICKER_PRESCIRBE), ctqyyRequest);
response = parserResult(response);
@ -325,7 +328,12 @@ public class CtqyyClient extends CommonHttpClient {
Map map = (Map) baseResponse.getData();
List<BasicSkPrescribeResponse> basicSkPrescribeResponses = JSON.parseArray(map.get("list") + "", BasicSkPrescribeResponse.class);
for (BasicSkPrescribeResponse basicSkPrescribeResponse : basicSkPrescribeResponses) {
List<BasicSkPrescribeItemEntity> itemEntities = basicSkPrescribeResponse.getItemList();
if (CollUtil.isNotEmpty(itemEntities)) {
for (BasicSkPrescribeItemEntity itemEntity : itemEntities) {
itemEntity.setCount("0");
}
}
}
map.put("list", JSON.toJSON(basicSkPrescribeResponses));
baseResponse.setData("");
@ -339,6 +347,20 @@ public class CtqyyClient extends CommonHttpClient {
}
// public String getStrConut(String str) {
// if (StrUtil.isNotEmpty(str)) {
// return "0";
// }
// Pattern pattern = Pattern.compile("\\d+");
// Matcher matcher = pattern.matcher(str);
// String strCount = "";
// while (matcher.find()) {
// strCount = strCount + matcher.group();
// }
// return strCount;
// }
/**
*
*

@ -196,7 +196,7 @@ public class ZaxyyClient extends CommonHttpClient {
ZaZyRequest zaZyRequest = new ZaZyRequest();
zaZyRequest.setMsgHeader(getMsgHeader("getMaterialType"));
zaZyRequest.setMsgBody(JSONUtil.toJsonStr(udiwmsBusTypeRequest));
String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_BUS_TYPE_QUERY_URL), zaZyRequest);
String response = httpClient.postJson(thrSystemDetailService.getUrlExclude(Constants.URL_NAME_BUS_TYPE_QUERY_URL), zaZyRequest);
response = parserResult(response);
try {
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);

@ -0,0 +1,117 @@
package com.glxp.mipsdl.entity.ctqyy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
*
*
* @TableName basic_sk_prescribe_item
*/
@TableName(value = "basic_sk_prescribe_item")
@Data
public class BasicSkPrescribeItemEntity implements Serializable {
/**
*
*/
@TableId(value = "id")
private Long id;
/**
* id
*/
@TableField(value = "thrId")
private String thrId;
/**
*
*/
@TableField(value = "sickerCode")
private String sickerCode;
/**
*
*/
@TableField(value = "prescribeCode")
private String prescribeCode;
/**
* id
*/
@TableField(value = "relId")
private Long relId;
/**
*
*/
@TableField(value = "itemName")
private String itemName;
/**
*
*/
@TableField(value = "itemCode")
private String itemCode;
/**
*
*/
@TableField(value = "measureCount")
private String measureCount;
/**
*
*/
@TableField(value = "measureUnit")
private String measureUnit;
/**
*
*/
@TableField(value = "category")
private String category;
/**
*
*/
@TableField(value = "frequency")
private String frequency;
/**
*
*/
@TableField(value = "count")
private String count;
/**
*
*/
@TableField(value = "price")
private BigDecimal price;
/**
*
*/
@TableField(value = "amount")
private BigDecimal amount;
/**
*
*/
@TableField(value = "ggxh")
private String ggxh;
/**
*
*/
@TableField(value = "remark")
private String remark;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -19,181 +19,157 @@ public class ThrProductsEntity extends Model<ThrProductsEntity> {
/**
*
*/
@TableField(value = "code")
private String code;
/**
*
*/
@TableField(value = "`name`")
private String name;
/**
*
*/
@TableField(value = "measname")
private String measname;
@TableField(value = "spec")
private String spec;
/**
*
*/
@TableField(value = "registerNo")
@TableField("registerNo")
private String registerNo;
/**
*
*/
@TableField(value = "manufactory")
private String manufactory;
@TableField(value = "thirdSysFk")
@TableField("thirdSysFk")
private String thirdSysFk;
/**
*
*/
@TableField(value = "cplb")
private String cplb;
/**
*
*/
@TableField(value = "flbm")
private String flbm;
/**
*
*/
@TableField(value = "qxlb")
private String qxlb;
/**
*
*/
@TableField(value = "ybbm")
private String ybbm;
/**
*
*/
@TableField(value = "sptm")
private String sptm;
/**
*
*/
@TableField(value = "tyshxydm")
private String tyshxydm;
/**
*
*/
@TableField(value = "zczbhhzbapzbh")
private String zczbhhzbapzbh;
/**
* /
*/
@TableField(value = "ylqxzcrbarmc")
private String ylqxzcrbarmc;
/**
* /
*/
@TableField(value = "ylqxzcrbarywmc")
private String ylqxzcrbarywmc;
/**
*
*/
@TableField(value = "cpms")
private String cpms;
/**
*
*/
@TableField(value = "updateTime")
@TableField("updateTime")
private Date updateTime;
/**
*
*/
@TableField(value = "supName")
@TableField("supName")
private String supName;
/**
*
*/
@TableField(value = "model")
private String model;
/**
*
*/
@TableField(value = "`standard`")
private String standard;
/**
*
*/
@TableField(value = "qtbm")
private String qtbm;
/**
*
*/
@TableField(value = "zczyxqz")
private String zczyxqz;
/**
*
*/
@TableField(value = "remark")
private String remark;
/**
* 1
*/
@TableField(value = "remark1")
private String remark1;
/**
* 2
*/
@TableField(value = "remark2")
private String remark2;
/**
* 3
*/
@TableField(value = "remark3")
private String remark3;
/**
*
*/
@TableField(value = "price")
private String price;
/**
*
*/
@TableField(value = "`createUser`")
@TableField("createUser")
private String createUser;
/**
*
*/
@TableField(value = "createTime")
@TableField("createTime")
private Date createTime;
/**
*
*/
@TableField(value = "updateUser")
@TableField("updateUser")
private String updateUser;
/**
@ -208,4 +184,16 @@ public class ThrProductsEntity extends Model<ThrProductsEntity> {
@TableField("supCode")
private String supCode;
}
@TableField("type")
private Integer type;
@TableField(exist = false)
private String createByName;
/**
*
*/
@TableField("prcitmcode")
private String prcitmcode;
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.res.udiwms;
import com.glxp.mipsdl.entity.ctqyy.BasicSkPrescribeItemEntity;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
@Data
public class BasicSkPrescribeResponse {
@ -16,7 +18,7 @@ public class BasicSkPrescribeResponse {
/**
*
*/
private String sickerCode;
private String sickCode;
/**
*
@ -69,5 +71,7 @@ public class BasicSkPrescribeResponse {
*/
private LocalDateTime updateTime;
private List<BasicSkPrescribeItemEntity> itemList;
}

Loading…
Cancel
Save