|
|
@ -1,4 +1,5 @@ |
|
|
|
using Elight.Entity; |
|
|
|
using com.sun.org.apache.xalan.@internal.xsltc.runtime; |
|
|
|
|
|
|
|
using Elight.Entity; |
|
|
|
using Elight.Entity.SystemModel; |
|
|
|
using Elight.Entity.SystemModel; |
|
|
|
using Elight.Logic; |
|
|
|
using Elight.Logic; |
|
|
|
using Elight.Utility; |
|
|
|
using Elight.Utility; |
|
|
@ -10,6 +11,7 @@ using javax.xml.crypto; |
|
|
|
using jdk.nashorn.@internal.ir; |
|
|
|
using jdk.nashorn.@internal.ir; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
|
|
|
|
using Quartz.Logging; |
|
|
|
using SqlSugar; |
|
|
|
using SqlSugar; |
|
|
|
using System.Drawing.Printing; |
|
|
|
using System.Drawing.Printing; |
|
|
|
using System.Security.AccessControl; |
|
|
|
using System.Security.AccessControl; |
|
|
@ -85,7 +87,10 @@ namespace _24Hour.Controllers.Common |
|
|
|
username = q.createusername, |
|
|
|
username = q.createusername, |
|
|
|
|
|
|
|
|
|
|
|
handleId = q.receptionuser, |
|
|
|
handleId = q.receptionuser, |
|
|
|
handleuser = q.receptionusername |
|
|
|
handleuser = q.receptionusername, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取远程会见预约记录 |
|
|
|
//获取远程会见预约记录 |
|
|
@ -109,7 +114,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
creationtime = q.creationtime, |
|
|
|
creationtime = q.creationtime, |
|
|
|
username = q.createusername, |
|
|
|
username = q.createusername, |
|
|
|
handleId = q.meetwitId, |
|
|
|
handleId = q.meetwitId, |
|
|
|
handleuser = q.meetwitname |
|
|
|
handleuser = q.meetwitname, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取远程接待预约记录 |
|
|
|
//获取远程接待预约记录 |
|
|
@ -133,7 +140,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
creationtime = q.creationtime, |
|
|
|
creationtime = q.creationtime, |
|
|
|
username = q.createusername, |
|
|
|
username = q.createusername, |
|
|
|
handleId = q.meetwitId, |
|
|
|
handleId = q.meetwitId, |
|
|
|
handleuser = q.meetwitname |
|
|
|
handleuser = q.meetwitname, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -158,7 +167,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
creationtime = q.creationtime, |
|
|
|
creationtime = q.creationtime, |
|
|
|
username = q.createusername, |
|
|
|
username = q.createusername, |
|
|
|
handleId = q.meetwitId, |
|
|
|
handleId = q.meetwitId, |
|
|
|
handleuser = q.meetwitname |
|
|
|
handleuser = q.meetwitname, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取听证预约记录 |
|
|
|
//获取听证预约记录 |
|
|
@ -183,7 +194,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
creationtime = q.creationtime, |
|
|
|
creationtime = q.creationtime, |
|
|
|
username = q.lawyeruser, |
|
|
|
username = q.lawyeruser, |
|
|
|
handleId = q.receptionuser, |
|
|
|
handleId = q.receptionuser, |
|
|
|
handleuser = q.receptionusername |
|
|
|
handleuser = q.receptionusername, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//条件查询 |
|
|
|
//条件查询 |
|
|
@ -329,7 +342,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
state = q.state, |
|
|
|
state = q.state, |
|
|
|
reason = q.reason, |
|
|
|
reason = q.reason, |
|
|
|
sttime = q.receptiontime, |
|
|
|
sttime = q.receptiontime, |
|
|
@ -368,7 +382,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
Code = q.Code, |
|
|
|
Code = q.Code, |
|
|
|
state = q.state,//状态 |
|
|
|
state = q.state,//状态 |
|
|
|
reason = q.reason,//原因 |
|
|
|
reason = q.reason,//原因 |
|
|
@ -410,7 +425,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
state = q.state,//状态 |
|
|
|
state = q.state,//状态 |
|
|
|
reason = q.reason,//原因 |
|
|
|
reason = q.reason,//原因 |
|
|
@ -451,7 +467,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
state = q.state,//状态 |
|
|
|
state = q.state,//状态 |
|
|
|
reason = q.reason,//原因 |
|
|
|
reason = q.reason,//原因 |
|
|
@ -487,7 +504,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
|
|
|
|
|
|
|
|
lawyerunit = q.lawyerunit,//律师事务所 |
|
|
|
lawyerunit = q.lawyerunit,//律师事务所 |
|
|
|
location = q.location,//预约地点 |
|
|
|
location = q.location,//预约地点 |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
phone = q.contact,//联系方式 |
|
|
|
phone = q.contact,//联系方式 |
|
|
|
matter = q.witnessrequest,//事由 |
|
|
|
matter = q.witnessrequest,//事由 |
|
|
@ -537,9 +555,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
var Userdata = await _db.Queryable<App_Sys_UserModel>().Where(q => q.IsDeleted == 0 && q.usertype == 0).ToArrayAsync(); |
|
|
|
var Userdata = await _db.Queryable<App_Sys_UserModel>().Where(q => q.IsDeleted == 0 && q.usertype == 0).ToArrayAsync(); |
|
|
|
//获取律师服务预约记录 |
|
|
|
//获取律师服务预约记录 |
|
|
|
var Lawyerdata = await _db.Queryable<App_LawyerServicesModel>() |
|
|
|
var Lawyerdata = await _db.Queryable<App_LawyerServicesModel>() |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department).ToArrayAsync(); |
|
|
|
// .WhereIF(Commondata.state != null && Commondata.state == 1, x => x.state == 1) |
|
|
|
|
|
|
|
.WhereIF(Commondata.state != null, x => x.state == Commondata.state) |
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.receptionuser==_userdata.department) |
|
|
|
|
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.receptionuser)).ToArrayAsync(); |
|
|
|
|
|
|
|
//.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department).ToArrayAsync(); |
|
|
|
Lawyerdata.ToList().ForEach(q => |
|
|
|
Lawyerdata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -555,7 +577,10 @@ namespace _24Hour.Controllers.Common |
|
|
|
phone = q.phone, |
|
|
|
phone = q.phone, |
|
|
|
matter = q.matter,//事由 |
|
|
|
matter = q.matter,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
handleId = q.receptionuser, |
|
|
|
|
|
|
|
handleuser = q.receptionusername, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
@ -575,9 +600,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取远程会见预约记录 |
|
|
|
//获取远程会见预约记录 |
|
|
|
var Remotedata = await _db.Queryable<App_RemoteModel>() |
|
|
|
var Remotedata = await _db.Queryable<App_RemoteModel>() |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
// .WhereIF(Commondata.state != null && Commondata.state == 1, x => x.state == 1) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
|
|
|
|
|
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
|
|
|
|
.WhereIF(Commondata.state != null, x => x.state == Commondata.state) |
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.meetwitId==_userdata.department) |
|
|
|
|
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.meetwitId)).ToArrayAsync(); |
|
|
|
Remotedata.ToList().ForEach(q => |
|
|
|
Remotedata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -593,6 +622,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
matter = "",//事由 |
|
|
|
matter = "",//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
@ -614,9 +645,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取远程接待预约记录 |
|
|
|
//获取远程接待预约记录 |
|
|
|
var Receptiondata = await _db.Queryable<App_ReceptionModel>() |
|
|
|
var Receptiondata = await _db.Queryable<App_ReceptionModel>() |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
// .WhereIF(Commondata.state != null && Commondata.state == 1, x => x.state == 1) |
|
|
|
|
|
|
|
.WhereIF(Commondata.state != null, x => x.state == Commondata.state) |
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.meetwitId==_userdata.department) |
|
|
|
|
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.meetwitId)).ToArrayAsync(); |
|
|
|
|
|
|
|
//.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
Receptiondata.ToList().ForEach(q => |
|
|
|
Receptiondata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -632,6 +667,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
matter = q.matter,//事由 |
|
|
|
matter = q.matter,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
@ -653,9 +690,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取听证服务预约记录 |
|
|
|
//获取听证服务预约记录 |
|
|
|
var Hearingdata = await _db.Queryable<App_HearingModel>() |
|
|
|
var Hearingdata = await _db.Queryable<App_HearingModel>() |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department).ToArrayAsync(); |
|
|
|
// .WhereIF(Commondata.state != null && Commondata.state == 1, x => x.state == 1) |
|
|
|
|
|
|
|
.WhereIF(Commondata.state != null, x => x.state == Commondata.state) |
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.receptionuser==_userdata.department) |
|
|
|
|
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.receptionuser)).ToArrayAsync(); |
|
|
|
|
|
|
|
//.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department).ToArrayAsync(); |
|
|
|
Hearingdata.ToList().ForEach(q => |
|
|
|
Hearingdata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -669,7 +710,10 @@ namespace _24Hour.Controllers.Common |
|
|
|
color = da?.color, |
|
|
|
color = da?.color, |
|
|
|
icon = da?.icon, |
|
|
|
icon = da?.icon, |
|
|
|
name = q.lawyeruser,//律师律师名称 |
|
|
|
name = q.lawyeruser,//律师律师名称 |
|
|
|
|
|
|
|
handleId = q.receptionuser, |
|
|
|
|
|
|
|
handleuser = q.receptionusername, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
lawyerunit = q.lawyerunit,//律师事务所 |
|
|
|
lawyerunit = q.lawyerunit,//律师事务所 |
|
|
|
location = q.location,//预约地点 |
|
|
|
location = q.location,//预约地点 |
|
|
|
qrsj = q.acceptancetime, |
|
|
|
qrsj = q.acceptancetime, |
|
|
@ -709,7 +753,6 @@ namespace _24Hour.Controllers.Common |
|
|
|
color = da?.color, |
|
|
|
color = da?.color, |
|
|
|
icon = da?.icon, |
|
|
|
icon = da?.icon, |
|
|
|
name = q.wsmc,//文书名称 |
|
|
|
name = q.wsmc,//文书名称 |
|
|
|
|
|
|
|
|
|
|
|
lawyerunit = Unitdata?.unitname,//单位 |
|
|
|
lawyerunit = Unitdata?.unitname,//单位 |
|
|
|
location = "",//预约地点 |
|
|
|
location = "",//预约地点 |
|
|
|
phone = "",//联系方式 |
|
|
|
phone = "",//联系方式 |
|
|
@ -751,7 +794,6 @@ namespace _24Hour.Controllers.Common |
|
|
|
|
|
|
|
|
|
|
|
lawyerunit = Unitdata?.unitname,// |
|
|
|
lawyerunit = Unitdata?.unitname,// |
|
|
|
location = "",// |
|
|
|
location = "",// |
|
|
|
|
|
|
|
|
|
|
|
phone = q.lxhm,//联系方式 |
|
|
|
phone = q.lxhm,//联系方式 |
|
|
|
matter = !string.IsNullOrEmpty(q.gjkqmm) ? q.gjkqmm : q.wbkqmm,//取件码 |
|
|
|
matter = !string.IsNullOrEmpty(q.gjkqmm) ? q.gjkqmm : q.wbkqmm,//取件码 |
|
|
|
objectstr = "",//干警取件码 |
|
|
|
objectstr = "",//干警取件码 |
|
|
@ -771,9 +813,12 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取认罪认罚预约记录 |
|
|
|
//获取认罪认罚预约记录 |
|
|
|
var Confessiondata = await _db.Queryable<App_ConfessionModel>() |
|
|
|
var Confessiondata = await _db.Queryable<App_ConfessionModel>() |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
//.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
.WhereIF(Commondata.state != null, x => x.state == Commondata.state) |
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.meetwitId==_userdata.department) |
|
|
|
|
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.meetwitId)).ToArrayAsync(); |
|
|
|
|
|
|
|
//.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
Confessiondata.ToList().ForEach(q => |
|
|
|
Confessiondata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -789,6 +834,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
matter = q.matter,//事由 |
|
|
|
matter = q.matter,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
@ -840,8 +887,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
var Stagingdata = await _db.Queryable<StagingModel>().Where(q => q.IsDelete == 0).ToArrayAsync(); |
|
|
|
var Stagingdata = await _db.Queryable<StagingModel>().Where(q => q.IsDelete == 0).ToArrayAsync(); |
|
|
|
var Userdata = await _db.Queryable<App_Sys_UserModel>().Where(q => q.IsDeleted == 0 && q.usertype == 0).ToArrayAsync(); |
|
|
|
var Userdata = await _db.Queryable<App_Sys_UserModel>().Where(q => q.IsDeleted == 0 && q.usertype == 0).ToArrayAsync(); |
|
|
|
//获取律师服务预约记录 |
|
|
|
//获取律师服务预约记录 |
|
|
|
var Lawyerdata = await _db.Queryable<App_LawyerServicesModel>() |
|
|
|
var Lawyerdata = await _db.Queryable<App_LawyerServicesModel>().WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.receptionuser==_userdata.department) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.receptionuser) && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
|
|
|
|
// .Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
Lawyerdata.ToList().ForEach(q => |
|
|
|
Lawyerdata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -862,7 +910,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
qrsj = q.acceptancetime, |
|
|
|
state = q.state, |
|
|
|
state = q.state, |
|
|
|
reason = q.reason, |
|
|
|
reason = q.reason, |
|
|
|
sttime = q.receptiontime, |
|
|
|
sttime = q.receptiontime, |
|
|
@ -872,12 +920,15 @@ namespace _24Hour.Controllers.Common |
|
|
|
receive = q.createuserId, |
|
|
|
receive = q.createuserId, |
|
|
|
username = userda?.name, |
|
|
|
username = userda?.name, |
|
|
|
yyname = q.createusername,//预约人名称 |
|
|
|
yyname = q.createusername,//预约人名称 |
|
|
|
notes = q.notes |
|
|
|
notes = q.notes, |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取远程会见预约记录 |
|
|
|
//获取远程会见预约记录 |
|
|
|
var Remotedata = await _db.Queryable<App_RemoteModel>() |
|
|
|
var Remotedata = await _db.Queryable<App_RemoteModel>() |
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
.WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.meetwitId==_userdata.department) |
|
|
|
|
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.meetwitId) && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
Remotedata.ToList().ForEach(q => |
|
|
|
Remotedata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -892,12 +943,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
phone = q.phone, |
|
|
|
phone = q.phone, |
|
|
|
matter = "",//事由 |
|
|
|
matter = "",//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
qrsj = q.acceptancetime, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
Code = q.Code, |
|
|
|
Code = q.Code, |
|
|
|
state = q.state,//状态 |
|
|
|
state = q.state,//状态 |
|
|
|
reason = q.reason,//原因 |
|
|
|
reason = q.reason,//原因 |
|
|
@ -913,8 +965,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取远程接待预约记录 |
|
|
|
//获取远程接待预约记录 |
|
|
|
var Receptiondata = await _db.Queryable<App_ReceptionModel>() |
|
|
|
var Receptiondata = await _db.Queryable<App_ReceptionModel>().WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.meetwitId==_userdata.department) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.meetwitId) && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
|
|
|
|
// .Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
Receptiondata.ToList().ForEach(q => |
|
|
|
Receptiondata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -929,12 +982,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
phone = q.phone, |
|
|
|
phone = q.phone, |
|
|
|
matter = q.matter,//事由 |
|
|
|
matter = q.matter,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
qrsj = q.acceptancetime, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
Code = "", |
|
|
|
Code = "", |
|
|
|
state = q.state,//状态 |
|
|
|
state = q.state,//状态 |
|
|
|
reason = q.reason,//原因 |
|
|
|
reason = q.reason,//原因 |
|
|
@ -950,8 +1004,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取认罪认罚预约记录 |
|
|
|
//获取认罪认罚预约记录 |
|
|
|
var Confessiondata = await _db.Queryable<App_ConfessionModel>() |
|
|
|
var Confessiondata = await _db.Queryable<App_ConfessionModel>().WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.meetwitId==_userdata.department) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.meetwitId) && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
|
|
|
|
//.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
Confessiondata.ToList().ForEach(q => |
|
|
|
Confessiondata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -966,12 +1021,13 @@ namespace _24Hour.Controllers.Common |
|
|
|
phone = q.phone, |
|
|
|
phone = q.phone, |
|
|
|
matter = q.matter,//事由 |
|
|
|
matter = q.matter,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
|
|
|
|
qrsj = q.acceptancetime, |
|
|
|
lawyerunit = "", |
|
|
|
lawyerunit = "", |
|
|
|
location = "", |
|
|
|
location = "", |
|
|
|
courtname = "", |
|
|
|
courtname = "", |
|
|
|
casetype = "", |
|
|
|
casetype = "", |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
Code = "", |
|
|
|
Code = "", |
|
|
|
state = q.state,//状态 |
|
|
|
state = q.state,//状态 |
|
|
|
reason = q.reason,//原因 |
|
|
|
reason = q.reason,//原因 |
|
|
@ -987,8 +1043,9 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
//获取听证服务预约记录 |
|
|
|
//获取听证服务预约记录 |
|
|
|
var Hearingdata = await _db.Queryable<App_HearingModel>() |
|
|
|
var Hearingdata = await _db.Queryable<App_HearingModel>().WhereIF(!string.IsNullOrEmpty(_userdata.department), x => x.receptionuser==_userdata.department) |
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
.Where(q => q.IsDeleted == 0 && !string.IsNullOrEmpty(q.receptionuser) && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
|
|
|
|
// .Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department && q.state != 2 && q.state != 3).ToArrayAsync(); |
|
|
|
Hearingdata.ToList().ForEach(q => |
|
|
|
Hearingdata.ToList().ForEach(q => |
|
|
|
{ |
|
|
|
{ |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
@ -1002,10 +1059,11 @@ namespace _24Hour.Controllers.Common |
|
|
|
color = da?.color, |
|
|
|
color = da?.color, |
|
|
|
icon = da?.icon, |
|
|
|
icon = da?.icon, |
|
|
|
name = q.lawyeruser,//律师律师名称 |
|
|
|
name = q.lawyeruser,//律师律师名称 |
|
|
|
|
|
|
|
qrsj = q.acceptancetime, |
|
|
|
lawyerunit = q.lawyerunit,//律师事务所 |
|
|
|
lawyerunit = q.lawyerunit,//律师事务所 |
|
|
|
location = q.location,//预约地点 |
|
|
|
location = q.location,//预约地点 |
|
|
|
|
|
|
|
operatorId = q.operatorId, |
|
|
|
|
|
|
|
operatorName = q.operatorName, |
|
|
|
phone = q.contact,//联系方式 |
|
|
|
phone = q.contact,//联系方式 |
|
|
|
matter = q.witnessrequest,//事由 |
|
|
|
matter = q.witnessrequest,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
@ -1042,7 +1100,6 @@ namespace _24Hour.Controllers.Common |
|
|
|
|
|
|
|
|
|
|
|
lawyerunit = Unitdata?.unitname,//律师事务所 |
|
|
|
lawyerunit = Unitdata?.unitname,//律师事务所 |
|
|
|
location = "",//预约地点 |
|
|
|
location = "",//预约地点 |
|
|
|
|
|
|
|
|
|
|
|
phone = "",//联系方式 |
|
|
|
phone = "",//联系方式 |
|
|
|
matter = q.ajmc,//事由 |
|
|
|
matter = q.ajmc,//事由 |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
|
objectstr = "",//访问对象(案件名称) |
|
|
@ -1077,10 +1134,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
color = da?.color, |
|
|
|
color = da?.color, |
|
|
|
icon = da?.icon, |
|
|
|
icon = da?.icon, |
|
|
|
name = q.cljs,//材料件数 |
|
|
|
name = q.cljs,//材料件数 |
|
|
|
|
|
|
|
|
|
|
|
lawyerunit = Unitdata?.unitname,// |
|
|
|
lawyerunit = Unitdata?.unitname,// |
|
|
|
location = "",// |
|
|
|
location = "",// |
|
|
|
|
|
|
|
|
|
|
|
phone = q.lxhm,//联系方式 |
|
|
|
phone = q.lxhm,//联系方式 |
|
|
|
matter = !string.IsNullOrEmpty(q.gjkqmm) ? q.gjkqmm : q.wbkqmm,//取件码 |
|
|
|
matter = !string.IsNullOrEmpty(q.gjkqmm) ? q.gjkqmm : q.wbkqmm,//取件码 |
|
|
|
objectstr = "", |
|
|
|
objectstr = "", |
|
|
@ -1172,6 +1227,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
Lawyerbol.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Lawyerbol.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Lawyerbol.FirstOrDefault().reason = dto.reason; |
|
|
|
Lawyerbol.FirstOrDefault().reason = dto.reason; |
|
|
|
Lawyerbol.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
Lawyerbol.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
|
|
|
|
Lawyerbol.FirstOrDefault().operatorId =_userdata.Id; |
|
|
|
|
|
|
|
Lawyerbol.FirstOrDefault().operatorName = _userdata.name; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1179,7 +1236,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
Lawyerbol.FirstOrDefault().receptionusername = dto.username; |
|
|
|
Lawyerbol.FirstOrDefault().receptionusername = dto.username; |
|
|
|
} |
|
|
|
} |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
var num = await _db.Updateable(Lawyerbol.FirstOrDefault()).UpdateColumns(it => new { it.receptionuser, it.receptionusername, it.acceptancetime, it.reason, it.state }).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Updateable(Lawyerbol.FirstOrDefault()).UpdateColumns(it => new { it.receptionuser, it.receptionusername, it.acceptancetime, it.reason, it.state,it.operatorId,it.operatorName }).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|
if (num > 0) |
|
|
|
if (num > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1198,6 +1255,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
RemoteModelbol.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
RemoteModelbol.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
RemoteModelbol.FirstOrDefault().reason = dto.reason; |
|
|
|
RemoteModelbol.FirstOrDefault().reason = dto.reason; |
|
|
|
RemoteModelbol.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
RemoteModelbol.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
|
|
|
|
RemoteModelbol.FirstOrDefault().operatorId =_userdata.Id; |
|
|
|
|
|
|
|
RemoteModelbol.FirstOrDefault().operatorName = _userdata.name; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1205,7 +1264,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
RemoteModelbol.FirstOrDefault().meetwitname = dto.username; |
|
|
|
RemoteModelbol.FirstOrDefault().meetwitname = dto.username; |
|
|
|
} |
|
|
|
} |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
var num = await _db.Updateable(RemoteModelbol.FirstOrDefault()).UpdateColumns(it => new { it.meetwitId, it.meetwitname, it.acceptancetime, it.reason, it.state }).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Updateable(RemoteModelbol.FirstOrDefault()).UpdateColumns(it => new { it.meetwitId, it.meetwitname, it.acceptancetime, it.reason, it.state, it.operatorId, it.operatorName }).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|
if (num > 0) |
|
|
|
if (num > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1224,6 +1283,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
Receptiondata.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Receptiondata.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Receptiondata.FirstOrDefault().reason = dto.reason; |
|
|
|
Receptiondata.FirstOrDefault().reason = dto.reason; |
|
|
|
Receptiondata.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
Receptiondata.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
|
|
|
|
Receptiondata.FirstOrDefault().operatorId =_userdata.Id; |
|
|
|
|
|
|
|
Receptiondata.FirstOrDefault().operatorName = _userdata.name; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1231,7 +1292,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
Receptiondata.FirstOrDefault().meetwitname = dto.username; |
|
|
|
Receptiondata.FirstOrDefault().meetwitname = dto.username; |
|
|
|
} |
|
|
|
} |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
var num = await _db.Updateable(Receptiondata.FirstOrDefault()).UpdateColumns(it => new { it.meetwitId, it.meetwitname, it.acceptancetime, it.reason, it.state }).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Updateable(Receptiondata.FirstOrDefault()).UpdateColumns(it => new { it.meetwitId, it.meetwitname, it.acceptancetime, it.reason, it.state, it.operatorId, it.operatorName }).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|
if (num > 0) |
|
|
|
if (num > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1249,6 +1310,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
Confessiondata.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Confessiondata.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Confessiondata.FirstOrDefault().reason = dto.reason; |
|
|
|
Confessiondata.FirstOrDefault().reason = dto.reason; |
|
|
|
Confessiondata.FirstOrDefault().state =Convert.ToInt32(dto.state); |
|
|
|
Confessiondata.FirstOrDefault().state =Convert.ToInt32(dto.state); |
|
|
|
|
|
|
|
Confessiondata.FirstOrDefault().operatorId =_userdata.Id; |
|
|
|
|
|
|
|
Confessiondata.FirstOrDefault().operatorName = _userdata.name; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1256,7 +1319,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
Confessiondata.FirstOrDefault().meetwitname = dto.username; |
|
|
|
Confessiondata.FirstOrDefault().meetwitname = dto.username; |
|
|
|
} |
|
|
|
} |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
var num = await _db.Updateable(Confessiondata.FirstOrDefault()).UpdateColumns(it => new { it.meetwitId, it.meetwitname, it.acceptancetime, it.reason, it.state }).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Updateable(Confessiondata.FirstOrDefault()).UpdateColumns(it => new { it.meetwitId, it.meetwitname, it.acceptancetime, it.reason, it.state, it.operatorId, it.operatorName }).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|
if (num > 0) |
|
|
|
if (num > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1275,6 +1338,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
Hearingdata.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Hearingdata.FirstOrDefault().acceptancetime = dto.time; |
|
|
|
Hearingdata.FirstOrDefault().reason = dto.reason; |
|
|
|
Hearingdata.FirstOrDefault().reason = dto.reason; |
|
|
|
Hearingdata.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
Hearingdata.FirstOrDefault().state = Convert.ToInt32(dto.state); |
|
|
|
|
|
|
|
Confessiondata.FirstOrDefault().operatorId =_userdata.Id; |
|
|
|
|
|
|
|
Confessiondata.FirstOrDefault().operatorName = _userdata.name; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1282,7 +1347,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
Hearingdata.FirstOrDefault().receptionusername = dto.username; |
|
|
|
Hearingdata.FirstOrDefault().receptionusername = dto.username; |
|
|
|
} |
|
|
|
} |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
var num = await _db.Updateable(Hearingdata.FirstOrDefault()).UpdateColumns(it => new { it.receptionuser, it.receptionusername, it.acceptancetime, it.reason, it.state }).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Updateable(Hearingdata.FirstOrDefault()).UpdateColumns(it => new { it.receptionuser, it.receptionusername, it.acceptancetime, it.reason, it.state, it.operatorId, it.operatorName }).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|
if (num > 0) |
|
|
|
if (num > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|