Commit dd39a2a7 by 程裕兵

feat:bind

parent 14385238
......@@ -288,9 +288,11 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
// 1. 绑定场馆
this.bind(apply.getStudioId(), event.getMerchantId(), false);
// 1.1 场馆商户发生了变更,解绑掉绑定了老商户号的所有场馆
if (null != old && !old.getMerchantId().equals(event.getMerchantId())) {
// 1.1 场馆商户发生了变更,解绑掉绑定了老商户号的所有场馆
this.unbindAll(old.getMerchantId());
// 1.2 场馆商户发生了变更,解绑掉绑定了老商户号的品牌
brandMerchantService.unbind(apply.getBrandId(), old.getMerchantId());
}
// 2. 绑定品牌
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment