|
|
@@ -249,7 +249,7 @@ public class YdHuaGaoServiceImpl implements YdHuaGaoService {
|
|
|
try {
|
|
|
Long outboundId = kdYdOutbound.getId();
|
|
|
String djbh = kdYdOutbound.getDjbh();
|
|
|
- String deliveryId = kdYdOutbound.getDeliveryId();
|
|
|
+ String deliveryId = kdYdOutbound.getDeliveryBm();
|
|
|
|
|
|
log.debug("开始同步出库单: ID={}, 单据编号={}", outboundId, djbh);
|
|
|
|
|
|
@@ -354,8 +354,12 @@ public class YdHuaGaoServiceImpl implements YdHuaGaoService {
|
|
|
updateMap.put("textField_mg34txgz", kdYdOutbound.getYsdh());
|
|
|
|
|
|
// 添加同步操作(根据您的实际需求添加)
|
|
|
- // ydClient.operateData(...);
|
|
|
-
|
|
|
+ ydClient.operateData(YDParam.builder()
|
|
|
+ .formUuid("FORM-AADBCDA8126F41A0ADDEE3353828583192M8")
|
|
|
+ .searchCondition(JSONObject.toJSONString(UtilMap.map("textField_mg34txgm", kdYdOutbound.getDjbh())))
|
|
|
+ .formDataJson(JSONObject.toJSONString(updateMap))
|
|
|
+ .build(), YDConf.FORM_OPERATION.upsert
|
|
|
+ );
|
|
|
// 更新同步状态
|
|
|
kdYdOutbound.setSyncStatus("1");
|
|
|
kdYdOutboundMapper.updateById(kdYdOutbound);
|