|
@ -4,6 +4,7 @@ using Entity.Sugar; |
|
|
using SqlSugar.Base; |
|
|
using SqlSugar.Base; |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
|
namespace EasyBL.WEBAPP.WSM |
|
|
namespace EasyBL.WEBAPP.WSM |
|
|
{ |
|
|
{ |
|
@ -274,7 +275,8 @@ namespace EasyBL.WEBAPP.WSM |
|
|
|
|
|
|
|
|
var sCategoryID = _fetchString(i_crm, @"CategoryID"); |
|
|
var sCategoryID = _fetchString(i_crm, @"CategoryID"); |
|
|
|
|
|
|
|
|
var oEntity = db.Queryable<SETB_SYS_Category>().Single(x => x.OrgID == i_crm.ORIGID && x.CategoryID == sCategoryID); |
|
|
|
|
|
|
|
|
//var oEntity = db.Queryable<SETB_SYS_Category>().Single(x => x.OrgID == i_crm.ORIGID && x.CategoryID == sCategoryID);
|
|
|
|
|
|
var oEntity = db.Queryable<SETB_SYS_Category>().Where(x => x.OrgID == i_crm.ORIGID && x.CategoryID == sCategoryID).ToList().FirstOrDefault(); |
|
|
var iRel = db.Updateable<SETB_SYS_Category>().UpdateColumns(x => new SETB_SYS_Category { DelStatus = "Y" }).Where(x => x.OrgID == i_crm.ORIGID && x.CategoryID == sCategoryID).ExecuteCommand(); |
|
|
var iRel = db.Updateable<SETB_SYS_Category>().UpdateColumns(x => new SETB_SYS_Category { DelStatus = "Y" }).Where(x => x.OrgID == i_crm.ORIGID && x.CategoryID == sCategoryID).ExecuteCommand(); |
|
|
var iRelUp = db.Updateable<SETB_SYS_Category>() |
|
|
var iRelUp = db.Updateable<SETB_SYS_Category>() |
|
|
.UpdateColumns(x => new SETB_SYS_Category { OrderByValue = x.OrderByValue - 1 }) |
|
|
.UpdateColumns(x => new SETB_SYS_Category { OrderByValue = x.OrderByValue - 1 }) |
|
|