Commit 1717d728 authored by 罗贤顺's avatar 罗贤顺

送样结果单根据样号查数据接口修改

parent 0ac8c249
...@@ -48,6 +48,18 @@ public class TSampleLaboratorysheetController { ...@@ -48,6 +48,18 @@ public class TSampleLaboratorysheetController {
return itSampleLaboratorysheetService.getPage(param, query); return itSampleLaboratorysheetService.getPage(param, query);
} }
/**
* 根据样号查看送样信息
* @param yh
* @return
*/
@ApiOperation(value = "根据样号查看送样信息")
@GetMapping(value = "/getSampleListByYh/{yh}")
public R getSampleListByYh(@PathVariable @NotBlank String yh) {
TSampleListQuery param = new TSampleListQuery();
param.setYh(yh);
return itSampleLaboratorysheetService.getSampleListByYh(param);
}
/** /**
* 根据样号查看分析结果 * 根据样号查看分析结果
* *
......
...@@ -32,4 +32,6 @@ public interface ITSampleLaboratorysheetService extends IService<TSampleLaborato ...@@ -32,4 +32,6 @@ public interface ITSampleLaboratorysheetService extends IService<TSampleLaborato
R getPage(TSampleLaboratorysheetQuery tSampleLaboratorysheetQuery, Query query); R getPage(TSampleLaboratorysheetQuery tSampleLaboratorysheetQuery, Query query);
R getList(); R getList();
R getSampleListByYh(TSampleListQuery param);
} }
...@@ -42,6 +42,15 @@ public class TSampleLaboratorysheetServiceImpl extends ServiceImpl<TSampleLabora ...@@ -42,6 +42,15 @@ public class TSampleLaboratorysheetServiceImpl extends ServiceImpl<TSampleLabora
@Autowired @Autowired
private ITSampleListService tSampleListService; private ITSampleListService tSampleListService;
@Override
public R getSampleListByYh(TSampleListQuery param) {
log.info(JSON.toJSONString(param));
//参数校验
Rcode.NOT_PARAM.assertNotNull(param);
Rcode.NOT_PARAM.assertNotEmpty(param.getYh());
R byYh = tSampleListService.getByYh(param);
return R.ok(byYh);
}
@Override @Override
public R getByYh(TSampleLaboratorysheetQuery query) { public R getByYh(TSampleLaboratorysheetQuery query) {
log.info(JSON.toJSONString(query)); log.info(JSON.toJSONString(query));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment