算法分析模块逻辑新增

This commit is contained in:
weitang 2025-05-13 16:56:46 +08:00
parent 0afb07f36f
commit da9a675589
5 changed files with 39 additions and 10 deletions

View File

@ -1,14 +1,15 @@
package com.yfd.platform.modules.algorithm.controller;
import com.yfd.platform.modules.algorithm.service.IAlgorithmClassComponentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* <p>
* 算法分类和部件关联
* 前端控制器
* 算法分类和部件关联
* 前端控制器
* </p>
*
* @author zhengsl
@ -18,4 +19,6 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/algorithm/algorithm-class-component")
public class AlgorithmClassComponentController {
@Resource
private IAlgorithmClassComponentService algorithmClassComponentService;
}

View File

@ -1,10 +1,11 @@
package com.yfd.platform.modules.algorithm.controller;
import com.yfd.platform.modules.algorithm.service.IAlgorithmDeviceService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* <p>
* 算法分类部件点位关联
@ -18,4 +19,6 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/algorithm/algorithm-device")
public class AlgorithmDeviceController {
@Resource
private IAlgorithmDeviceService algorithmDeviceService;
}

View File

@ -1,14 +1,20 @@
package com.yfd.platform.modules.algorithm.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yfd.platform.config.ResponseResult;
import com.yfd.platform.modules.algorithm.domain.AlgorithmParams;
import com.yfd.platform.modules.algorithm.service.IAlgorithmParamsService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* <p>
* 算法分类参数
* 前端控制器
* 算法分类参数
* 前端控制器
* </p>
*
* @author zhengsl
@ -18,4 +24,13 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/algorithm/algorithm-params")
public class AlgorithmParamsController {
@Resource
private IAlgorithmParamsService algorithmParamsService;
@GetMapping("/getAlgorithmClassPage")
@ApiOperation("查询算法分类")
public ResponseResult getAlgorithmClassPage(String algorithmId, Page<AlgorithmParams> page) {
Page<AlgorithmParams> algorithmClassPage = algorithmParamsService.getAlgorithmClassPage(algorithmId, page);
return ResponseResult.successData(algorithmClassPage);
}
}

View File

@ -1,5 +1,6 @@
package com.yfd.platform.modules.algorithm.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yfd.platform.modules.algorithm.domain.AlgorithmParams;
import com.baomidou.mybatisplus.extension.service.IService;
@ -13,4 +14,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface IAlgorithmParamsService extends IService<AlgorithmParams> {
Page<AlgorithmParams> getAlgorithmClassPage(String algorithmId, Page<AlgorithmParams> page);
}

View File

@ -1,5 +1,6 @@
package com.yfd.platform.modules.algorithm.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yfd.platform.modules.algorithm.domain.AlgorithmParams;
import com.yfd.platform.modules.algorithm.mapper.AlgorithmParamsMapper;
import com.yfd.platform.modules.algorithm.service.IAlgorithmParamsService;
@ -17,4 +18,9 @@ import org.springframework.stereotype.Service;
@Service
public class AlgorithmParamsServiceImpl extends ServiceImpl<AlgorithmParamsMapper, AlgorithmParams> implements IAlgorithmParamsService {
@Override
public Page<AlgorithmParams> getAlgorithmClassPage(String algorithmId, Page<AlgorithmParams> page) {
return null;
}
}