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.damageDesc", target = "damageDesc"),
|
||||
@Mapping(source = "companyStoreDTO.name", target = "storeName"),
|
||||
@Mapping(source = "companyStoreDTO.phone", target = "storePhone"),
|
||||
@Mapping(source = "companyStoreDTO.detailedAddress", target = "detailedAddress"),
|
||||
@Mapping(source = "companyStoreDTO.latitude", target = "latitude"),
|
||||
@Mapping(source = "companyStoreDTO.longitude", target = "longitude"),
|
||||
|
||||
@ -25,6 +25,9 @@ public class OrderDetailDTO {
|
||||
@ApiModelProperty("门店名称")
|
||||
private String storeName;
|
||||
|
||||
@ApiModelProperty("门店电话")
|
||||
private String storePhone;
|
||||
|
||||
@ApiModelProperty("详细地址")
|
||||
private String detailedAddress;
|
||||
|
||||
|
||||
@ -584,7 +584,7 @@ public class OrderServiceImpl implements OrderService {
|
||||
}
|
||||
LambdaQueryWrapper<OrderSubPO> querySubWrapper2 = new LambdaQueryWrapper<>();
|
||||
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);
|
||||
if(!CollectionUtils.isEmpty(orderSubPOList2)){
|
||||
orderDetailDTO.setLastPayOrderNo(orderSubPOList2.get(0).getPaymentId());
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
</foreach>
|
||||
</if>
|
||||
<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>
|
||||
</where>
|
||||
order by o.update_time desc
|
||||
|
||||
Reference in New Issue
Block a user