|
@@ -77,11 +77,17 @@ public class MerchantServiceImpl extends ServiceImpl<MerchantMapper, Merchant> i
|
|
|
|
|
|
@Override
|
|
|
public void updateMerchant(@NonNull Long id, @NonNull MerchantModifyParam param) {
|
|
|
- Merchant merchant = DatabaseContextHolder.getRequireEntity(this, id, "分类不存在");
|
|
|
+ Merchant merchant = DatabaseContextHolder.getRequireEntity(this, id, "商家不存在");
|
|
|
MerchantCopier.INSTANCE.copying(param, merchant);
|
|
|
this.updateById(merchant);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void deleteMerchant(@NonNull Long id) {
|
|
|
+ DatabaseContextHolder.getRequireEntity(this, id, "商家不存在");
|
|
|
+ this.baseMapper.deleteById(id);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public Pagination<MerchantDTO> getMerchantPaging(@NonNull MerchantPagingParam param) {
|
|
|
Page<Merchant> page = this.lambdaQuery()
|