1.优化上送提醒
This commit is contained in:
@@ -61,6 +61,13 @@ public class GwSendUtil {
|
||||
try {
|
||||
HttpReturn ret = HttpCaller.invokeReturn(builder.build());
|
||||
String responseStr = ret.getResponseStr();//获取响应的文本串
|
||||
if (responseStr.indexOf("\\\"") != -1) {
|
||||
responseStr = responseStr.replace("\\\"", "\"");
|
||||
}
|
||||
Map mapData = JSON.parseObject(responseStr, Map.class);
|
||||
if(mapData.containsKey("error_msg")){
|
||||
throw new BusinessException("国网上送接口超时,请重新上送");
|
||||
}
|
||||
map.put("succeed", responseStr);
|
||||
} catch (HttpCallerException e) {
|
||||
// error process
|
||||
|
||||
@@ -188,8 +188,8 @@ public class EventDetailController extends BaseController {
|
||||
String methodDescribe = getMethodDescribe("getAppEventDetailLtAmplitude");
|
||||
List<RmpEventDetailPO> list = eventDetailService.list(new LambdaQueryWrapper<RmpEventDetailPO>()
|
||||
.in(CollUtil.isNotEmpty(param.getIds()), RmpEventDetailPO::getLineId, param.getIds())
|
||||
.ge(StrUtil.isNotBlank(param.getStartTime()), RmpEventDetailPO::getStartTime, DateUtil.beginOfDay(DateUtil.parse(param.getStartTime())))
|
||||
.le(StrUtil.isNotBlank(param.getEndTime()), RmpEventDetailPO::getStartTime, DateUtil.endOfDay(DateUtil.parse(param.getEndTime())))
|
||||
.ge(StrUtil.isNotBlank(param.getStartTime()), RmpEventDetailPO::getStartTime, param.getStartTime())
|
||||
.le(StrUtil.isNotBlank(param.getEndTime()), RmpEventDetailPO::getStartTime, param.getEndTime())
|
||||
.lt(RmpEventDetailPO::getFeatureAmplitude,0.9)
|
||||
);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
|
||||
Reference in New Issue
Block a user