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
7b7426cb
Commit
7b7426cb
authored
Aug 10, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
5a65a16b
0383d6c0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
AppUserController.java
...github/wxiaoqi/security/admin/rest/AppUserController.java
+1
-1
OrderFeign.java
...c/main/java/com/xxfc/platform/order/feign/OrderFeign.java
+1
-1
BaseOrderController.java
...ava/com/xxfc/platform/order/rest/BaseOrderController.java
+6
-1
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+16
-13
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserController.java
View file @
7b7426cb
...
@@ -153,7 +153,7 @@ public class AppUserController extends CommonBaseController{
...
@@ -153,7 +153,7 @@ public class AppUserController extends CommonBaseController{
UserMemberVo
memberVo
=
userMemberBiz
.
getMemberInfoByUserId
(
userid
);
UserMemberVo
memberVo
=
userMemberBiz
.
getMemberInfoByUserId
(
userid
);
if
(
memberVo
!=
null
){
if
(
memberVo
!=
null
){
BeanUtils
.
copyProperties
(
userDTO
,
memberVo
);
BeanUtils
.
copyProperties
(
userDTO
,
memberVo
);
userDTO
.
setPayCount
(
orderFeign
.
baseOrderCount
(
SYS_TRUE
,
"1,4,5,6,7"
,
userid
).
getData
());
userDTO
.
setPayCount
(
orderFeign
.
baseOrderCount
(
SYS_TRUE
,
"1,4,5,6,7"
,
null
,
userid
).
getData
());
Integer
level
=
memberVo
.
getMemberLevel
();
Integer
level
=
memberVo
.
getMemberLevel
();
BaseUserMemberLevel
memberLevel
=
userMemberLevelBiz
.
getLevel
(
level
);
BaseUserMemberLevel
memberLevel
=
userMemberLevelBiz
.
getLevel
(
level
);
if
(
memberLevel
!=
null
){
if
(
memberLevel
!=
null
){
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/feign/OrderFeign.java
View file @
7b7426cb
...
@@ -20,5 +20,5 @@ import java.util.Set;
...
@@ -20,5 +20,5 @@ import java.util.Set;
@FeignClient
(
name
=
"xx-order"
)
@FeignClient
(
name
=
"xx-order"
)
public
interface
OrderFeign
{
public
interface
OrderFeign
{
@GetMapping
(
"/baseOrder/count"
)
@GetMapping
(
"/baseOrder/count"
)
public
ObjectRestResponse
<
Integer
>
baseOrderCount
(
@RequestParam
(
"hasMemberRight"
)
Integer
hasMemberRight
,
@RequestParam
(
"multiStatus"
)
String
multiStatu
s
,
@RequestParam
(
"userId"
)
Integer
userId
);
public
ObjectRestResponse
<
Integer
>
baseOrderCount
(
@RequestParam
(
"hasMemberRight"
)
Integer
hasMemberRight
,
@RequestParam
(
"multiStatus"
)
String
multiStatus
,
@RequestParam
(
"multiTypes"
)
String
multiType
s
,
@RequestParam
(
"userId"
)
Integer
userId
);
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BaseOrderController.java
View file @
7b7426cb
...
@@ -164,7 +164,7 @@ public class BaseOrderController extends CommonBaseController implements UserRes
...
@@ -164,7 +164,7 @@ public class BaseOrderController extends CommonBaseController implements UserRes
@RequestMapping
(
value
=
"/count"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/count"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
<
Integer
>
entityList
(
Integer
hasMemberRight
,
String
multiStatus
,
Integer
userId
){
public
ObjectRestResponse
<
Integer
>
entityList
(
Integer
hasMemberRight
,
String
multiStatus
,
String
multiTypes
,
Integer
userId
){
//查询列表数据
//查询列表数据
WeekendSqls
<
BaseOrder
>
weekendSqls
=
WeekendSqls
.<
BaseOrder
>
custom
();
WeekendSqls
<
BaseOrder
>
weekendSqls
=
WeekendSqls
.<
BaseOrder
>
custom
();
if
(
null
!=
hasMemberRight
)
{
if
(
null
!=
hasMemberRight
)
{
...
@@ -175,6 +175,11 @@ public class BaseOrderController extends CommonBaseController implements UserRes
...
@@ -175,6 +175,11 @@ public class BaseOrderController extends CommonBaseController implements UserRes
StrUtil
.
splitTrim
(
multiStatus
,
","
)
StrUtil
.
splitTrim
(
multiStatus
,
","
)
.
parallelStream
().
map
(
v
->
Integer
.
valueOf
(
v
)).
collect
(
Collectors
.
toList
()));
.
parallelStream
().
map
(
v
->
Integer
.
valueOf
(
v
)).
collect
(
Collectors
.
toList
()));
}
}
if
(
null
!=
multiTypes
)
{
weekendSqls
.
andIn
(
BaseOrder:
:
getType
,
StrUtil
.
splitTrim
(
multiTypes
,
","
)
.
parallelStream
().
map
(
v
->
Integer
.
valueOf
(
v
)).
collect
(
Collectors
.
toList
()));
}
if
(
null
!=
userId
)
{
if
(
null
!=
userId
)
{
weekendSqls
.
andEqualTo
(
BaseOrder:
:
getUserId
,
userId
);
weekendSqls
.
andEqualTo
(
BaseOrder:
:
getUserId
,
userId
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
7b7426cb
...
@@ -544,25 +544,28 @@
...
@@ -544,25 +544,28 @@
<!-- union 所有车型 -->
<!-- union 所有车型 -->
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
union
union
(select id as model_id,
(select vm.id as model_id, bc.id as company_id
<choose>
<when
test=
"startCompanyId != null"
>
#{startCompanyId} as company_id,
</when>
<otherwise>
#{parkBranchCompanyId} as company_id,
</otherwise>
</choose>
<if
test=
" catas != null "
>
<if
test=
" catas != null "
>
null as catas,
,null as catas
</if>
</if>
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
0 as hasVehicle,
,0 as hasVehicle
</if>
</if>
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
0 as distance
<!-- 处理距离 -->
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
</if>
</if>
from vehicle_model where vehicle_model.isdel = 0)
from vehicle_model vm
left join branch_company bc on
<choose>
<when
test=
"startCompanyId != null"
>
bc.id = #{startCompanyId}
</when>
<otherwise>
bc.id = #{parkBranchCompanyId}
</otherwise>
</choose>
where vm.isdel = 0)
</if>
</if>
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
order by
order by
...
...
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