1234567891011121314151617181920212223242526272829303132333435 |
- using JLHHJSvr.BLL;
- using JLHHJSvr.Com.Model;
- using LJLib.DAL.SQL;
- using NPOI.SS.Formula.Functions;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace JLHHJSvr.Helper
- {
- internal class BasicInfoHelper: HelperBase
- {
- public void SaveConfigureType(u_configure_type configure)
- {
- if (configure.contfigtypeid <= 0)
- {
- configure.contfigtypeid = BllHelper.GetID(cmd, "u_configure_type");
- var fields = @"contfigtypeid,contfigtype,contfigtypename,usechflag,flag";
- DbSqlHelper.Insert(cmd, "u_configure_type", null, configure, fields);
- }
- else
- {
- configure.moddate = context.opdate;
- configure.modemp = context.tokendata.username;
- //修改
- var fields = @"contfigtype,contfigtypename,usechflag,modemp,moddate";
- DbSqlHelper.Update(cmd, "u_configure_type", null, configure, "contfigtypeid", fields);
- }
- }
- }
- }
|