阿赫 9 months ago
parent
commit
af2a5bb222

+ 2 - 2
zkqy-custom-business/src/main/java/com/zkqy/business/service/impl/ProductInventoryServiceImpl.java

@@ -600,7 +600,7 @@ public class ProductInventoryServiceImpl implements IProductInventoryService {
 //            productCodeListVO.getQrCode();
 
             // 得到当前码单出库信息
-            ProductOutboundRecord productOutboundRecord = productOutboundRecordMapper.selectProductOutboundRecordWhetherExist(productCodeListVO.getQrCodeId(), productCodeListVO.getQrCode());
+            ProductOutboundRecord productOutboundRecord = productOutboundRecordMapper.selectProductOutboundRecordWhetherExist(productCodeListVO.getQrCode(),productCodeListVO.getQrCodeId());
             productOutboundRecord.getNoticeNumber(); // 通知单号
 
             // 根据通知单号查询出库单信息
@@ -626,7 +626,7 @@ public class ProductInventoryServiceImpl implements IProductInventoryService {
                     .orElse(null);
 
             // getBatchState() 0 表示正常登账状态不可以退库 1表示撤销登账状态可以退库
-            if (find != null && find.getBatchState() == 1) {
+            if (find != null && (find.getBatchState() == '0')) {
                 retList.add(productCodeListVO);
                 continue;
             }

+ 2 - 2
zkqy-custom-business/src/main/resources/mapper/business/ProductCodeListMapper.xml

@@ -422,8 +422,8 @@
             <if test="totalSuttle != null">total_suttle = #{totalSuttle},</if>
             <if test="totalGrossWeight != null">total_gross_weight = #{totalGrossWeight},</if>
             <if test="productColour != null">product_colour = #{productColour},</if>
-            <if test="withdrawingFlag != null">withdrawing_flag = #{withdrawingFlag}</if>
-            <if test="otherStates != null">other_states = #{otherStates}</if>
+            <if test="withdrawingFlag != null">withdrawing_flag = #{withdrawingFlag},</if>
+            <if test="otherStates != null">other_states = #{otherStates},</if>
             <if test="parentCode != null">parent_code = #{parentCode},</if>
 
         </trim>