xin
2025-07-11 138e3641fbe49a114a399323aa145774f310627e
oying-system/src/main/java/com/oying/modules/system/service/impl/MerchantServiceImpl.java
@@ -1,5 +1,6 @@
package com.oying.modules.system.service.impl;
import cn.hutool.core.util.IdUtil;
import com.oying.modules.system.domain.Merchant;
import com.oying.modules.system.domain.UserMerchant;
import com.oying.modules.system.mapper.MerchantMapper;
@@ -47,6 +48,7 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void create(Merchant resources) {
        resources.setMerchantCode(IdUtil.getSnowflakeNextIdStr());
        merchantMapper.insert(resources);
        UserMerchant userMerchant = new UserMerchant();
        userMerchant.setMerchantId(resources.getMerchantId());