|
@@ -5,13 +5,11 @@
|
|
insert into sap_user(userId,personId,username,name,
|
|
insert into sap_user(userId,personId,username,name,
|
|
firstOrgId,secondOrgId,thirdOrgId,fourthOrgId,
|
|
firstOrgId,secondOrgId,thirdOrgId,fourthOrgId,
|
|
firstOrgName,secondOrgName,thirdOrgName,fourthOrgName,
|
|
firstOrgName,secondOrgName,thirdOrgName,fourthOrgName,
|
|
- firstOrgWxDepartId,secondOrgWxDepartId,thirdOrgWxDepartId,fourthOrgWxDepartId,
|
|
|
|
position,formatPosition,mobile,formatMobile,businessPhone,formatBusinessPhone,gender,
|
|
position,formatPosition,mobile,formatMobile,businessPhone,formatBusinessPhone,gender,
|
|
email,formatEmail,isPrimary,delFlag,createDate,sortNumber)
|
|
email,formatEmail,isPrimary,delFlag,createDate,sortNumber)
|
|
values (#{userId},#{personId},#{username},#{name},
|
|
values (#{userId},#{personId},#{username},#{name},
|
|
#{firstOrgId},#{secondOrgId},#{thirdOrgId},#{fourthOrgId},
|
|
#{firstOrgId},#{secondOrgId},#{thirdOrgId},#{fourthOrgId},
|
|
#{firstOrgName},#{secondOrgName},#{thirdOrgName},#{fourthOrgName},
|
|
#{firstOrgName},#{secondOrgName},#{thirdOrgName},#{fourthOrgName},
|
|
- #{firstOrgWxDepartId},#{secondOrgWxDepartId},#{thirdOrgWxDepartId},#{fourthOrgWxDepartId},
|
|
|
|
#{position},#{formatPosition},#{mobile},#{formatMobile},#{businessPhone},#{formatBusinessPhone},#{gender},
|
|
#{position},#{formatPosition},#{mobile},#{formatMobile},#{businessPhone},#{formatBusinessPhone},#{gender},
|
|
#{email},#{formatEmail},#{isPrimary},#{delFlag},#{createDate},#{sortNumber})
|
|
#{email},#{formatEmail},#{isPrimary},#{delFlag},#{createDate},#{sortNumber})
|
|
</insert>
|
|
</insert>
|
|
@@ -23,8 +21,6 @@
|
|
thirdOrgId=#{thirdOrgId},fourthOrgId=#{fourthOrgId},
|
|
thirdOrgId=#{thirdOrgId},fourthOrgId=#{fourthOrgId},
|
|
firstOrgName=#{firstOrgName},secondOrgName=#{secondOrgName},
|
|
firstOrgName=#{firstOrgName},secondOrgName=#{secondOrgName},
|
|
thirdOrgName=#{thirdOrgName},fourthOrgName=#{fourthOrgName},
|
|
thirdOrgName=#{thirdOrgName},fourthOrgName=#{fourthOrgName},
|
|
- firstOrgWxDepartId=#{firstOrgWxDepartId},secondOrgWxDepartId=#{secondOrgWxDepartId},
|
|
|
|
- thirdOrgWxDepartId=#{thirdOrgWxDepartId},fourthOrgWxDepartId=#{fourthOrgWxDepartId},
|
|
|
|
position=#{position},formatPosition=#{formatPosition},
|
|
position=#{position},formatPosition=#{formatPosition},
|
|
mobile=#{mobile},formatMobile=#{formatMobile},
|
|
mobile=#{mobile},formatMobile=#{formatMobile},
|
|
businessPhone=#{businessPhone},formatBusinessPhone=#{formatBusinessPhone},
|
|
businessPhone=#{businessPhone},formatBusinessPhone=#{formatBusinessPhone},
|
|
@@ -57,10 +53,6 @@
|
|
select * from sap_user where result is null and delFlag = 0
|
|
select * from sap_user where result is null and delFlag = 0
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectDeleteList" resultType="SapUser">
|
|
|
|
- select * from sap_user where delFlag = 1 and isPrimary = 1
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
<update id="updateAllDelFlag">
|
|
<update id="updateAllDelFlag">
|
|
update sap_user set delFlag = #{delFlag}
|
|
update sap_user set delFlag = #{delFlag}
|
|
</update>
|
|
</update>
|
|
@@ -75,9 +67,9 @@
|
|
order by sortNumber ASC
|
|
order by sortNumber ASC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectSuccessList" resultType="SapUser">
|
|
|
|
|
|
+ <select id="selectListByResult" resultType="SapUser">
|
|
select * from sap_user
|
|
select * from sap_user
|
|
- where result = 'SUCCESS' and isPrimary = 1 and delFlag = 0
|
|
|
|
|
|
+ where result = #{result} and isPrimary = 1 and delFlag = 0
|
|
order by sortNumber ASC
|
|
order by sortNumber ASC
|
|
</select>
|
|
</select>
|
|
|
|
|