Sql_Controller.cs 896 B

123456789101112131415161718192021222324252627282930
  1. using CY_dingDing.Controller.Sql_controller;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ConsoleApp1.Controller.Sql_controller
  8. {
  9. /// <summary>
  10. /// 生成同步
  11. /// </summary>
  12. public static class Sql_Controller
  13. {
  14. /// <summary>
  15. /// 新增日志
  16. /// </summary>
  17. /// <param name="name">名称</param>
  18. /// <param name="state">状态</param>
  19. /// <param name="note">备注</param>
  20. /// <returns></returns>
  21. public static bool Synchronous_Log(string name,string state, string note)
  22. {
  23. string sql = "insert into dingDing_Log values ('" + name + "','"+ state +"','" + DateTime.Now.ToString("yyyy-MM-dd") + "','" + note + "')";
  24. bool _bool = DB_Helper.Excute1(sql);
  25. return _bool;
  26. }
  27. }
  28. }