From 8b613a5275e6fe23b91f65cc6a7fba720ae4d7ef Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期二, 18 二月 2025 11:10:35 +0800 Subject: [PATCH] 完成阿里云本地上传token生成,实现小程序本地上传 --- cylsg/cylsg.Application/CyOS/CyOSStaffController.cs | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs b/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs index 60f705d..a888020 100644 --- a/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs +++ b/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs @@ -42,6 +42,7 @@ [HttpPost] public async Task<WorekPlandto> getplanelist(SearchOaWorekPlan param) { + if(! await CheckRols()) { throw Oops.Oh("娌℃湁鏉冮檺"); @@ -196,12 +197,6 @@ pram.RewardMoney = 0; pram.RewardType = 1; pram.Keyid = null; - - - - - - await _SugarClient.InsertNav(pram).Include(x=>x.WorkPlanAttachments).ExecuteCommandAsync(); return true; @@ -318,12 +313,11 @@ { throw Oops.Oh("娌℃湁鏉冮檺"); } - return await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.SentStaff).Includes(x=>x.Depart).Includes(x=>x.WorkPlanAttachments).Where(x => x.Keyid == id).FirstAsync(); + return await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.SentStaff).Includes(x => x.OaWorkPlanShenpis,y=>y.ApprovalStaff).Includes(x=>x.Depart).Includes(x=>x.WorkPlanAttachments).Where(x => x.Keyid == id).FirstAsync(); } /// <summary> /// 鍒犻櫎 /// </summary> - /// <param name="pram"></param> /// <returns></returns> [HttpDelete] public async Task<bool> DelOderAsync(int id ) -- Gitblit v1.9.1