|
@@ -36,7 +36,7 @@ public class PlatformSecondCategoryController {
|
|
|
|
|
|
|
|
// 查询商品类型名称
|
|
// 查询商品类型名称
|
|
|
QueryWrapper<SecondGoodsCategory> repeatCategory = new QueryWrapper<>();
|
|
QueryWrapper<SecondGoodsCategory> repeatCategory = new QueryWrapper<>();
|
|
|
- repeatCategory.eq("category_name", category.getCategoryName());
|
|
|
|
|
|
|
+ repeatCategory.eq("category_name", category.getCategoryName().trim());
|
|
|
List<SecondGoodsCategory> list = mapper.selectList(repeatCategory);
|
|
List<SecondGoodsCategory> list = mapper.selectList(repeatCategory);
|
|
|
if (list.size() > 0) {
|
|
if (list.size() > 0) {
|
|
|
return R.fail("商品类型名称已存在,请修改商品类型名称!");
|
|
return R.fail("商品类型名称已存在,请修改商品类型名称!");
|