tbs_cost_apply.`id`,
tbs_cost_apply.`code`,
tbs_cost_apply.`charge_theme`,
tbs_cost_apply.`supplier_id`,
tbs_cost_apply.`supplier_code`,
tbs_cost_apply.`supplier_name`,
tbs_cost_apply.`supplier_biz_region_first_name`,
tbs_cost_apply.`supplier_biz_region_second_name`,
tbs_cost_apply.`supplier_biz_region_third_name`,
tbs_cost_apply.`charge_state`,
tbs_cost_apply.`check_state`,
tbs_cost_apply.`submit_time`,
tbs_cost_apply.`pass_time`,
tbs_cost_apply.`remark`,
tbs_cost_apply.`user_id`,
tbs_cost_apply.`user_code`,
tbs_cost_apply.`user_name`,
tbs_cost_apply.`sy_form_id`,
tbs_cost_apply.`sy_flow_id`,
tbs_cost_apply.`total_activity`,
tbs_cost_apply.`total_activity_amount`,
tbs_cost_apply.`total_activity_used_amount`,
tbs_cost_apply.`contract_flag`,
tbs_cost_apply.`create_time`,
tbs_cost_apply.`update_time`,
tbs_cost_apply.`tenant_id`,
tbs_cost_apply.`create_by`,
tbs_cost_apply.`update_by`,
tbs_cost_apply.`del_flag`,
tbs_cost_apply.`template_id`,
tbs_cost_apply.`change_source_id`,
tbs_cost_apply.`change_extend_id`,
tbs_cost_apply.`cancel_flag`,
tbs_cost_apply.`template_title`
update tbs_cost_apply
set ext_user_id = #{obj.id},ext_user_id=#{obj.code},ext_user_name=#{obj.name}
where del_flag=0 and id in
#{selectId}
update tbs_cost_apply set ext_user_id = null,ext_user_id=null,ext_user_name=null where id in
#{selectId}
and `tbs_cost_apply`.`check_state` = #{query.checkState} and `tbs_cost_apply`.`id` = #{query.id} and `tbs_cost_apply`.`code` like concat('%', #{query.code},'%') and `tbs_cost_apply`.`charge_theme` like concat('%', #{query.chargeTheme},'%') and `tbs_cost_apply`.`supplier_id` = #{query.supplierId} and `tbs_cost_apply`.`supplier_code` like concat('%', #{query.supplierCode},'%') and `tbs_cost_apply`.`supplier_name` like concat('%', #{query.supplierName},'%') and `tbs_cost_apply`.`supplier_biz_region_first_name` like concat('%', #{query.supplierBizRegionFirstName},'%') and `tbs_cost_apply`.`supplier_biz_region_second_name` like concat('%', #{query.supplierBizRegionSecondName},'%') and `tbs_cost_apply`.`supplier_biz_region_third_name` like concat('%', #{query.supplierBizRegionThirdName},'%') and `tbs_cost_apply`.`charge_state` = #{query.chargeState} and `tbs_cost_apply`.`submit_time` = #{query.submitTime} and `tbs_cost_apply`.`pass_time` = #{query.passTime} and `tbs_cost_apply`.`user_id` = #{query.userId} and `tbs_cost_apply`.`user_code` = #{query.userCode} and `tbs_cost_apply`.`user_name` like concat('%', #{query.userName},'%') and `tbs_cost_apply`.`sy_form_id` = #{query.syFormId} and `tbs_cost_apply`.`sy_flow_id` = #{query.syFlowId} and `tbs_cost_apply`.`total_activity` = #{query.totalActivity} and `tbs_cost_apply`.`total_activity_amount` = #{query.totalActivityAmount} and `tbs_cost_apply`.`total_activity_used_amount` = #{query.totalActivityUsedAmount} and `tbs_cost_apply`.`contract_flag` = #{query.contractFlag} and `tbs_cost_apply`.`create_time` = #{query.createTime} and `tbs_cost_apply`.`update_time` = #{query.updateTime} and `tbs_cost_apply`.`tenant_id` = #{query.tenantId} and `tbs_cost_apply`.`create_by` = #{query.createBy} and `tbs_cost_apply`.`update_by` = #{query.updateBy} and `tbs_cost_apply`.`del_flag` = #{query.delFlag} and `tbs_cost_apply`.`template_title` like concat('%', #{query.templateTitle},'%')