dd
This commit is contained in:
parent
c0ce4cba38
commit
91649ea2dd
@ -1,6 +1,7 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using YD_WeChatApplet.Api.SmartSportsEntitys;
|
||||
using YD_WeChatApplet.Api.Utilities;
|
||||
using YD_WeChatApplet.Commons.Dto;
|
||||
@ -34,8 +35,13 @@ namespace YD_WeChatApplet.Api.Services.Impl
|
||||
{
|
||||
List<S_HomeWork> homeWorkEntities = new List<S_HomeWork>();
|
||||
|
||||
DateTime startDate = paramDto.StartTime;
|
||||
DateTime endDate = paramDto.EndTime;
|
||||
string startmmed = paramDto.StartTime.Substring(0, 19);
|
||||
string endmmed = paramDto.EndTime.Substring(0, 19);
|
||||
|
||||
DateTime startDate = DateTime.ParseExact(startmmed, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
|
||||
DateTime endDate = DateTime.ParseExact(endmmed, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
|
||||
|
||||
paramDto.StartTime = startmmed;
|
||||
|
||||
var weekList = paramDto.WeekList;
|
||||
|
||||
|
@ -279,13 +279,13 @@ namespace YD_WeChatApplet
|
||||
//配置HttpContext
|
||||
app.UseStaticHttpContext();
|
||||
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
//2个下拉框选项 选择对应的文档
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_WeChatApplet.Api");
|
||||
c.RoutePrefix = "";
|
||||
});
|
||||
//app.UseSwagger();
|
||||
//app.UseSwaggerUI(c =>
|
||||
//{
|
||||
// //2个下拉框选项 选择对应的文档
|
||||
// c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_WeChatApplet.Api");
|
||||
// c.RoutePrefix = "";
|
||||
//});
|
||||
|
||||
app.UseRouting();
|
||||
app.UseCors();
|
||||
|
@ -97,12 +97,12 @@ namespace YD_WeChatApplet.Commons.Dto.HomeWork
|
||||
/// <summary>
|
||||
///开始时间
|
||||
/// </summary>
|
||||
public DateTime StartTime { get; set; }
|
||||
public string StartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///结束时间
|
||||
/// </summary>
|
||||
public DateTime EndTime { get; set; }
|
||||
public string EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学生集合
|
||||
|
Loading…
x
Reference in New Issue
Block a user