You've already forked FrameTour-BE
feat(printer): 增加打印任务查询功能并完善商品详情展示
- 在 PrinterMapper 中新增 queryTaskByMpId 方法用于查询打印任务 - 扩展 GoodsDetailVO 类,增加打印机名称和纸张类型字段 - 修改 OrderServiceImpl,在商品列表中设置打印机相关信息 - 更新 PrintTaskResp 类,添加纸张类型属性 - 在 PrinterMapper.xml 中实现 queryTaskByMpId 的 SQL 查询逻辑
This commit is contained in:
@@ -68,6 +68,9 @@
|
||||
FROM member_print p
|
||||
WHERE p.id in (select order_item.goods_id from order_item where order_item.order_id = #{orderId} and order_item.goods_type = 3)
|
||||
</select>
|
||||
<select id="queryTaskByMpId" resultType="com.ycwl.basic.model.printer.resp.PrintTaskResp">
|
||||
SELECT t.*, p.name as printerName FROM print_task t left join printer p on p.id = t.printer_id WHERE mp_id = #{orderId} order by t.create_time desc limit 1
|
||||
</select>
|
||||
|
||||
<!-- 新增 -->
|
||||
<insert id="add">
|
||||
|
||||
Reference in New Issue
Block a user