修改打印数据
This commit is contained in:
@@ -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访问密码(默认为空)
|
||||
|
||||
@@ -4,7 +4,6 @@ spring:
|
||||
server:
|
||||
servlet:
|
||||
context-path: /cashier-client/
|
||||
port: 10587
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user