@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
-@RequestMapping("/system/material/category")
+@RequestMapping("/spu/category")
@Api(tags = "商品分类管理")
public class SpuCategoryController {
@Autowired
@@ -56,14 +56,7 @@ public class SpuController extends BaseController<SpuService, Spu, SpuDTO> {
return Result.error();
}
- @ApiOperation("商品分类查询")
- @GetMapping("category/list")
- public Result<SpuDTO> categoryList(){
- LambdaQueryWrapper<SpuDTO> categoryQueryWrapper=new LambdaQueryWrapper<>();
- categoryQueryWrapper.select(SpuDTO::getCategory).groupBy(SpuDTO::getCategory);
- List<SpuDTO> list = baseService.list(categoryQueryWrapper);
- return Result.success(list);
- }
+
@@ -12,7 +12,7 @@ mybatis:
# 搜索指定包别名
typeAliasesPackage: com.poyee.dto,com.poyee.dto.req,com.poyee.**.dto,com.poyee.**.dto.req
# 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath*:mapper/*Mapper.xml,classpath*:mapper/**/*Mapper.xml
+ mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml