站点类型
parent
ce86bb5f95
commit
06fccc2cca
|
|
@ -25,6 +25,7 @@ public class BizCompanyEntity {
|
|||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
private Integer stationType;
|
||||
/**
|
||||
* 归属用户
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ public class ModifyBizCompanyParam {
|
|||
*/
|
||||
private Long userId;
|
||||
|
||||
private Integer stationType;
|
||||
/**
|
||||
* 业务对象; 字典代码:biz_obj
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ public class OrderPagingResult {
|
|||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
private Integer stationType;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ public class TrainBillResult {
|
|||
*/
|
||||
private String nickname;
|
||||
private BizObj bizObj;
|
||||
private Integer stationType;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
|
|
|
|||
|
|
@ -126,6 +126,10 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
* 新增
|
||||
*/
|
||||
public void add(AddOrderInfoParam addOrderInfoParam, String orderSn) {
|
||||
Long stationId = addOrderInfoParam.getStationId();
|
||||
BizCompanyEntity stationInfo = bizCompanyService.getById(stationId);
|
||||
Assert.notNull(stationInfo, () -> Exceptions.clierr("站点信息错误"));
|
||||
Assert.isTrue(Integer.valueOf(1).equals(stationInfo.getStationType()), () -> Exceptions.clierr("系统暂未对接,预约失败"));
|
||||
Assert.isFalse(this.exists(Wrappers.<OrderInfoEntity>lambdaQuery().eq(OrderInfoEntity::getSn, addOrderInfoParam.getSn())), () -> Exceptions.exception("订单创建失败,订单号重复"));
|
||||
AddOrderCargoPlaceParam cargoPlace = addOrderInfoParam.getCargoPlace();
|
||||
long cargoPlaceId = orderCargoPlaceService.add(cargoPlace);
|
||||
|
|
@ -156,7 +160,6 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
|
||||
Long orderId = orderInfoEntity.getId();
|
||||
if (orderCategory == OrderCategory.DuanBoChu) {
|
||||
Long stationId = addOrderInfoParam.getStationId();
|
||||
Long targetStationId = addOrderInfoParam.getTargetStationId();
|
||||
this.add(addOrderInfoParam.setOrderCategory(OrderCategory.DuanBoRu)
|
||||
.setTargetOrderId(orderId)
|
||||
|
|
@ -1298,7 +1301,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
log.error("订单状态改变事件发布失败,订单{},状态{}", orderInfoEntity_.getSn(), newOrderStatus, e);
|
||||
return null;
|
||||
});
|
||||
CompletableFuture.runAsync(() -> {
|
||||
/* CompletableFuture.runAsync(() -> {
|
||||
OrderPagingResult detail = this.detail(orderId);
|
||||
HsoaResult<?> result = hsoaService.pushProvincialSave(detail);
|
||||
|
||||
|
|
@ -1309,7 +1312,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
}).exceptionally(e -> {
|
||||
log.error("推送订单数据失败,数据Id:{}", entity.getId(), e);
|
||||
return null;
|
||||
});
|
||||
}); */
|
||||
|
||||
// 出厂付费
|
||||
if (OrderCategory.PuTong.equals(orderInfoEntity.getOrderCategory()) && MoneyWay.OUT.getVal().equals(entity.getMoneyWay())) {
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@
|
|||
k.phone checker_phone,
|
||||
l.project_name,
|
||||
m.station_name,
|
||||
m.station_type,
|
||||
m.company_name station_company_name,
|
||||
m.address station_address,
|
||||
m.uscc station_uscc,
|
||||
|
|
|
|||
Loading…
Reference in New Issue