|
|
@ -256,5 +256,17 @@ namespace SBF.Business |
|
|
|
|
|
|
|
fsql.Insert(insertList).ExecuteAffrows(); |
|
|
|
} |
|
|
|
|
|
|
|
public void StopTrusteeship(long id) |
|
|
|
{ |
|
|
|
var task = fsql.Select<Sbf_TrusteeshipTask>(id).ToOne(); |
|
|
|
if (task == null) |
|
|
|
throw new BusinessException("托管任务不存在"); |
|
|
|
if (task.IsEnd == true) |
|
|
|
return; |
|
|
|
fsql.Update<Sbf_TrusteeshipTask>(id).Set(t => t.IsEnd, true) |
|
|
|
.Set(t => t.EndTime, DateTime.Now) |
|
|
|
.ExecuteAffrows(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|