|
@@ -14,9 +14,10 @@
|
|
|
WHERE
|
|
|
( a.gs_delivery_num - a.gs_cancel_num ) != a.out_num
|
|
|
AND a.STATUS != '1' and c.code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
+ AND b.project_name = #{projectName}
|
|
|
</select>
|
|
|
<!-- 查询销售单项目名称 -->
|
|
|
- <select id="getDeliveryProjectName" resultType="com.tld.model.Delivery">
|
|
|
+ <select id="getDeliveryProjectName" resultType="String">
|
|
|
SELECT
|
|
|
DISTINCT b.project_name as name
|
|
|
FROM
|
|
@@ -319,7 +320,7 @@
|
|
|
tld_ask_goods_vitrual a
|
|
|
join tld_material b on a.wllb_code = b.code
|
|
|
WHERE
|
|
|
- a.ask_goods_id = #{deliveryId} and b.tld_id = #{materialId}
|
|
|
+ a.ask_goods_id = #{deliveryId} and b.tld_id = #{materialId} and a.entry_number = #{entryNumber}
|
|
|
</select>
|
|
|
<!-- 新增半成品流水 -->
|
|
|
<insert id="addRemovalHalfProduct">
|
|
@@ -351,7 +352,7 @@
|
|
|
<!-- 查询销售单绑定的软件类 -->
|
|
|
<select id="getEquipmentSoftware" resultType="java.util.Map">
|
|
|
select
|
|
|
- a.equipment_code as equipmentCode
|
|
|
+ a.equipment_code as equipmentCode,
|
|
|
a.software_code as softwareCode,
|
|
|
b.tld_id as materialId
|
|
|
from tld_equipment_binding_software a
|