|
@@ -57,27 +57,24 @@ public class CaoYaoYiZhuService {
|
|
|
this.hospitalizationCostsService = hospitalizationCostsService;
|
|
|
}
|
|
|
|
|
|
- public ResultVo<IPage<YzActOrderCy>> huoQuCaoYaoShuJu(CaoYaoChaXunTiaoJian param) {
|
|
|
- IPage<YzActOrderCy> page = new Page<>(param.getCurrentPage(), param.getPageSize(), param.getTotal() == 0);
|
|
|
+ public ResultVo<List<YzActOrderCy>> huoQuCaoYaoShuJu(CaoYaoChaXunTiaoJian param) {
|
|
|
QueryWrapper<?> qw = new QueryWrapper<>();
|
|
|
qw.eq("inpatient_no", param.getPatNo());
|
|
|
qw.eq("admiss_times", param.getTimes());
|
|
|
- if (param.getShiFouFaYao()) {
|
|
|
- qw.eq("status_flag", "4");
|
|
|
- } else {
|
|
|
- qw.le("status_flag", "3");
|
|
|
- }
|
|
|
+ qw.orderByDesc("input_date");
|
|
|
if (StringUtil.notBlank(param.getStartTime())) {
|
|
|
qw.ge("input_date", param.getStartTime());
|
|
|
qw.le("input_date", param.getEndTime());
|
|
|
}
|
|
|
- dao.huoQuCaoYaoShuJu(page, qw);
|
|
|
- for (YzActOrderCy item : page.getRecords()) {
|
|
|
- item.setDaiJianFei(item.getQuantityDj().multiply(item.getOrderJeDj()));
|
|
|
- item.setJiaGe(item.getQuantity().multiply(item.getOrderJe()));
|
|
|
- item.setZongJia(item.getDaiJianFei().add(item.getJiaGe()));
|
|
|
+ List<YzActOrderCy> list = dao.huoQuCaoYaoShuJu(qw);
|
|
|
+ if (ListUtil.notBlank(list)) {
|
|
|
+ for (YzActOrderCy item : list) {
|
|
|
+ item.setDaiJianFei(item.getQuantityDj().multiply(item.getOrderJeDj()));
|
|
|
+ item.setJiaGe(item.getQuantity().multiply(item.getOrderJe()));
|
|
|
+ item.setZongJia(item.getDaiJianFei().add(item.getJiaGe()));
|
|
|
+ }
|
|
|
}
|
|
|
- return ResultVoUtil.success(page);
|
|
|
+ return ResultVoUtil.success(list);
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<YzActOrderCyDetail>> huoQuChaoYaoMingXi(BigDecimal orderNo) {
|