语法规范问题
This commit is contained in:
parent
ac5505b260
commit
bb09235bf6
|
|
@ -57,14 +57,18 @@ public class GoodsCategoryServiceImpl implements GoodsCategoryService {
|
|||
@Override
|
||||
public boolean checkGoodsCategoryNameUnique(GoodsCategory goodsCategory) {
|
||||
GoodsCategory category = goodsCategoryMapper.selectByGoodsCategoryName(goodsCategory.getGoodsCategoryName());
|
||||
if (category == null) return false;
|
||||
if (category == null){
|
||||
return false;
|
||||
}
|
||||
return category.getGoodsCategoryId().equals(goodsCategory.getGoodsCategoryId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkGoodsCategoryCodeUnique(GoodsCategory goodsCategory) {
|
||||
GoodsCategory category = goodsCategoryMapper.selectByGoodsCategoryCode(goodsCategory.getGoodsCategoryCode());
|
||||
if (category == null) return false;
|
||||
if (category == null){
|
||||
return false;
|
||||
}
|
||||
return category.getGoodsCategoryId().equals(goodsCategory.getGoodsCategoryId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue