订单管理
This commit is contained in:
parent
f39fe1a419
commit
e9b547fbcf
@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.order.entity.RepairOrderInfo;
|
||||
import cn.iocoder.yudao.module.order.service.RepairOrderInfoService;
|
||||
import cn.iocoder.yudao.module.order.vo.RepairOrderInfoPageReqVO;
|
||||
import cn.iocoder.yudao.module.order.vo.RepairOrderInfoRespVO;
|
||||
import cn.iocoder.yudao.module.order.vo.RepairOrderInfoSaveReqVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -48,6 +49,21 @@ public class RepairOrderInfoController {
|
||||
return success(BeanUtils.toBean(orderInfo, RepairOrderInfoRespVO.class));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 更新订单信息
|
||||
*
|
||||
* @param saveReqVO 订单信息
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新车辆信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:car-main:update')")
|
||||
public CommonResult<Boolean> updateCarMain(@RequestBody RepairOrderInfoSaveReqVO saveReqVO) {
|
||||
repairOrderInfoService.rechargeCallback(saveReqVO.getOrderNo());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询订单内容
|
||||
*
|
||||
|
@ -61,13 +61,7 @@ public interface RepairOrderInfoService extends IService<RepairOrderInfo> {
|
||||
**/
|
||||
RepairOrderInfo getOrderByOrderNo(String orderNo);
|
||||
|
||||
/**
|
||||
* 获得维修模块 订单分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 维修模块 订单分页
|
||||
*/
|
||||
PageResult<RepairOrderInfo> getOrderInfoPage(RepairOrderInfoPageReqVO pageReqVO);
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询订单信息
|
||||
|
@ -113,10 +113,6 @@ public class RepairOrderInfoServiceImpl extends ServiceImpl<RepairOrderInfoMappe
|
||||
return getOne(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<RepairOrderInfo> getOrderInfoPage(RepairOrderInfoPageReqVO pageReqVO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询订单信息
|
||||
@ -144,6 +140,7 @@ public class RepairOrderInfoServiceImpl extends ServiceImpl<RepairOrderInfoMappe
|
||||
return baseMapper.getOrderPageByStatus(respVO, page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询订单详情(包括工单)
|
||||
*
|
||||
|
@ -20,7 +20,7 @@
|
||||
and roi.order_no like concat('%', #{entity.orderNo}, '%')
|
||||
</if>
|
||||
<if test="entity.goodsTitle != null and entity.goodsTitle != ''">
|
||||
and roi.goods_totle like concat('%', #{entity.goodsTitle}, '%')
|
||||
and roi.goods_title like concat('%', #{entity.goodsTitle}, '%')
|
||||
</if>
|
||||
<if test="entity.goodsType != null and entity.goodsType != ''">
|
||||
and roi.goods_type = #{entity.goodsType}
|
||||
@ -31,7 +31,11 @@
|
||||
<if test="entity.orderStatus != null and entity.orderStatus != ''">
|
||||
and roi.order_status = #{entity.orderStatus}
|
||||
</if>
|
||||
<if test="entity.payType != null and entity.payType != ''">
|
||||
and roi.pay_type = #{entity.payType}
|
||||
</if>
|
||||
</where>
|
||||
order by roi.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="getOrderPageByStatus" resultType="cn.iocoder.yudao.module.order.vo.RepairOrderInfoRespVO">
|
||||
|
Loading…
Reference in New Issue
Block a user