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
d74c428f
Commit
d74c428f
authored
Aug 29, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into jrz_dev
parents
c1e556cc
dc7c171f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
GwTourController.java
...in/java/com/xxfc/platform/uccn/rest/GwTourController.java
+1
-1
VehicleModelController.java
...a/com/xxfc/platform/uccn/rest/VehicleModelController.java
+5
-3
VehicleFeign.java
...in/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
+2
-1
VehicleJobHandler.java
...m/xxfc/platform/vehicle/jobhandler/VehicleJobHandler.java
+3
-5
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+2
-1
No files found.
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/GwTourController.java
View file @
d74c428f
...
@@ -11,7 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -11,7 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RestController
@RequestMapping
(
"/tour"
)
@RequestMapping
(
"
app/unauth
/tour"
)
@Slf4j
@Slf4j
@IgnoreClientToken
@IgnoreClientToken
public
class
GwTourController
extends
CommonBaseController
{
public
class
GwTourController
extends
CommonBaseController
{
...
...
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/VehicleModelController.java
View file @
d74c428f
...
@@ -5,6 +5,7 @@ import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
...
@@ -5,6 +5,7 @@ import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.CommonBaseController
;
import
com.github.wxiaoqi.security.common.rest.CommonBaseController
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.entity.VehicleModel
;
import
com.xxfc.platform.vehicle.entity.VehicleModel
;
import
com.xxfc.platform.vehicle.feign.VehicleFeign
;
import
com.xxfc.platform.vehicle.feign.VehicleFeign
;
import
com.xxfc.platform.vehicle.pojo.VModelDetailVO
;
import
com.xxfc.platform.vehicle.pojo.VModelDetailVO
;
...
@@ -52,9 +53,10 @@ public class VehicleModelController extends CommonBaseController {
...
@@ -52,9 +53,10 @@ public class VehicleModelController extends CommonBaseController {
* @return
* @return
*/
*/
@ApiOperation
(
"车型列表"
)
@ApiOperation
(
"车型列表"
)
@
Pos
tMapping
(
value
=
"/findVehicleModelPage"
)
@
Ge
tMapping
(
value
=
"/findVehicleModelPage"
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
<
VehicleModelVo
>
findVehicleModelPageUnauthfind
(
@RequestBody
VehicleModelQueryCondition
vmqc
)
{
public
ObjectRestResponse
<
PageDataVO
<
VehicleModelVo
>>
findVehicleModelPageUnauthfind
(
VehicleModelQueryCondition
vmqc
)
{
return
vehicleFeign
.
findVehicleModelPageUnauthfind
(
vmqc
);
ObjectRestResponse
<
PageDataVO
<
VehicleModelVo
>>
objectRestResponse
=
vehicleFeign
.
findVehicleModelPageUnauthfind
(
vmqc
);
return
objectRestResponse
;
}
}
}
}
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
View file @
d74c428f
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.vehicle.feign;
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.vehicle.feign;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.vo.GoodDataVO
;
import
com.github.wxiaoqi.security.common.vo.GoodDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.entity.*
;
import
com.xxfc.platform.vehicle.entity.*
;
import
com.xxfc.platform.vehicle.pojo.*
;
import
com.xxfc.platform.vehicle.pojo.*
;
...
@@ -133,5 +134,5 @@ public interface VehicleFeign {
...
@@ -133,5 +134,5 @@ public interface VehicleFeign {
ObjectRestResponse
<
VModelDetailVO
>
detailByParam
(
@RequestParam
(
"vehicleModel"
)
Map
<
String
,
Object
>
vehicleModel
);
ObjectRestResponse
<
VModelDetailVO
>
detailByParam
(
@RequestParam
(
"vehicleModel"
)
Map
<
String
,
Object
>
vehicleModel
);
@PostMapping
(
"/vehicleModel/app/unauth/findVehicleModelPage"
)
@PostMapping
(
"/vehicleModel/app/unauth/findVehicleModelPage"
)
public
ObjectRestResponse
<
VehicleModelVo
>
findVehicleModelPageUnauthfind
(
@RequestBody
VehicleModelQueryCondition
vmqc
);
public
ObjectRestResponse
<
PageDataVO
<
VehicleModelVo
>
>
findVehicleModelPageUnauthfind
(
@RequestBody
VehicleModelQueryCondition
vmqc
);
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/jobhandler/VehicleJobHandler.java
View file @
d74c428f
...
@@ -46,12 +46,10 @@ public class VehicleJobHandler extends IJobHandler {
...
@@ -46,12 +46,10 @@ public class VehicleJobHandler extends IJobHandler {
List
<
String
>
existVehicleIds
=
vehicleBiz
.
findExistVehicleIds
();
List
<
String
>
existVehicleIds
=
vehicleBiz
.
findExistVehicleIds
();
Dictionary
dictionary
=
thirdFeign
.
findDictionaryByTypeAndCode
(
DIC_VEHICLE_TYPE
,
DIC_VEHICLE_CODE
);
Dictionary
dictionary
=
thirdFeign
.
findDictionaryByTypeAndCode
(
DIC_VEHICLE_TYPE
,
DIC_VEHICLE_CODE
);
LocalDate
date
=
LocalDate
.
now
();
LocalDate
date
=
LocalDate
.
now
();
date
=
date
.
plusMonths
(
Integer
.
valueOf
(
dictionary
.
getDetail
()));
int
year
=
date
.
getYear
();
int
year
=
date
.
getYear
();
int
nowMonth
=
date
.
getMonthValue
();
int
month
=
date
.
getMonthValue
();
int
betweenMonth
=
Integer
.
valueOf
(
dictionary
.
getDetail
()).
intValue
();
String
yearAndMonth
=
String
.
format
(
"%d-%02d"
,
year
,
month
);
int
month
=
nowMonth
+
betweenMonth
>
12
?
(
betweenMonth
+
nowMonth
)
-
12
:
nowMonth
+
betweenMonth
;
year
=
month
>
nowMonth
?
year
:
year
+
1
;
String
yearAndMonth
=
String
.
format
(
"%d-%s"
,
year
,
month
>=
10
?
month:
"0"
+
month
);
XxlJobLogger
.
log
(
"----查询到的车型ids:【{}】"
,
existVehicleIds
);
XxlJobLogger
.
log
(
"----查询到的车型ids:【{}】"
,
existVehicleIds
);
if
(
CollectionUtils
.
isNotEmpty
(
existVehicleIds
))
{
if
(
CollectionUtils
.
isNotEmpty
(
existVehicleIds
))
{
List
<
VehicleBookInfo
>
bookInfos
=
existVehicleIds
.
stream
().
map
(
vehicleId
->
{
List
<
VehicleBookInfo
>
bookInfos
=
existVehicleIds
.
stream
().
map
(
vehicleId
->
{
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
d74c428f
...
@@ -11,6 +11,7 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
...
@@ -11,6 +11,7 @@ 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.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.vo.GoodDataVO
;
import
com.github.wxiaoqi.security.common.vo.GoodDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.biz.VehicleCataBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleCataBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleModelBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleModelBiz
;
import
com.xxfc.platform.vehicle.biz.VehiclePlatCataBiz
;
import
com.xxfc.platform.vehicle.biz.VehiclePlatCataBiz
;
...
@@ -133,7 +134,7 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
...
@@ -133,7 +134,7 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
@ApiOperation
(
"车型列表"
)
@ApiOperation
(
"车型列表"
)
@PostMapping
(
value
=
"/app/unauth/findVehicleModelPage"
)
@PostMapping
(
value
=
"/app/unauth/findVehicleModelPage"
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
<
VehicleModelVo
>
findVehicleModelPageUnauthfind
(
public
ObjectRestResponse
<
PageDataVO
<
VehicleModelVo
>
>
findVehicleModelPageUnauthfind
(
@RequestBody
@ApiParam
(
"查询条件"
)
VehicleModelQueryCondition
vmqc
,
HttpServletRequest
request
)
{
@RequestBody
@ApiParam
(
"查询条件"
)
VehicleModelQueryCondition
vmqc
,
HttpServletRequest
request
)
{
if
(
vmqc
.
getIsDel
()
==
null
)
{
if
(
vmqc
.
getIsDel
()
==
null
)
{
vmqc
.
setIsDel
(
0
);
vmqc
.
setIsDel
(
0
);
...
...
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