select id, p_id, org_id, cntr_id, cntr_qty, cntr_plan_qty, cntr_blc_qty, price_type, plan_qty, price_dr, plan_blc_qty, price_cr, bill_status, del_flag, create_by, create_time, update_by, update_time, remarks from F_TMSORDERBILLSCNTRS insert into F_TMSORDERBILLSCNTRS id, p_id, org_id, cntr_id, cntr_qty, cntr_plan_qty, cntr_blc_qty, price_type, plan_qty, price_dr, plan_blc_qty, price_cr, bill_status, del_flag, create_by, create_time, update_by, update_time, remarks, #{id}, #{pId}, #{orgId}, #{cntrId}, #{cntrQty}, #{cntrPlanQty}, #{cntrBlcQty}, #{priceType}, #{planQty}, #{priceDr}, #{planBlcQty}, #{priceCr}, #{billStatus}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remarks}, update F_TMSORDERBILLSCNTRS p_id = #{pId}, org_id = #{orgId}, cntr_id = #{cntrId}, cntr_qty = #{cntrQty}, cntr_plan_qty = #{cntrPlanQty}, cntr_blc_qty = #{cntrBlcQty}, price_type = #{priceType}, plan_qty = #{planQty}, price_dr = #{priceDr}, plan_blc_qty = #{planBlcQty}, price_cr = #{priceCr}, bill_status = #{billStatus}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remarks = #{remarks}, where id = #{id} update F_TMSORDERBILLSCNTRS cntr_plan_qty = cntr_plan_qty + #{cntrQty}, where id = #{id} update F_TMSORDERBILLSCNTRS set bill_status = #{billStatus} where org_id = #{orgId} delete from F_TMSORDERBILLSCNTRS where id = #{id} delete from F_TMSORDERBILLSCNTRS where p_id = #{id} delete from F_TMSORDERBILLSCNTRS where id in #{id}