id AS "id", sales_order_code AS "salesOrderCode", customer_no AS "customerNo", cargo_no AS "cargoNo", product_code AS "productCode", product_name AS "productName", plan_number AS "planNumber", plan_start_time AS "planStartTime", plan_end_time AS "planEndTime", workshop_code AS "workshopCode", line_code AS "lineCode", delivery_time AS "deliveryTime", create_user AS "createUser", create_time AS "createTime"
select
from pm_sales_order_child where 1 = 1
and sales_order_code like CONCAT('%',#{paramCondition.salesOrderCode},'%')
and customer_no like CONCAT('%',#{paramCondition.customerNo},'%')
and cargo_no like CONCAT('%',#{paramCondition.cargoNo},'%')
and product_code like CONCAT('%',#{paramCondition.productCode},'%')
and product_name like CONCAT('%',#{paramCondition.productName},'%')
and workshop_code like CONCAT('%',#{paramCondition.workshopCode},'%')
and line_code like CONCAT('%',#{paramCondition.lineCode},'%')
select
from pm_sales_order_child where 1 = 1
and sales_order_code like CONCAT('%',#{paramCondition.salesOrderCode},'%')
and customer_no like CONCAT('%',#{paramCondition.customerNo},'%')
and cargo_no like CONCAT('%',#{paramCondition.cargoNo},'%')
and product_code like CONCAT('%',#{paramCondition.productCode},'%')
and product_name like CONCAT('%',#{paramCondition.productName},'%')
and workshop_code like CONCAT('%',#{paramCondition.workshopCode},'%')
and line_code like CONCAT('%',#{paramCondition.lineCode},'%')
select
from pm_sales_order_child where 1 = 1
and sales_order_code like CONCAT('%',#{paramCondition.salesOrderCode},'%')
and customer_no like CONCAT('%',#{paramCondition.customerNo},'%')
and cargo_no like CONCAT('%',#{paramCondition.cargoNo},'%')
and product_code like CONCAT('%',#{paramCondition.productCode},'%')
and product_name like CONCAT('%',#{paramCondition.productName},'%')
and workshop_code like CONCAT('%',#{paramCondition.workshopCode},'%')
and line_code like CONCAT('%',#{paramCondition.lineCode},'%')
select
from pm_sales_order_child where 1 = 1
and sales_order_code like CONCAT('%',#{paramCondition.salesOrderCode},'%')
and customer_no like CONCAT('%',#{paramCondition.customerNo},'%')
and cargo_no like CONCAT('%',#{paramCondition.cargoNo},'%')
and product_code like CONCAT('%',#{paramCondition.productCode},'%')
and product_name like CONCAT('%',#{paramCondition.productName},'%')
and workshop_code like CONCAT('%',#{paramCondition.workshopCode},'%')
and line_code like CONCAT('%',#{paramCondition.lineCode},'%')
SELECT SUM(plan_number) AS planNumber FROM pm_sales_order_child WHERE sales_order_code = #{paramCondition.salesOrderCode}