瀏覽代碼

发行接口

master
qiubh 2 月之前
父節點
當前提交
14e064446f

+ 1
- 0
zhywpt-service-ias/build.gradle 查看文件

@@ -23,6 +23,7 @@ dependencies {
implementation "org.springframework.cloud:spring-cloud-starter-openfeign"
implementation "org.springframework.boot:spring-boot-starter-data-redis"
implementation "com.alibaba:easyexcel:3.2.1"
implementation "org.redisson:redisson-spring-boot-starter:3.14.0"
//定时器相关
implementation 'org.springframework.boot:spring-boot-starter-quartz'
implementation(group: 'io.springfox', name: 'springfox-boot-starter', version: '3.0.0') {

+ 2
- 0
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/OrderInitManager.java 查看文件

@@ -221,6 +221,8 @@ public class OrderInitManager extends AbstractOrderManager<OrderInitRequest> {
if (product == null || promotion == null) {
throw newBusinessException("当前选择的产品不存在");
}
String vehicleRegion = request.getVehiclePlate().substring(0, 2);
throwBisExceptionOn(hasText(product.getVehiclePalce()) && !product.getVehiclePalce().contains(vehicleRegion), "超出当前产品的车籍范围");
throwBisExceptionOn(!IsEnable.ENABLE.equals(product.getStatus()) || !IsEnable.ENABLE.equals(promotion.getStatus()), "当前选择的产品未上架");
throwBisExceptionOn(!product.getVanType().contains(request.getVanType().toString()), "当前选择的产品与车辆类型不符");
throwBisExceptionOn(!request.getAgentId().equals(request.getOrgCode()) || !promotion.getAgencyId().contains(request.getAgentId()), "当前选择的产品与渠道不匹配");

Loading…
取消
儲存