商户信息接口bug修复
This commit is contained in:
@@ -43,7 +43,6 @@ public class ShopMerchantController {
|
|||||||
@SaAdminCheckPermission(value = "shopMerchant:edit", name = "商户支付信息修改")
|
@SaAdminCheckPermission(value = "shopMerchant:edit", name = "商户支付信息修改")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public CzgResult<Boolean> edit(@RequestBody @Validated ShopMerchantEditDTO shopMerchantEditDTO) {
|
public CzgResult<Boolean> edit(@RequestBody @Validated ShopMerchantEditDTO shopMerchantEditDTO) {
|
||||||
shopMerchantEditDTO.setShopId(StpKit.USER.getLoginIdAsLong());
|
|
||||||
return CzgResult.success(shopMerchantService.edit(shopMerchantEditDTO));
|
return CzgResult.success(shopMerchantService.edit(shopMerchantEditDTO));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class ShopMerchantServiceImpl extends ServiceImpl<ShopMerchantMapper, Sho
|
|||||||
return one == null ? new ShopMerchant() : one;
|
return one == null ? new ShopMerchant() : one;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CacheEvict(key = "#shopMerchantEditDTO.id")
|
@CacheEvict(key = "#shopMerchantEditDTO.shopId")
|
||||||
@Override
|
@Override
|
||||||
public Boolean edit(ShopMerchantEditDTO shopMerchantEditDTO) {
|
public Boolean edit(ShopMerchantEditDTO shopMerchantEditDTO) {
|
||||||
ShopMerchant shopMerchant = queryChain().eq(ShopMerchant::getShopId, shopMerchantEditDTO.getShopId()).one();
|
ShopMerchant shopMerchant = queryChain().eq(ShopMerchant::getShopId, shopMerchantEditDTO.getShopId()).one();
|
||||||
|
|||||||
Reference in New Issue
Block a user