Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
7cf01f91
提交
7cf01f91
authored
4月 26, 2024
作者:
艾庆国
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
保存车辆轨迹
上级
c4af73ac
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
34 行增加
和
21 行删除
+34
-21
TempController.java
...a/com/clx/performance/controller/temp/TempController.java
+19
-19
TruckTraceMqHandlerServiceImpl.java
...ce/service/impl/trace/TruckTraceMqHandlerServiceImpl.java
+14
-2
TruckTraceMqHandlerService.java
...performance/service/trace/TruckTraceMqHandlerService.java
+1
-0
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/temp/TempController.java
浏览文件 @
7cf01f91
package
com
.
clx
.
performance
.
controller
.
temp
;
import
com.clx.performance.component.ThirdComponent
;
import
com.clx.performance.extranal.transport.TransportService
;
import
com.clx.performance.feign.TransportFeignService
;
import
com.clx.performance.param.feign.transport.OrderChildPaySyncParam
;
import
com.clx.performance.param.feign.transport.OwnerSettlementSyncParam
;
import
com.clx.performance.param.feign.transport.ThirdOrderChildRiskStatusParam
;
import
com.clx.performance.service.TempService
;
import
com.clx.performance.service.child.FeignOrderChildService
;
import
com.clx.performance.vo.pc.child.OrderChildLineStatisticsVO
;
import
com.msl.common.dto.HttpDTO
;
import
com.clx.performance.service.trace.TruckTraceMqHandlerService
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.
*
;
import
javax.validation.constraints.NotBlank
;
import
org.springframework.web.bind.annotation.
RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
/**
...
...
@@ -40,11 +35,16 @@ public class TempController {
private
TransportFeignService
transportFeignService
;
@Autowired
private
TruckTraceMqHandlerService
truckTraceMqHandlerService
;
@ApiOperation
(
value
=
"test"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/test"
,
method
=
RequestMethod
.
GET
)
public
Result
test
()
{
truckTraceMqHandlerService
.
save
();
return
Result
.
ok
();
}
...
...
@@ -67,16 +67,16 @@ public class TempController {
// return Result.ok();
// }
@ApiOperation
(
value
=
"测试支付划账 (临时接口)"
,
notes
=
"<br>By:胡宁宁"
)
@RequestMapping
(
value
=
"/paymentTest"
,
method
=
RequestMethod
.
GET
)
public
Result
<
Void
>
paymentTest
(
@RequestParam
(
"fromUser"
)
@NotBlank
(
message
=
"扣款方"
)
String
fromUser
,
@RequestParam
(
"toUser"
)
@NotBlank
(
message
=
"收款方"
)
String
toUser
,
@RequestParam
(
"figure"
)
@NotBlank
(
message
=
"金额"
)
String
figure
)
{
tempService
.
paymentTest
(
fromUser
,
toUser
,
figure
);
return
Result
.
ok
();
}
//
@ApiOperation(value = "测试支付划账 (临时接口)", notes = "<br>By:胡宁宁")
//
@RequestMapping(value = "/paymentTest", method = RequestMethod.GET)
//
public Result<Void> paymentTest(@RequestParam("fromUser") @NotBlank(message = "扣款方") String fromUser,
//
@RequestParam("toUser") @NotBlank(message = "收款方") String toUser,
//
@RequestParam("figure") @NotBlank(message = "金额") String figure) {
//
//
tempService.paymentTest(fromUser,toUser,figure);
//
//
return Result.ok();
//
}
// @ApiOperation(value = "承运同步网络货运 (临时接口)", notes = "<br>By:艾庆国")
...
...
performance-web/src/main/java/com/clx/performance/service/impl/trace/TruckTraceMqHandlerServiceImpl.java
浏览文件 @
7cf01f91
package
com
.
clx
.
performance
.
service
.
impl
.
trace
;
import
com.clx.performance.dto.zjxl.TruckTraceDTO
;
import
com.clx.performance.esplus.mapper.DriverTraceESPlusMapper
;
import
com.clx.performance.esplus.mapper.TruckTraceESPlusMapper
;
import
com.clx.performance.esplus.model.TruckTraceESPlus
;
import
com.clx.performance.param.mq.trace.TruckTraceSyncMqParam
;
import
com.clx.performance.service.trace.TruckTraceMqHandlerService
;
import
com.clx.performance.utils.LocalDateTimeUtils
;
import
com.clx.performance.utils.zjxl.ZjxlGpsService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.elasticsearch.common.geo.GeoPoint
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -50,4 +50,16 @@ public class TruckTraceMqHandlerServiceImpl implements TruckTraceMqHandlerServic
truckTraceESPlusMapper
.
insertBatch
(
esList
);
}
@Override
public
void
save
(){
TruckTraceESPlus
es
=
new
TruckTraceESPlus
();
es
.
setTruckNo
(
"京A12345"
);
es
.
setAngle
(
new
BigDecimal
(
"123.45"
));
es
.
setHeight
(
new
BigDecimal
(
"23.45"
));
es
.
setLocation
(
new
GeoPoint
(
45.67
,
123.45
));
es
.
setGpsTime
(
LocalDateTimeUtils
.
formatTime
());
es
.
setMileage
(
new
BigDecimal
(
34.56
));
es
.
setSpeed
(
new
BigDecimal
(
"67.89"
));
}
}
performance-web/src/main/java/com/clx/performance/service/trace/TruckTraceMqHandlerService.java
浏览文件 @
7cf01f91
...
...
@@ -7,4 +7,5 @@ public interface TruckTraceMqHandlerService {
void
truckTracSync
(
TruckTraceSyncMqParam
mq
);
void
save
();
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论