|
|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.contro.service.impl;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.common.util.CmdUtils;
|
|
|
@@ -71,7 +72,12 @@ public class HaixinServiceImpl implements IHaixinService {
|
|
|
sceneOrigBd.setShootCount(dto.getShootCount());
|
|
|
sceneOrigBd.setExpectedTime(this.getExpectedTime(dto.getShootCount()));
|
|
|
sceneOrigBd.setTaskNo(dto.getTaskNo());
|
|
|
+ if(StrUtil.isNotEmpty(dto.getPushAddress()) && dto.getPushAddress().endsWith(File.separator)){
|
|
|
+ dto.setPushAddress(dto.getPushAddress().substring(0, dto.getPushAddress().length() - 1));
|
|
|
+ }
|
|
|
sceneOrigBd.setPushAddress(dto.getPushAddress());
|
|
|
+ sceneOrigBd.setDistrictCode(dto.getDistrictCode());
|
|
|
+ sceneOrigBd.setDistrictName(dto.getDistrictName());
|
|
|
sceneOrigBdService.save(sceneOrigBd);
|
|
|
|
|
|
//推送进度
|
|
|
@@ -80,6 +86,11 @@ public class HaixinServiceImpl implements IHaixinService {
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
|
+ String aaa = "http://sdfsdf/";
|
|
|
+ System.out.println(aaa.substring(0, aaa.length() - 1));
|
|
|
+ }
|
|
|
+
|
|
|
private Integer getExpectedTime(Integer shootCount){
|
|
|
if(shootCount == null){
|
|
|
return null;
|
|
|
@@ -195,6 +206,9 @@ public class HaixinServiceImpl implements IHaixinService {
|
|
|
}
|
|
|
|
|
|
String url = haixinHost.concat(API_SYNC_RENDER_STATUS);
|
|
|
+ if(StrUtil.isNotEmpty(sceneOrigBd.getPushAddress())){
|
|
|
+ url = sceneOrigBd.getPushAddress().concat(API_SYNC_RENDER_STATUS);
|
|
|
+ }
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("taskNo",sceneOrigBd.getTaskNo());
|
|
|
params.put("projectId", sceneOrigBd.getTaskId());
|