Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
f58dde70
Commit
f58dde70
authored
Jun 03, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
934ed9f2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
OrderPayBiz.java
...ain/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
+21
-1
VehicleApplication.java
...in/java/com/xxfc/platform/vehicle/VehicleApplication.java
+0
-1
VehicleWarningMsgController.java
...fc/platform/vehicle/rest/VehicleWarningMsgController.java
+5
-1
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+1
-1
No files found.
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
View file @
f58dde70
...
@@ -75,7 +75,27 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> {
...
@@ -75,7 +75,27 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> {
public
void
notice
(
String
orderNo
,
String
serialNumber
){
public
void
notice
(
String
orderNo
,
String
serialNumber
){
log
.
error
(
"---支付回调---trade_no====="
+
orderNo
+
"----开始处理"
);
log
.
error
(
"---支付回调---trade_no====="
+
orderNo
+
"----开始处理"
);
Example
example
=
new
Example
(
OrderPay
.
class
);
Example
example
=
new
Example
(
OrderPay
.
class
);
example
.
createCriteria
().
andEqualTo
(
"trade_no"
,
orderNo
).
andEqualTo
(
"is_del"
,
0
).
andEqualTo
(
"status"
,
0
);
example
.
createCriteria
().
andEqualTo
(
"trade_no"
,
orderNo
).
andEqualTo
(
"is_del"
,
0
).
andEqualTo
(
"status"
,
0
);
List
<
OrderPay
>
list
=
mapper
.
selectByExample
(
example
);
List
<
OrderPay
>
list
=
mapper
.
selectByExample
(
example
);
if
(
list
.
size
()==
0
){
if
(
list
.
size
()==
0
){
log
.
error
(
"---支付回调---trade_no====="
+
orderNo
+
"----订单不存在或已处理"
);
log
.
error
(
"---支付回调---trade_no====="
+
orderNo
+
"----订单不存在或已处理"
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/VehicleApplication.java
View file @
f58dde70
...
@@ -20,7 +20,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
...
@@ -20,7 +20,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public
class
VehicleApplication
{
public
class
VehicleApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"123123"
);
SpringApplication
.
run
(
VehicleApplication
.
class
,
args
);
SpringApplication
.
run
(
VehicleApplication
.
class
,
args
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleWarningMsgController.java
View file @
f58dde70
...
@@ -3,6 +3,7 @@ package com.xxfc.platform.vehicle.rest;
...
@@ -3,6 +3,7 @@ package com.xxfc.platform.vehicle.rest;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONException
;
import
com.alibaba.fastjson.JSONException
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.common.msg.BaseResponse
;
import
com.xxfc.platform.vehicle.biz.VehicleWarningMsgBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleWarningMsgBiz
;
import
com.xxfc.platform.vehicle.common.BaseController
;
import
com.xxfc.platform.vehicle.common.BaseController
;
import
com.xxfc.platform.vehicle.common.CustomIllegalParamException
;
import
com.xxfc.platform.vehicle.common.CustomIllegalParamException
;
...
@@ -15,6 +16,9 @@ import com.xxfc.platform.vehicle.vo.QueryVehicleWarningMsgVo;
...
@@ -15,6 +16,9 @@ import com.xxfc.platform.vehicle.vo.QueryVehicleWarningMsgVo;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.Map
;
@RestController
@RestController
@RequestMapping
(
"/vehicleWarningMsg"
)
@RequestMapping
(
"/vehicleWarningMsg"
)
@IgnoreClientToken
@IgnoreClientToken
...
@@ -42,6 +46,7 @@ public class VehicleWarningMsgController extends BaseController<VehicleWarningMs
...
@@ -42,6 +46,7 @@ public class VehicleWarningMsgController extends BaseController<VehicleWarningMs
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
private
RestResponse
<
Integer
>
add
(
@RequestBody
AddVehicleWarningMsgVo
addVehicleWarningMsgVo
)
throws
Exception
{
private
RestResponse
<
Integer
>
add
(
@RequestBody
AddVehicleWarningMsgVo
addVehicleWarningMsgVo
)
throws
Exception
{
new
RestResponse
<
Map
>().
setData
(
new
HashMap
<
String
,
Object
>());
return
baseBiz
.
add
(
addVehicleWarningMsgVo
);
return
baseBiz
.
add
(
addVehicleWarningMsgVo
);
}
}
...
@@ -49,5 +54,4 @@ public class VehicleWarningMsgController extends BaseController<VehicleWarningMs
...
@@ -49,5 +54,4 @@ public class VehicleWarningMsgController extends BaseController<VehicleWarningMs
private
RestResponse
deal
(
@PathVariable
Integer
id
)
throws
Exception
{
private
RestResponse
deal
(
@PathVariable
Integer
id
)
throws
Exception
{
return
baseBiz
.
deal
(
id
);
return
baseBiz
.
deal
(
id
);
}
}
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
f58dde70
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
<select
id=
"searchUsableVehicle"
parameterType=
"java.util.Map"
<select
id=
"searchUsableVehicle"
parameterType=
"java.util.Map"
resultType=
"com.xxfc.platform.vehicle.entity.Vehicle"
>
resultType=
"com.xxfc.platform.vehicle.entity.Vehicle"
>
select v
m
.*
select v.*
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
</if>
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment