Commit ec701597 authored by hezhen's avatar hezhen

Merge branch 'dev-chw' of http://113.105.137.151:22280/youjj/cloud-platform into dev-chw

parents 2bade8be bd73622d
...@@ -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);
......
...@@ -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);
} }
...@@ -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);
} }
} }
...@@ -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>
......
...@@ -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
...@@ -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;
} }
...@@ -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>
......
...@@ -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;
......
...@@ -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());
} }
} }
......
...@@ -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>
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment