1.调整网关对外接口
This commit is contained in:
@@ -95,18 +95,19 @@ public class RUploadCommPointBusServiceImpl extends ServiceImpl<RUploadCommPoint
|
||||
|
||||
if(StrUtil.isNotBlank(param.getDataType())){
|
||||
sendParam.setStatisticalType(param.getDataType());
|
||||
sendParam.setStatisticalDate(temDate);
|
||||
|
||||
}
|
||||
sendParam.setStatisticalDate(temDate);
|
||||
sendParam.setStats(list.get(i));
|
||||
Map<String, String> sendRes = GwSendUtil.newSend(sendParam, GWSendEnum.COMM_POINT);
|
||||
List<String> ids = list.get(i).stream().map(RUploadCommPointBus::getObjId).collect(Collectors.toList());
|
||||
int count = GwSendUtil.returnInfoMsg(ids,sendRes);
|
||||
System.out.println("上送成功,上送成功返回"+count+"条,上传数据"+list.get(i).size()+"条");
|
||||
if(count == list.get(i).size()){
|
||||
|
||||
LambdaUpdateWrapper<RUploadCommPointBus> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
lambdaUpdateWrapper.set(RUploadCommPointBus::getUploadStatus,1).in(RUploadCommPointBus::getObjId,ids);
|
||||
this.update(lambdaUpdateWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -143,19 +143,19 @@ public class RUploadMainMonitorServiceImpl extends ServiceImpl<RUploadMainMonito
|
||||
|
||||
if(StrUtil.isNotBlank(param.getDataType())){
|
||||
sendParam.setStatisticalType(param.getDataType());
|
||||
sendParam.setStatisticalDate(temDate);
|
||||
}
|
||||
|
||||
sendParam.setStatisticalDate(temDate);
|
||||
sendParam.setStats(list.get(i));
|
||||
Map<String, String> sendRes = GwSendUtil.newSend(sendParam, GWSendEnum.MAIN_MONITOR);
|
||||
List<String> ids = list.get(i).stream().map(RUploadMainMonitorDataDTO::getObjId).collect(Collectors.toList());
|
||||
int count = GwSendUtil.returnInfoMsg(ids,sendRes);
|
||||
System.out.println("上送成功,上送成功返回"+count+"条");
|
||||
if(count == list.get(i).size()){
|
||||
// if(count == list.get(i).size()){
|
||||
LambdaUpdateWrapper<RUploadMainMonitorData> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
lambdaUpdateWrapper.set(RUploadMainMonitorData::getUploadStatus,1).in(RUploadMainMonitorData::getObjId,ids);
|
||||
this.update(lambdaUpdateWrapper);
|
||||
}
|
||||
// }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user