id, username, password, email, phone, mobile, company, department, job, createdby, createddate, lastmodifiedby, lastmodifieddate, province, city, area, town, community, companyid, status, expiredate, isdel, issale,type delete from user where id = #{id,jdbcType=BIGINT} update user set isdel = 1 where companyid = #{companyId} update user username = #{username,jdbcType=VARCHAR}, password = #{password,jdbcType=VARCHAR}, email = #{email,jdbcType=VARCHAR}, phone = #{phone,jdbcType=VARCHAR}, mobile = #{mobile,jdbcType=VARCHAR}, company = #{company,jdbcType=VARCHAR}, department = #{department,jdbcType=VARCHAR}, job = #{job,jdbcType=VARCHAR}, createdby = #{createdby,jdbcType=VARCHAR}, createddate = #{createddate,jdbcType=TIMESTAMP}, lastmodifiedby = #{lastmodifiedby,jdbcType=VARCHAR}, lastmodifieddate = #{lastmodifieddate,jdbcType=TIMESTAMP}, province = #{province,jdbcType=VARCHAR}, city = #{city,jdbcType=VARCHAR}, area = #{area,jdbcType=VARCHAR}, town = #{town,jdbcType=VARCHAR}, community = #{community,jdbcType=VARCHAR}, companyid = #{companyid,jdbcType=BIGINT}, #{companynumber,jdbcType=VARCHAR}, status = #{status,jdbcType=TINYINT}, expiredate = #{expiredate,jdbcType=TIMESTAMP}, isdel = #{isdel,jdbcType=TINYINT}, issale = #{issale,jdbcType=TINYINT}, type = #{type,jdbcType=INTEGER}, where id = #{id,jdbcType=BIGINT} update user set username = #{username,jdbcType=VARCHAR}, password = #{password,jdbcType=VARCHAR}, email = #{email,jdbcType=VARCHAR}, phone = #{phone,jdbcType=VARCHAR}, mobile = #{mobile,jdbcType=VARCHAR}, company = #{company,jdbcType=VARCHAR}, department = #{department,jdbcType=VARCHAR}, job = #{job,jdbcType=VARCHAR}, createdby = #{createdby,jdbcType=VARCHAR}, createddate = #{createddate,jdbcType=TIMESTAMP}, lastmodifiedby = #{lastmodifiedby,jdbcType=VARCHAR}, lastmodifieddate = #{lastmodifieddate,jdbcType=TIMESTAMP}, province = #{province,jdbcType=VARCHAR}, city = #{city,jdbcType=VARCHAR}, area = #{area,jdbcType=VARCHAR}, town = #{town,jdbcType=VARCHAR}, community = #{community,jdbcType=VARCHAR}, companyid = #{companyid,jdbcType=BIGINT}, status = #{status,jdbcType=TINYINT}, expiredate = #{expiredate,jdbcType=TIMESTAMP}, isdel = #{isdel,jdbcType=TINYINT}, issale = #{issale,jdbcType=TINYINT}, type = #{type,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT} update user set deadline = #{deadline} where companyid = #{companyid} and isdel = 0 update user set deadline = null where companyid = #{companyid} and isdel = 0