Browse Source

2026-01-16

其他出入库的MESCCode改为传TransactionId
master
fengyuan_yang 1 month ago
parent
commit
fdf596096c
  1. 2
      src/main/java/com/gaotao/modules/erp/service/impl/ErpInterfaceServiceImpl.java
  2. 22
      src/main/resources/mapper/purchaseorder/PRDetailMapper.xml

2
src/main/java/com/gaotao/modules/erp/service/impl/ErpInterfaceServiceImpl.java

@ -293,7 +293,7 @@ public class ErpInterfaceServiceImpl implements ErpInterfaceService {
Map<String, Object> requestBody = new LinkedHashMap<>(); Map<String, Object> requestBody = new LinkedHashMap<>();
// 主表字段 // 主表字段
requestBody.put("MESCCode", nullToEmpty(firstLog.getDocumentNo()));
requestBody.put("MESCCode", nullToEmpty(firstLog.getTransactionId()));
requestBody.put("KdType", getKdType(interfaceName)); requestBody.put("KdType", getKdType(interfaceName));
requestBody.put("DDate", formatDate(firstLog.getTransactionDate())); requestBody.put("DDate", formatDate(firstLog.getTransactionDate()));
requestBody.put("CRdCode", nullToEmpty(firstLog.getDocumentNoType())); requestBody.put("CRdCode", nullToEmpty(firstLog.getDocumentNoType()));

22
src/main/resources/mapper/purchaseorder/PRDetailMapper.xml

@ -389,17 +389,17 @@
order by A.RequisitionNo desc order by A.RequisitionNo desc
</select> </select>
<select id="getReviewToolCount" resultType="java.lang.Integer"> <select id="getReviewToolCount" resultType="java.lang.Integer">
select count(1)
from PRDetail A
left join PRHeader B on A.RequisitionNo = B.RequisitionNo and A.Site = B.Site
left join business_role_list brl on brl.role_item_no = B.OrderType
left join view_authorization_hist_user C on A.RequisitionNo = C.order_ref1 and A.site = C.site
and C.can_auth_flag = 'Y'
left join PartFamily D on B.OrderRef1 = D.FamilyID and B.Site = D.Site
left join Supplier s on s.SupplierID = A.SupplierID
where C.auth_user_id = #{strUserId}
and B.Status != '已关闭'
and A.Site = #{site,jdbcType=VARCHAR}
select 1
<!-- from PRDetail A-->
<!-- left join PRHeader B on A.RequisitionNo = B.RequisitionNo and A.Site = B.Site-->
<!-- left join business_role_list brl on brl.role_item_no = B.OrderType-->
<!-- left join view_authorization_hist_user C on A.RequisitionNo = C.order_ref1 and A.site = C.site-->
<!-- and C.can_auth_flag = 'Y'-->
<!-- left join PartFamily D on B.OrderRef1 = D.FamilyID and B.Site = D.Site-->
<!-- left join Supplier s on s.SupplierID = A.SupplierID-->
<!-- where C.auth_user_id = #{strUserId}-->
<!-- and B.Status != '已关闭'-->
<!-- and A.Site = #{site,jdbcType=VARCHAR}-->
</select> </select>

Loading…
Cancel
Save