select incomeId, customerId, userId, incomeDate, incomeType, grossAmount, netAmount, taxAmount, rate, remark, delFlag, create_by, create_time, update_by, update_time from t_income select ti.incomeId, ti.customerId, ti.userId, ti.incomeDate, ti.incomeType, ti.grossAmount, ti.netAmount, ti.taxAmount, ti.rate, ti.remark, ti.delFlag, ti.create_by, ti.create_time, ti.update_by, ti.update_time, mc.customerName, su.user_name from t_income ti left join m_customer mc on ti.customerId = mc.customerId left join sys_user su on ti.userId = su.user_id insert into t_income customerId, incomeDate, incomeType, grossAmount, netAmount, taxAmount, rate, remark, delFlag, create_by, create_time, update_by, update_time, #{customerId}, #{incomeDate}, #{incomeType}, #{grossAmount}, #{netAmount}, #{taxAmount}, #{rate}, #{remark}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update t_income customerId = #{customerId}, incomeDate = #{incomeDate}, incomeType = #{incomeType}, grossAmount = #{grossAmount}, netAmount = #{netAmount}, taxAmount = #{taxAmount}, rate = #{rate}, remark = #{remark}, delFlag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where incomeId = #{incomeId} update t_income set delFlag = 1 where incomeId = #{incomeId} delete from t_income where incomeId = #{incomeId} delete from t_income where incomeId in #{incomeId} update t_income set delFlag = 1 where incomeId in #{incomeId}