liupeng 5 年 前
コミット
6a40f91d59

+ 5 - 10
code/sapparent/sapservice/src/main/java/org/fouram/core/plugin/weixin/cp/core/WXCpBase.java

@@ -1,7 +1,5 @@
 package org.fouram.core.plugin.weixin.cp.core;
 
-import me.chanjar.weixin.cp.api.WxCpOAuth2Service;
-import me.chanjar.weixin.cp.api.impl.WxCpOAuth2ServiceImpl;
 import org.fouram.core.util.ConfConfig;
 
 import me.chanjar.weixin.cp.api.WxCpDepartmentService;
@@ -14,27 +12,24 @@ import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl;
 
 /**
  * 企业微信工具类
- *
+ * 
  * @author Liup
  */
 public class WXCpBase {
-
+	
 
 	public static final WxCpService service = new WxCpServiceImpl();
 	public static final WxCpUserService userService;
-	public static final WxCpOAuth2Service oauth2Service;
 	public static final WxCpDepartmentService departService;
 	static {
 		WxCpDefaultConfigImpl configStorage = new WxCpDefaultConfigImpl();
 		configStorage.setCorpId(ConfConfig.getConfigString("wxCp.corpId"));
-		configStorage.setCorpSecret(ConfConfig.getConfigString("wxCp.mailList.corpSecret"));
+		configStorage.setCorpSecret(ConfConfig.getConfigString("wxCp.corpSecret"));
 		// 初始化基础service
 		service.setWxCpConfigStorage(configStorage);
-		// 初始化service
+		// 初始化用户service
 		userService = new WxCpUserServiceImpl(service);
 		// 初始化部门service
 		departService = new WxCpDepartmentServiceImpl(service);
-		//授权服务
-		oauth2Service= new WxCpOAuth2ServiceImpl(service);
 	}
-}
+}

+ 2 - 2
code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapReportMapper.xml

@@ -1,5 +1,5 @@
-<?xml version="10" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatisorg//DTD Mapper 30//EN" "http://mybatisorg/dtd/mybatis-3-mapperdtd">
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="SapReportMapper">
 	<insert id="saveSapPerPerson">
 		insert into SapPerPerson(personId,dateOfBirth,placeOfBirth,education)