Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
extend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
park
extend
Commits
2a125726
Commit
2a125726
authored
Jun 21, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
3b53e691
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
36 deletions
+9
-36
api/pom.xml
+0
-31
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+1
-1
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/DrivingLicenseFeign.java
+2
-1
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/VechicleFeign.java
+3
-1
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/ViolationFeign.java
+2
-1
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/edl_pub_service_sms/SmsFeign.java
+1
-1
infra/src/main/resources/mapper/VerifyInfoMapper.xml
+0
-0
No files found.
api/pom.xml
View file @
2a125726
...
...
@@ -51,35 +51,4 @@
</dependency>
</dependencies>
<profiles>
<profile>
<!-- 本地开发环境 -->
<id>
dev
</id>
<properties>
<profiles.active>
dev
</profiles.active>
</properties>
<activation>
<!-- 设置默认激活这个配置 -->
<activeByDefault>
true
</activeByDefault>
</activation>
</profile>
<profile>
<!-- 生产环境 -->
<id>
pro
</id>
<properties>
<profiles.active>
pro
</profiles.active>
</properties>
</profile>
<profile>
<!-- 测试环境 -->
<id>
test
</id>
<properties>
<profiles.active>
test
</profiles.active>
</properties>
</profile>
</profiles>
</project>
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
2a125726
...
...
@@ -70,7 +70,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
//判断规则1:用户已绑定的车辆不超过3辆,包括已解绑但未过一个月的车辆
QueryWrapper
boundQuery
=
new
QueryWrapper
();
boundQuery
.
eq
(
"user_id"
,
info
.
get
UserId
());
boundQuery
.
eq
(
"user_id"
,
info
.
get
Phone
());
Integer
bound
=
mapper
.
selectCount
(
boundQuery
);
if
(
bound
>=
3
)
{
return
ResponseGenerator
.
fail
(
StatusCode
.
BUSINESS_ERROR
);
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/DrivingLicenseFeign.java
View file @
2a125726
...
...
@@ -12,7 +12,8 @@ import javax.validation.Valid;
/**
*
*/
@FeignClient
(
value
=
"dcp-service-vem"
,
path
=
"DrivingLicense"
,
contextId
=
"dcp-service-vem-drivingLicense"
)
@FeignClient
(
url
=
"http://10.197.236.100:40204"
,
name
=
"dcp-service-vehicle"
,
path
=
"dcp/drivingLicense"
,
contextId
=
"dcp-service-vehicle-drivingLicense"
)
public
interface
DrivingLicenseFeign
{
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/VechicleFeign.java
View file @
2a125726
...
...
@@ -6,13 +6,15 @@ import com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.par
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
java.util.List
;
/**
* @author: xieshixiang
* @time:2020/6/19 14:26
**/
@FeignClient
(
value
=
"dcp-service-vem"
,
path
=
"vehicle"
,
contextId
=
"dcp-service-vem-vehicle"
)
@FeignClient
(
url
=
"http://10.197.236.100:40204"
,
name
=
"dcp-service-vehicle"
,
path
=
"dcp/vehicle"
,
contextId
=
"dcp"
+
"-service-vehicle-vehicle"
)
public
interface
VechicleFeign
{
/**
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/ViolationFeign.java
View file @
2a125726
...
...
@@ -15,7 +15,8 @@ import java.util.List;
* @author: xieshixiang
* @time:2020/6/19 15:26
**/
@FeignClient
(
value
=
"dcp-service-vem"
,
path
=
"violation"
,
contextId
=
"dcp-service-vem-violation"
)
@FeignClient
(
url
=
"http://10.197.236.100:40204"
,
name
=
"dcp-service-vehicle"
,
path
=
"violation"
,
contextId
=
"dcp"
+
"-service-vehicle-violation"
)
public
interface
ViolationFeign
{
/**
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/edl_pub_service_sms/SmsFeign.java
View file @
2a125726
...
...
@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
/**
* 短信feign
*/
@FeignClient
(
value
=
"edl-pub-service-sms"
,
path
=
"sms"
)
@FeignClient
(
url
=
"http://10.197.236.100:40204"
,
name
=
"dcp-service-vehicle"
,
path
=
"sms"
)
public
interface
SmsFeign
{
@PostMapping
(
{
"send"
}
)
...
...
infra/src/main/resources/mapper/VerifyInfoMapper.xml
View file @
2a125726
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