Browse Source

2025-09-17 pda 生产领料

master
fengyuan_yang 4 months ago
parent
commit
3fa73543d4
  1. 2
      src/main/java/com/gaotao/modules/productionPicking/service/impl/ProductionPickingServiceImpl.java
  2. 4
      src/main/resources/mapper/productionPicking/ProductionPickingMapper.xml

2
src/main/java/com/gaotao/modules/productionPicking/service/impl/ProductionPickingServiceImpl.java

@ -321,7 +321,7 @@ public class ProductionPickingServiceImpl implements ProductionPickingService {
logEntity.setBuNo(buNo); logEntity.setBuNo(buNo);
logEntity.setDocumentType("生产领料"); logEntity.setDocumentType("生产领料");
logEntity.setDocumentNo(outboundNo); logEntity.setDocumentNo(outboundNo);
logEntity.setOrderLineNo(String.valueOf(itemNo));
logEntity.setOrderLineNo(itemNo.intValue() + "");
logEntity.setPartNo(partNo); logEntity.setPartNo(partNo);
logEntity.setRollNo(labelCode); logEntity.setRollNo(labelCode);
logEntity.setRollQty(BigDecimal.valueOf(quantity)); logEntity.setRollQty(BigDecimal.valueOf(quantity));

4
src/main/resources/mapper/productionPicking/ProductionPickingMapper.xml

@ -26,7 +26,7 @@
<if test="searchCode != null and searchCode != ''"> <if test="searchCode != null and searchCode != ''">
AND (b.NotifyNo LIKE CONCAT('%', #{searchCode}, '%') ) AND (b.NotifyNo LIKE CONCAT('%', #{searchCode}, '%') )
</if> </if>
<if test="searchCode != null and searchCode != ''">
<if test="searchCode == null or searchCode == ''">
AND CONVERT(DATE, b.NotifyDate) = CONVERT(DATE, GETDATE()) AND CONVERT(DATE, b.NotifyDate) = CONVERT(DATE, GETDATE())
</if> </if>
GROUP BY GROUP BY
@ -161,7 +161,7 @@
<update id="updateSoBomPickedQty"> <update id="updateSoBomPickedQty">
UPDATE SOBOM UPDATE SOBOM
SET QtyIssue = QtyIssue + #{transQty}
SET QtyIssue = isnull(QtyIssue, 0) + #{transQty}
WHERE Site = #{site} WHERE Site = #{site}
AND OrderNo = #{relatedNo} AND OrderNo = #{relatedNo}
AND ComponentPartNo = #{partNo} AND ComponentPartNo = #{partNo}

Loading…
Cancel
Save