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, call_no 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, public_carbon_copy, call_no) values (#{mobile}, #{name}, #{password}, #{email}, #{createTime}, #{number}, #{province}, #{position}, #{superiorId}, #{city}, #{departmentId}, #{status}, #{userNo}, #{duty}, #{district}, #{headPortraitUrl}, #{contactMobile}, #{lastLoginTime}, #{openId}, #{type}, #{reviewer}, #{ambId}, #{ambRole}, #{ambManage}, #{managerId}, #{seniorStaff}, #{publicPurview}, #{expenseOpenId}, #{expenseSuperExamine}, #{publicCarbonCopy}, #{callNo}) 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, public_carbon_copy, call_no) values (#{entity.mobile}, #{entity.name}, #{entity.password}, #{entity.email}, #{entity.createTime}, #{entity.number}, #{entity.province}, #{entity.position}, #{entity.superiorId}, #{entity.city}, #{entity.departmentId}, #{entity.status}, #{entity.userNo}, #{entity.duty}, #{entity.district}, #{entity.headPortraitUrl}, #{entity.contactMobile}, #{entity.lastLoginTime}, #{entity.openId}, #{entity.type}, #{entity.reviewer}, #{entity.ambId}, #{entity.ambRole}, #{entity.ambManage}, #{entity.managerId}, #{entity.seniorStaff}, #{entity.publicPurview}, #{entity.expenseOpenId}, #{entity.expenseSuperExamine}, #{entity.publicCarbonCopy}, #{entity.callNo}) 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, public_carbon_copy, call_no) values (#{entity.mobile}, #{entity.name}, #{entity.password}, #{entity.email}, #{entity.createTime}, #{entity.number}, #{entity.province}, #{entity.position}, #{entity.superiorId}, #{entity.city}, #{entity.departmentId}, #{entity.status}, #{entity.userNo}, #{entity.duty}, #{entity.district}, #{entity.headPortraitUrl}, #{entity.contactMobile}, #{entity.lastLoginTime}, #{entity.openId}, #{entity.type}, #{entity.reviewer}, #{entity.ambId}, #{entity.ambRole}, #{entity.ambManage}, #{entity.managerId}, #{entity.seniorStaff}, #{entity.publicPurview}, #{entity.expenseOpenId}, #{entity.expenseSuperExamine}, #{entity.publicCarbonCopy}, #{entity.callNo}) on duplicate key update mobile = values(mobile), name = values(name), password = values(password), email = values(email), create_time = values(create_time), number = values(number), province = values(province), position = values(position), superior_id = values(superior_id), city = values(city), department_id = values(department_id), status = values(status), user_no = values(user_no), duty = values(duty), district = values(district), head_portrait_url = values(head_portrait_url), contact_mobile = values(contact_mobile), last_login_time = values(last_login_time), open_id = values(open_id), type = values(type), reviewer = values(reviewer), amb_id = values(amb_id), amb_role = values(amb_role), amb_manage = values(amb_manage), manager_id = values(manager_id), senior_staff = values(senior_staff), public_purview = values(public_purview), expense_open_id = values(expense_open_id), expense_super_examine = values(expense_super_examine), public_carbon_copy = values(public_carbon_copy), call_no = values(call_no) update admin mobile = #{mobile}, name = #{name}, password = #{password}, email = #{email}, create_time = #{createTime}, number = #{number}, province = #{province}, position = #{position}, superior_id = #{superiorId}, city = #{city}, department_id = #{departmentId}, status = #{status}, user_no = #{userNo}, duty = #{duty}, district = #{district}, head_portrait_url = #{headPortraitUrl}, contact_mobile = #{contactMobile}, last_login_time = #{lastLoginTime}, open_id = #{openId}, type = #{type}, reviewer = #{reviewer}, amb_id = #{ambId}, amb_role = #{ambRole}, amb_manage = #{ambManage}, manager_id = #{managerId}, senior_staff = #{seniorStaff}, public_purview = #{publicPurview}, expense_open_id = #{expenseOpenId}, expense_super_examine = #{expenseSuperExamine}, public_carbon_copy = #{publicCarbonCopy}, call_no = #{callNo}, where id = #{id} delete from admin where id = #{id} 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}) 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} update expense_account a left join expense_account_examine b on a.id=b.eaid left join admin c on c.id= #{expenseFinanceId} set b.auditor =c.id ,b.auditorName =c.name where a.process_status in (0,1,2,3) and a.status =1 and b.process_status =3 and b.status =0 and a.apply_dep = #{id}