fix: 修复股市问题
This commit is contained in:
@@ -96,6 +96,7 @@ namespace Yi.Framework.Stock.Application.Services
|
||||
.WhereIF(input.StartTime.HasValue, p => p.RecordTime >= input.StartTime.Value)
|
||||
.WhereIF(input.EndTime.HasValue, p => p.RecordTime <= input.EndTime.Value)
|
||||
.WhereIF(input.PeriodType.HasValue, p => p.PeriodType == input.PeriodType.Value)
|
||||
.Where(x=>x.RecordTime<=DateTime.Now)
|
||||
.OrderByIF(!string.IsNullOrEmpty(input.Sorting),input.Sorting)
|
||||
.OrderByIF(string.IsNullOrEmpty(input.Sorting),p=>p.RecordTime);
|
||||
|
||||
|
||||
@@ -211,6 +211,7 @@ namespace Yi.Framework.Stock.Domain.Managers
|
||||
// 获取最新的价格记录
|
||||
var latestPriceRecord = await _stockPriceRecordRepository._DbQueryable
|
||||
.Where(p => p.StockId == stockId)
|
||||
.Where(x=>x.RecordTime<=DateTime.Now)
|
||||
.OrderByDescending(p => p.RecordTime)
|
||||
.FirstAsync();
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
- 一天24小时下来整体价格变化的趋势应该比较连贯,可以部分小时的价格大幅度变化
|
||||
- 变化幅度可以大一些,为了更吸引用户
|
||||
- 可能下跌,可能上涨
|
||||
- 最低价值为1,最高价值为100
|
||||
- 最低价格为5,最高价格为100,如果小于等于5,就固定一直是5,如果大于等于100,要即时的修正扣减
|
||||
- 可能出现暴跌或者暴涨,一天直接减少或增加百分之50
|
||||
|
||||
请确保数据格式正确,以便系统能够自动处理。
|
||||
@@ -1,6 +1,4 @@
|
||||
基于以下最近的新闻背景,预测趋势生成一条其他新闻。
|
||||
|
||||
{{newsContext}}
|
||||
生成一条有趣并通俗易懂的新闻
|
||||
|
||||
包含以下要素:
|
||||
1. 新闻标题:吸引人且简短,涉及不同行业
|
||||
@@ -14,6 +12,5 @@
|
||||
- 内容应当暗示可能对不同行业公司产生某种影响(积极或消极),不能太过于明显
|
||||
- 行业焦点可以包括娱乐、科技、金融、医疗、食品等多个领域
|
||||
- 新闻有很小的概率造假,如果是造假的,新闻来源就得来自小的工作室
|
||||
- 不要一直重复着一个公司、一个行业的新闻
|
||||
- 可以加一些很离谱的元素增加新闻的趣味性
|
||||
- 不要一直重复着一个公司、一个行业、一个事件的新闻
|
||||
- 只需生成一次即可
|
||||
Reference in New Issue
Block a user