|
@@ -1,6 +1,7 @@
|
|
|
using Aliyun.Credentials.Utils;
|
|
|
using Aspose.Cells;
|
|
|
using FluentValidation;
|
|
|
+using Microsoft.AspNetCore.Http;
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
using NPOI.POIFS.Crypt.Dsig;
|
|
@@ -10,6 +11,7 @@ using OASystem.API.OAMethodLib.Hub.Hubs;
|
|
|
using OASystem.API.OAMethodLib.QiYeWeChatAPI;
|
|
|
using OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice;
|
|
|
using OASystem.API.OAMethodLib.Quartz.Business;
|
|
|
+using OASystem.API.OAMethodLib.SignalR.Hubs;
|
|
|
using OASystem.Domain.Dtos.Groups;
|
|
|
using OASystem.Domain.Dtos.PersonnelModule;
|
|
|
using OASystem.Domain.Entities.Groups;
|
|
@@ -25,6 +27,7 @@ using System.Data;
|
|
|
using System.Diagnostics;
|
|
|
using System.Globalization;
|
|
|
using System.IO;
|
|
|
+using static OASystem.API.OAMethodLib.JWTHelper;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
@@ -54,8 +57,17 @@ namespace OASystem.API.Controllers
|
|
|
/// <param name="wageSheetRep"></param>
|
|
|
/// <param name="usersRep"></param>
|
|
|
/// <param name="mapper"></param>
|
|
|
- public PersonnelModuleController(IQiYeWeChatApiService qiYeWeChatApiService, WageSheetRepository wageSheetRep, UsersRepository usersRep, IMapper mapper,
|
|
|
- TaskAllocationRepository taskAllocationRep, IHubContext<ChatHub, IChatClient> hubContext, GoodsRepository goodsRep)
|
|
|
+ /// <param name="taskAllocationRep"></param>
|
|
|
+ /// <param name="hubContext"></param>
|
|
|
+ /// <param name="goodsRep"></param>
|
|
|
+ public PersonnelModuleController(IQiYeWeChatApiService qiYeWeChatApiService,
|
|
|
+ WageSheetRepository wageSheetRep,
|
|
|
+ UsersRepository usersRep,
|
|
|
+ IMapper mapper,
|
|
|
+ TaskAllocationRepository taskAllocationRep,
|
|
|
+ IHubContext<ChatHub, IChatClient> hubContext,
|
|
|
+ GoodsRepository goodsRep
|
|
|
+ )
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_usersRep = usersRep;
|
|
@@ -73,6 +85,7 @@ namespace OASystem.API.Controllers
|
|
|
this._taskAllocationRep = taskAllocationRep;
|
|
|
_hubContext = hubContext;
|
|
|
_goodsRep = goodsRep;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
#region 工资表单
|
|
@@ -1809,10 +1822,13 @@ namespace OASystem.API.Controllers
|
|
|
/// 物品 详情
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- [HttpGet]
|
|
|
+ [HttpGet("id")]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> GoodsInfo(int portType, int id)
|
|
|
{
|
|
|
+ //var _currUserInfo = JwtHelper.SerializeJwt(HttpContext.Request.Headers.Authorization);
|
|
|
+ //if (_currUserInfo == null) return Ok(JsonView(false, "请传入token!"));
|
|
|
+
|
|
|
if (portType > 1 || portType > 3) return Ok(JsonView(false, MsgTips.Port));
|
|
|
if (id < 1) return Ok(JsonView(false, MsgTips.Id));
|
|
|
|