liupeng 5 éve
szülő
commit
f149a248bf

+ 2 - 0
code/sapparent/sapservice/src/main/java/org/fouram/service/TaskService.java

@@ -9,6 +9,7 @@ import org.fouram.core.util.LoggerUtil;
 import org.fouram.entity.SapUser;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
 @Service
 public class TaskService extends BaseService {
@@ -18,6 +19,7 @@ public class TaskService extends BaseService {
 	@Autowired
 	private SapUserService sapUserService;
 
+	@Transactional
 	public void syncWeixinUser() {
 		LoggerUtil.info("同步开始->" + DateUtil.getTime());
 		try {