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