Compare commits

...

3 Commits

Author SHA1 Message Date
c1658a5972 订单详情增加门店电话 2025-09-19 00:14:38 +08:00
cdb3985120 Merge branch 'main' into zhangli-test 2025-09-18 22:37:56 +08:00
3d91ab0aad 解决按车型查询的结果 2025-09-18 22:37:32 +08:00
4 changed files with 6 additions and 2 deletions

View File

@ -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"),

View File

@ -25,6 +25,9 @@ public class OrderDetailDTO {
@ApiModelProperty("门店名称")
private String storeName;
@ApiModelProperty("门店电话")
private String storePhone;
@ApiModelProperty("详细地址")
private String detailedAddress;

View File

@ -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());

View File

@ -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