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", state AS "state", order_source AS "orderSource", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2", spare_field_3 AS "spareField3", create_user AS "createUser", create_time AS "createTime", update_user AS "updateUser", update_time AS "updateTime", remark AS "remark"
select
from pm_sales_order 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},'%')
and state like CONCAT('%',#{paramCondition.state},'%')
select
from pm_sales_order 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},'%')
and state like CONCAT('%',#{paramCondition.state},'%')
select
from pm_sales_order where 1 = 1
and id like CONCAT('%',#{paramCondition.id},'%')
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},'%')
and state like CONCAT('%',#{paramCondition.state},'%')
order by create_time desc
select
from pm_sales_order 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},'%')
and state like CONCAT('%',#{paramCondition.state},'%')
SELECT
FROM pm_sales_order WHERE sales_order_code = #{paramCondition.salesOrderCode} AND id not in (#{paramCondition.id})