Browse Source

组织机构同步接口

sucheng 11 months ago
parent
commit
1a5649d2b6

+ 2 - 0
js-security/security-common/src/main/java/com/rongwei/sfcommon/sys/service/impl/DepartmentAndPersonnelServiceImpl.java

@@ -20,6 +20,7 @@ import com.rongwei.sfcommon.sys.service.DepartmentAndPersonnelService;
 import lombok.extern.log4j.Log4j2;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
 import javax.annotation.Resource;
 import java.util.LinkedList;
@@ -40,6 +41,7 @@ public class DepartmentAndPersonnelServiceImpl implements DepartmentAndPersonnel
     private DepartmentAndPersonnelDao departmentAndPersonnelDao;
 
     @Override
+    @Transactional
     public R departmentAndPersonnel(DepartmentAndPersonnelReq req) {
         //部门数据
         List<DepartmentVo> departmentList = req.getDepartmentList();