|
@@ -38,7 +38,7 @@ public class YfSpiritAnestheticPrintController {
|
|
|
@RequestMapping(value = "/getSpiritAnestheticPrint",method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
public Map<String,Object> getSpiritAnestheticPrint(@RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate,
|
|
|
@RequestParam("chargeItemCode") String chargeItemCode, @RequestParam("unitCode") String unitCode,
|
|
|
- @RequestParam("drugFlags[]") String[] drugFlags, @RequestParam("queryScope") Integer queryScope){
|
|
|
+ @RequestParam("drugFlags[]") String[] drugFlags, @RequestParam("queryScope") Integer queryScope, @RequestParam("serial") String serial){
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
try {
|
|
|
if(StringUtils.isBlank(chargeItemCode)){
|
|
@@ -47,13 +47,16 @@ public class YfSpiritAnestheticPrintController {
|
|
|
if(StringUtils.isBlank(unitCode)){
|
|
|
unitCode = null;
|
|
|
}
|
|
|
+ if(StringUtils.isBlank(serial)){
|
|
|
+ serial = null;
|
|
|
+ }
|
|
|
List<MzSendMedicineVo> sendMedicineVos = new ArrayList<>();
|
|
|
if(queryScope == 1 || queryScope == 0){
|
|
|
- List<MzSendMedicineVo> mzSendMedicineVos = yfSpiritAnestheticPrintService.queryMzSpiritAnestheticPrint(beginDate, endDate, chargeItemCode, unitCode, drugFlags);
|
|
|
+ List<MzSendMedicineVo> mzSendMedicineVos = yfSpiritAnestheticPrintService.queryMzSpiritAnestheticPrint(beginDate, endDate, chargeItemCode, unitCode, drugFlags, serial);
|
|
|
sendMedicineVos.addAll(mzSendMedicineVos);
|
|
|
}
|
|
|
if(queryScope == 2 || queryScope == 0){
|
|
|
- List<MzSendMedicineVo> zySendMedicineVos = yfSpiritAnestheticPrintService.queryZySpiritAnestheticPrint(beginDate, endDate, chargeItemCode, unitCode, drugFlags);
|
|
|
+ List<MzSendMedicineVo> zySendMedicineVos = yfSpiritAnestheticPrintService.queryZySpiritAnestheticPrint(beginDate, endDate, chargeItemCode, unitCode, drugFlags, serial);
|
|
|
sendMedicineVos.addAll(zySendMedicineVos);
|
|
|
}
|
|
|
sendMedicineVos.forEach(mzSendMedicineVo -> {
|