退菜数量

This commit is contained in:
2026-04-07 16:13:07 +08:00
parent 65bd5b7ed9
commit 2a9a9d0438
3 changed files with 4 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
" tb_order_info.shop_id = #{shopId} " +
"and tb_order_info.create_time >= #{loginTime} and tb_order_info.create_time <= #{handoverTime} " +
"and tb_order_info.paid_time is not null ")
int countReturnDish(Long shopId, String loginTime, String handoverTime);
BigDecimal countReturnDish(Long shopId, String loginTime, String handoverTime);
@Select("SELECT " +
" SUM(CASE WHEN biz_code IN ('cashIn', 'wechatIn', 'alipayIn', 'adminIn') THEN amount ELSE 0 END) AS recharge," +

View File

@@ -65,7 +65,7 @@ public class OrderInfoRpcServiceImpl implements OrderInfoRpcService {
}
@Override
public int countReturnDish(Long shopId, String loginTime, String handoverTime) {
public BigDecimal countReturnDish(Long shopId, String loginTime, String handoverTime) {
return orderInfoMapper.countReturnDish(shopId, loginTime, handoverTime);
}