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

Commit 8b070849 authored by zhengfuxin's avatar zhengfuxin

修改新品推荐

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