|
@@ -34,7 +34,6 @@ import static com.xy.utils.Beans.copy;
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
@Api(tags = "算法平台")
|
|
@Api(tags = "算法平台")
|
|
public class AlgorithmServiceImpl extends ServiceImpl<AlgorithmMapper, Algorithm> implements AlgorithmService {
|
|
public class AlgorithmServiceImpl extends ServiceImpl<AlgorithmMapper, Algorithm> implements AlgorithmService {
|
|
- @PostMapping("list")
|
|
|
|
@ApiOperation("集合查询")
|
|
@ApiOperation("集合查询")
|
|
public R<List<AlgorithmDto.Vo>> list(@RequestBody AlgorithmDto.SelectList selectList) {
|
|
public R<List<AlgorithmDto.Vo>> list(@RequestBody AlgorithmDto.SelectList selectList) {
|
|
LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(selectList, Algorithm.class).build();
|
|
LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(selectList, Algorithm.class).build();
|
|
@@ -43,7 +42,6 @@ public class AlgorithmServiceImpl extends ServiceImpl<AlgorithmMapper, Algorithm
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "新增、更新算法平台", notes = "不传id为新增,传id为修改")
|
|
@ApiOperation(value = "新增、更新算法平台", notes = "不传id为新增,传id为修改")
|
|
- @PostMapping("saveOrUpdate")
|
|
|
|
public R saveOrUpdate(@Validated @RequestBody AlgorithmDto.Save saveDto) {
|
|
public R saveOrUpdate(@Validated @RequestBody AlgorithmDto.Save saveDto) {
|
|
Long id = saveDto.getId();
|
|
Long id = saveDto.getId();
|
|
boolean isAdd = id == null || id == 0;
|
|
boolean isAdd = id == null || id == 0;
|