|
@@ -3,6 +3,7 @@ package com.fire.admin.rest;
|
|
|
|
|
|
import com.fire.common.redis.RedisAmountScript;
|
|
|
import com.fire.common.redis.RedisOrderIdScript;
|
|
|
+import com.fire.es.DispatchDto;
|
|
|
import com.fire.es.OrderEsDto;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -53,7 +54,7 @@ public class TestRest {
|
|
|
return date1;
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/insert")
|
|
|
+ @GetMapping("/insert")
|
|
|
public String insert() {
|
|
|
OrderEsDto orderEsDto = new OrderEsDto();
|
|
|
orderEsDto.setOrderId("1621586734674994200");
|
|
@@ -66,7 +67,7 @@ public class TestRest {
|
|
|
orderEsDto.setRecId("1621586734674994232A1_0");
|
|
|
orderEsDto.setApplyDate(timeSwap("2021-05-21 16:45:35"));
|
|
|
orderEsDto.setActiveDate(timeSwap("2021-05-21 16:55:35"));
|
|
|
- orderEsDto.setLimitedDate(timeSwap("22021-05-22 16:45:35"));
|
|
|
+ orderEsDto.setLimitedDate(timeSwap("2021-05-22 16:45:35"));
|
|
|
orderEsDto.setStatus(6);
|
|
|
orderEsDto.setNote("86400");
|
|
|
orderEsDto.setPhoneOperator(1);
|
|
@@ -106,6 +107,43 @@ public class TestRest {
|
|
|
// return res.toString();
|
|
|
// }
|
|
|
|
|
|
+ @GetMapping("/insertD")
|
|
|
+ public String insertDispatch() {
|
|
|
+ DispatchDto dispatchDto = new DispatchDto();
|
|
|
+ dispatchDto.setRecId("1622020048637019983A1_0");
|
|
|
+ dispatchDto.setOrderId("1622020048637020000");
|
|
|
+ dispatchDto.setPackageId("1:10:21");
|
|
|
+ dispatchDto.setPhoneNo("15836686332");
|
|
|
+ dispatchDto.setFlowAmount(10);
|
|
|
+ dispatchDto.setSendCount(1);
|
|
|
+ dispatchDto.setCreateDate(timeSwap("2021-05-26 17:07:31"));
|
|
|
+ dispatchDto.setCallbackTime(timeSwap("2021-05-26 17:07:32"));
|
|
|
+ dispatchDto.setSendStatus(4);
|
|
|
+ dispatchDto.setGwSeqNo("59579073373410");
|
|
|
+ dispatchDto.setGwStatus("ERROR");
|
|
|
+ dispatchDto.setGwErrorCode("OrderPool6:FAILED");
|
|
|
+ dispatchDto.setGwErrorMsg("FAILED");
|
|
|
+ dispatchDto.setPhoneHome("河南-驻马店-移动");
|
|
|
+ dispatchDto.setAppId("beijingweiboshijie");
|
|
|
+ dispatchDto.setLastCallbackMsg("");
|
|
|
+ dispatchDto.setOperatorBalancePrice((int)(9.98*10000));
|
|
|
+ dispatchDto.setBatchCount(1);
|
|
|
+ dispatchDto.setCustomerProductsId("1234");
|
|
|
+ dispatchDto.setCustomerName("北京微播视界科技有限公司");
|
|
|
+ dispatchDto.setChannelProductsId("");
|
|
|
+ dispatchDto.setOperatorId("");
|
|
|
+ dispatchDto.setRecordLog("");
|
|
|
+ dispatchDto.setChannelName("智信3移动");
|
|
|
+ dispatchDto.setPhoneOperator(1);
|
|
|
+ IndexQuery indexQuery = new IndexQuery();
|
|
|
+ indexQuery.setId(dispatchDto.getRecId());
|
|
|
+ indexQuery.setObject(dispatchDto);
|
|
|
+ IndexCoordinates indexCoordinates = IndexCoordinates.of("mobile_flow_dispatch_rec");
|
|
|
+ restTemplate.index(indexQuery, indexCoordinates);
|
|
|
+ return "sucees";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|