|
|
@@ -90,9 +90,9 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
90
|
90
|
_ISys_Role_InfoRepository = Sys_Role_InfoRepository;
|
|
91
|
91
|
_IusercoldandclintidsRepository = usercoldandclintidsRepository;
|
|
92
|
92
|
_wxwpstimeRepository = wxwpstimeRepository;
|
|
93
|
|
- _Imate_dict_viewRepository = mate_dict_viewRepository;
|
|
|
93
|
+ _Imate_dict_viewRepository = mate_dict_viewRepository;
|
|
94
|
94
|
}
|
|
95
|
|
-
|
|
|
95
|
+
|
|
96
|
96
|
#region 工单分页获取接口
|
|
97
|
97
|
|
|
98
|
98
|
/// <summary>
|
|
|
@@ -181,7 +181,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
181
|
181
|
[HttpGet("getlistbypage")]
|
|
182
|
182
|
public IActionResult GetListByPageAsync(string phone, string wocode, string province, string city, string protypeid, string projectid,
|
|
183
|
183
|
string buildid, string floorid, string replace, string systemid, string equipmentid, string usercode, string stime, string etime, string channel, string Jwocode, string Pwcode, int score,
|
|
184
|
|
- int datetype = -1, int state = -1, int wxstate = -1, int pageindex = 1, int pagesize = 10)
|
|
|
184
|
+ int datetype = -1, int state = -1, int wxstate = -1, int pageindex = 1, int pagesize = 10,int usehc=-1)
|
|
185
|
185
|
{
|
|
186
|
186
|
string nowusercode =User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value;//"8000";// "8000";//
|
|
187
|
187
|
//var userstr = _signTokenService.GetUserInfoAsync(nowusercode).Result;
|
|
|
@@ -206,7 +206,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
206
|
206
|
int ywjcount = 0;
|
|
207
|
207
|
int yqxcount = 0;
|
|
208
|
208
|
var result = _wo_repair_baseRepository.GetListsByPageglhsz(phone, wocode, province, city, projectid, protypeid, buildid, floorid, replace,
|
|
209
|
|
- systemid, equipmentid, usercode, stime, etime, channel, Jwocode, Pwcode, state, score, wxstate, nowusercode, userinfo, pageindex, pagesize,
|
|
|
209
|
+ systemid, equipmentid, usercode, stime, etime, channel, Jwocode, Pwcode, state, score, wxstate, nowusercode, userinfo, pageindex, pagesize, usehc,
|
|
210
|
210
|
out recordCount, out totalcount, out wzpcount, out yjdcount, out dpjcount, out ygqcount, out ywjcount, out yqxcount);
|
|
211
|
211
|
|
|
212
|
212
|
List<Wo_Repair_Base> lists = new List<Wo_Repair_Base>();
|
|
|
@@ -6884,7 +6884,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
6884
|
6884
|
}
|
|
6885
|
6885
|
if (string.IsNullOrWhiteSpace(input.repairreplace))
|
|
6886
|
6886
|
{
|
|
6887
|
|
- return Error("请选择保修地点");
|
|
|
6887
|
+ return Error("请选择报修地点");
|
|
6888
|
6888
|
}
|
|
6889
|
6889
|
if (string.IsNullOrWhiteSpace(input.repairman))
|
|
6890
|
6890
|
{
|
|
|
@@ -7831,7 +7831,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
7831
|
7831
|
modelmap.wocode = clmodel.wocode;
|
|
7832
|
7832
|
modelmap.wostate = clmodel.wostate;
|
|
7833
|
7833
|
modelmap.readby = assignman;
|
|
7834
|
|
- modelmap.channelcode = 1; //工单类型(枚举EnumOrderState) 维修工单 = 1, 保养工单 = 2, 运行工单 = 3, 超时工单 = 4
|
|
|
7834
|
+ modelmap.channelcode = 11; //工单类型(枚举EnumOrderState) 维修工单 = 1, 保养工单 = 2, 运行工单 = 3, 超时工单 = 4
|
|
7835
|
7835
|
modelmap.isread = 0;
|
|
7836
|
7836
|
modelmap.isnotice = 0;
|
|
7837
|
7837
|
modelmap.readtime = DateTime.Now;
|
|
|
@@ -12335,7 +12335,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
12335
|
12335
|
public async Task<IActionResult> GetBxMessageList(int isread)
|
|
12336
|
12336
|
{
|
|
12337
|
12337
|
string nowusercode = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value;
|
|
12338
|
|
- var listmap = await _wo_order_user_maprepository.Get(x => x.channelcode == 1 && x.readby == nowusercode);
|
|
|
12338
|
+ var listmap = await _wo_order_user_maprepository.Get(x => x.channelcode == 11 && x.readby == nowusercode);
|
|
12339
|
12339
|
|
|
12340
|
12340
|
var list = new List<MessageListDto>();
|
|
12341
|
12341
|
if (isread == 0)
|
|
|
@@ -12347,7 +12347,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
12347
|
12347
|
{
|
|
12348
|
12348
|
id = item.id,
|
|
12349
|
12349
|
woid = item.woid,
|
|
12350
|
|
- channelcode = 1,
|
|
|
12350
|
+ channelcode = 11,
|
|
12351
|
12351
|
wotype = 1,
|
|
12352
|
12352
|
wocode = item.wocode,
|
|
12353
|
12353
|
proname = "维修工单:" + item.wocode, // + " " + item.proname,
|
|
|
@@ -12371,8 +12371,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
12371
|
12371
|
list.Add(new MessageListDto
|
|
12372
|
12372
|
{
|
|
12373
|
12373
|
id = item.id,
|
|
12374
|
|
- woid = item.id,
|
|
12375
|
|
- channelcode = 1,
|
|
|
12374
|
+ woid = item.woid,
|
|
|
12375
|
+ channelcode = 11,
|
|
12376
|
12376
|
wotype = 1,
|
|
12377
|
12377
|
wocode = item.wocode,
|
|
12378
|
12378
|
proname = "维修工单:" + item.wocode, // + " " + item.proname,
|
|
|
@@ -12406,7 +12406,7 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
12406
|
12406
|
|
|
12407
|
12407
|
string nowusercode = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value;
|
|
12408
|
12408
|
// string nowusercode="1003";
|
|
12409
|
|
- var listmap = await _wo_order_user_maprepository.Get(x => x.channelcode == 1 && x.readby == nowusercode && x.id == id);
|
|
|
12409
|
+ var listmap = await _wo_order_user_maprepository.Get(x => x.channelcode ==11 && x.readby == nowusercode && x.id == id);
|
|
12410
|
12410
|
if (listmap != null)
|
|
12411
|
12411
|
{
|
|
12412
|
12412
|
var modelmap = listmap.FirstOrDefault();
|