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
77ae591a
Commit
77ae591a
authored
Aug 22, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into hz_dev
parents
92448e05
9561bc88
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
62 additions
and
33 deletions
+62
-33
AppUserManageBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
+3
-3
BaseUserMemberBiz.java
.../github/wxiaoqi/security/admin/biz/BaseUserMemberBiz.java
+2
-1
AppUsersManageController.java
...wxiaoqi/security/admin/rest/AppUsersManageController.java
+3
-2
BaseUserMemberController.java
...wxiaoqi/security/admin/rest/BaseUserMemberController.java
+3
-3
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+6
-0
pom.xml
ace-modules/ace-tool/pom.xml
+6
-3
pom.xml
ace-sidecar/ace-sidecar-client-demo/pom.xml
+8
-2
pom.xml
ace-sidecar/ace-sidecar-server/pom.xml
+4
-1
TourGoodVerificationController.java
...fc/platform/tour/rest/TourGoodVerificationController.java
+1
-5
CertificationController.java
...latform/universal/controller/CertificationController.java
+1
-1
CertificationService.java
...xxfc/platform/universal/service/CertificationService.java
+8
-7
ResCode.java
...a/com/xxfc/platform/vehicle/constant/ResCode/ResCode.java
+1
-0
RentVehicleBookDTO.java
...va/com/xxfc/platform/vehicle/pojo/RentVehicleBookDTO.java
+3
-2
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+13
-3
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
View file @
77ae591a
...
@@ -103,9 +103,9 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
...
@@ -103,9 +103,9 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
if
(
CollectionUtils
.
isEmpty
(
appUserManageVos
))
{
if
(
CollectionUtils
.
isEmpty
(
appUserManageVos
))
{
return
new
PageInfo
<
AppUserManageVo
>();
return
new
PageInfo
<
AppUserManageVo
>();
}
}
Set
<
Integer
>
usSet
=
appUserManageDTO
.
getCitySet
();
//
Set<Integer> usSet = appUserManageDTO.getCitySet();
List
<
AppUserManageVo
>
results
=
appUserManageVos
.
parallelStream
().
filter
(
us
->
usSet
.
contains
(
us
.
getCityCode
())).
collect
(
Collectors
.
toList
());
//
List<AppUserManageVo> results = appUserManageVos.parallelStream().filter(us -> usSet.contains(us.getCityCode())).collect(Collectors.toList());
PageInfo
<
AppUserManageVo
>
pageInfo
=
PageInfo
.
of
(
result
s
);
PageInfo
<
AppUserManageVo
>
pageInfo
=
PageInfo
.
of
(
appUserManageVo
s
);
return
getAppUserManageVoPageInfo
(
pageInfo
);
return
getAppUserManageVoPageInfo
(
pageInfo
);
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BaseUserMemberBiz.java
View file @
77ae591a
...
@@ -208,11 +208,12 @@ public class BaseUserMemberBiz extends BaseBiz<BaseUserMemberMapper, BaseUserMem
...
@@ -208,11 +208,12 @@ public class BaseUserMemberBiz extends BaseBiz<BaseUserMemberMapper, BaseUserMem
if
(
baseUserMemberVO
!=
null
)
{
if
(
baseUserMemberVO
!=
null
)
{
return
baseUserMemberVO
;
return
baseUserMemberVO
;
}
}
return
n
ew
BaseUserMemberVO
()
;
return
n
ull
;
}
}
/**
/**
* 设置用户会员
* 设置用户会员
*
*
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUsersManageController.java
View file @
77ae591a
...
@@ -45,19 +45,20 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
...
@@ -45,19 +45,20 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
@Autowired
@Autowired
private
VehicleFeign
vehicleFeign
;
private
VehicleFeign
vehicleFeign
;
private
Integer
ALL_PERMISSIONS
=
1
;
/**
/**
* 查询所有
* 查询所有
* @return
* @return
*/
*/
@PostMapping
(
"/findAll"
)
@PostMapping
(
"/findAll"
)
public
ObjectRestResponse
<
PageInfo
<
AppUserManageVo
>>
findAllByQuery
(
@RequestBody
AppUserManageDTO
appUserManageDTO
,
HttpServletRequest
request
)
throws
Exception
{
public
ObjectRestResponse
<
PageInfo
<
AppUserManageVo
>>
findAllByQuery
(
@RequestBody
AppUserManageDTO
appUserManageDTO
)
throws
Exception
{
String
token
=
userAuthConfig
.
getToken
(
request
);
String
token
=
userAuthConfig
.
getToken
(
request
);
ObjectRestResponse
objectRestResponse
=
publicController
.
userinfoByToken
(
token
);
ObjectRestResponse
objectRestResponse
=
publicController
.
userinfoByToken
(
token
);
User
user
=
(
User
)
objectRestResponse
.
getData
();
User
user
=
(
User
)
objectRestResponse
.
getData
();
if
(
user
==
null
){
if
(
user
==
null
){
throw
new
BaseException
(
"User error!"
);
throw
new
BaseException
(
"User error!"
);
}
}
if
(
user
.
getDataAll
()==
1
)
{
if
(
ALL_PERMISSIONS
.
equals
(
user
.
getDataAll
())
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
findAllByQuery
(
appUserManageDTO
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
findAllByQuery
(
appUserManageDTO
));
}
}
ObjectRestResponse
<
Set
<
Integer
>>
setObjectRestResponse
=
vehicleFeign
.
corporationCity
(
user
.
getDataZone
(),
user
.
getDataCompany
());
ObjectRestResponse
<
Set
<
Integer
>>
setObjectRestResponse
=
vehicleFeign
.
corporationCity
(
user
.
getDataZone
(),
user
.
getDataCompany
());
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/BaseUserMemberController.java
View file @
77ae591a
...
@@ -3,7 +3,6 @@ package com.github.wxiaoqi.security.admin.rest;
...
@@ -3,7 +3,6 @@ package com.github.wxiaoqi.security.admin.rest;
import
com.github.wxiaoqi.security.admin.biz.BaseUserMemberBiz
;
import
com.github.wxiaoqi.security.admin.biz.BaseUserMemberBiz
;
import
com.github.wxiaoqi.security.admin.dto.BaseUserMemberVO
;
import
com.github.wxiaoqi.security.admin.dto.BaseUserMemberVO
;
import
com.github.wxiaoqi.security.admin.dto.UserMemberDTO
;
import
com.github.wxiaoqi.security.admin.dto.UserMemberDTO
;
import
com.github.wxiaoqi.security.admin.entity.AppUserManage
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMember
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMember
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
...
@@ -15,7 +14,6 @@ import io.swagger.annotations.ApiOperation;
...
@@ -15,7 +14,6 @@ import io.swagger.annotations.ApiOperation;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.lang.reflect.InvocationTargetException
;
import
java.util.Objects
;
import
java.util.Objects
;
/**
/**
...
@@ -40,7 +38,9 @@ public class BaseUserMemberController extends BaseController<BaseUserMemberBiz,
...
@@ -40,7 +38,9 @@ public class BaseUserMemberController extends BaseController<BaseUserMemberBiz,
@ApiOperation
(
value
=
"根据用户id获取用户会员信息"
)
@ApiOperation
(
value
=
"根据用户id获取用户会员信息"
)
@GetMapping
(
"/findOne/{userId}"
)
@GetMapping
(
"/findOne/{userId}"
)
public
ObjectRestResponse
<
BaseUserMemberVO
>
findOneByUserId
(
@PathVariable
Integer
userId
)
throws
Exception
{
public
ObjectRestResponse
<
BaseUserMemberVO
>
findOneByUserId
(
@PathVariable
Integer
userId
)
throws
Exception
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
findOneByUserId
(
userId
));
BaseUserMemberVO
oneByUserId
=
baseBiz
.
findOneByUserId
(
userId
);
oneByUserId
=(
oneByUserId
==
null
?
new
BaseUserMemberVO
():
oneByUserId
);
return
ObjectRestResponse
.
succ
(
oneByUserId
);
}
}
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
77ae591a
...
@@ -133,6 +133,12 @@
...
@@ -133,6 +133,12 @@
<if
test=
"source !=null "
>
<if
test=
"source !=null "
>
and d.source = #{source}
and d.source = #{source}
</if>
</if>
<if
test=
"citySet != null "
>
and d.city_code in
<foreach
collection=
"citySet"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
order by l.id ASC
order by l.id ASC
</select>
</select>
...
...
ace-modules/ace-tool/pom.xml
View file @
77ae591a
...
@@ -87,7 +87,10 @@
...
@@ -87,7 +87,10 @@
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
...
...
ace-sidecar/ace-sidecar-client-demo/pom.xml
View file @
77ae591a
...
@@ -36,8 +36,14 @@
...
@@ -36,8 +36,14 @@
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-config-server
</artifactId>
<artifactId>
spring-cloud-config-server
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-consul-all</artifactId>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
...
...
ace-sidecar/ace-sidecar-server/pom.xml
View file @
77ae591a
...
@@ -36,7 +36,10 @@
...
@@ -36,7 +36,10 @@
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-config-server
</artifactId>
<artifactId>
spring-cloud-config-server
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodVerificationController.java
View file @
77ae591a
...
@@ -5,20 +5,16 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
...
@@ -5,20 +5,16 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.tour.biz.TourGoodVerificationBiz
;
import
com.xxfc.platform.tour.biz.TourGoodVerificationBiz
;
import
com.xxfc.platform.tour.common.TourBaseController
;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
com.xxfc.platform.tour.vo.TourGoodOrderFindVo
;
import
com.xxfc.platform.tour.vo.TourGoodOrderFindVo
;
import
com.xxfc.platform.tour.vo.TourGoodOrderVo
;
import
com.xxfc.platform.tour.vo.TourGoodOrderVo
;
import
com.xxfc.platform.tour.vo.TourVerificationInfoVo
;
import
com.xxfc.platform.vehicle.feign.VehicleFeign
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RestController
@RequestMapping
(
"/tourGood/verfication"
)
@RequestMapping
(
"/tourGood/verfication"
)
@IgnoreClientToken
@IgnoreClientToken
public
class
TourGoodVerificationController
extends
TourBaseController
<
TourGoodVerificationBiz
>
{
public
class
TourGoodVerificationController
extends
BaseController
<
TourGoodVerificationBiz
,
TourGoodVerification
>
{
/**
/**
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/CertificationController.java
View file @
77ae591a
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/CertificationService.java
View file @
77ae591a
...
@@ -251,16 +251,16 @@ public class CertificationService {
...
@@ -251,16 +251,16 @@ public class CertificationService {
}
}
idInformation
.
setExpirationDate
(
expirationDate
);
idInformation
.
setExpirationDate
(
expirationDate
);
CertificationService
cs
=
applicationContext
.
getBean
(
this
.
getClass
());
CertificationService
cs
=
applicationContext
.
getBean
(
this
.
getClass
());
ObjectRestResponse
objRR
=
cs
.
addIdInformation
(
idInformation
);
return
cs
.
addIdInformation
(
idInformation
);
log
.
info
(
"----请求admin========="
+
objRR
);
//
log.info("----请求admin=========" + objRR);
if
(
objRR
.
getRel
())
{
//
if (objRR.getRel()) {
return
ObjectRestResponse
.
succ
(
objRR
.
getData
());
//
return ObjectRestResponse.succ(objRR.getData());
}
//
}
}
}
}
}
return
ObjectRestResponse
.
succ
(
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"网络异常,请稍后再试"
);
}
}
...
@@ -344,7 +344,8 @@ public class CertificationService {
...
@@ -344,7 +344,8 @@ public class CertificationService {
// idInformation.setId(idInformation1.getId());
// idInformation.setId(idInformation1.getId());
// idInformation.setUpdTime(new Date());
// idInformation.setUpdTime(new Date());
// idInformationMapper.updateByPrimaryKeySelective(idInformation);
// idInformationMapper.updateByPrimaryKeySelective(idInformation);
throw
new
BaseException
(
"该身份证已存在,不要重复认证!"
);
log
.
error
(
"该身份证已存在,不要重复认证"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"该身份证已存在,不要重复认证"
);
}
}
log
.
info
(
"----addIdInformation---userid==="
+
idInformation
.
getUserLoginId
()+
"----name===="
+
idInformation
.
getName
()+
"---IdNumber==="
+
idInformation
.
getIdNumber
());
log
.
info
(
"----addIdInformation---userid==="
+
idInformation
.
getUserLoginId
()+
"----name===="
+
idInformation
.
getName
()+
"---IdNumber==="
+
idInformation
.
getIdNumber
());
//认证成功后修改用户,用户认证状态
//认证成功后修改用户,用户认证状态
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/constant/ResCode/ResCode.java
View file @
77ae591a
...
@@ -23,6 +23,7 @@ public enum ResCode {
...
@@ -23,6 +23,7 @@ public enum ResCode {
VEHICLE_BOOKED_RECORD_ALREADY_CHANGED
(
103001
,
"车辆预定申请已被审批"
),
VEHICLE_BOOKED_RECORD_ALREADY_CHANGED
(
103001
,
"车辆预定申请已被审批"
),
VEHICLE_BOOKED_RECORD_STATUS_CHANGED
(
103002
,
"车辆预定申请状态已变更"
),
VEHICLE_BOOKED_RECORD_STATUS_CHANGED
(
103002
,
"车辆预定申请状态已变更"
),
VEHICLE_BOOKED_RECORD_MILEAGE_CHANGED
(
103003
,
"请输入仪表盘内当前显示的公里数"
),
VEHICLE_BOOKED_RECORD_MILEAGE_CHANGED
(
103003
,
"请输入仪表盘内当前显示的公里数"
),
VEHICLE_BOOKED_RECORD_NOT_EXIST
(
103004
,
"预定记录不存在"
),
CHECKUSER_AND_PHONE_NOT_NULL
(
103999
,
"收车或交车人姓名和电话不能为空"
),
CHECKUSER_AND_PHONE_NOT_NULL
(
103999
,
"收车或交车人姓名和电话不能为空"
),
USERNAME_AND_TELE_NOT_NULL
(
104000
,
"使用人和电话不能为空"
),
USERNAME_AND_TELE_NOT_NULL
(
104000
,
"使用人和电话不能为空"
),
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/RentVehicleBookDTO.java
View file @
77ae591a
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
java.time.Instant
;
import
java.time.Instant
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.ZoneOffset
;
import
java.time.ZoneOffset
;
import
java.util.List
;
import
java.util.List
;
...
@@ -94,7 +95,7 @@ public class RentVehicleBookDTO extends PageParam {
...
@@ -94,7 +95,7 @@ public class RentVehicleBookDTO extends PageParam {
this
.
bookStartDate
=
bookStartDate
;
this
.
bookStartDate
=
bookStartDate
;
//首次设置
//首次设置
if
(
null
==
this
.
startDateExtend
)
{
if
(
null
==
this
.
startDateExtend
)
{
this
.
startDateExtend
=
YMR_SLASH_FORMATTER
.
format
(
LocalDate
Time
.
parse
(
bookStartDate
,
YMR_SLASH_FORMATTER
).
minusDays
(
1L
));
this
.
startDateExtend
=
YMR_SLASH_FORMATTER
.
format
(
LocalDate
.
parse
(
bookStartDate
,
YMR_SLASH_FORMATTER
).
minusDays
(
1L
));
}
}
}
}
...
@@ -102,7 +103,7 @@ public class RentVehicleBookDTO extends PageParam {
...
@@ -102,7 +103,7 @@ public class RentVehicleBookDTO extends PageParam {
this
.
bookEndDate
=
bookEndDate
;
this
.
bookEndDate
=
bookEndDate
;
//首次设置
//首次设置
if
(
null
==
this
.
endDateExtend
)
{
if
(
null
==
this
.
endDateExtend
)
{
this
.
endDateExtend
=
YMR_SLASH_FORMATTER
.
format
(
LocalDate
Time
.
parse
(
bookEndDate
,
YMR_SLASH_FORMATTER
).
plusDays
(
1L
));
this
.
endDateExtend
=
YMR_SLASH_FORMATTER
.
format
(
LocalDate
.
parse
(
bookEndDate
,
YMR_SLASH_FORMATTER
).
plusDays
(
1L
));
}
}
}
}
}
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
77ae591a
...
@@ -436,6 +436,7 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -436,6 +436,7 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
if
(
yearMonthAndDate
.
size
()>
3
){
//连续的日期最多夸3个月
if
(
yearMonthAndDate
.
size
()>
3
){
//连续的日期最多夸3个月
throw
new
BaseException
(
ResultCode
.
ONLY_BOOK_TWO_MONTH
);
throw
new
BaseException
(
ResultCode
.
ONLY_BOOK_TWO_MONTH
);
}
}
//检验时间是否可以预定
Map
<
String
,
Integer
>
map
=
vehicleBookHourInfoBiz
.
getPredictableHours
(
bookVehicleVo
.
getBookStartDate
(),
bookVehicleVo
.
getBookEndDate
(),
bookVehicleVo
.
getNotCheckTimeLegal
());
Map
<
String
,
Integer
>
map
=
vehicleBookHourInfoBiz
.
getPredictableHours
(
bookVehicleVo
.
getBookStartDate
(),
bookVehicleVo
.
getBookEndDate
(),
bookVehicleVo
.
getNotCheckTimeLegal
());
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry:
yearMonthAndDate
.
entrySet
()){
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry:
yearMonthAndDate
.
entrySet
()){
Boolean
rsEach
=
applyVehicle4EmployeePerMonth
(
bookVehicleVo
.
getVehicleId
(),
entry
.
getValue
(),
entry
.
getKey
(),
map
);
Boolean
rsEach
=
applyVehicle4EmployeePerMonth
(
bookVehicleVo
.
getVehicleId
(),
entry
.
getValue
(),
entry
.
getKey
(),
map
);
...
@@ -458,10 +459,19 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -458,10 +459,19 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
vehicleBookRecordBiz
.
save
(
vehicleBookRecord
);
vehicleBookRecordBiz
.
save
(
vehicleBookRecord
);
}
else
{
}
else
{
vehicleBookRecord
=
vehicleBookRecordBiz
.
selectById
(
bookVehicleVo
.
getVehicleBookRecordId
());
vehicleBookRecord
=
vehicleBookRecordBiz
.
selectById
(
bookVehicleVo
.
getVehicleBookRecordId
());
if
(
vehicleBookRecord
==
null
)
{
throw
new
BaseException
(
ResCode
.
VEHICLE_BOOKED_RECORD_NOT_EXIST
.
getDesc
(),
ResCode
.
VEHICLE_BOOKED_RECORD_NOT_EXIST
.
getCode
());
}
else
{
//先取消预定,然后再修改
bookVehicleVo
.
setUnbookStartDate
(
new
DateTime
(
vehicleBookRecord
.
getBookStartDate
()).
toString
(
DATE_TIME_FORMATTER
));
bookVehicleVo
.
setUnbookEndDate
(
new
DateTime
(
vehicleBookRecord
.
getBookEndDate
()).
toString
(
DATE_TIME_FORMATTER
));
unbookVehicle
(
bookVehicleVo
);
vehicleBookRecord
.
setBookStartDate
(
startDay
.
toDate
());
vehicleBookRecord
.
setBookStartDate
(
startDay
.
toDate
());
vehicleBookRecord
.
setBookEndDate
(
endDay
.
toDate
());
vehicleBookRecord
.
setBookEndDate
(
endDay
.
toDate
());
vehicleBookRecordBiz
.
updateSelectiveByIdRe
(
vehicleBookRecord
);
vehicleBookRecordBiz
.
updateSelectiveByIdRe
(
vehicleBookRecord
);
}
}
}
// //添加预定时间记录
// //添加预定时间记录
for
(
Map
.
Entry
<
String
,
Integer
>
entry
:
map
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
Integer
>
entry
:
map
.
entrySet
())
{
...
...
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