|
@@ -1,6 +1,7 @@
|
|
|
package org.jeecg.modules.aa.controller;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -175,6 +176,14 @@ public class APIIndexenterController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "搜索商品", notes = "按商品名称模糊搜索商品")
|
|
|
+ @GetMapping(value = "/queryCommpdity")
|
|
|
+ public Result<List<AaCommodity>> getCommpdityD(@ApiParam(name="name",value="商品名称")String name) {
|
|
|
+ LambdaQueryWrapper<AaCommodity> queryMapper = new LambdaQueryWrapper<>();
|
|
|
+ queryMapper.like(AaCommodity::getName,name);
|
|
|
+ List<AaCommodity> list = aaCommodityService.list(queryMapper);
|
|
|
+ return Result.OK(list);
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "获取商品展示", notes = "获取商品展示")
|
|
|
@PostMapping(value = "/getShowC")
|