修改打印数据

This commit is contained in:
韩鹏辉
2024-04-15 15:33:18 +08:00
parent a2432316ea
commit c0f3b445cb
11 changed files with 187 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
server:
port: 10587
spring:
datasource:
url: jdbc:mysql://rm-bp1b572nblln4jho2po.mysql.rds.aliyuncs.com/fycashier?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false
@@ -13,9 +15,9 @@ spring:
com.chaozhanggui.system.openness: info
redis:
# redis数据库索引默认为0我们使用索引为3的数据库避免和其他数据库冲突
database: 5
database: 0
# redis服务器地址默认为localhost
host: 101.37.12.135
host: 121.40.128.145
# redis端口默认为6379
port: 6379
# redis访问密码默认为空

View File

@@ -4,7 +4,6 @@ spring:
server:
servlet:
context-path: /cashier-client/
port: 10587
# 日志配置
logging:
level:

View File

@@ -100,4 +100,22 @@
WHERE
duty_id = #{dutyId}
</select>
<select id="selectCetoryBydutyId" resultType="java.util.Map">
SELECT
sum( d.amount ) AS amount,
sum( d.num ) AS num,
c.`name` AS categoryName
FROM
tb_shop_user_duty_detail d
LEFT JOIN tb_product p ON d.product_id = p.id
LEFT JOIN tb_shop_category c ON p.category_id = c.id
WHERE
d.duty_id = #{dutyId}
GROUP BY
p.category_id
ORDER BY
c.sort DESC
</select>
</mapper>

View File

@@ -564,4 +564,8 @@
grand_parent_id = #{grandParentId,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByCardNo" resultMap="BaseResultMap">
select * from tb_user_info where card_no=#{cardNo}
</select>
</mapper>