修复采购和集成酸轧细节
This commit is contained in:
@@ -77,6 +77,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<!-- 在途卷号:钢卷表存在且 data_type=10 -->
|
||||
<select id="selectInTransitSupplierCoilNos" resultType="java.lang.String">
|
||||
SELECT DISTINCT supplier_coil_no
|
||||
FROM wms_material_coil
|
||||
WHERE del_flag = 0 AND data_type = 10
|
||||
AND supplier_coil_no IN
|
||||
<foreach collection="coilNos" item="c" open="(" separator="," close=")">
|
||||
#{c}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<!-- 厂商历史记忆(去重,可按关键字过滤) -->
|
||||
<select id="selectDistinctManufacturers" resultType="java.lang.String">
|
||||
SELECT manufacturer FROM (
|
||||
SELECT DISTINCT manufacturer
|
||||
FROM erp_purchase_plan_item
|
||||
WHERE del_flag = '0' AND manufacturer IS NOT NULL AND TRIM(manufacturer) <> ''
|
||||
<if test="kw != null and kw != ''">
|
||||
AND manufacturer LIKE CONCAT('%', #{kw}, '%')
|
||||
</if>
|
||||
) t
|
||||
ORDER BY manufacturer
|
||||
LIMIT 20
|
||||
</select>
|
||||
|
||||
<!-- 按合同关键字查关联的采购计划ID(订单编号/合同号/合同名称) -->
|
||||
<select id="selectPlanIdsByContractKeyword" resultType="java.lang.Long">
|
||||
SELECT DISTINCT r.plan_id
|
||||
|
||||
Reference in New Issue
Block a user