代码提交

This commit is contained in:
mengkuiliang 2023-10-24 09:45:16 +08:00
parent 366cd7b1e1
commit 64b686ae6e
2 changed files with 5 additions and 3 deletions

View File

@ -195,6 +195,9 @@ public class NurseAppLoginServiceImpl implements NurseAppLoginService {
} else { } else {
patientDisease.setAreaName(""); patientDisease.setAreaName("");
} }
// 更新签约编号
setSignInfo(patientDisease);
//查询所有商品订单 //查询所有商品订单
List<GoodsOrder> goodsOrders = nurseAppLoginMapper.selectGoodsOrderListByPatient(patientId); List<GoodsOrder> goodsOrders = nurseAppLoginMapper.selectGoodsOrderListByPatient(patientId);
if (CollectionUtils.isEmpty(goodsOrders)) { if (CollectionUtils.isEmpty(goodsOrders)) {
@ -209,8 +212,6 @@ public class NurseAppLoginServiceImpl implements NurseAppLoginService {
patientDisease.setWaitReceivedGoodsCount(waitReceivedGoodsCount); patientDisease.setWaitReceivedGoodsCount(waitReceivedGoodsCount);
patientDisease.setReceivedGoodsCount(receivedGoodsCount); patientDisease.setReceivedGoodsCount(receivedGoodsCount);
patientDisease.setEvaluatedCount(evaluatedCount); patientDisease.setEvaluatedCount(evaluatedCount);
// 更新签约编号
setSignInfo(patientDisease);
return AjaxResult.success(patientDisease); return AjaxResult.success(patientDisease);
} }
@ -220,7 +221,7 @@ public class NurseAppLoginServiceImpl implements NurseAppLoginService {
try { try {
String result = (String) httpService.get(SpringUtils.getFdUrl(patientDisease.getCityCode()) + "/resident/signinfo/detail/" + patientDisease.getCardNo(), null, String.class); String result = (String) httpService.get(SpringUtils.getFdUrl(patientDisease.getCityCode()) + "/resident/signinfo/detail/" + patientDisease.getCardNo(), null, String.class);
JSONObject jsonObject = JSONObject.parseObject(result); JSONObject jsonObject = JSONObject.parseObject(result);
if ("1".equals(jsonObject.get("code"))) { if (jsonObject.getInteger("code") == 1) {
String signNo = ""; String signNo = "";
if (jsonObject.getJSONObject("data") != null) { if (jsonObject.getJSONObject("data") != null) {
JSONObject signInfo = jsonObject.getJSONObject("data"); JSONObject signInfo = jsonObject.getJSONObject("data");

View File

@ -26,6 +26,7 @@
<result property="patientCode" column="patient_code"/> <result property="patientCode" column="patient_code"/>
<result property="disease" column="disease"/> <result property="disease" column="disease"/>
<result property="signNo" column="sign_no"/> <result property="signNo" column="sign_no"/>
<result property="cityCode" column="city_code"/>
<collection property="patientDiseaseInfoList" javaType="java.util.List" resultMap="PatientDiseaseInfoResult"/> <collection property="patientDiseaseInfoList" javaType="java.util.List" resultMap="PatientDiseaseInfoResult"/>
</resultMap> </resultMap>