This commit is contained in:
jl
2024-12-25 10:15:41 +08:00
parent 43d0c7e249
commit 78b193a52a
7 changed files with 98 additions and 57 deletions

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Epost.DAL
{
public class AgvLogInfoDAL
{
DataBaseOpration.OprationSqlDAL db = DB_DLL.GetInstance();
public bool insertAgvLogInfo(string reqCode, string reqTime, string robotCode, string beginDate, string warnContent, string taskCode)
{
string sql = string.Format("insert into agvLogInfo(reqCode ,reqTime,robotCode,beginDate,warnContent,taskCode,addtime) values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')",
reqCode,reqTime,robotCode,beginDate,warnContent,
taskCode,DateTime.Now.ToString());
long x =db.InsertSql(sql);
if (x > 0)
return true;
return false;
}
}
}