|
@@ -107,6 +107,10 @@ public class DigitalReceiptService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<JSONObject> rxPreCheck(RxPreCheckRequest request) throws Exception {
|
|
|
+ CodeName phar = rxDao.getDocYbCode(request.getStaffId());
|
|
|
+ if (null == phar || StringUtil.isBlank(phar.getYbCode())) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER, "审方药师医保编码不能为空。");
|
|
|
+ }
|
|
|
String dataRef = JSONObject.toJSONStringWithDateFormat(request.getRxPreCheck(), "yyyy-MM-dd HH:mm:ss");
|
|
|
JSONObject data = JSONObject.parseObject(dataRef);
|
|
|
String rxdrugdetailRef = JSONArray.toJSONStringWithDateFormat(request.getRxDrugDetailList(), "yyyy-MM-dd HH:mm:ss");
|
|
@@ -124,9 +128,6 @@ public class DigitalReceiptService {
|
|
|
if (null == code || code != 0){
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, result.getString("message"));
|
|
|
}
|
|
|
-
|
|
|
- CodeName phar = rxDao.getDocYbCode(request.getStaffId());
|
|
|
-
|
|
|
JSONObject decryptResult = HseEncAndDecUtil.decryptMsg(result);
|
|
|
RxUpload rxUpload = new RxUpload();
|
|
|
rxUpload.setHiRxno(decryptResult.getString("hiRxno"));
|