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
e070eb4b
Commit
e070eb4b
authored
Oct 17, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c553ae1d
85528c08
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
14 deletions
+65
-14
AppUserPositionTempDTO.java
...ub/wxiaoqi/security/admin/dto/AppUserPositionTempDTO.java
+10
-1
AppUserPositionTempFindDTO.java
...xiaoqi/security/admin/dto/AppUserPositionTempFindDTO.java
+1
-0
AppUserPositionTemp.java
...ub/wxiaoqi/security/admin/entity/AppUserPositionTemp.java
+5
-0
AppUserPositionTempBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
+35
-8
AppUserPositionController.java
.../security/admin/rest/admin/AppUserPositionController.java
+12
-3
OrderRentVehicleController.java
.../xxfc/platform/order/rest/OrderRentVehicleController.java
+1
-1
RentVehicleController.java
...com/xxfc/platform/vehicle/rest/RentVehicleController.java
+1
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/AppUserPositionTempDTO.java
View file @
e070eb4b
...
...
@@ -25,7 +25,16 @@ public class AppUserPositionTempDTO {
private
String
name
;
@ApiModelProperty
(
value
=
"
职位
id"
)
@ApiModelProperty
(
value
=
"
身份
id"
)
private
Integer
positionId
;
@ApiModelProperty
(
value
=
"员工职位id"
)
private
Integer
jobId
;
@ApiModelProperty
(
value
=
"分公司id"
)
private
Integer
companyId
;
@ApiModelProperty
(
value
=
"分公司"
)
private
String
companyName
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/AppUserPositionTempFindDTO.java
View file @
e070eb4b
...
...
@@ -14,4 +14,5 @@ public class AppUserPositionTempFindDTO extends PageParam {
private
String
phone
;
private
String
name
;
private
Integer
status
;
private
Integer
companyId
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/AppUserPositionTemp.java
View file @
e070eb4b
...
...
@@ -64,6 +64,11 @@ public class AppUserPositionTemp implements Serializable {
@Column
(
name
=
"crt_time"
)
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
private
Long
crtTime
;
@Column
(
name
=
"upd_time"
)
@ApiModelProperty
(
value
=
"更新时间"
,
hidden
=
true
)
private
Long
updTime
;
@Column
(
name
=
"is_del"
)
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
View file @
e070eb4b
...
...
@@ -112,6 +112,9 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
if
(
StringUtils
.
isNotEmpty
(
appUserPositionTempFindDTO
.
getPhone
()))
{
criteria
.
andEqualTo
(
"phone"
,
appUserPositionTempFindDTO
.
getPhone
());
}
if
(
Objects
.
nonNull
(
appUserPositionTempFindDTO
.
getCompanyId
()))
{
criteria
.
andEqualTo
(
"companyId"
,
appUserPositionTempFindDTO
.
getCompanyId
());
}
if
(
Objects
.
nonNull
(
appUserPositionTempFindDTO
.
getStatus
()))
{
if
(
DataStatus
.
USERED
.
code
==
appUserPositionTempFindDTO
.
getStatus
())
{
criteria
.
andIsNotNull
(
"userId"
);
...
...
@@ -120,6 +123,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
criteria
.
andIsNull
(
"userId"
);
}
}
example
.
setOrderByClause
(
"upd_time desc"
);
PageDataVO
<
AppUserPositionTemp
>
pageDataVO
=
PageDataVO
.
pageInfo
(
appUserPositionTempFindDTO
.
getPage
(),
appUserPositionTempFindDTO
.
getLimit
(),
()
->
mapper
.
selectByExample
(
example
));
List
<
AppUserPositionTemp
>
data
=
pageDataVO
.
getData
();
if
(
CollectionUtils
.
isEmpty
(
data
))
{
...
...
@@ -177,8 +181,26 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
if
(
StringUtils
.
isEmpty
(
postionName
)){
throw
new
BaseException
(
"身份为空"
);
}
//根据手机号查询userId
AppUserLogin
userLogin
=
loginBiz
.
checkeUserLogin
(
phone
);
if
(
StringUtils
.
isNotBlank
(
name
)){
name
.
replaceAll
(
" "
,
""
);
}
Example
example
=
new
Example
(
AppUserPositionTemp
.
class
);
example
.
createCriteria
().
andEqualTo
(
"phone"
,
phone
).
andEqualTo
(
"isDel"
,
0
);
List
<
AppUserPositionTemp
>
list
=
selectByExample
(
example
);
Integer
id
=
0
;
Integer
userId
=
0
;
if
(
list
.
size
()>
0
){
AppUserPositionTemp
appUserPositionTemp1
=
list
.
get
(
0
);
id
=
appUserPositionTemp1
.
getId
();
userId
=
appUserPositionTemp1
.
getUserId
();
}
if
(
userId
==
null
||
userId
==
0
){
//根据手机号查询userId
AppUserLogin
userLogin
=
loginBiz
.
checkeUserLogin
(
phone
);
if
(
Objects
.
nonNull
(
userLogin
))
{
userId
=
userLogin
.
getId
();
}
}
for
(
Map
.
Entry
<
Integer
,
String
>
integerStringEntry
:
entrySet
)
{
if
(
integerStringEntry
.
getValue
().
contains
(
postionName
))
{
postionId
=
integerStringEntry
.
getKey
();
...
...
@@ -202,20 +224,24 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
jobId
=
1
;
}
appUserPositionTemp
=
new
AppUserPositionTemp
();
appUserPositionTemp
.
setCrtTime
(
Instant
.
now
().
toEpochMilli
());
appUserPositionTemp
.
setName
(
name
);
appUserPositionTemp
.
setPositionId
(
postionId
);
appUserPositionTemp
.
setPhone
(
phone
);
appUserPositionTemp
.
setUserId
(
0
);
appUserPositionTemp
.
setCompanyId
(
companyId
);
appUserPositionTemp
.
setCompanyName
(
companyName
);
appUserPositionTemp
.
setJobId
(
jobId
);
if
(
Objects
.
nonNull
(
userLogin
)
)
{
if
(
userId
!=
null
&&
userId
>
0
)
{
//更新用户身份信息
detailBiz
.
updateUserPositionByUserId
(
userLogin
.
getId
(),
postionId
);
appUserPositionTemp
.
setUserId
(
userLogin
.
getId
());
detailBiz
.
updateUserPositionByUserId
(
userId
,
postionId
);
appUserPositionTemp
.
setUserId
(
userId
);
}
if
(
id
!=
null
&&
id
>
0
){
appUserPositionTemp
.
setId
(
id
);
updateSelectiveById
(
appUserPositionTemp
);
}
else
{
insertSelective
(
appUserPositionTemp
);
}
insertSelective
(
appUserPositionTemp
);
}
catch
(
BaseException
ex
)
{
errorResultMap
=
new
HashMap
<>(
1
);
errorResultMap
.
put
(
"num"
,
i
);
...
...
@@ -260,4 +286,5 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
postionIdAndNameMap
=
appUserPositionBiz
.
findPostionIdAndNameMap
()
==
null
?
Collections
.
EMPTY_MAP
:
appUserPositionBiz
.
findPostionIdAndNameMap
();
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/admin/AppUserPositionController.java
View file @
e070eb4b
...
...
@@ -59,10 +59,19 @@ public class AppUserPositionController {
* 新增或编辑身份信息
* @return
*/
@PostMapping
(
"/add"
)
@PostMapping
(
"/add
UserPostion
"
)
public
ObjectRestResponse
<
Void
>
addUserPostion
(
@RequestBody
AppUserPositionTempDTO
appUserPositionTempDTO
){
appUserPositionTempBiz
.
add
(
appUserPositionTempDTO
);
return
ObjectRestResponse
.
succ
();
return
appUserPositionTempBiz
.
add
(
appUserPositionTempDTO
);
}
/**
* 新增或编辑身份信息
* @return
*/
@PostMapping
(
"/updUserPostion"
)
public
ObjectRestResponse
<
Void
>
updUserPostion
(
@RequestBody
AppUserPositionTempDTO
appUserPositionTempDTO
){
return
appUserPositionTempBiz
.
add
(
appUserPositionTempDTO
);
}
/**
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/OrderRentVehicleController.java
View file @
e070eb4b
...
...
@@ -75,7 +75,7 @@ public class OrderRentVehicleController extends CommonBaseController {
bo
.
setAppUserDTO
(
userFeign
.
userDetailById
(
dto
.
getAppUserId
()).
getData
());
bo
.
setCrtUser
(
"-1"
+
BaseContextHandler
.
getUserID
());
//设置-1表示查询所有的车
bo
.
setUseType
(-
1
);
//
bo.setUseType(-1);
orderRentVehicleService
.
createOrder
(
bo
);
return
ObjectRestResponse
.
succ
(
bo
.
getOrder
());
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/RentVehicleController.java
View file @
e070eb4b
...
...
@@ -142,7 +142,7 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
}
//设置显示是否有车
dto
.
setYearNo4Where
(
Boolean
.
TRUE
);
dto
.
setUseType
(
null
);
//
dto.setUseType(null);
return
ObjectRestResponse
.
succ
(
vehicleBiz
.
searchUsableModelBackStage
(
dto
));
}
...
...
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