Procházet zdrojové kódy

Merge remote-tracking branch 'origin/master'

xiahan před 10 měsíci
rodič
revize
365455d169

+ 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();