推送失败更新OA单据

This commit is contained in:
xiangerlin 2025-07-13 16:51:16 +08:00
parent 596a8b13f3
commit aaad0c8bc5
1 changed files with 6 additions and 3 deletions

View File

@ -1184,8 +1184,9 @@ public class ZxBankDistributePluginInitializer extends PluginBaseEntity {
updateMap.put("id", objects.get(i).getString("id")); updateMap.put("id", objects.get(i).getString("id"));
mdmModuleDao.updateMdmSTs(updateMap); mdmModuleDao.updateMdmSTs(updateMap);
try { try {
//这里还没写完要判断下如果推送失败 要更新OA表单 JSONObject data = doObjects.get(i);
String dataId = objects.get(i).getString("data_id"); //观察一下这里的效果
String dataId = data.getString("data_id");
if (StrUtil.isNotEmpty(dataId)){ if (StrUtil.isNotEmpty(dataId)){
JSONObject attribute = JSONObject.parseObject(jsonResultEntity.getAttribute().toString()); JSONObject attribute = JSONObject.parseObject(jsonResultEntity.getAttribute().toString());
if (null != attribute){ if (null != attribute){
@ -1195,8 +1196,10 @@ public class ZxBankDistributePluginInitializer extends PluginBaseEntity {
bizMessage = "失败"; bizMessage = "失败";
} }
ZxBankEntity zxBankEntity = new ZxBankEntity(); ZxBankEntity zxBankEntity = new ZxBankEntity();
zxBankEntity.setId(dataId);
zxBankEntity.setTabName(data.getString("tab_name"));
zxBankEntity.setPayResultField(data.getString("pay_result_field"));
zxBankEntity.setPayResult(bizMessage); zxBankEntity.setPayResult(bizMessage);
zxBankEntity.setId(objects.get(i).getString("data_id"));
zxBankEntity.setDataSourceCode("HT-OA"); zxBankEntity.setDataSourceCode("HT-OA");
zxBankDao.updateResultStatus(zxBankEntity); zxBankDao.updateResultStatus(zxBankEntity);
} }