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
ec701597
Commit
ec701597
authored
Oct 29, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
2bade8be
bd73622d
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
33 additions
and
14 deletions
+33
-14
BannerBiz.java
...er/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
+2
-2
BannerMapper.java
.../main/java/com/xxfc/platform/app/mapper/BannerMapper.java
+1
-1
BannerController.java
...ain/java/com/xxfc/platform/app/rest/BannerController.java
+3
-2
BannerMapper.xml
.../xx-app-server/src/main/resources/mapper/BannerMapper.xml
+3
-0
pom.xml
xx-order/xx-order-api/pom.xml
+1
-1
ShuntApply.java
.../main/java/com/xxfc/platform/order/entity/ShuntApply.java
+2
-2
pom.xml
xx-order/xx-order-server/pom.xml
+7
-1
OrderTemplateBiz.java
...in/java/com/xxfc/platform/order/biz/OrderTemplateBiz.java
+1
-0
OrderRentVehicleService.java
.../xxfc/platform/order/service/OrderRentVehicleService.java
+1
-0
pom.xml
xx-universal/xx-universal-server/pom.xml
+0
-5
RentVehicleController.java
...com/xxfc/platform/vehicle/rest/RentVehicleController.java
+12
-0
No files found.
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
View file @
ec701597
...
@@ -22,9 +22,9 @@ import java.util.List;
...
@@ -22,9 +22,9 @@ import java.util.List;
@Service
@Service
public
class
BannerBiz
extends
BaseBiz
<
BannerMapper
,
Banner
>
{
public
class
BannerBiz
extends
BaseBiz
<
BannerMapper
,
Banner
>
{
public
List
<
BannerVo
>
findBannerList
(
Integer
type
,
Integer
location
,
String
multiLocation
,
Integer
platform
)
{
public
List
<
BannerVo
>
findBannerList
(
Integer
type
,
Integer
location
,
String
multiLocation
,
Integer
platform
,
Integer
status
)
{
List
<
BannerVo
>
bannerVos
=
new
ArrayList
<>();
List
<
BannerVo
>
bannerVos
=
new
ArrayList
<>();
List
<
Banner
>
banners
=
mapper
.
findBannerListByType
(
type
,
location
,
multiLocation
,
platform
);
List
<
Banner
>
banners
=
mapper
.
findBannerListByType
(
type
,
location
,
multiLocation
,
platform
,
status
);
banners
.
forEach
(
banner
->
{
banners
.
forEach
(
banner
->
{
BannerVo
bannerVo
=
new
BannerVo
();
BannerVo
bannerVo
=
new
BannerVo
();
BeanUtils
.
copyProperties
(
banner
,
bannerVo
);
BeanUtils
.
copyProperties
(
banner
,
bannerVo
);
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/mapper/BannerMapper.java
View file @
ec701597
...
@@ -27,5 +27,5 @@ public interface BannerMapper extends Mapper<Banner> {
...
@@ -27,5 +27,5 @@ public interface BannerMapper extends Mapper<Banner> {
List
<
Banner
>
findBannerListByType
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"location"
)
Integer
location
,
@Param
(
"multiLocation"
)
String
multiLocation
,
@Param
(
"platform"
)
Integer
platform
);
List
<
Banner
>
findBannerListByType
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"location"
)
Integer
location
,
@Param
(
"multiLocation"
)
String
multiLocation
,
@Param
(
"platform"
)
Integer
platform
,
@Param
(
"status"
)
Integer
status
);
}
}
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/rest/BannerController.java
View file @
ec701597
...
@@ -34,11 +34,12 @@ public class BannerController {
...
@@ -34,11 +34,12 @@ public class BannerController {
public
ObjectRestResponse
findBannerlist
(
@RequestParam
(
required
=
false
,
value
=
"type"
)
Integer
type
,
public
ObjectRestResponse
findBannerlist
(
@RequestParam
(
required
=
false
,
value
=
"type"
)
Integer
type
,
@RequestParam
(
required
=
false
,
value
=
"location"
)
Integer
location
,
@RequestParam
(
required
=
false
,
value
=
"location"
)
Integer
location
,
@RequestParam
(
required
=
false
,
value
=
"multiLocation"
)
String
multiLocation
,
@RequestParam
(
required
=
false
,
value
=
"multiLocation"
)
String
multiLocation
,
@RequestParam
(
value
=
"platform"
,
required
=
false
,
defaultValue
=
"0"
)
Integer
platform
)
{
@RequestParam
(
value
=
"platform"
,
required
=
false
,
defaultValue
=
"0"
)
Integer
platform
,
@RequestParam
(
value
=
"status"
,
required
=
false
,
defaultValue
=
"1"
)
Integer
status
)
{
if
(
null
==
location
&&
StrUtil
.
isBlank
(
multiLocation
))
{
if
(
null
==
location
&&
StrUtil
.
isBlank
(
multiLocation
))
{
return
ObjectRestResponse
.
createDefaultFail
();
return
ObjectRestResponse
.
createDefaultFail
();
}
}
List
<
BannerVo
>
bannerList
=
bannerBiz
.
findBannerList
(
type
,
location
,
multiLocation
,
platform
);
List
<
BannerVo
>
bannerList
=
bannerBiz
.
findBannerList
(
type
,
location
,
multiLocation
,
platform
,
status
);
return
ObjectRestResponse
.
succ
(
bannerList
);
return
ObjectRestResponse
.
succ
(
bannerList
);
}
}
}
}
xx-app/xx-app-server/src/main/resources/mapper/BannerMapper.xml
View file @
ec701597
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
<select
id=
"findBannerListByType"
resultMap=
"bannerMap"
>
<select
id=
"findBannerListByType"
resultMap=
"bannerMap"
>
select * from `banner` where `is_del`=0
select * from `banner` where `is_del`=0
<if
test=
"status != null"
>
and `status`=#{status}
</if>
<if
test=
"type != null"
>
<if
test=
"type != null"
>
and `type`=#{type}
and `type`=#{type}
</if>
</if>
...
...
xx-order/xx-order-api/pom.xml
View file @
ec701597
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<dependency>
<dependency>
<groupId>
com.ibeetl
</groupId>
<groupId>
com.ibeetl
</groupId>
<artifactId>
beetl
</artifactId>
<artifactId>
beetl
</artifactId>
<version>
2.9.3
</version>
<version>
3.2.3.RELEASE
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/ShuntApply.java
View file @
ec701597
...
@@ -219,11 +219,11 @@ public class ShuntApply implements Serializable {
...
@@ -219,11 +219,11 @@ public class ShuntApply implements Serializable {
@Column
(
name
=
"brand_name"
)
@Column
(
name
=
"brand_name"
)
@ApiModelProperty
(
"品牌名称"
)
@ApiModelProperty
(
"品牌名称"
)
private
Integer
brandName
;
private
String
brandName
;
@Column
(
name
=
"category_name"
)
@Column
(
name
=
"category_name"
)
@ApiModelProperty
(
"型号名称"
)
@ApiModelProperty
(
"型号名称"
)
private
Integer
categoryName
;
private
String
categoryName
;
}
}
xx-order/xx-order-server/pom.xml
View file @
ec701597
...
@@ -42,7 +42,13 @@
...
@@ -42,7 +42,13 @@
<dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<artifactId>
hutool-all
</artifactId>
<version>
5.4.2
</version>
<version>
5.4.6
</version>
</dependency>
<dependency>
<groupId>
com.ibeetl
</groupId>
<artifactId>
beetl
</artifactId>
<version>
3.2.3.RELEASE
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderTemplateBiz.java
View file @
ec701597
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.biz;
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.biz;
import
cn.hutool.core.lang.Dict
;
import
cn.hutool.core.lang.Dict
;
import
cn.hutool.extra.template.Template
;
import
cn.hutool.extra.template.Template
;
import
cn.hutool.extra.template.TemplateConfig
;
import
cn.hutool.extra.template.TemplateEngine
;
import
cn.hutool.extra.template.TemplateEngine
;
import
cn.hutool.extra.template.TemplateUtil
;
import
cn.hutool.extra.template.TemplateUtil
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/service/OrderRentVehicleService.java
View file @
ec701597
...
@@ -198,6 +198,7 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
...
@@ -198,6 +198,7 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
//商品类型
//商品类型
bo
.
getOrder
().
setGoodsType
(
vehicle
.
getGoodsType
());
bo
.
getOrder
().
setGoodsType
(
vehicle
.
getGoodsType
());
bo
.
setVehicle
(
vehicle
);
bo
.
setVehicle
(
vehicle
);
bo
.
setGoodsDepositType
(
vehicle
.
getDepositType
());
}
}
}
}
...
...
xx-universal/xx-universal-server/pom.xml
View file @
ec701597
...
@@ -73,11 +73,6 @@
...
@@ -73,11 +73,6 @@
<artifactId>
jetty-util
</artifactId>
<artifactId>
jetty-util
</artifactId>
<version>
9.3.7.v20160115
</version>
<version>
9.3.7.v20160115
</version>
</dependency>
</dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<version>
4.5.10
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.github.wxiaoqi
</groupId>
<groupId>
com.github.wxiaoqi
</groupId>
<artifactId>
ace-admin-api
</artifactId>
<artifactId>
ace-admin-api
</artifactId>
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/RentVehicleController.java
View file @
ec701597
...
@@ -403,6 +403,18 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
...
@@ -403,6 +403,18 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
return
ObjectRestResponse
.
succ
(
vehicleBookRecord
);
return
ObjectRestResponse
.
succ
(
vehicleBookRecord
);
}
}
@GetMapping
(
value
=
"/app/unauth/v2/getPriceByVehicle"
)
@IgnoreUserToken
public
ObjectRestResponse
<
List
<
VehicleModelCalendarPriceDTO
>>
getByVehicleIdV2
(
String
vehicleId
,
String
startDate
,
String
endDate
,
Long
startDateTemp
,
Long
endDateTemp
)
{
if
(
null
!=
startDateTemp
)
{
startDate
=
DateUtil
.
date
(
startDateTemp
).
toString
();
}
if
(
null
!=
endDateTemp
)
{
endDate
=
DateUtil
.
date
(
endDateTemp
).
toString
();
}
return
ObjectRestResponse
.
succ
(
getSynthesizePrice
(
vehicleId
,
startDate
,
endDate
,
getCurrentUserIdInt
()));
}
@GetMapping
(
value
=
"v2/getPriceByVehicleFeign"
)
@GetMapping
(
value
=
"v2/getPriceByVehicleFeign"
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
<
List
<
VehicleModelCalendarPriceDTO
>>
getByVehicleIdFeignV2
(
String
vehicleId
,
String
startDate
,
String
endDate
,
Integer
userId
)
{
public
ObjectRestResponse
<
List
<
VehicleModelCalendarPriceDTO
>>
getByVehicleIdFeignV2
(
String
vehicleId
,
String
startDate
,
String
endDate
,
Integer
userId
)
{
...
...
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