a.id,
a.helu_id,
a.ERP_order_sale_id,
a.ERP_order_sale_detail_id,
a.ERP_order_product_id,
a.ERP_order_product_detail_id,
a.order_plan_id,
a.order_plan_detail_id,
a.order_product_id,
a.order_product_detail_id,
a.plan_type,
a.proc_line_id,
a.material_id,
a.material_code,
a.material_name,
a.material_standard_model,
a.caizhi,
a.plan_quantity,
a.unit,
a.department_id,
a.start_time,
a.end_time,
a.now_work_proc_id,
a.now_work_proc_name,
a.create_time,
a.update_time,
a.update_by,
a.create_by,
a.del_flag,
a.status,
a.remarks,
a.company,
a.department,
a.cfree1,
a.cfree2,
a.cfree3,
a.cfree4,
a.cfree5,
a.cfree6,
a.cfree7,
a.cfree8,
a.cfree9,
a.cfree10,
a.cfree11,
a.cfree12,
a.cfree13,
a.cfree14,
a.cfree15
1=1
AND a.id = #{queryDTO.id}
AND a.helu_id = #{queryDTO.heluId}
AND a.ERP_order_sale_id = #{queryDTO.erpOrderSaleId}
AND a.ERP_order_sale_detail_id = #{queryDTO.erpOrderSaleDetailId}
AND a.ERP_order_product_id = #{queryDTO.erpOrderProductId}
AND a.ERP_order_product_detail_id = #{queryDTO.erpOrderProductDetailId}
AND a.order_plan_id = #{queryDTO.orderPlanId}
AND a.order_plan_detail_id = #{queryDTO.orderPlanDetailId}
AND a.order_product_id = #{queryDTO.orderProductId}
AND a.order_product_detail_id = #{queryDTO.orderProductDetailId}
AND a.plan_type = #{queryDTO.planType}
AND a.proc_line_id = #{queryDTO.procLineId}
AND a.material_id = #{queryDTO.materialId}
AND a.material_code = #{queryDTO.materialCode}
AND a.material_name = #{queryDTO.materialName}
AND a.material_standard_model = #{queryDTO.materialStandardModel}
AND a.caizhi = #{queryDTO.caizhi}
AND a.plan_quantity = #{queryDTO.planQuantity}
AND a.unit = #{queryDTO.unit}
AND a.department_id = #{queryDTO.departmentId}
AND a.start_time = #{queryDTO.startTime}
AND a.end_time = #{queryDTO.endTime}
AND a.now_work_proc_id = #{queryDTO.nowWorkProcId}
AND a.now_work_proc_name = #{queryDTO.nowWorkProcName}
AND a.create_time = #{queryDTO.createTime}
AND a.update_time = #{queryDTO.updateTime}
AND a.update_by = #{queryDTO.updateBy}
AND a.create_by = #{queryDTO.createBy}
AND a.del_flag = #{queryDTO.delFlag}
AND a.status = #{queryDTO.status}
AND a.remarks = #{queryDTO.remarks}
AND a.company = #{queryDTO.company}
AND a.department = #{queryDTO.department}
AND a.cfree1 = #{queryDTO.cfree1}
AND a.cfree2 = #{queryDTO.cfree2}
AND a.cfree3 = #{queryDTO.cfree3}
AND a.cfree4 = #{queryDTO.cfree4}
AND a.cfree5 = #{queryDTO.cfree5}
AND a.cfree6 = #{queryDTO.cfree6}
AND a.cfree7 = #{queryDTO.cfree7}
AND a.cfree8 = #{queryDTO.cfree8}
AND a.cfree9 = #{queryDTO.cfree9}
AND a.cfree10 = #{queryDTO.cfree10}
AND a.cfree11 = #{queryDTO.cfree11}
AND a.cfree12 = #{queryDTO.cfree12}
AND a.cfree13 = #{queryDTO.cfree13}
AND a.cfree14 = #{queryDTO.cfree14}
AND a.cfree15 = #{queryDTO.cfree15}
and a.id in
#{item}
AND a.create_time >= #{queryDTO.createTimeBegin}
AND a.create_time <= #{queryDTO.createTimeEnd}
AND a.update_time >= #{queryDTO.updateTimeBegin}
AND a.update_time <= #{queryDTO.updateTimeEnd}
delete from t_ppm_helu_detail where id = #{id}
delete from t_ppm_helu_detail where helu_id = #{heluId}
delete from t_ppm_helu_detail where id in
#{item}