|
|
@@ -40,7 +40,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append("SELECT t.* "); |
|
|
|
strSql.Append(" FROM Ass_FixAssets t "); |
|
|
|
strSql.Append(" WHERE 1=1 "); |
|
|
|
strSql.Append(" WHERE 1=1 and (t.F_DeleteMark is null or t.F_DeleteMark != 1) "); |
|
|
|
var queryParam = queryJson.ToJObject(); |
|
|
|
// 虚拟参数 |
|
|
|
var dp = new DynamicParameters(new { }); |
|
|
@@ -230,7 +230,11 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
this.BaseRepository().Delete<Ass_FixAssetsEntity>(t => keyValue.Contains(t.FAId)); |
|
|
|
//this.BaseRepository().Delete<Ass_FixAssetsEntity>(t => keyValue.Contains(t.FAId)); |
|
|
|
|
|
|
|
//改为逻辑删除 |
|
|
|
var kv = string.Join("','", keyValue.Split(',')); |
|
|
|
this.BaseRepository().ExecuteBySql($"update Ass_FixAssets set FACode=('delete_'+FACode),F_DeleteMark=1,ModifyTime='{DateTime.Now}',ModifyUserId='{LoginUserInfo.Get().userId}' where FAId in ('{kv}')", null); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|