Pad点餐后台配置接口

This commit is contained in:
谭凯凯
2024-10-23 14:51:21 +08:00
committed by Tankaikai
parent ddc95cf170
commit 42fcd08d00
20 changed files with 817 additions and 22 deletions

View File

@@ -72,8 +72,8 @@ thirdPay:
fstReturn: https://admintestpapi.sxczgkj.cn/notify/fstReturn
mybatis-plus:
mapper-locations: classpath:/cn/ysk/cashier/mybatis/mapper/*Mapper.xml
type-aliases-package: me.zhengjie.mybatis.entity
mapper-locations: classpath*:/mapper/plus/*.xml
#type-aliases-package: cn.ysk.cashier.pojo,cn.ysk.cashier.pojo.*,cn.ysk.cashier.system.domain.*
configuration:
map-underscore-to-camel-case: true
cache-enabled: true

View File

@@ -4,17 +4,6 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ysk.cashier.mybatis.mapper.TbActivateMapper">
<resultMap id="BaseResultMap" type="cn.ysk.cashier.mybatis.pojo.TbActivatetb">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="shop_id" column="shop_id" jdbcType="INTEGER"/>
<result property="min_num" column="min_num" jdbcType="INTEGER"/>
<result property="max_num" column="max_num" jdbcType="INTEGER"/>
<result property="handsel_num" column="handsel_num" jdbcType="DECIMAL"/>
<result property="handsel_type" column="handsel_type" jdbcType="VARCHAR"/>
<result property="is_del" column="is_del" jdbcType="VARCHAR"/>
<result property="is_user" column="is_user" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,shop_id,min_num,
max_num,handsel_num,handsel_type,

View File

@@ -4,15 +4,6 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ysk.cashier.mybatis.mapper.TbShopMsgStateMapper">
<resultMap id="BaseResultMap" type="cn.ysk.cashier.mybatis.pojo.TbShopMsgStatetb">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="shop_id" column="shop_id" jdbcType="INTEGER"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="state" column="state" jdbcType="INTEGER"/>
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
<result property="update_time" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,shop_id,type,
state,create_time,update_time

View File

@@ -0,0 +1,39 @@
<?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">
<select id="findList" resultType="cn.ysk.cashier.dto.product.PadProductGroupDTO">
SELECT
t1.*,
t3.name as productGroupName,
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
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>
and t1.shop_id = #{shopId}
<if test="id != null and id!=''">
and t1.id = #{id}
</if>
<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>
<if test="padLayoutId != null and padLayoutId != ''">
and t1.pad_layout_id = #{padLayoutId}
</if>
<if test="padLayoutCode != null and padLayoutCode != ''">
and t5.code = #{padLayoutCode}
</if>
</where>
group by t1.id
order by t1.id asc
</select>
</mapper>