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
delete from admin
where id = #{id,jdbcType=VARCHAR}
insert into admin (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)
values (#{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})
insert into admin
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,
#{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},
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},
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}
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}