Commit 8f5336fe by guojuxing

创建商户用户名事务

parent 14dbd116
...@@ -20,6 +20,7 @@ import org.slf4j.Logger; ...@@ -20,6 +20,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -299,6 +300,7 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService { ...@@ -299,6 +300,7 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public ServiceResponse<Integer> insertDefaultStoreGroup(int enterpriseId) { public ServiceResponse<Integer> insertDefaultStoreGroup(int enterpriseId) {
StoreGroupDTO noStoreGroup = new StoreGroupDTO(); StoreGroupDTO noStoreGroup = new StoreGroupDTO();
noStoreGroup.setEnterpriseId(enterpriseId); noStoreGroup.setEnterpriseId(enterpriseId);
......
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