|
|
@@ -67,17 +67,18 @@ public class BusReceiveRecordController{
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 分页查询所有数据
|
|
|
+ * 分页查询所有数据(模糊查询)
|
|
|
*
|
|
|
* @param pageNo 页码
|
|
|
* @param pageSize 条数
|
|
|
* @param busReceiveRecordCopyParam 查询实体
|
|
|
* @return 所有数据
|
|
|
*/
|
|
|
- @ApiOperation("分页查询所有数据")
|
|
|
+ @ApiOperation("分页查询所有数据(模糊查询)")
|
|
|
@PostMapping("/list")
|
|
|
- public CommonResult<IPage<BusReceiveRecordCopyParam>>selectCopyAll(Integer pageNo, Integer pageSize, BusReceiveRecordCopyParam busReceiveRecordCopyParam) {
|
|
|
- return CommonResult.success(iBusReceiveRecordEntityCopyService.selectCopyAll(pageNo, pageSize, busReceiveRecordCopyParam));
|
|
|
+ public CommonResult<IPage<BusReceiveRecordCopyParam>>selectCopyAll(Integer pageNo, Integer pageSize, @RequestBody BusReceiveRecordCopyParam busReceiveRecordCopyParam) {
|
|
|
+ IPage<BusReceiveRecordCopyParam> result = iBusReceiveRecordEntityCopyService.selectCopyAll(pageNo, pageSize, busReceiveRecordCopyParam);
|
|
|
+ return CommonResult.success(result);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -101,7 +102,7 @@ public class BusReceiveRecordController{
|
|
|
* @return 单条数据
|
|
|
*/
|
|
|
@ApiOperation("通过主键查询单条数据")
|
|
|
- @GetMapping("/copy/{id}")
|
|
|
+ @GetMapping("/query/{id}")
|
|
|
public CommonResult<BusReceiveRecordCopyParam> selectCopyOne(@PathVariable("id") String id) {
|
|
|
System.out.println(iBusReceiveRecordEntityCopyService.selectCopyById(id));
|
|
|
return CommonResult.success(iBusReceiveRecordEntityCopyService.selectCopyById(id));
|
|
|
@@ -216,29 +217,4 @@ 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("查询失败");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|