Browse Source

发行接口

master
qiubh 2 months ago
parent
commit
14e064446f

+ 1
- 0
zhywpt-service-ias/build.gradle View File

implementation "org.springframework.cloud:spring-cloud-starter-openfeign" implementation "org.springframework.cloud:spring-cloud-starter-openfeign"
implementation "org.springframework.boot:spring-boot-starter-data-redis" implementation "org.springframework.boot:spring-boot-starter-data-redis"
implementation "com.alibaba:easyexcel:3.2.1" 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 'org.springframework.boot:spring-boot-starter-quartz'
implementation(group: 'io.springfox', name: 'springfox-boot-starter', version: '3.0.0') { 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 View File

if (product == null || promotion == null) { if (product == null || promotion == null) {
throw newBusinessException("当前选择的产品不存在"); 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(!IsEnable.ENABLE.equals(product.getStatus()) || !IsEnable.ENABLE.equals(promotion.getStatus()), "当前选择的产品未上架");
throwBisExceptionOn(!product.getVanType().contains(request.getVanType().toString()), "当前选择的产品与车辆类型不符"); throwBisExceptionOn(!product.getVanType().contains(request.getVanType().toString()), "当前选择的产品与车辆类型不符");
throwBisExceptionOn(!request.getAgentId().equals(request.getOrgCode()) || !promotion.getAgencyId().contains(request.getAgentId()), "当前选择的产品与渠道不匹配"); throwBisExceptionOn(!request.getAgentId().equals(request.getOrgCode()) || !promotion.getAgencyId().contains(request.getAgentId()), "当前选择的产品与渠道不匹配");

Loading…
Cancel
Save