|
@@ -16,36 +16,38 @@
|
|
|
|
|
|
<select id="getmachineParts" parameterType="PtsComponents" resultType="PtsComponents">
|
|
|
SELECT
|
|
|
- components_id AS componentsId,
|
|
|
- supplier_id AS supplierId,
|
|
|
- produce_id AS produceId,
|
|
|
- components_no AS componentsNo,
|
|
|
- components_name AS componentsName,
|
|
|
- components_type AS componentsType,
|
|
|
- components_cost AS componentsCost,
|
|
|
- components_weight AS componentsWeight,
|
|
|
- components_material AS componentsMaterial,
|
|
|
- components_mbsc AS componentsMbsc,
|
|
|
- components_specification AS componentsSpecification,
|
|
|
- components_img AS componentsImg,
|
|
|
- components_status AS componentsStatus,
|
|
|
- components_desc AS componentsDesc,
|
|
|
- components_create_time AS componentsCreateTime,
|
|
|
- components_update_time AS componentsUpdateTime
|
|
|
+ t.components_id AS componentsId,
|
|
|
+ t.supplier_id AS supplierId,
|
|
|
+ t.produce_id AS produceId,
|
|
|
+ t.components_no AS componentsNo,
|
|
|
+ t.components_name AS componentsName,
|
|
|
+ t.components_type AS componentsType,
|
|
|
+ t.components_cost AS componentsCost,
|
|
|
+ t.components_weight AS componentsWeight,
|
|
|
+ t.components_material AS componentsMaterial,
|
|
|
+ t.components_mbsc AS componentsMbsc,
|
|
|
+ t.components_specification AS componentsSpecification,
|
|
|
+ t.components_img AS componentsImg,
|
|
|
+ t.components_status AS componentsStatus,
|
|
|
+ t.components_desc AS componentsDesc,
|
|
|
+ t.components_create_time AS componentsCreateTime,
|
|
|
+ t.components_update_time AS componentsUpdateTime,
|
|
|
+ s.supplier_name AS supplierName
|
|
|
FROM
|
|
|
- tb_rst_pts_components
|
|
|
+ tb_rst_pts_components t
|
|
|
+ LEFT JOIN tb_rst_pts_supplier s on t.supplier_id = s.supplier_id
|
|
|
<where>
|
|
|
<if test="produceId != null and produceId != ''">
|
|
|
- produce_id = #{produceId}
|
|
|
+ t.produce_id = #{produceId}
|
|
|
</if>
|
|
|
<if test="componentsStatus != null and componentsStatus != ''">
|
|
|
- AND components_status = #{componentsStatus}
|
|
|
+ AND t.components_status = #{componentsStatus}
|
|
|
</if>
|
|
|
<if test="componentsNo != null and componentsNo != ''">
|
|
|
- AND components_no = #{componentsNo}
|
|
|
+ AND t.components_no = #{componentsNo}
|
|
|
</if>
|
|
|
<if test="componentsId != null and componentsId != ''">
|
|
|
- AND components_id = #{componentsId}
|
|
|
+ AND t.components_id = #{componentsId}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|