Pad点餐后台配置接口

This commit is contained in:
谭凯凯
2024-10-23 16:34:32 +08:00
committed by Tankaikai
parent d9859647b4
commit bc587c196d
15 changed files with 179 additions and 179 deletions

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ysk.cashier.mybatis.mapper.TbPadProductGroupMapper">
<mapper namespace="cn.ysk.cashier.mybatis.mapper.TbPadProductCategoryMapper">
<select id="findList" resultType="cn.ysk.cashier.dto.product.PadProductGroupDTO">
<select id="findList" resultType="cn.ysk.cashier.dto.product.PadProductCategoryDTO">
SELECT
t1.*,
t3.name as productGroupName,
t3.name as productCategoryName,
GROUP_CONCAT(t4.name) as productNames,
t5.code as padLayoutCode,
t5.name as padLayoutName
FROM
tb_pad_product_group t1
LEFT JOIN tb_pad_product_group_detail t2 on t1.id = t2.pad_product_group_id
LEFT JOIN tb_product_group t3 on t1.product_group_id = t3.id
tb_pad_product_category t1
LEFT JOIN tb_pad_product_category_detail t2 on t1.id = t2.pad_product_category_id
LEFT JOIN tb_shop_category t3 on t1.product_category_id = t3.id
LEFT JOIN tb_product t4 on t2.product_id = t4.id
LEFT JOIN tb_pad_layout t5 on t1.pad_layout_id = t5.id
<where>
@@ -23,8 +23,8 @@
<if test="customName != null and customName != ''">
and t1.custom_name like concat(#{customName},'%')
</if>
<if test="productGroupId != null and productGroupId != ''">
and t1.product_group_id = #{productGroupId}
<if test="productCategoryId != null and productCategoryId != ''">
and t1.product_category_id = #{productCategoryId}
</if>
<if test="padLayoutId != null and padLayoutId != ''">
and t1.pad_layout_id = #{padLayoutId}