|
@@ -3,11 +3,15 @@
|
|
<mapper namespace="SapUserMapper">
|
|
<mapper namespace="SapUserMapper">
|
|
<insert id="saveOne">
|
|
<insert id="saveOne">
|
|
insert into sap_user(userId,personId,username,name,
|
|
insert into sap_user(userId,personId,username,name,
|
|
|
|
+ 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)
|
|
email,formatEmail,isPrimary,delFlag,createDate)
|
|
values (#{userId},#{personId},#{username},#{name},
|
|
values (#{userId},#{personId},#{username},#{name},
|
|
|
|
+ #{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})
|
|
#{email},#{formatEmail},#{isPrimary},#{delFlag},#{createDate})
|
|
</insert>
|
|
</insert>
|
|
@@ -15,10 +19,12 @@
|
|
<update id="updateOne">
|
|
<update id="updateOne">
|
|
update sap_user
|
|
update sap_user
|
|
set username=#{username},name=#{name},personId=#{personId},
|
|
set username=#{username},name=#{name},personId=#{personId},
|
|
- firstOrgId=#{firstOrgId},firstOrgName=#{firstOrgName},
|
|
|
|
- secondOrgId=#{secondOrgId},secondOrgName=#{secondOrgName},
|
|
|
|
- thirdOrgId=#{thirdOrgId},thirdOrgName=#{thirdOrgName},
|
|
|
|
- fourthOrgId=#{fourthOrgId},fourthOrgName=#{fourthOrgName},
|
|
|
|
|
|
+ firstOrgId=#{firstOrgId},secondOrgId=#{secondOrgId},
|
|
|
|
+ thirdOrgId=#{thirdOrgId},fourthOrgId=#{fourthOrgId},
|
|
|
|
+ firstOrgName=#{firstOrgName},secondOrgName=#{secondOrgName},
|
|
|
|
+ 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},
|