添加结算打印小票

This commit is contained in:
韩鹏辉
2024-04-03 10:56:59 +08:00
parent a2f467038b
commit 97da8f8392
6 changed files with 135 additions and 13 deletions

View File

@@ -2,9 +2,9 @@ spring:
profiles:
active: hph
server:
servlet:
context-path: /cashier-client/
port: 10587
# 日志配置
logging:
level:

View File

@@ -83,4 +83,21 @@
amount = #{amount,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByDutyId" resultType="java.util.Map">
SELECT
case type
when 'scanCode' then '扫码支付'
when 'cash' then '现金支付'
when 'wx_lite' then '小程序支付'
when 'deposit' then '储值卡支付'
when 'bank' then '银行卡支付'
end as payType,
amount as amount
FROM
tb_shop_user_duty_pay
WHERE
duty_id = #{dutyId}
</select>
</mapper>