|
|
|
@ -1,9 +1,9 @@ |
|
|
|
|
<?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="com.dxhy.bxsdk.business.dao.OrgUserInfoDao"> |
|
|
|
|
<mapper namespace="com.dxhy.erp.dao.OrgUserInfoDao"> |
|
|
|
|
|
|
|
|
|
<!-- 新增员工信息 --> |
|
|
|
|
<insert id="addUserInfoList" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<insert id="addUserInfoList" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
INSERT INTO |
|
|
|
|
org_user_info |
|
|
|
|
(user_id, user_name, identity_number, create_time, enterprise_id, tax_no, is_white_list, phone, email, password, enterprise_code_list) |
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
<!-- 查询员工信息列表 --> |
|
|
|
|
<select id="getUserInfoList" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" > |
|
|
|
|
<select id="getUserInfoList" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo" > |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -51,7 +51,7 @@ |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<!-- 删除员工信息 --> |
|
|
|
|
<delete id="deleteUserInfo" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<delete id="deleteUserInfo" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
DELETE FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -59,7 +59,7 @@ |
|
|
|
|
</delete> |
|
|
|
|
|
|
|
|
|
<!-- 更新员工信息(可批量) --> |
|
|
|
|
<delete id="updateUserInfo" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<delete id="updateUserInfo" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
<foreach collection="orgUserInfoList" item="item" index="index" open="" close="" separator=";"> |
|
|
|
|
UPDATE |
|
|
|
|
org_user_info |
|
|
|
@ -99,7 +99,7 @@ |
|
|
|
|
</foreach> |
|
|
|
|
</delete> |
|
|
|
|
|
|
|
|
|
<select id="getUserIdentityNumber" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" > |
|
|
|
|
<select id="getUserIdentityNumber" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo" > |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -127,7 +127,7 @@ |
|
|
|
|
user_name = #{userName} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getUserIdentityNumberAndEnterpriseId" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" > |
|
|
|
|
<select id="getUserIdentityNumberAndEnterpriseId" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo" > |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -160,7 +160,7 @@ |
|
|
|
|
identity_number |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="selectCount" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" |
|
|
|
|
<select id="selectCount" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo" |
|
|
|
|
resultType="int"> |
|
|
|
|
select count(*) from |
|
|
|
|
org_user_info |
|
|
|
@ -192,7 +192,7 @@ |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="selectWhiteByParam" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<select id="selectWhiteByParam" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -227,7 +227,7 @@ |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<update id="updateWhiteUserById" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<update id="updateWhiteUserById" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
update org_user_info |
|
|
|
|
set is_white_list = "Y", |
|
|
|
|
enterprise_code_list = #{enterpriseCodeList,jdbcType=VARCHAR}, |
|
|
|
@ -252,7 +252,7 @@ |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<!-- 查询所有员工信息列表 --> |
|
|
|
|
<select id="getAllUserInfoList" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" > |
|
|
|
|
<select id="getAllUserInfoList" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo" > |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
</select> |
|
|
|
@ -268,7 +268,7 @@ |
|
|
|
|
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<update id="batchUpdateEnterpriseUserListById" parameterType="com.dxhy.bxsdk.api.domain.wechat.BxwxEnterpriseUserEntity"> |
|
|
|
|
<update id="batchUpdateEnterpriseUserListById" parameterType="com.dxhy.erp.entity.sdny.BxwxEnterpriseUserEntity"> |
|
|
|
|
<foreach item="item" index="index" collection="list" separator=";"> |
|
|
|
|
UPDATE org_user_info |
|
|
|
|
<set> |
|
|
|
@ -283,7 +283,7 @@ |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<!-- 新增员工信息 --> |
|
|
|
|
<insert id="saveUserInfo" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<insert id="saveUserInfo" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
INSERT INTO |
|
|
|
|
org_user_info |
|
|
|
|
(user_id, |
|
|
|
@ -310,7 +310,7 @@ |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
<!-- 更新员工信息(可批量) --> |
|
|
|
|
<update id="updateUserInfoSingle" parameterType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<update id="updateUserInfoSingle" parameterType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
UPDATE |
|
|
|
|
org_user_info |
|
|
|
|
<set> |
|
|
|
@ -346,7 +346,7 @@ |
|
|
|
|
user_id = #{userId} |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<select id="getUserInfoListByIsWhile" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" > |
|
|
|
|
<select id="getUserInfoListByIsWhile" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo" > |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -363,7 +363,7 @@ |
|
|
|
|
order by create_time desc |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="queryUserListByUserName" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo" > |
|
|
|
|
<select id="queryUserListByUserName" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo" > |
|
|
|
|
SELECT * FROM |
|
|
|
|
org_user_info |
|
|
|
|
WHERE |
|
|
|
@ -372,7 +372,7 @@ |
|
|
|
|
user_name = #{userName} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="findByCondition" resultType="com.dxhy.bxsdk.api.domain.simple.OrgUserInfo"> |
|
|
|
|
<select id="findByCondition" resultType="com.dxhy.erp.entity.sdny.OrgUserInfo"> |
|
|
|
|
select * from org_user_info where user_id = #{userId} |
|
|
|
|
</select> |
|
|
|
|
</mapper> |