Merge branch 'main' of 192.168.0.36:doan/mes
This commit is contained in:
@@ -69,18 +69,11 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
/// <param name="arrange_endtime">预计结束时间</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("setschedule")]
|
||||
public IActionResult SetSchedule(string id, string arrange_starttime, string arrange_endtime)
|
||||
public IActionResult SetSchedule(string id, DateTime arrange_starttime, DateTime arrange_endtime)
|
||||
{
|
||||
DateTime bgDateTime = DateTime.Now;
|
||||
DateTime edDateTime = DateTime.Now;
|
||||
try
|
||||
{
|
||||
bgDateTime = Convert.ToDateTime(arrange_starttime);
|
||||
edDateTime = Convert.ToDateTime(arrange_endtime);
|
||||
}
|
||||
catch { }
|
||||
|
||||
int data = proWorkorderService.SetWorkorderSechedule(id, bgDateTime, edDateTime);
|
||||
|
||||
int data = proWorkorderService.SetWorkorderSechedule(id, arrange_starttime, arrange_endtime);
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
@@ -90,7 +83,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
/// </summary>
|
||||
/// <param name="id">工单ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("resetschedule")]
|
||||
[HttpGet("resetschedule/{id}")]
|
||||
public IActionResult ResetSchedule(string id)
|
||||
{
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"dbConfigs": [
|
||||
{
|
||||
"Conn": "Data Source=192.168.0.36;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
||||
// "Conn": "Data Source=127.0.0.1;User ID=sa;Password=123456;Initial Catalog=ZrAdmin;",
|
||||
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
||||
"ConfigId": "0", //多租户唯一标识
|
||||
"IsAutoCloseConnection": true
|
||||
|
||||
Reference in New Issue
Block a user