|
|
@@ -67,18 +67,17 @@ public class BusReceiveRecordController{
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 分页查询所有数据(模糊查询)
|
|
|
+ * 分页查询所有数据
|
|
|
*
|
|
|
* @param pageNo 页码
|
|
|
* @param pageSize 条数
|
|
|
* @param busReceiveRecordCopyParam 查询实体
|
|
|
* @return 所有数据
|
|
|
*/
|
|
|
- @ApiOperation("分页查询所有数据(模糊查询)")
|
|
|
+ @ApiOperation("分页查询所有数据")
|
|
|
@PostMapping("/list")
|
|
|
- public CommonResult<IPage<BusReceiveRecordCopyParam>>selectCopyAll(Integer pageNo, Integer pageSize, @RequestBody BusReceiveRecordCopyParam busReceiveRecordCopyParam) {
|
|
|
- IPage<BusReceiveRecordCopyParam> result = iBusReceiveRecordEntityCopyService.selectCopyAll(pageNo, pageSize, busReceiveRecordCopyParam);
|
|
|
- return CommonResult.success(result);
|
|
|
+ public CommonResult<IPage<BusReceiveRecordCopyParam>>selectCopyAll(Integer pageNo, Integer pageSize, BusReceiveRecordCopyParam busReceiveRecordCopyParam) {
|
|
|
+ return CommonResult.success(iBusReceiveRecordEntityCopyService.selectCopyAll(pageNo, pageSize, busReceiveRecordCopyParam));
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -102,7 +101,7 @@ public class BusReceiveRecordController{
|
|
|
* @return 单条数据
|
|
|
*/
|
|
|
@ApiOperation("通过主键查询单条数据")
|
|
|
- @GetMapping("/query/{id}")
|
|
|
+ @GetMapping("/copy/{id}")
|
|
|
public CommonResult<BusReceiveRecordCopyParam> selectCopyOne(@PathVariable("id") String id) {
|
|
|
System.out.println(iBusReceiveRecordEntityCopyService.selectCopyById(id));
|
|
|
return CommonResult.success(iBusReceiveRecordEntityCopyService.selectCopyById(id));
|
|
|
@@ -217,4 +216,29 @@ public class BusReceiveRecordController{
|
|
|
return CommonResult.failed("查询失败");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 模糊查询
|
|
|
+ *
|
|
|
+ * @param receiveRecordCopyParam 参数
|
|
|
+ * @return 数据
|
|
|
+ */
|
|
|
+ @ApiOperation("模糊查询记录 住院号 patientCode | 泵号 pumpCode | 产品编码类型 productCode | 医院 hospitalCode | 状态信息 viewState")
|
|
|
+ @PostMapping("/query/getFuzzyHistory")
|
|
|
+ public CommonResult getFuzzyHistoryCopy(@RequestBody ReceiveRecordCopyParam receiveRecordCopyParam) {
|
|
|
+ try{
|
|
|
+ IPage<BusReceiveRecordCopyParam> iPage = iBusReceiveRecordEntityCopyService.queryFuzzyHistoryCopy(receiveRecordCopyParam);
|
|
|
+ if( iPage.getRecords().size() > 0 ){
|
|
|
+ return CommonResult.success(iPage);
|
|
|
+ }
|
|
|
+ return CommonResult.noData();
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("出现错误, {}",e.getMessage());
|
|
|
+ return CommonResult.failed("查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|