123456789101112131415161718192021222324252627282930 |
- using CY_dingDing.Controller.Sql_controller;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1.Controller.Sql_controller
- {
- /// <summary>
- /// 生成同步
- /// </summary>
- public static class Sql_Controller
- {
- /// <summary>
- /// 新增日志
- /// </summary>
- /// <param name="name">名称</param>
- /// <param name="state">状态</param>
- /// <param name="note">备注</param>
- /// <returns></returns>
- public static bool Synchronous_Log(string name,string state, string note)
- {
- string sql = "insert into dingDing_Log values ('" + name + "','"+ state +"','" + DateTime.Now.ToString("yyyy-MM-dd") + "','" + note + "')";
- bool _bool = DB_Helper.Excute1(sql);
- return _bool;
- }
- }
- }
|