消息中心,打印修改

This commit is contained in:
张松
2025-03-07 10:18:47 +08:00
parent a136c24d84
commit 32082dad96
28 changed files with 729 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
<?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="com.czg.service.account.mapper.ShopMsgStateMapper">
</mapper>

View File

@@ -0,0 +1,12 @@
<?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="com.czg.service.account.mapper.ShopProdStatisticMapper">
<select id="pageInfo" resultType="com.czg.account.vo.ShopProdStatisticVO">
select * from tb_shop_prod_statistic as a
left join tb_product as b on a.prod_id=b.id
where a.shop_id=#{shopId} and b.name like and b.category_id=
</select>
</mapper>

View File

@@ -4,4 +4,20 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.czg.service.account.mapper.ShopPushOpenIdMapper">
<select id="pageInfo" resultType="com.czg.account.vo.ShopPushOpenIdVO">
select
nickname, avatar,
SUM(IF(type = 0, `status`, 0)) AS proState,
SUM(IF(type = 1, `status`, 0)) AS conState,
SUM(IF(type = 2, `status`, 0)) AS opeState,
SUM(IF(type = -1, `status`, 0)) AS allState
from tb_shop_push_open_id where shop_id=#{shopId}
<if test="nickName !=null and nickName != ''">
and nickname like concat('%', #{nickName} '%')
</if>
<if test="openId !=null and openId != ''">
and open_id like concat('%', #{openId} '%')
</if>
group by shop_id, open_id
</select>
</mapper>