|
@@ -116,12 +116,12 @@
|
|
w.ship_number as shipNumber,
|
|
w.ship_number as shipNumber,
|
|
w.ship_name as shipName,
|
|
w.ship_name as shipName,
|
|
w.create_date as createDate,
|
|
w.create_date as createDate,
|
|
- d.water_content as waterContent,
|
|
|
|
- d.bulk_density as bulkDensity,
|
|
|
|
- d.jiaorenli as jiaorenli,
|
|
|
|
- d.impurity as impurity,
|
|
|
|
- d.mildew_grain as mildewGrain,
|
|
|
|
- d.imperfect_grain as imperfectGrain,
|
|
|
|
|
|
+ q.water_content as waterContent,
|
|
|
|
+ q.bulk_density as bulkDensity,
|
|
|
|
+ q.jiaorenli as jiaorenli,
|
|
|
|
+ q.impurity as impurity,
|
|
|
|
+ q.mildew_grain as mildewGrain,
|
|
|
|
+ q.imperfect_grain as imperfectGrain,
|
|
w.secretary_weigher as secretaryWeigher,
|
|
w.secretary_weigher as secretaryWeigher,
|
|
w.skin_inspector as skinInspector,
|
|
w.skin_inspector as skinInspector,
|
|
w.start_weight as startWeight,
|
|
w.start_weight as startWeight,
|
|
@@ -149,10 +149,10 @@
|
|
c.comp_imo as taxRegistrationNo,
|
|
c.comp_imo as taxRegistrationNo,
|
|
w.solid_grain_water as solidGrainWater,
|
|
w.solid_grain_water as solidGrainWater,
|
|
w.cost,
|
|
w.cost,
|
|
- IFNULL(q.quality_inspector,d.quality_inspector) as qualityInspector,
|
|
|
|
- IFNULL(q.re_inspector,q.quality_inspector) as reInspector
|
|
|
|
|
|
+ q.quality_inspector as qualityInspector,
|
|
|
|
+ IFNULL(q.re_inspector,q.quality_inspector) as reInspector,
|
|
|
|
+ q.quality_no as busNo
|
|
FROM warehouse_in_out_info w
|
|
FROM warehouse_in_out_info w
|
|
- left join warehouse_in_out_detail d on w.id=d.info_id
|
|
|
|
left join warehouse_base_info wbi on wbi.id = w.base_id
|
|
left join warehouse_base_info wbi on wbi.id = w.base_id
|
|
left join common_company c on c.comp_id = wbi.comp_id and c.delete_flag = 0
|
|
left join common_company c on c.comp_id = wbi.comp_id and c.delete_flag = 0
|
|
left join quality_inspection_management q on q.warehouse_in_out_id = w.id and q.comp_id = wbi.comp_id and q.delete_flag
|
|
left join quality_inspection_management q on q.warehouse_in_out_id = w.id and q.comp_id = wbi.comp_id and q.delete_flag
|
|
@@ -208,7 +208,7 @@
|
|
AND w.in_out_type = #{inOutType}
|
|
AND w.in_out_type = #{inOutType}
|
|
</if>
|
|
</if>
|
|
<if test="binNumber != null and binNumber != ''">
|
|
<if test="binNumber != null and binNumber != ''">
|
|
- AND (lower(w.bin_number) like lower(CONCAT('%',#{binNumber},'%')))
|
|
|
|
|
|
+ AND w.bin_number = #{binNumber}
|
|
</if>
|
|
</if>
|
|
<if test="compId != null and compId != ''">
|
|
<if test="compId != null and compId != ''">
|
|
AND wbi.comp_id = #{compId}
|
|
AND wbi.comp_id = #{compId}
|
|
@@ -230,8 +230,7 @@
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
AND w.status_flag = #{statusFlag}
|
|
AND w.status_flag = #{statusFlag}
|
|
</if>
|
|
</if>
|
|
- group by d.id
|
|
|
|
- ORDER BY w.update_date DESC,q.quality_inspector desc
|
|
|
|
|
|
+ ORDER BY q.quality_no
|
|
<if test="currentPage != null and currentPage != ''">
|
|
<if test="currentPage != null and currentPage != ''">
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
</if>
|
|
</if>
|