方合小程序用后台,写入op_task时将司机名字写入非空字段CREATER

DS7_HYRD
dengyu 1 year ago
parent 11627aa36e
commit cb9180d7bf

@ -3392,6 +3392,7 @@ namespace DSWeb.Common.DB
public string TASKTITLE { get; set; }
public string TASKDESCRIP { get; set; }
public string CREATEUSER { get; set; } = "";
public string CREATER { get; set; } = "";
public string CORPID { get; set; }
public DateTime? CREATETIME { get; set; }
public DateTime? TASKBEGINDATE { get; set; }

@ -2065,6 +2065,7 @@ namespace DSWeb.Areas.Dispatch.Controllers
var cdc = new Common.DB.CommonDataContext();
var currTaskList = cdc.op_task.Where(x => x.BSNO == headData.gId).ToList();
var currtask = new op_task_md();
if (currTaskList != null && currTaskList.Count > 0)
@ -2100,11 +2101,11 @@ namespace DSWeb.Areas.Dispatch.Controllers
if (driverList != null && driverList.Count > 0)
{
currtask.CREATEUSER = driverList[0].DrvName;
currtask.CREATER = driverList[0].DrvName;
}
else {
}
cdc.op_task.AddOrUpdate(currtask);
cdc.SaveChanges();

Loading…
Cancel
Save