Procházet zdrojové kódy

fix(omstruckOrder): 修复采购组织ID查询条件

- 移除动态采购组织ID判断逻辑
- 固定采购组织ID为2(达兴能源专用)
- 添加相关业务说明注释
xiaosonghong před 2 týdny
rodič
revize
0ef102cf76

+ 2 - 3
src/main/resources/com/steerinfo/dil/mapper/OmstruckOrderMapper.xml

@@ -1779,9 +1779,8 @@
         where db.MATERIAL_ID = #{materialId}
         and apo.SUPPLIER_UNIT_ID = #{supplierId}
         and apo.deleted = 0
-        <if test="purchaseOrgId != null">
-            and apo.purchasing_organization_id = #{purchaseOrgId}
-        </if>
+        <!-- 只有达兴能源在用,默认采购组织ID为2  -->
+        and apo.purchasing_organization_id = 2
         <if test="remark != null">
             and instr(db.RESULT_FOREIGN_SHIP_NAME, #{remark}) > 0
         </if>