状态回传接口测试

This commit is contained in:
lvleigang 2024-11-13 08:37:27 +08:00
parent 038f3deda8
commit 4a3b47d6d5
3 changed files with 18 additions and 7 deletions

View File

@ -111,6 +111,12 @@
<profile.active>dongj</profile.active> <profile.active>dongj</profile.active>
</properties> </properties>
</profile> </profile>
<profile>
<id>llg</id> <!--越城区-->
<properties>
<profile.active>llg</profile.active>
</properties>
</profile>
</profiles> </profiles>
<build> <build>
<finalName>kangarooDataCenterV3</finalName> <finalName>kangarooDataCenterV3</finalName>

View File

@ -992,6 +992,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
mdmModuleSendLogEntity.setTableName(mainDb+"_send_log"); mdmModuleSendLogEntity.setTableName(mainDb+"_send_log");
mdmModuleSendLogEntity.setFormmainId(doObjects.get(i).getString("id")); mdmModuleSendLogEntity.setFormmainId(doObjects.get(i).getString("id"));
mdmModuleSendLogEntity.setSts("Y"); mdmModuleSendLogEntity.setSts("Y");
mdmModuleSendLogEntity.setDataType("1");
mdmModuleSendLogEntity.setAppId(sysApplicationEntity.getId()); mdmModuleSendLogEntity.setAppId(sysApplicationEntity.getId());
mdmModuleSendLogEntity.setApiId(apiEntity.getId()); mdmModuleSendLogEntity.setApiId(apiEntity.getId());
//mdmModuleSendLogEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId()); //mdmModuleSendLogEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId());
@ -1122,10 +1123,12 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
} }
//保存日志 //保存日志
saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1");
objects.get(i).put("sendsanfzt123",true);
continue; continue;
}else { }else {
//保存日志 //保存日志
saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","转发失败:"+jsonResultEntity.getAttribute(),mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","转发失败:"+jsonResultEntity.getAttribute(),mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1");
objects.get(i).put("sendsanfzt123",false);
continue; continue;
} }
} }
@ -1133,12 +1136,14 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
//所有下发发送完成修改数据状态 //所有下发发送完成修改数据状态
for (int i = 0; i < objects.size(); i++) { for (int i = 0; i < objects.size(); i++) {
Map<String, Object> updateMap = new HashMap<>(); if(objects.get(i).getBoolean("sendsanfzt123")){
updateMap.put("tableName",mainDb); Map<String, Object> updateMap = new HashMap<>();
//updateMap.put("dataStatus", "Y"); updateMap.put("tableName",mainDb);
updateMap.put("addStatus", "1"); //updateMap.put("dataStatus", "Y");
updateMap.put("id", objects.get(i).getString("id")); updateMap.put("addStatus", "1");
mdmModuleDao.updateMdmSTs(updateMap); updateMap.put("id", objects.get(i).getString("id"));
mdmModuleDao.updateMdmSTs(updateMap);
}
} }
} }

View File

@ -1435,7 +1435,7 @@ public class EncapsulationImpl extends BaseService<EncapsulationEntity, String>
List<EncapsulationEntity> encapsulationEntities = encapsulationDao.queryCgrkddh(encapsulationEntity); List<EncapsulationEntity> encapsulationEntities = encapsulationDao.queryCgrkddh(encapsulationEntity);
//List<EncapsulationEntity> encapsulationEntities = new ArrayList<>(); //List<EncapsulationEntity> encapsulationEntities = new ArrayList<>();
//EncapsulationEntity encapsulationEntity1 = new EncapsulationEntity(); //EncapsulationEntity encapsulationEntity1 = new EncapsulationEntity();
//encapsulationEntity1.setCode("WW2411080010"); //encapsulationEntity1.setCode("WW2411110007");
//encapsulationEntity1.setUnitcode("001"); //encapsulationEntity1.setUnitcode("001");
//encapsulationEntities.add(encapsulationEntity1); //encapsulationEntities.add(encapsulationEntity1);
if(encapsulationEntities == null || encapsulationEntities.size() != 1){ if(encapsulationEntities == null || encapsulationEntities.size() != 1){