id_, organ_id_, cooperation_organ_id_, sell_amount_, service_amount_,other_income_, refund_amount_, income_total_, sell_cost_, expenses_amount_, variable_cost_, distribution_amount_, cost_amount_, profit_, month_, create_time_ delete from operating_report where id_ = #{id} insert into operating_report (organ_id_, cooperation_organ_id_, sell_amount_, service_amount_,other_income_, refund_amount_, income_total_, sell_cost_, expenses_amount_, variable_cost_, distribution_amount_, cost_amount_, profit_, month_, create_time_) values (#{organId}, #{cooperationOrganId}, #{sellAmount}, #{serviceAmount},#{otherIncome}, #{refundAmount}, #{incomeTotal}, #{sellCost}, #{expensesAmount}, #{variableCost}, #{distributionAmount}, #{costAmount}, #{profit}, #{month}, #{createTime}) update operating_report organ_id_ = #{organId}, cooperation_organ_id_ = #{cooperationOrganId}, sell_amount_ = #{sellAmount}, service_amount_ = #{serviceAmount}, other_income_ = #{otherIncome}, refund_amount_ = #{refundAmount}, income_total_ = #{incomeTotal}, sell_cost_ = #{sellCost}, expenses_amount_ = #{expensesAmount}, variable_cost_ = #{variableCost}, distribution_amount_ = #{distributionAmount}, cost_amount_ = #{costAmount}, profit_ = #{profit}, month_ = #{month}, create_time_ = #{createTime}, where id_ = #{id} AND FIND_IN_SET(opr.organ_id_,#{organIdList}) AND opr.cooperation_organ_id_ IS NULL AND opr.cooperation_organ_id_ IS NOT NULL AND opr.cooperation_organ_id_ = #{cooperationOrganId} AND opr.month_ >= #{startTime} AND opr.month_ <= #{endTime}