public IActResult SaveMFReserve(string accountId, F_ReservedDO saveData) { var mfDO = LFFK.DataManager.TableQuery <UserDO>().Select().From().Where(p => p.UserId == accountId).Execute(); if (mfDO != null && mfDO.UserType == 1 && mfDO.TargetId > 0) { saveData.CreateTime = DateTime.Now; saveData.MaintainFactoryId = mfDO.TargetId; if (saveData.MFReserveId > 0) { return(LFFK.DataManager.Update(saveData)); } else { return(LFFK.DataManager.Insert(saveData)); } } return(new ActResult("当前用户无权限")); }
public IActResult SaveMFReserve(string accountId, F_ReservedDO saveData) { return(DAManager.MaintainDAManager.SaveMFReserve(accountId, saveData)); }