|
@@ -102,27 +102,31 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
if (enterExitCostData != null)
|
|
|
{
|
|
|
+ enterExitCostInfoView = _mapper.Map<EnterExitCostInfoView>(enterExitCostData);
|
|
|
+
|
|
|
var isView = await PermissionValidationAsync(dto.DiId, dto.CurrUserId);
|
|
|
+ if (isView) enterExitCostInfoView.IsView = true; //查看权限
|
|
|
|
|
|
if (enterExitCostData.CreateUserId == dto.CurrUserId) {
|
|
|
enterExitCostInfoView.IsSave = true; //操作权限
|
|
|
enterExitCostInfoView.IsView = true; //查看权限
|
|
|
}
|
|
|
|
|
|
- if (!isView)
|
|
|
+
|
|
|
+ if (!enterExitCostInfoView.IsView)
|
|
|
{
|
|
|
var setUserName = await _sqlSugar.Queryable<Sys_Users>().Where(x => x.Id == enterExitCostData.CreateUserId).Select(x => x.CnName).FirstAsync();
|
|
|
|
|
|
result.Msg = $"{setUserName}设置了你不能查看当前团组的出入境费用明细数据,如要查看,请联系{setUserName}!";
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
enterExitCostInfoView.ViewUsers = await _sqlSugar
|
|
|
.Queryable<Grp_EnterExitCostPermission>()
|
|
|
.Where(x => x.GroupId == dto.DiId)
|
|
|
.Select(x => x.UserId)
|
|
|
.ToArrayAsync();
|
|
|
|
|
|
- enterExitCostInfoView = _mapper.Map<EnterExitCostInfoView>(enterExitCostData);
|
|
|
//enterExitCostInfoView.FirstItemRemark = enterExitCostData.Remark;
|
|
|
var dayAndCostSql = string.Format(@"Select ntf.Country,ntf.City,ssd.Name CurremcyCode,ssd.Remark CurrencyName,gdac.* From Grp_DayAndCost gdac
|
|
|
Left Join Grp_NationalTravelFee ntf On ntf.Id = gdac.NationalTravelFeeId
|