id, firm_name, code, contacts, phone, legal_name, legal_phone, head, integral, balance, experience, member_level, reg_time, reg_source, org_code, city_code, detail_address, lat, lng, approval, approval_time, manager, remark, status, create_by, create_time, update_by, update_time, del_flag,city_name, website, business insert into kws_enterprise id, firm_name, code, contacts, phone, legal_name, legal_phone, head, integral, balance, experience, member_level, reg_time, reg_source, org_code, city_code, detail_address, lat, lng, approval, approval_time, manager, remark, status, create_by, create_time, update_by, update_time, del_flag, #{id,jdbcType=BIGINT}, #{firmName,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{legalName,jdbcType=VARCHAR}, #{legalPhone,jdbcType=VARCHAR}, #{head,jdbcType=VARCHAR}, #{integral,jdbcType=INTEGER}, #{balance,jdbcType=DECIMAL}, #{experience,jdbcType=INTEGER}, #{memberLevel,jdbcType=INTEGER}, #{regTime,jdbcType=TIMESTAMP}, #{regSource,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{cityCode,jdbcType=INTEGER}, #{detailAddress,jdbcType=VARCHAR}, #{lat,jdbcType=VARCHAR}, #{lng,jdbcType=VARCHAR}, #{approval,jdbcType=INTEGER}, #{approvalTime,jdbcType=TIMESTAMP}, #{manager,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createBy,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, update kws_enterprise firm_name = #{firmName,jdbcType=VARCHAR}, code = #{code,jdbcType=VARCHAR}, contacts = #{contacts,jdbcType=VARCHAR}, phone = #{phone,jdbcType=VARCHAR}, legal_name = #{legalName,jdbcType=VARCHAR}, legal_phone = #{legalPhone,jdbcType=VARCHAR}, head = #{head,jdbcType=VARCHAR}, integral = #{integral,jdbcType=INTEGER}, balance = #{balance,jdbcType=DECIMAL}, experience = #{experience,jdbcType=INTEGER}, member_level = #{memberLevel,jdbcType=INTEGER}, reg_time = #{regTime,jdbcType=TIMESTAMP}, reg_source = #{regSource,jdbcType=VARCHAR}, org_code = #{orgCode,jdbcType=VARCHAR}, city_code = #{cityCode,jdbcType=INTEGER}, city_name = #{cityName,jdbcType=VARCHAR}, detail_address = #{detailAddress,jdbcType=VARCHAR}, lat = #{lat,jdbcType=VARCHAR}, lng = #{lng,jdbcType=VARCHAR}, approval = #{approval,jdbcType=INTEGER}, approval_time = #{approvalTime,jdbcType=TIMESTAMP}, manager = #{manager,jdbcType=BIGINT}, remark = #{remark,jdbcType=VARCHAR}, status = #{status,jdbcType=INTEGER}, create_by = #{createBy,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=INTEGER}, website = #{website,jdbcType=VARCHAR}, business = #{business,jdbcType=VARCHAR}, where id = #{id,jdbcType=BIGINT} update kws_enterprise set approval = #{approval}, approval_time = now(), remark = #{remark} where id = #{id,jdbcType=BIGINT} and approval in (3, 4) and del_flag = 0