Commit c7dbaa5c authored by zhengjiangtao's avatar zhengjiangtao

duty值班优化

parent 56123f68
...@@ -170,7 +170,7 @@ public class View3dController extends BaseController { ...@@ -170,7 +170,7 @@ public class View3dController extends BaseController {
product = getProduct(); product = getProduct();
staticOrgCode = orgCode; staticOrgCode = orgCode;
token = getToken(); token = getToken();
return view3dService.getStatisticsDuty(getAppKey(),getProduct(),orgCode); return view3dService.getStatisticsDuty(getAppKey(),getProduct(),token,orgCode);
} }
@Permission @Permission
......
...@@ -6,7 +6,7 @@ import com.yeejoin.amos.fas.core.util.CommonResponseUtil; ...@@ -6,7 +6,7 @@ import com.yeejoin.amos.fas.core.util.CommonResponseUtil;
public class DutyModeServerFallback implements IDutyModeServer{ public class DutyModeServerFallback implements IDutyModeServer{
@Override @Override
public CommonResponse dutyListByDay(String appKey,String product,String orgCode,String dutyDate) { public CommonResponse dutyListByDay(String appKey,String product, String token,String orgCode,String dutyDate) {
return CommonResponseUtil.failure("fegin调用失败!!!"); return CommonResponseUtil.failure("fegin调用失败!!!");
} }
......
...@@ -13,6 +13,7 @@ public interface IDutyModeServer { ...@@ -13,6 +13,7 @@ public interface IDutyModeServer {
public CommonResponse dutyListByDay( public CommonResponse dutyListByDay(
@RequestHeader(name="appKey",required = true) String appKey, @RequestHeader(name="appKey",required = true) String appKey,
@RequestHeader(name="product",required = true) String product, @RequestHeader(name="product",required = true) String product,
@RequestHeader(name="token",required = true) String token,
@RequestHeader(name="orgCode",required = true) String orgCode, @RequestHeader(name="orgCode",required = true) String orgCode,
@RequestBody String param); @RequestBody String param);
......
...@@ -492,12 +492,12 @@ public class View3dServiceImpl implements IView3dService { ...@@ -492,12 +492,12 @@ public class View3dServiceImpl implements IView3dService {
} }
@Override @Override
public CommonResponse getStatisticsDuty(String appKey,String product,String orgCode) { public CommonResponse getStatisticsDuty(String appKey,String product,String token, String orgCode) {
Date curDate = new Date(); Date curDate = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("dutyDate", curDate); param.put("dutyDate", curDate);
return dutyModeServer.dutyListByDay(appKey,product,orgCode,param.toJSONString()); return dutyModeServer.dutyListByDay(appKey,product,token,orgCode,param.toJSONString());
} }
@Override @Override
......
...@@ -104,7 +104,7 @@ public interface IView3dService { ...@@ -104,7 +104,7 @@ public interface IView3dService {
* 今日值班统计 * 今日值班统计
* @return * @return
*/ */
CommonResponse getStatisticsDuty(String appKey, String product, String orgCode); CommonResponse getStatisticsDuty(String appKey, String product, String token, String orgCode);
/** /**
* 设备状态消息最新5条 * 设备状态消息最新5条
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<groupId>com.yeejoin</groupId> <groupId>com.yeejoin</groupId>
<artifactId>amos-component-rule</artifactId> <artifactId>amos-component-rule</artifactId>
<version>1.2.0-SNAPSHOT</version> <version>1.2.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment