Compare commits
3 Commits
1afa9895b0
...
zhangli-te
| Author | SHA1 | Date | |
|---|---|---|---|
| c1658a5972 | |||
| cdb3985120 | |||
| 3d91ab0aad |
@ -74,6 +74,7 @@ public interface OrderConvert {
|
|||||||
@Mapping(source = "orderMainPO.damageAmount", target = "damageAmount"),
|
@Mapping(source = "orderMainPO.damageAmount", target = "damageAmount"),
|
||||||
@Mapping(source = "orderMainPO.damageDesc", target = "damageDesc"),
|
@Mapping(source = "orderMainPO.damageDesc", target = "damageDesc"),
|
||||||
@Mapping(source = "companyStoreDTO.name", target = "storeName"),
|
@Mapping(source = "companyStoreDTO.name", target = "storeName"),
|
||||||
|
@Mapping(source = "companyStoreDTO.phone", target = "storePhone"),
|
||||||
@Mapping(source = "companyStoreDTO.detailedAddress", target = "detailedAddress"),
|
@Mapping(source = "companyStoreDTO.detailedAddress", target = "detailedAddress"),
|
||||||
@Mapping(source = "companyStoreDTO.latitude", target = "latitude"),
|
@Mapping(source = "companyStoreDTO.latitude", target = "latitude"),
|
||||||
@Mapping(source = "companyStoreDTO.longitude", target = "longitude"),
|
@Mapping(source = "companyStoreDTO.longitude", target = "longitude"),
|
||||||
|
|||||||
@ -25,6 +25,9 @@ public class OrderDetailDTO {
|
|||||||
@ApiModelProperty("门店名称")
|
@ApiModelProperty("门店名称")
|
||||||
private String storeName;
|
private String storeName;
|
||||||
|
|
||||||
|
@ApiModelProperty("门店电话")
|
||||||
|
private String storePhone;
|
||||||
|
|
||||||
@ApiModelProperty("详细地址")
|
@ApiModelProperty("详细地址")
|
||||||
private String detailedAddress;
|
private String detailedAddress;
|
||||||
|
|
||||||
|
|||||||
@ -584,7 +584,7 @@ public class OrderServiceImpl implements OrderService {
|
|||||||
}
|
}
|
||||||
LambdaQueryWrapper<OrderSubPO> querySubWrapper2 = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<OrderSubPO> querySubWrapper2 = new LambdaQueryWrapper<>();
|
||||||
querySubWrapper2.eq(OrderSubPO::getOrderId, orderMainPO.getOrderId())
|
querySubWrapper2.eq(OrderSubPO::getOrderId, orderMainPO.getOrderId())
|
||||||
.in(OrderSubPO::getPayStatus, Arrays.asList(PayStatusEnum.SUCCESS.getCode(), PayStatusEnum.REFUNDING.getCode(), PayStatusEnum.REFUND_SUCCESS.getCode())).orderByDesc(OrderSubPO::getUpdateTime);
|
.in(OrderSubPO::getPayStatus, Arrays.asList(PayStatusEnum.USERPAYING.getCode(),PayStatusEnum.SUCCESS.getCode(), PayStatusEnum.REFUNDING.getCode(), PayStatusEnum.REFUND_SUCCESS.getCode())).orderByDesc(OrderSubPO::getUpdateTime);
|
||||||
List<OrderSubPO> orderSubPOList2 = orderSubRepo.list(querySubWrapper2);
|
List<OrderSubPO> orderSubPOList2 = orderSubRepo.list(querySubWrapper2);
|
||||||
if(!CollectionUtils.isEmpty(orderSubPOList2)){
|
if(!CollectionUtils.isEmpty(orderSubPOList2)){
|
||||||
orderDetailDTO.setLastPayOrderNo(orderSubPOList2.get(0).getPaymentId());
|
orderDetailDTO.setLastPayOrderNo(orderSubPOList2.get(0).getPaymentId());
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="queryBrandName != null and queryBrandName != ''">
|
<if test="queryBrandName != null and queryBrandName != ''">
|
||||||
and m.brand_name like concat('%', #{queryBrandName}, '%')
|
and (m.brand_name like concat('%', #{queryBrandName}, '%') or m.model_name like concat('%', #{queryBrandName}, '%'))
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by o.update_time desc
|
order by o.update_time desc
|
||||||
|
|||||||
Reference in New Issue
Block a user