|
@@ -110,8 +110,8 @@ public class BusinessController extends BaseController {
|
|
|
* 接口1:获取首页的统计信息(通过类型区分是实验室的还是连续检测的)
|
|
|
* @param type 1:化验室,2:连续检测
|
|
|
*/
|
|
|
- @GetMapping("/homeCountsInfo/{type}")
|
|
|
- public R<HomeCountsRes> homeCountsInfo(@PathVariable Integer type){
|
|
|
+ @GetMapping("/homeCountsInfo")
|
|
|
+ public R<HomeCountsRes> homeCountsInfo(@RequestParam(value = "type" ,required = false) String type){
|
|
|
log.info("进入了 获取首页的统计信息(通过类型区分是实验室的还是连续检测的) 接口,类型是{}", type);
|
|
|
DynamicDataSourceContextHolder.setDataSourceType(DataSourceType.SLAVE.name());
|
|
|
HomeCountsRes homeCountsRes = this.businessService.homeCountsInfo(type);
|
|
@@ -141,11 +141,12 @@ public class BusinessController extends BaseController {
|
|
|
@GetMapping("/devicePageList")
|
|
|
public TableDataInfo devicePageList(DeviceReq deviceReq){
|
|
|
log.info("进入了 分页获取设备列表(通过类型区分是实验室的还是连续检测的) 接口,请求参数是{}", JSON.toJSONString(deviceReq));
|
|
|
- String type = deviceReq.getType();
|
|
|
+ //2024年10月25日09:53:18 类型可以不传,获取所有
|
|
|
+ /*String type = deviceReq.getType();
|
|
|
if(StringUtils.isBlank(type))
|
|
|
throw new RuntimeException("设备类型为必填参数");
|
|
|
if(!"1".equals(type) && !"2".equals(type))
|
|
|
- throw new RuntimeException("请输入正确的设备类型");
|
|
|
+ throw new RuntimeException("请输入正确的设备类型");*/
|
|
|
DynamicDataSourceContextHolder.setDataSourceType(DataSourceType.SLAVE.name());
|
|
|
startPage();
|
|
|
List<DeviceRes> list = this.businessService.devicePageList(deviceReq);
|