id,mobile,name,
password,email,create_time,
number,province,position,
superior_id,city,department_id,
status,user_no,duty,
district,head_portrait_url,contact_mobile,
last_login_time,open_id,type,
reviewer,amb_id,amb_role,
amb_manage,manager_id,senior_staff,
public_purview,expense_open_id,expense_super_examine,
public_carbon_copy
delete from admin
where id = #{id,jdbcType=VARCHAR}
insert into admin
( id,mobile,name
,password,email,create_time
,number,province,position
,superior_id,city,department_id
,status,user_no,duty
,district,head_portrait_url,contact_mobile
,last_login_time,open_id,type
,reviewer,amb_id,amb_role
,amb_manage,manager_id,senior_staff
,public_purview,expense_open_id,expense_super_examine
,public_carbon_copy)
values (#{id,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR}
,#{password,jdbcType=VARCHAR},#{email,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
,#{number,jdbcType=INTEGER},#{province,jdbcType=VARCHAR},#{position,jdbcType=VARCHAR}
,#{superiorId,jdbcType=VARCHAR},#{city,jdbcType=VARCHAR},#{departmentId,jdbcType=VARCHAR}
,#{status,jdbcType=VARCHAR},#{userNo,jdbcType=VARCHAR},#{duty,jdbcType=VARCHAR}
,#{district,jdbcType=VARCHAR},#{headPortraitUrl,jdbcType=VARCHAR},#{contactMobile,jdbcType=VARCHAR}
,#{lastLoginTime,jdbcType=TIMESTAMP},#{openId,jdbcType=VARCHAR},#{type,jdbcType=INTEGER}
,#{reviewer,jdbcType=VARCHAR},#{ambId,jdbcType=VARCHAR},#{ambRole,jdbcType=VARCHAR}
,#{ambManage,jdbcType=INTEGER},#{managerId,jdbcType=VARCHAR},#{seniorStaff,jdbcType=INTEGER}
,#{publicPurview,jdbcType=INTEGER},#{expenseOpenId,jdbcType=VARCHAR},#{expenseSuperExamine,jdbcType=INTEGER}
,#{publicCarbonCopy,jdbcType=VARCHAR})
insert into admin
id,
mobile,
name,
password,
email,
create_time,
number,
province,
position,
superior_id,
city,
department_id,
status,
user_no,
duty,
district,
head_portrait_url,
contact_mobile,
last_login_time,
open_id,
type,
reviewer,
amb_id,
amb_role,
amb_manage,
manager_id,
senior_staff,
public_purview,
expense_open_id,
expense_super_examine,
public_carbon_copy,
#{id,jdbcType=VARCHAR},
#{mobile,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{number,jdbcType=INTEGER},
#{province,jdbcType=VARCHAR},
#{position,jdbcType=VARCHAR},
#{superiorId,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR},
#{departmentId,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{userNo,jdbcType=VARCHAR},
#{duty,jdbcType=VARCHAR},
#{district,jdbcType=VARCHAR},
#{headPortraitUrl,jdbcType=VARCHAR},
#{contactMobile,jdbcType=VARCHAR},
#{lastLoginTime,jdbcType=TIMESTAMP},
#{openId,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{reviewer,jdbcType=VARCHAR},
#{ambId,jdbcType=VARCHAR},
#{ambRole,jdbcType=VARCHAR},
#{ambManage,jdbcType=INTEGER},
#{managerId,jdbcType=VARCHAR},
#{seniorStaff,jdbcType=INTEGER},
#{publicPurview,jdbcType=INTEGER},
#{expenseOpenId,jdbcType=VARCHAR},
#{expenseSuperExamine,jdbcType=INTEGER},
#{publicCarbonCopy,jdbcType=VARCHAR},
update admin
mobile = #{mobile,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
number = #{number,jdbcType=INTEGER},
province = #{province,jdbcType=VARCHAR},
position = #{position,jdbcType=VARCHAR},
superior_id = #{superiorId,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
department_id = #{departmentId,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
user_no = #{userNo,jdbcType=VARCHAR},
duty = #{duty,jdbcType=VARCHAR},
district = #{district,jdbcType=VARCHAR},
head_portrait_url = #{headPortraitUrl,jdbcType=VARCHAR},
contact_mobile = #{contactMobile,jdbcType=VARCHAR},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
open_id = #{openId,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
reviewer = #{reviewer,jdbcType=VARCHAR},
amb_id = #{ambId,jdbcType=VARCHAR},
amb_role = #{ambRole,jdbcType=VARCHAR},
amb_manage = #{ambManage,jdbcType=INTEGER},
manager_id = #{managerId,jdbcType=VARCHAR},
senior_staff = #{seniorStaff,jdbcType=INTEGER},
public_purview = #{publicPurview,jdbcType=INTEGER},
expense_open_id = #{expenseOpenId,jdbcType=VARCHAR},
expense_super_examine = #{expenseSuperExamine,jdbcType=INTEGER},
public_carbon_copy = #{publicCarbonCopy,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
update admin
set
mobile = #{mobile,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
number = #{number,jdbcType=INTEGER},
province = #{province,jdbcType=VARCHAR},
position = #{position,jdbcType=VARCHAR},
superior_id = #{superiorId,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
department_id = #{departmentId,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
user_no = #{userNo,jdbcType=VARCHAR},
duty = #{duty,jdbcType=VARCHAR},
district = #{district,jdbcType=VARCHAR},
head_portrait_url = #{headPortraitUrl,jdbcType=VARCHAR},
contact_mobile = #{contactMobile,jdbcType=VARCHAR},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
open_id = #{openId,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
reviewer = #{reviewer,jdbcType=VARCHAR},
amb_id = #{ambId,jdbcType=VARCHAR},
amb_role = #{ambRole,jdbcType=VARCHAR},
amb_manage = #{ambManage,jdbcType=INTEGER},
manager_id = #{managerId,jdbcType=VARCHAR},
senior_staff = #{seniorStaff,jdbcType=INTEGER},
public_purview = #{publicPurview,jdbcType=INTEGER},
expense_open_id = #{expenseOpenId,jdbcType=VARCHAR},
expense_super_examine = #{expenseSuperExamine,jdbcType=INTEGER},
public_carbon_copy = #{publicCarbonCopy,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
insert into admin (id, mobile, name,
password, email, create_time,
number, province, position, superior_id, city,department_id,status,user_no,duty,district,head_portrait_url,contact_mobile,type)
values (#{id,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{number,jdbcType=INTEGER}, #{province,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR},
#{superiorId,jdbcType=VARCHAR}, #{city,jdbcType=INTEGER},#{departmentId,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},#{userNo,jdbcType=VARCHAR},#{duty,jdbcType=VARCHAR},#{district,jdbcType=VARCHAR},#{headPortraitUrl,jdbcType=VARCHAR},#{contactMobile,jdbcType=VARCHAR},
#{type})
delete from admin
where id = #{id,jdbcType=VARCHAR}
update admin
set user_no = #{userNo,jdbcType=VARCHAR}
where
id=#{id,jdbcType=VARCHAR}
update admin set status = '1' where id in (${lockIds})
insert into admin_contacts (id,aid,contacts_id)values
(#{id,jdbcType=VARCHAR},#{aid,jdbcType=VARCHAR},#{contactsId,jdbcType=VARCHAR})
delete from admin_contacts
where id = #{id,jdbcType=VARCHAR}
and a.aid= #{aid,jdbcType=VARCHAR}
and e.aid= #{aid,jdbcType=VARCHAR}
and a.share_type = 0
and a.share_type = 3
and a.channel=0
and a.channel=1
and a.share_type=2
and a.source=1
and a.share_type = 0
and a.share_type = 0
and a.source=2
and a.share_type = 0
and a.source=3
and a.transfer_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}