BasicInfoHelper.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using JLHHJSvr.BLL;
  2. using JLHHJSvr.Com.Model;
  3. using LJLib.DAL.SQL;
  4. using NPOI.SS.Formula.Functions;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace JLHHJSvr.Helper
  11. {
  12. internal class BasicInfoHelper: HelperBase
  13. {
  14. public void SaveConfigureType(u_configure_type configure)
  15. {
  16. if (configure.contfigtypeid <= 0)
  17. {
  18. configure.contfigtypeid = BllHelper.GetID(cmd, "u_configure_type");
  19. var fields = @"contfigtypeid,contfigtype,contfigtypename,usechflag,flag";
  20. DbSqlHelper.Insert(cmd, "u_configure_type", null, configure, fields);
  21. }
  22. else
  23. {
  24. configure.moddate = context.opdate;
  25. configure.modemp = context.tokendata.username;
  26. //修改
  27. var fields = @"contfigtype,contfigtypename,usechflag,modemp,moddate";
  28. DbSqlHelper.Update(cmd, "u_configure_type", null, configure, "contfigtypeid", fields);
  29. }
  30. }
  31. }
  32. }