|
@ -12,7 +12,7 @@ |
|
|
FROM `sch_base_vehiclematerialgroup` vg |
|
|
FROM `sch_base_vehiclematerialgroup` vg |
|
|
LEFT JOIN md_base_material m ON m.material_id = vg.material_id |
|
|
LEFT JOIN md_base_material m ON m.material_id = vg.material_id |
|
|
WHERE vg.into_kiln_time IS NOT NULL |
|
|
WHERE vg.into_kiln_time IS NOT NULL |
|
|
AND vg.group_bind_material_status = '2' |
|
|
ORDER BY vg.into_kiln_time DESC |
|
|
</select> |
|
|
</select> |
|
|
<select id="outKilnReportByPage" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo"> |
|
|
<select id="outKilnReportByPage" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo"> |
|
|
SELECT vg.into_kiln_time, |
|
|
SELECT vg.into_kiln_time, |
|
@ -26,7 +26,7 @@ |
|
|
LEFT JOIN md_base_material m ON m.material_id = vg.material_id |
|
|
LEFT JOIN md_base_material m ON m.material_id = vg.material_id |
|
|
WHERE vg.into_kiln_time IS NOT NULL |
|
|
WHERE vg.into_kiln_time IS NOT NULL |
|
|
AND vg.out_kiln_time IS NOT NULL |
|
|
AND vg.out_kiln_time IS NOT NULL |
|
|
AND vg.group_bind_material_status = '2' |
|
|
ORDER BY vg.out_kiln_time DESC |
|
|
</select> |
|
|
</select> |
|
|
<select id="inKilnReport" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo"> |
|
|
<select id="inKilnReport" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo"> |
|
|
SELECT vg.into_kiln_time, |
|
|
SELECT vg.into_kiln_time, |
|
@ -40,6 +40,7 @@ |
|
|
WHERE vg.into_kiln_time IS NOT NULL |
|
|
WHERE vg.into_kiln_time IS NOT NULL |
|
|
AND vg.out_kiln_time IS NULL |
|
|
AND vg.out_kiln_time IS NULL |
|
|
AND vg.group_bind_material_status = '2' |
|
|
AND vg.group_bind_material_status = '2' |
|
|
|
|
|
ORDER BY vg.into_kiln_time DESC |
|
|
</select> |
|
|
</select> |
|
|
<select id="inventoryMaterialTimeoutWarning" |
|
|
<select id="inventoryMaterialTimeoutWarning" |
|
|
resultType="org.nl.wms.report.service.dao.vo.MaterialTimeoutVo"> |
|
|
resultType="org.nl.wms.report.service.dao.vo.MaterialTimeoutVo"> |
|
@ -48,7 +49,7 @@ |
|
|
p.region_name, |
|
|
p.region_name, |
|
|
ma.material_code, |
|
|
ma.material_code, |
|
|
ma.material_name, |
|
|
ma.material_name, |
|
|
vg.instorage_time |
|
|
vg.update_time |
|
|
FROM `sch_base_point` p |
|
|
FROM `sch_base_point` p |
|
|
LEFT JOIN sch_base_vehiclematerialgroup vg ON vg.vehicle_code = p.vehicle_code |
|
|
LEFT JOIN sch_base_vehiclematerialgroup vg ON vg.vehicle_code = p.vehicle_code |
|
|
AND vg.vehicle_type = p.vehicle_type AND vg.group_bind_material_status = '2' |
|
|
AND vg.vehicle_type = p.vehicle_type AND vg.group_bind_material_status = '2' |
|
@ -56,12 +57,14 @@ |
|
|
WHERE p.region_code = 'GTPHC' |
|
|
WHERE p.region_code = 'GTPHC' |
|
|
AND p.point_type = '2' |
|
|
AND p.point_type = '2' |
|
|
AND p.point_status = '3' |
|
|
AND p.point_status = '3' |
|
|
AND vg.instorage_time <![CDATA[<=]]> DATE_SUB(NOW(), INTERVAL 30 DAY) |
|
|
AND vg.update_time <![CDATA[<=]]> DATE_SUB(NOW(), INTERVAL 30 DAY) |
|
|
|
|
|
ORDER BY p.point_code |
|
|
</select> |
|
|
</select> |
|
|
<select id="insideDrumLineReport" resultType="org.nl.wms.report.service.dao.vo.InsideDrumLineVo"> |
|
|
<select id="insideDrumLineReport" resultType="org.nl.wms.report.service.dao.vo.InsideDrumLineVo"> |
|
|
SELECT vg.vehicle_code, |
|
|
SELECT vg.vehicle_code, |
|
|
vg.pcsn, |
|
|
vg.pcsn, |
|
|
vg.material_qty, |
|
|
vg.material_qty, |
|
|
|
|
|
vg.instorage_time, |
|
|
m.material_code, |
|
|
m.material_code, |
|
|
m.material_name |
|
|
m.material_name |
|
|
FROM `sch_base_vehiclematerialgroup` vg |
|
|
FROM `sch_base_vehiclematerialgroup` vg |
|
@ -71,6 +74,6 @@ |
|
|
<if test="blurry != null"> |
|
|
<if test="blurry != null"> |
|
|
AND m.material_code LIKE '%${blurry}%' |
|
|
AND m.material_code LIKE '%${blurry}%' |
|
|
</if> |
|
|
</if> |
|
|
ORDER BY vg.update_time DESC |
|
|
ORDER BY vg.instorage_time DESC |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |
|
|