|
@@ -1358,8 +1358,8 @@ public class YiZhuLuRuServer {
|
|
|
orderList.add(fatherOrder.getActOrderNo());
|
|
|
// 查询子医嘱
|
|
|
QueryWrapper<?> childQw = new QueryWrapper<>();
|
|
|
- // 根据父医嘱的住院号和住院次数查询医嘱
|
|
|
- childQw.eq("a.parent_no", fatherOrder.getActOrderNo());
|
|
|
+ // 根据父医嘱的住院号和住院次数查询医嘱,设置默认值会重新生成 actOrderNo ,所以需要使用 copyOrder 中的 actOrderNo
|
|
|
+ childQw.eq("a.parent_no", copyOrder.getActOrderNo());
|
|
|
childQw.eq("a.inpatient_no", fatherOrder.getInpatientNo());
|
|
|
childQw.eq("a.admiss_times", fatherOrder.getAdmissTimes());
|
|
|
|
|
@@ -1405,6 +1405,11 @@ public class YiZhuLuRuServer {
|
|
|
|
|
|
public ResultVo<List<ZyDetailCharge>> queryFeeByOrderNo(BigDecimal actOrderNo) {
|
|
|
XinZhenYzActOrder yz = dao.getActOrderNoOne(actOrderNo.stripTrailingZeros().toPlainString());
|
|
|
+
|
|
|
+ if (yz == null) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR,"该医嘱未产生费用。");
|
|
|
+ }
|
|
|
+
|
|
|
List<ZyDetailCharge> feeList = dao.selectOrderFee(yz);
|
|
|
|
|
|
return ResultVoUtil.success(feeList);
|