mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
sqp修改-item配件汇总重复缺少处理
This commit is contained in:
+19
-2
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<select id="selectPartDetail"
|
<select id="selectPartDetail"
|
||||||
resultType="com.cf.imes.module.executor.controller.admin.orderParts.vo.PartGoodsRespVO">
|
resultType="com.cf.imes.module.executor.controller.admin.orderParts.vo.PartGoodsRespVO">
|
||||||
SELECT DISTINCT a.id,
|
SELECT a.id,
|
||||||
a.goods_id,
|
a.goods_id,
|
||||||
a.name,
|
a.name,
|
||||||
a.material,
|
a.material,
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
a.unit,
|
a.unit,
|
||||||
a.is_composite,
|
a.is_composite,
|
||||||
a.remark,
|
a.remark,
|
||||||
b.num,
|
SUM(b.num) AS num,
|
||||||
c.name as body_name,
|
c.name as body_name,
|
||||||
c.id as body_id,
|
c.id as body_id,
|
||||||
c.room_id,
|
c.room_id,
|
||||||
@@ -41,6 +41,23 @@
|
|||||||
WHERE b.order_id = #{orderId}
|
WHERE b.order_id = #{orderId}
|
||||||
and b.organ_id = #{organId}
|
and b.organ_id = #{organId}
|
||||||
and a.deleted = #{deleted}
|
and a.deleted = #{deleted}
|
||||||
|
GROUP BY
|
||||||
|
a.id,
|
||||||
|
a.goods_id,
|
||||||
|
a.name,
|
||||||
|
a.material,
|
||||||
|
a.type,
|
||||||
|
a.model,
|
||||||
|
a.spec,
|
||||||
|
a.brand,
|
||||||
|
a.factory,
|
||||||
|
a.unit,
|
||||||
|
a.is_composite,
|
||||||
|
a.remark,
|
||||||
|
c.id,
|
||||||
|
c.name,
|
||||||
|
c.room_id,
|
||||||
|
c.room_name;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectPartAll"
|
<select id="selectPartAll"
|
||||||
|
|||||||
Reference in New Issue
Block a user