| | |
| | | |
| | | <resultMap type="UserSyncDTO" id="UserSyncResult"> |
| | | <result property="oaUserId" column="OA_UserID" /> |
| | | <result property="oaWeixinUserId" column="OA_weixinUserID" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="nickName" column="nick_name" /> |
| | | <result property="departmentId" column="department_id" /> |
| | |
| | | <result property="email" column="email" /> |
| | | <result property="phonenumber" column="phonenumber" /> |
| | | <result property="oaOrderClass" column="OA_OrderClass" /> |
| | | <result property="canViewAllConsult" column="can_view_all_consult" /> |
| | | </resultMap> |
| | | |
| | | <!-- 查询SQL Server中的OA用户列表 --> |
| | |
| | | <![CDATA[ |
| | | SELECT |
| | | OA_User_ID AS OA_UserID, |
| | | OA_weixinUserID AS OA_weixinUserID, |
| | | OA_User AS user_name, |
| | | OA_Name AS nick_name, |
| | | OA_departmentID AS department_id, |
| | | OA_gender AS sex, |
| | | OA_email AS email, |
| | | OA_mobile AS phonenumber, |
| | | OA_OrderClass AS OA_OrderClass |
| | | OA_OrderClass AS OA_OrderClass, |
| | | CASE |
| | | WHEN OA_Power LIKE '%,020112,%' THEN '1' |
| | | ELSE '0' |
| | | END AS can_view_all_consult |
| | | FROM OA_User |
| | | WHERE OA_User IS NOT NULL |
| | | AND OA_Name IS NOT NULL |