@@ -7,4 +7,6 @@ public final class WebConstants {
public static final Long TOP_DEPART = 1L;
public static final String INGORE_PERSONIDS = ConfConfig.getConfigString("ingorePersonIds");
+
+ public static final String SUCCESS = "SUCCESS";
}
@@ -4,6 +4,7 @@ import static org.fouram.core.plugin.weixin.cp.core.WXCpBase.userService;
import java.util.List;
+import org.fouram.constants.WebConstants;
import org.fouram.core.util.Tools;
import me.chanjar.weixin.common.error.WxErrorException;
@@ -29,7 +30,7 @@ public class WXCpUserUtil {
user = getUser(userId, name, subCompanyList, departmentList, position, mobile, gender, email);
userService.update(user);
- return "SUCCESS";
+ return WebConstants.SUCCESS;
} catch (WxErrorException e) {
return e.getMessage();
@@ -130,7 +130,7 @@ public class SapUserService extends BaseService {
private String createOrUpdateWXUser(String personId) throws Exception {
// 测试
if (isTestWXSync) {
- return "Success";
System.out.println(personId);
List<SapUser> sapUsers = selectListByPersonId(personId);