Merge branch 'main' of http://47.122.43.22:3000/wjn/mh_sms
This commit is contained in:
commit
5ee219615f
@ -19,7 +19,7 @@
|
|||||||
"ConnApiUrl": "http://localhost:3116/api/OP/TenantInfo/GetDbConn",
|
"ConnApiUrl": "http://localhost:3116/api/OP/TenantInfo/GetDbConn",
|
||||||
"ConnDataKey": "MHKSAQ1212010101",
|
"ConnDataKey": "MHKSAQ1212010101",
|
||||||
"TenantConnKey": "MHSMS",
|
"TenantConnKey": "MHSMS",
|
||||||
"Img_Local": "C:\\release\\img"
|
"Img_Local": "C:\\sms\\uploadFile"
|
||||||
},
|
},
|
||||||
"RedisConfig": {
|
"RedisConfig": {
|
||||||
"RedisConnectionString": "120.25.146.51:6379",
|
"RedisConnectionString": "120.25.146.51:6379",
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
"TenantConnKey": "PDEV1212",
|
"TenantConnKey": "PDEV1212",
|
||||||
"RedisFormConfig": "true",
|
"RedisFormConfig": "true",
|
||||||
"Env": "1", //外网IP 0:内网IP
|
"Env": "1", //外网IP 0:内网IP
|
||||||
"Img_Local": "C:\\release\\img"
|
"Img_Local": "C:\\sms\\uploadFile"
|
||||||
},
|
},
|
||||||
"RedisConfig": {
|
"RedisConfig": {
|
||||||
"RedisConnectionString": "120.25.146.51:6379,password=mhsaferedis,defaultDatabase=15",
|
"RedisConnectionString": "120.25.146.51:6379,password=mhsaferedis,defaultDatabase=15",
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
"ConnDataKey": "MHKSAQ1212010101",
|
"ConnDataKey": "MHKSAQ1212010101",
|
||||||
"TenantConnKey": "MHSMS",
|
"TenantConnKey": "MHSMS",
|
||||||
"RedisFormConfig": "true",
|
"RedisFormConfig": "true",
|
||||||
"Img_Local": "C:\\release\\img"
|
"Img_Local": "C:\\sms\\uploadFile"
|
||||||
},
|
},
|
||||||
"RedisConfig": {
|
"RedisConfig": {
|
||||||
"RedisConnectionString": "172.26.13.0:6379,password=mhsaferedis,defaultDatabase=15",
|
"RedisConnectionString": "172.26.13.0:6379,password=mhsaferedis,defaultDatabase=15",
|
||||||
|
|||||||
@ -272,10 +272,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
throw new Exception("未查到有效数据");
|
throw new Exception("未查到有效数据");
|
||||||
}
|
}
|
||||||
if (entity.STATUS != SESafeSurveyStatus.汇总审阅中)
|
|
||||||
{
|
|
||||||
throw new Exception("当前状态无法完成审阅");
|
|
||||||
}
|
|
||||||
entity.STATUS = SESafeSurveyStatus.完成;
|
entity.STATUS = SESafeSurveyStatus.完成;
|
||||||
var finishNoitice = NotificationTaskService.GetTaskFinishModel(finishId);
|
var finishNoitice = NotificationTaskService.GetTaskFinishModel(finishId);
|
||||||
UnifiedCommit(() =>
|
UnifiedCommit(() =>
|
||||||
@ -479,8 +475,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
BaseFilter baseFilter = new BaseFilter(filter.GetOrgId());
|
BaseFilter baseFilter = new BaseFilter(filter.GetOrgId());
|
||||||
baseFilter.Include = new string[] { "Nav_User.Nav_Person.Nav_Post", "Nav_User.Nav_Department.Nav_Parent", "Nav_Department.Nav_Parent", "Nav_Test.Nav_Posts", "Nav_Test.Nav_Points" };
|
IEnumerable<T_SE_SAFE_SURVEY_LIST_PAPER> papers = new List<T_SE_SAFE_SURVEY_LIST_PAPER>();
|
||||||
var papers = GetEntities<T_SE_SAFE_SURVEY_LIST_PAPER>(t => surveyIds.Contains(t.SAFE_ID), baseFilter);
|
|
||||||
var colscount = points.Count;
|
var colscount = points.Count;
|
||||||
for (int i = 0; i < points.Count; i++)
|
for (int i = 0; i < points.Count; i++)
|
||||||
{
|
{
|
||||||
@ -489,6 +484,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
var MAP = new Dictionary<Guid, int>();
|
var MAP = new Dictionary<Guid, int>();
|
||||||
if (ret.TYPE == "人员")
|
if (ret.TYPE == "人员")
|
||||||
{
|
{
|
||||||
|
baseFilter.SelectField = new string[] { "ANSWER", "Nav_User.NAME", "Nav_Test.Nav_Points.POINT_ID", "Nav_Test.ANSWER" };
|
||||||
|
papers = GetEntities<T_SE_SAFE_SURVEY_LIST_PAPER>(t => surveyIds.Contains(t.SAFE_ID), baseFilter);
|
||||||
papers.ForEach(paper =>
|
papers.ForEach(paper =>
|
||||||
{
|
{
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
@ -515,6 +512,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
}
|
}
|
||||||
else if (ret.TYPE == "岗位")
|
else if (ret.TYPE == "岗位")
|
||||||
{
|
{
|
||||||
|
baseFilter.SelectField = new string[] { "ANSWER", "Nav_User.Nav_Person.Nav_Post.NAME", "Nav_Test.Nav_Points.POINT_ID", "Nav_Test.ANSWER" };
|
||||||
|
papers = GetEntities<T_SE_SAFE_SURVEY_LIST_PAPER>(t => surveyIds.Contains(t.SAFE_ID), baseFilter);
|
||||||
papers.ForEach(paper =>
|
papers.ForEach(paper =>
|
||||||
{
|
{
|
||||||
if (paper.Nav_User.Nav_Person.Nav_Post != null)
|
if (paper.Nav_User.Nav_Person.Nav_Post != null)
|
||||||
@ -544,6 +543,9 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
}
|
}
|
||||||
else if (ret.TYPE == "部门")
|
else if (ret.TYPE == "部门")
|
||||||
{
|
{
|
||||||
|
baseFilter.SelectField = new string[] { "ANSWER", "Nav_User.Nav_Department.NAME", "Nav_Department.NAME", "Nav_Test.Nav_Points.POINT_ID","Nav_Test.ANSWER" };
|
||||||
|
|
||||||
|
papers = GetEntities<T_SE_SAFE_SURVEY_LIST_PAPER>(t => surveyIds.Contains(t.SAFE_ID), baseFilter);
|
||||||
papers.ForEach(paper =>
|
papers.ForEach(paper =>
|
||||||
{
|
{
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|||||||
@ -303,24 +303,16 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
GetDepartmentIds(temp, orgId, ref departmentIds);
|
GetDepartmentIds(temp, orgId, ref departmentIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得单条实体数据
|
/// 获得单条实体数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">过滤实体</param>
|
/// <param name="filter">过滤实体</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost, Route("Get")]
|
[HttpPost, Route("OrderPaged")]
|
||||||
public JsonActionResult<T_SE_TRAIN_SURVEY> Get([FromBody] KeywordFilter filter)
|
public PagedActionResult<T_SE_TRAIN_SURVEY> OrderPaged([FromBody] BasePageFilter filter)
|
||||||
{
|
{
|
||||||
filter.Include = new string[] {
|
var result = WitOrderPaged(t=>t.TASK_ID!=null, filter);
|
||||||
"Nav_LaunchDepartment",
|
|
||||||
"Nav_LaunchUser",
|
|
||||||
"Nav_Points.Nav_Point",
|
|
||||||
"Nav_JoinDepartment.Nav_Department",
|
|
||||||
"Nav_Demands.Nav_User.Nav_Department",
|
|
||||||
"Nav_Demands.Nav_Department",
|
|
||||||
"Nav_Demands.Nav_Items.Nav_DEMAND",
|
|
||||||
};
|
|
||||||
var result = WitEntity(null, filter);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,6 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using APT.Infrastructure.Core;
|
using APT.Infrastructure.Core;
|
||||||
using APT.BaseData.Domain.ApiModel;
|
using APT.BaseData.Domain.ApiModel;
|
||||||
|
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using APT.BaseData.Domain.Entities.FM;
|
using APT.BaseData.Domain.Entities.FM;
|
||||||
|
|||||||
@ -35,6 +35,20 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
return SafeExecute<bool>(() =>
|
return SafeExecute<bool>(() =>
|
||||||
{
|
{
|
||||||
|
List<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD_FILE> files = new List<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD_FILE>();
|
||||||
|
var Nav_Record = entity.Nav_TrainRecordList;
|
||||||
|
Nav_Record.ForEach(t =>
|
||||||
|
{
|
||||||
|
if (t.Nav_TrainRecordFile != null && t.Nav_TrainRecordFile.Count() > 0)
|
||||||
|
{
|
||||||
|
t.Nav_TrainRecordFile.ForEach(nf =>
|
||||||
|
{
|
||||||
|
nf.TRAIN_RECORD_ID = t.ID;
|
||||||
|
});
|
||||||
|
files.AddRange(t.Nav_TrainRecordFile);
|
||||||
|
t.Nav_TrainRecordFile = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
var currUser = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
var currUser = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||||
if (string.IsNullOrEmpty(entity.ID_CARD_NUMBER))
|
if (string.IsNullOrEmpty(entity.ID_CARD_NUMBER))
|
||||||
{
|
{
|
||||||
@ -90,6 +104,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
UnifiedCommit(() =>
|
UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
UpdateEntityNoCommit(entity);
|
UpdateEntityNoCommit(entity);
|
||||||
|
if (Nav_Record != null)
|
||||||
|
BantchSaveEntityNoCommit(Nav_Record);
|
||||||
|
if (files.Any())
|
||||||
|
BantchSaveEntityNoCommit(files);
|
||||||
if (next_train_record != null)
|
if (next_train_record != null)
|
||||||
AddEntityNoCommit(next_train_record);
|
AddEntityNoCommit(next_train_record);
|
||||||
if (sendNotice != null)
|
if (sendNotice != null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user