调整Entity目录结构
This commit is contained in:
@@ -86,7 +86,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[NonAction]
|
[NonAction]
|
||||||
protected Task<DataResult> ToApiResult( object data)
|
protected Task<DataResult> ToApiResult(object data)
|
||||||
{
|
{
|
||||||
DataResult result = new();
|
DataResult result = new();
|
||||||
result.data = data;
|
result.data = data;
|
||||||
|
|||||||
@@ -491,10 +491,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
{
|
{
|
||||||
async Task _updateStatus<T>(ModifyPoliciesStatusInput input) where T : BaseEntity<string>, IUpdatePoliciesStatus, new()
|
async Task _updateStatus<T>(ModifyPoliciesStatusInput input) where T : BaseEntity<string>, IUpdatePoliciesStatus, new()
|
||||||
{
|
{
|
||||||
T obj = new()
|
T obj = new() { status = input.status };
|
||||||
{
|
|
||||||
status = input.status
|
|
||||||
};
|
|
||||||
await _db.Updateable(obj).UpdateColumns(it => it.status).Where(it => input.ids.Contains(it.id)).ExecuteCommandAsync();
|
await _db.Updateable(obj).UpdateColumns(it => it.status).Where(it => input.ids.Contains(it.id)).ExecuteCommandAsync();
|
||||||
}
|
}
|
||||||
switch (input.strategyType)
|
switch (input.strategyType)
|
||||||
|
|||||||
Reference in New Issue
Block a user