and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
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
delete from admin
where id = #{id,jdbcType=VARCHAR}
delete from admin
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)
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})
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,
#{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},
update admin
id = #{record.id,jdbcType=VARCHAR},
mobile = #{record.mobile,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
number = #{record.number,jdbcType=INTEGER},
province = #{record.province,jdbcType=VARCHAR},
position = #{record.position,jdbcType=VARCHAR},
superior_id = #{record.superiorId,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
department_id = #{record.departmentId,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
user_no = #{record.userNo,jdbcType=VARCHAR},
duty = #{record.duty,jdbcType=VARCHAR},
district = #{record.district,jdbcType=VARCHAR},
head_portrait_url = #{record.headPortraitUrl,jdbcType=VARCHAR},
contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
update admin
set id = #{record.id,jdbcType=VARCHAR},
mobile = #{record.mobile,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
number = #{record.number,jdbcType=INTEGER},
province = #{record.province,jdbcType=VARCHAR},
position = #{record.position,jdbcType=VARCHAR},
superior_id = #{record.superiorId,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
department_id = #{record.departmentId,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
user_no = #{record.userNo,jdbcType=VARCHAR},
duty = #{record.duty,jdbcType=VARCHAR},
district = #{record.district,jdbcType=VARCHAR},
head_portrait_url = #{record.headPortraitUrl,jdbcType=VARCHAR},
contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP}
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},
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}
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)
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}
)
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 = '锁定' 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}