This commit is contained in:
张江玮
2023-03-31 17:52:14 +08:00
parent 18e9643ddd
commit e556fd53af
40 changed files with 550 additions and 398 deletions

View File

@@ -292,7 +292,7 @@ IF 输入.flag = "9"
LEFT JOIN st_rule_IOdisStruct ruledis ON ruledis.struct_uuid = ivt.struct_id
LEFT JOIN md_me_material material ON material.material_id = ivt.material_id
WHERE
ivt.canuse_qty > 0
ivt.canuse_qty >= 0
AND point.point_status = '02'
AND point.lock_type = '00'
AND point.is_used = '1'
@@ -326,7 +326,7 @@ IF 输入.flag = "10"
LEFT JOIN sch_base_point point ON point.point_id = ivt.struct_id
left join st_rule_IOdisStruct ruledis on ruledis.struct_uuid = ivt.struct_id
WHERE
ivt.canuse_qty > 0
ivt.canuse_qty >= 0
AND point.point_status = '02'
AND point.lock_type = '00'
AND point.is_used ='1'
@@ -425,7 +425,7 @@ IF 输入.flag = "14"
LEFT JOIN st_rule_IOdisStruct ruledis ON ruledis.struct_uuid = ivt.struct_id
LEFT JOIN md_me_material material ON material.material_id = ivt.material_id
WHERE
ivt.canuse_qty > 0
ivt.canuse_qty >= 0
AND point.point_status = '02'
AND point.lock_type = '00'
AND point.is_used = '1'

View File

@@ -172,7 +172,7 @@
LEFT JOIN sch_base_point point ON point_uuid = ivt.struct_uuid
where
1=1
and ivt.canuse_qty>0
and ivt.canuse_qty>=0
OPTION 输入.material_uuid <> ""
ivt.material_uuid = 输入.material_uuid
ENDOPTION
@@ -241,7 +241,7 @@
LEFT JOIN sch_base_point point ON point_uuid = ivt.struct_uuid
where
ivt.quality_status in(1,2)
and ivt.canuse_qty>0
and ivt.canuse_qty>=0
OPTION 输入.material_uuid <> ""
ivt.material_uuid = 输入.material_uuid
ENDOPTION

View File

@@ -87,7 +87,7 @@
point.is_delete = '0'
AND point.point_type = '02'
AND point.lock_type = '00'
AND structivt.canuse_qty > 0
AND structivt.canuse_qty >= 0
AND point.is_used = '1'
and structivt.workprocedure_id = 输入.ivt_workprocedure_id
and structivt.is_full = 输入.is_full