id AS id, is_delete AS isDelete, create_time AS createTime, update_time AS updateTime, name AS name, gender AS gender, birthday AS birthday, marital_status AS maritalStatus, national AS national, political_landscape AS politicalLandscape, mobile AS mobile, province AS province, emergency_contact AS emergencyContact, emergency_contact_relation AS emergencyContactRelation, emergency_contact_phone AS emergencyContactPhone, email AS email, current_address AS currentAddress, open_id AS openId, employee_id AS employeeId, union_id AS unionId, parent_id AS parentId, is_master AS isMaster insert into lz_staff( name, gender, birthday, marital_status, national, political_landscape, mobile, province, emergency_contact, emergency_contact_relation, emergency_contact_phone, email, current_address, open_id, employee_id, union_id, avatar, job_number, password, salt, is_delete, create_time, update_time )values( #{ name}, #{ gender}, #{ birthday}, #{ maritalStatus}, #{ national}, #{ politicalLandscape}, #{ mobile}, #{ province}, #{ emergencyContact}, #{ emergencyContactRelation}, #{ emergencyContactPhone}, #{ email}, #{ currentAddress}, #{ openId}, #{ employeeId}, #{ unionId}, #{ avatar}, #{ jobNumber}, #{ password}, #{ salt}, 0, now(), now() ) update lz_staff is_delete = #{isDelete}, create_time = #{createTime}, name = #{name}, gender = #{gender}, birthday = #{birthday}, marital_status = #{maritalStatus}, national = #{national}, political_landscape = #{politicalLandscape}, mobile = #{mobile}, province = #{province}, emergency_contact = #{emergencyContact}, emergency_contact_relation = #{emergencyContactRelation}, emergency_contact_phone = #{emergencyContactPhone}, email = #{email}, current_address = #{currentAddress}, open_id = #{openId}, employee_id = #{employeeId}, union_id = #{unionId}, avatar = #{avatar}, job_number = #{jobNumber}, password = #{password}, salt = #{salt} ,update_time = now() where id = #{id} update lz_staff set is_delete = #{isDelete}, create_time = #{createTime}, name = #{name}, gender = #{gender}, birthday = #{birthday}, marital_status = #{maritalStatus}, national = #{national}, political_landscape = #{politicalLandscape}, mobile = #{mobile}, province = #{province}, emergency_contact = #{emergencyContact}, emergency_contact_relation = #{emergencyContactRelation}, emergency_contact_phone = #{emergencyContactPhone}, email = #{email}, current_address = #{currentAddress}, open_id = #{openId}, employee_id = #{employeeId}, union_id = #{unionId}, avatar = #{avatar}, job_number = #{jobNumber}, password = #{password}, salt = #{salt} ,update_time = now() where id = #{id} update lz_staff set is_delete = 1 where id=#{id} limit 1 UPDATE lz_staff update_time = now(), name = #{name,jdbcType=VARCHAR}, gender = #{gender,jdbcType=INTEGER}, birthday = #{birthday,jdbcType=DATETIME}, marital_status = #{maritalStatus,jdbcType=INTEGER}, national = #{national,jdbcType=VARCHAR}, political_landscape = #{politicalLandscape,jdbcType=VARCHAR}, mobile = #{mobile,jdbcType=VARCHAR}, province = #{province,jdbcType=VARCHAR}, emergency_contact = #{emergencyContact,jdbcType=VARCHAR}, emergency_contact_relation = #{emergencyContactRelation,jdbcType=VARCHAR}, emergency_contact_phone = #{emergencyContactPhone,jdbcType=VARCHAR}, email = #{email,jdbcType=VARCHAR}, current_address = #{currentAddress,jdbcType=VARCHAR}, employee_id = #{employeeId,jdbcType=VARCHAR}, union_id = #{unionId,jdbcType=VARCHAR}, open_id = #{openId,jdbcType=VARCHAR}, job_number = #{jobNumber,jdbcType=VARCHAR}, avatar = #{avatar,jdbcType=VARCHAR} WHERE is_delete = 0 AND id = #{id ,jdbcType=BIGINT} INSERT INTO lz_staff(name,gender,mobile,email,open_id,employee_id,union_id,avatar,job_number) VALUES (#{staff.name},#{staff.gender},#{staff.mobile},#{staff.email},#{staff.openId},#{staff.employeeId},#{staff.unionId},#{staff.avatar},#{staff.jobNumber}) INSERT INTO lz_staff(name,gender,mobile,email,open_id,employee_id,union_id,avatar,job_number) VALUES (#{name},#{gender},#{mobile},#{email},#{openId},#{employeeId},#{unionId},#{avatar},#{jobNumber})