Commit bc7c25d3 authored by liudong1993's avatar liudong1993

1

parent 7057f432
......@@ -2285,10 +2285,12 @@ namespace Property.Module.FixedAssets
/// <param name="checkId"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
public bool RepeatSuppliesCheck(int checkId, UserInfo userInfo)
public bool RepeatSuppliesCheck(int checkId, string StartTime, string EndTime, UserInfo userInfo)
{
Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Supplies_Check_Extend.CheckState),SuppliesCheckStatusEnum.InTheInventory},
{ nameof(RB_Supplies_Check_Extend.StartDate),Convert.ToDateTime(StartTime)},
{ nameof(RB_Supplies_Check_Extend.EndDate),Convert.ToDateTime(EndTime)},
{ nameof(RB_Supplies_Check_Extend.UpdateBy),userInfo.EmployeeId},
{ nameof(RB_Supplies_Check_Extend.UpdateDate),DateTime.Now},
};
......
......@@ -1777,6 +1777,8 @@ namespace Property.WebApi.Controllers.User
UserInfo userInfo = CacheManager.User.UserReidsCache.GetUserLoginInfo(requestParm.uid);
JObject parms = JObject.Parse(requestParm.msg.ToString());
int CheckId = parms.GetInt("CheckId", 0);
string StartTime = parms.GetStringValue("StartTime");
string EndTime = parms.GetStringValue("EndTime");
if (CheckId <= 0)
{
return ApiResult.ParamIsNull("请传递参数id");
......@@ -1792,7 +1794,7 @@ namespace Property.WebApi.Controllers.User
return ApiResult.Failed("盘点单无法复盘");
}
bool flag = suppliesModule.RepeatSuppliesCheck(CheckId, userInfo);
bool flag = suppliesModule.RepeatSuppliesCheck(CheckId, StartTime, EndTime, userInfo);
if (flag)
{
return ApiResult.Success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment