|
@@ -57,24 +57,28 @@
|
|
|
|
|
|
<select id="listMachine" parameterType="PtsMachine" resultType="PtsMachine">
|
|
|
SELECT
|
|
|
- machine_id machineId,
|
|
|
- machine_qrcode machineQrcode,
|
|
|
- machine_barcode machineBarcode,
|
|
|
- machine_sales_date machineSalesDate,
|
|
|
- machine_sales_state machineSalesState,
|
|
|
- machine_status machineStatus,
|
|
|
- machine_produced_time machineProducedTime,
|
|
|
- machine_sub_time machineSubTime,
|
|
|
- machine_is_print machineIsPrint,
|
|
|
- machine_compound_img machineCompoundImg,
|
|
|
- machine_process_state machineProcessState,
|
|
|
- machine_software_version machineSoftwareVersion,
|
|
|
- machine_hardware_version machineHardwareVersion,
|
|
|
- machine_create_time machineCreateTime,
|
|
|
- machine_update_time machineUpdateTime,
|
|
|
- machine_produce_type machineProduceType,
|
|
|
- machine_produce_id machineProduceId
|
|
|
- FROM tb_rst_pts_machine
|
|
|
+ t.machine_id machineId,
|
|
|
+ t.machine_qrcode machineQrcode,
|
|
|
+ t.machine_barcode machineBarcode,
|
|
|
+ t.machine_sales_date machineSalesDate,
|
|
|
+ t.machine_sales_state machineSalesState,
|
|
|
+ t.machine_status machineStatus,
|
|
|
+ t.machine_produced_time machineProducedTime,
|
|
|
+ t.machine_sub_time machineSubTime,
|
|
|
+ t.machine_is_print machineIsPrint,
|
|
|
+ t.machine_compound_img machineCompoundImg,
|
|
|
+ t.machine_process_state machineProcessState,
|
|
|
+ t.machine_software_version machineSoftwareVersion,
|
|
|
+ t.machine_hardware_version machineHardwareVersion,
|
|
|
+ t.machine_create_time machineCreateTime,
|
|
|
+ t.machine_update_time machineUpdateTime,
|
|
|
+ t.machine_produce_type machineProduceType,
|
|
|
+ t.machine_produce_id machineProduceId,
|
|
|
+ trpb.bom_version AS machineHardwareVersionName,
|
|
|
+ trpmv.machine_version_no AS machineSoftwareVersionName
|
|
|
+ FROM tb_rst_pts_machine t
|
|
|
+ LEFT JOIN tb_rst_pts_bom trpb ON t.machine_bom_id = trpb.bom_id
|
|
|
+ LEFT JOIN tb_rst_pts_machine_version trpmv ON t.machine_software_version = trpmv.machine_version_id
|
|
|
<where>
|
|
|
<if test="machineBarcode != null and machineBarcode != ''">
|
|
|
machine_barcode = #{machineBarcode}
|