|
@@ -192,7 +192,7 @@ namespace Hotline.Application.Early
|
|
|
{
|
|
|
var tableDto = new TableDto
|
|
|
{
|
|
|
- CssStyle = "border-collapse: collapse;"
|
|
|
+ CssStyle = "border-collapse: collapse;width: 100%;"
|
|
|
};
|
|
|
tableDto.HeadDto.RowDtos.Add(new RowDto
|
|
|
{
|
|
@@ -279,7 +279,7 @@ namespace Hotline.Application.Early
|
|
|
{
|
|
|
var tableDto = new TableDto
|
|
|
{
|
|
|
- CssStyle = "border-collapse: collapse;"
|
|
|
+ CssStyle = "border-collapse: collapse;width: 100%;"
|
|
|
};
|
|
|
tableDto.HeadDto.RowDtos.Add(new RowDto
|
|
|
{
|
|
@@ -361,10 +361,10 @@ namespace Hotline.Application.Early
|
|
|
{
|
|
|
titleDto = new TitleDto
|
|
|
{
|
|
|
- Content = item.HotName,
|
|
|
+ Content = $"{ToChineseNumber(index)}、{item.HotName}问题",
|
|
|
CssStyle = "text-indent: 2rem;font-weight: bolder;",
|
|
|
},
|
|
|
- Content = item.Content,
|
|
|
+ Content = $"今日收到{item.HotName}问题{item.Count}件,主要涉及:{item.Content}",
|
|
|
CssStyle = "text-indent: 2rem;",
|
|
|
SortIndex = index
|
|
|
});
|
|
@@ -378,16 +378,30 @@ namespace Hotline.Application.Early
|
|
|
var hotDetails = new List<string>();
|
|
|
earlyReportDtoreportDto.ReportHotDetails.ForEach(item =>
|
|
|
{
|
|
|
- hotDetails.Add($"{item.HotName}{item.Content}件");
|
|
|
+ hotDetails.Add($"{item.HotName}{item.Count}件");
|
|
|
});
|
|
|
var areaDetails = new List<string>();
|
|
|
earlyReportDtoreportDto.ReportAreaDetails.ForEach(item =>
|
|
|
{
|
|
|
areaDetails.Add($"{item.AreaName}{item.Count}件");
|
|
|
});
|
|
|
- var summarize = $"{earlyReportDtoreportDto.ReportPushTime},市12345热线共受理重点领域问题{earlyReportDtoreportDto.ReportHotDetails.Sum(x => x.Count)}件,其中,{string.Join("、", hotDetails)}。从区域分布来看,{string.Join(",", areaDetails)}。";
|
|
|
+ var summarize = $"{earlyReportDtoreportDto.ReportPushTime.ToString("yyyy年MM月dd日 HH时mm分ss秒")},市12345热线共受理重点领域问题{earlyReportDtoreportDto.ReportHotDetails.Sum(x => x.Count)}件,其中,{string.Join("、", hotDetails)}。从区域分布来看,{string.Join(",", areaDetails)}。";
|
|
|
return summarize;
|
|
|
}
|
|
|
|
|
|
+ private static readonly string[] ChineseNumbers =
|
|
|
+ {
|
|
|
+ "零", "一", "二", "三", "四",
|
|
|
+ "五", "六", "七", "八", "九", "十"
|
|
|
+ };
|
|
|
+
|
|
|
+ public static string ToChineseNumber(int number)
|
|
|
+ {
|
|
|
+ if (number < 0 || number > 10)
|
|
|
+ {
|
|
|
+ throw new ArgumentOutOfRangeException(nameof(number), "输入数字必须在 0-10 范围内");
|
|
|
+ }
|
|
|
+ return ChineseNumbers[number];
|
|
|
+ }
|
|
|
}
|
|
|
}
|