|
|
@ -7,6 +7,7 @@ import com.ynxbd.common.action.base.BaseAction; |
|
|
|
import com.ynxbd.common.bean.*; |
|
|
|
import com.ynxbd.common.bean.*; |
|
|
|
import com.ynxbd.common.bean.enums.MerchantEnum; |
|
|
|
import com.ynxbd.common.bean.enums.MerchantEnum; |
|
|
|
import com.ynxbd.common.bean.pay.Register; |
|
|
|
import com.ynxbd.common.bean.pay.Register; |
|
|
|
|
|
|
|
import com.ynxbd.common.config.interceptor.AesDecode; |
|
|
|
import com.ynxbd.common.dao.RegisterDao; |
|
|
|
import com.ynxbd.common.dao.RegisterDao; |
|
|
|
import com.ynxbd.common.dao.his.HisRegisterDao; |
|
|
|
import com.ynxbd.common.dao.his.HisRegisterDao; |
|
|
|
import com.ynxbd.common.helper.common.DateHelper; |
|
|
|
import com.ynxbd.common.helper.common.DateHelper; |
|
|
@ -209,13 +210,12 @@ public class RegisterAction extends BaseAction { |
|
|
|
* [挂号]查询挂号记录(旧) |
|
|
|
* [挂号]查询挂号记录(旧) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getSiteHistory") |
|
|
|
@Action("getSiteHistory") |
|
|
|
public Result getSiteHistory(String begDate, String endDate, String patientId) { |
|
|
|
public Result getSiteHistory(String begDate, String endDate, @AesDecode String patientId) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
log.info("[挂号]查询挂号记录 patientId={}, begDate={},endDate={}", patientId, begDate, endDate); |
|
|
|
log.info("[挂号]查询挂号记录 patientId={}, begDate={},endDate={}", patientId, begDate, endDate); |
|
|
|
if (patientId == null || begDate == null || endDate == null) { |
|
|
|
if (patientId == null || begDate == null || endDate == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
} |
|
|
|
} |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Register> regRecords = new RegService().getHisRegRecordsByRegDate(patientId, begDate, endDate); |
|
|
|
List<Register> regRecords = new RegService().getHisRegRecordsByRegDate(patientId, begDate, endDate); |
|
|
|
return Result.success(regRecords); |
|
|
|
return Result.success(regRecords); |
|
|
@ -228,9 +228,8 @@ public class RegisterAction extends BaseAction { |
|
|
|
* [挂号]查询挂号历史记录 |
|
|
|
* [挂号]查询挂号历史记录 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getHisRegHistoryRecords") |
|
|
|
@Action("getHisRegHistoryRecords") |
|
|
|
public Result getHisRegHistoryRecords(String begDate, String endDate, String patientId) { |
|
|
|
public Result getHisRegHistoryRecords(String begDate, String endDate, @AesDecode String patientId) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
log.info("[挂号]查询挂号记录 patientId={}, begDate={},endDate={}", patientId, begDate, endDate); |
|
|
|
log.info("[挂号]查询挂号记录 patientId={}, begDate={},endDate={}", patientId, begDate, endDate); |
|
|
|
if (patientId == null || begDate == null || endDate == null) { |
|
|
|
if (patientId == null || begDate == null || endDate == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
@ -247,8 +246,7 @@ public class RegisterAction extends BaseAction { |
|
|
|
* [预约挂号]查询预约记录 |
|
|
|
* [预约挂号]查询预约记录 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getHisRegReserveRecords") |
|
|
|
@Action("getHisRegReserveRecords") |
|
|
|
public Result getHisRegReserveRecords(String begDate, String endDate, String patientId) { |
|
|
|
public Result getHisRegReserveRecords(String begDate, String endDate, @AesDecode String patientId) { |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
log.info("[预约挂号]查询预约记录 patientId={}, begDate={},endDate={}", patientId, begDate, endDate); |
|
|
|
log.info("[预约挂号]查询预约记录 patientId={}, begDate={},endDate={}", patientId, begDate, endDate); |
|
|
|
if (patientId == null || begDate == null || endDate == null) { |
|
|
|
if (patientId == null || begDate == null || endDate == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
@ -372,10 +370,9 @@ public class RegisterAction extends BaseAction { |
|
|
|
* @return 待预约记录 |
|
|
|
* @return 待预约记录 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getReLineSignInRecord") |
|
|
|
@Action("getReLineSignInRecord") |
|
|
|
public Result getReLineSignInRecord(String patientId, String begDate, String endDate) { |
|
|
|
public Result getReLineSignInRecord(@AesDecode String patientId, String begDate, String endDate) { |
|
|
|
String decodePatientId = decodeReqString(patientId); |
|
|
|
log.info("[查询预约待签到记录(包含今日挂号)] patientId-{} begDate={}, endDate={}", patientId, begDate, endDate); |
|
|
|
log.info("[查询预约待签到记录(包含今日挂号)] patientId-{} begDate={}, endDate={}", decodePatientId, begDate, endDate); |
|
|
|
if (patientId == null) { |
|
|
|
if (decodePatientId == null) { |
|
|
|
|
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -390,7 +387,7 @@ public class RegisterAction extends BaseAction { |
|
|
|
dataMap.put("list", new ArrayList<>()); |
|
|
|
dataMap.put("list", new ArrayList<>()); |
|
|
|
return Result.success(dataMap); |
|
|
|
return Result.success(dataMap); |
|
|
|
} |
|
|
|
} |
|
|
|
List<Object> findDataList = dataList.stream().filter(iter -> Objects.equals(((JSONObject) iter).getString("PatientId"), decodePatientId)).collect(Collectors.toList()); |
|
|
|
List<Object> findDataList = dataList.stream().filter(iter -> Objects.equals(((JSONObject) iter).getString("PatientId"), patientId)).collect(Collectors.toList()); |
|
|
|
dataMap.put("list", findDataList); |
|
|
|
dataMap.put("list", findDataList); |
|
|
|
return Result.success(dataMap); |
|
|
|
return Result.success(dataMap); |
|
|
|
} |
|
|
|
} |
|
|
@ -404,8 +401,7 @@ public class RegisterAction extends BaseAction { |
|
|
|
* @return 待预约记录 |
|
|
|
* @return 待预约记录 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getRegSignInByPatientId") |
|
|
|
@Action("getRegSignInByPatientId") |
|
|
|
public Result getRegSignInByPatientId(String patientId, String begDate, String endDate) { |
|
|
|
public Result getRegSignInByPatientId(@AesDecode String patientId, String begDate, String endDate) { |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
log.info("[挂号待签到记录]查询 patientId={} begDate={}, endDate={}", patientId, begDate, endDate); |
|
|
|
log.info("[挂号待签到记录]查询 patientId={} begDate={}, endDate={}", patientId, begDate, endDate); |
|
|
|
if (patientId == null) { |
|
|
|
if (patientId == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
@ -421,8 +417,7 @@ public class RegisterAction extends BaseAction { |
|
|
|
* @return 待预约记录 |
|
|
|
* @return 待预约记录 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getRegSignInByTreatNum") |
|
|
|
@Action("getRegSignInByTreatNum") |
|
|
|
public Result getRegSignInByTreatNum(String treatNum) { |
|
|
|
public Result getRegSignInByTreatNum(@AesDecode String treatNum) { |
|
|
|
treatNum = decodeReqString(treatNum); |
|
|
|
|
|
|
|
log.info("[挂号待签到记录]查询 treatNum={}", treatNum); |
|
|
|
log.info("[挂号待签到记录]查询 treatNum={}", treatNum); |
|
|
|
if (treatNum == null) { |
|
|
|
if (treatNum == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
@ -574,9 +569,8 @@ public class RegisterAction extends BaseAction { |
|
|
|
* [就医助手]查询HIS挂号记录 |
|
|
|
* [就医助手]查询HIS挂号记录 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getHisRegInfo") |
|
|
|
@Action("getHisRegInfo") |
|
|
|
public Result getHisRegInfo(String regDate, String patientId, String hisTransNo, String openId) { |
|
|
|
public Result getHisRegInfo(String regDate, @AesDecode String patientId, String hisTransNo, String openId) { |
|
|
|
log.info("[就医助手]查询HIS挂号信息 regDate={}, patientId={}, hisTransNo={} openId={}", regDate, patientId, hisTransNo, openId); |
|
|
|
log.info("[就医助手]查询HIS挂号信息 regDate={}, patientId={}, hisTransNo={} openId={}", regDate, patientId, hisTransNo, openId); |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
if (ObjectUtils.isEmpty(regDate) || ObjectUtils.isEmpty(patientId)) { |
|
|
|
if (ObjectUtils.isEmpty(regDate) || ObjectUtils.isEmpty(patientId)) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
} |
|
|
|
} |
|
|
@ -592,8 +586,7 @@ public class RegisterAction extends BaseAction { |
|
|
|
* [挂号订单]查询信息 |
|
|
|
* [挂号订单]查询信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("getRegOrder") |
|
|
|
@Action("getRegOrder") |
|
|
|
public Result getRegOrder(String patientId, String tradeNo, String hisTransNo) { |
|
|
|
public Result getRegOrder(@AesDecode String patientId, String tradeNo, String hisTransNo) { |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
log.info("[挂号订单]查询信息 patientId={}, tradeNo={}, hisTransNo={}", patientId, tradeNo, hisTransNo); |
|
|
|
log.info("[挂号订单]查询信息 patientId={}, tradeNo={}, hisTransNo={}", patientId, tradeNo, hisTransNo); |
|
|
|
if (ObjectUtils.isEmpty(patientId) || ObjectUtils.isEmpty(hisTransNo)) { |
|
|
|
if (ObjectUtils.isEmpty(patientId) || ObjectUtils.isEmpty(hisTransNo)) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
@ -614,9 +607,8 @@ public class RegisterAction extends BaseAction { |
|
|
|
* [就医助手]修改流程标记 |
|
|
|
* [就医助手]修改流程标记 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Action("completeRegTreatNum") |
|
|
|
@Action("completeRegTreatNum") |
|
|
|
public Result completeRegTreatNum(String treatNum, String processMark, String openId, String patientId, String tradeNo, String hisTransNo, String orderFromOwner) { |
|
|
|
public Result completeRegTreatNum(String treatNum, String processMark, String openId, @AesDecode String patientId, String tradeNo, String hisTransNo, String orderFromOwner) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
patientId = decodeReqString(patientId); |
|
|
|
|
|
|
|
log.info("[就医助手]修改流程标记 treatNum={}, processMark={}, openId={}, patientId={}, tradeNo={}, hisTransNo={}, orderFromOwner={}", treatNum, processMark, openId, patientId, tradeNo, hisTransNo, orderFromOwner); |
|
|
|
log.info("[就医助手]修改流程标记 treatNum={}, processMark={}, openId={}, patientId={}, tradeNo={}, hisTransNo={}, orderFromOwner={}", treatNum, processMark, openId, patientId, tradeNo, hisTransNo, orderFromOwner); |
|
|
|
if (ObjectUtils.isEmpty(treatNum) || ObjectUtils.isEmpty(patientId)) { |
|
|
|
if (ObjectUtils.isEmpty(treatNum) || ObjectUtils.isEmpty(patientId)) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|