记得上下班打卡 | git大法好,push需谨慎

Commit 8b070849 authored by zhengfuxin's avatar zhengfuxin

修改新品推荐

parent 82edbbfa
...@@ -36,8 +36,8 @@ public class GoblinFrontCubeController extends BaseController { ...@@ -36,8 +36,8 @@ public class GoblinFrontCubeController extends BaseController {
@PostMapping("list") @PostMapping("list")
@ApiOperation(value = "list") @ApiOperation(value = "list")
@ResponseBody @ResponseBody
public AjaxResult list() { public AjaxResult list(@RequestParam(name = "type", required = true) String type) {
return AjaxResult.success(goblinFrontCubeService.listGoblinFrontCubeParam()); return AjaxResult.success(goblinFrontCubeService.listGoblinFrontCubeParam(type));
} }
......
...@@ -75,9 +75,10 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe ...@@ -75,9 +75,10 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe
} }
return true; return true;
} }
public List<GoblinFrontCubeParam> listGoblinFrontCubeParam(){ public List<GoblinFrontCubeParam> listGoblinFrontCubeParam(String type){
LambdaQueryWrapper<GoblinFrontCube> queryWrapper = Wrappers.lambdaQuery(GoblinFrontCube.class); LambdaQueryWrapper<GoblinFrontCube> queryWrapper = Wrappers.lambdaQuery(GoblinFrontCube.class);
queryWrapper.ne(GoblinFrontCube::getDelTag,1); queryWrapper.ne(GoblinFrontCube::getDelTag,1);
queryWrapper.eq(GoblinFrontCube::getType,type);
List<GoblinFrontCube> list=goblinFrontCubeMapper.selectList(queryWrapper); List<GoblinFrontCube> list=goblinFrontCubeMapper.selectList(queryWrapper);
List<GoblinFrontCubeParam> list1=new ArrayList<>(); List<GoblinFrontCubeParam> list1=new ArrayList<>();
for(GoblinFrontCube goblinFrontCube:list){ for(GoblinFrontCube goblinFrontCube:list){
......
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