|
|
@@ -2863,14 +2863,14 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
2863
|
2863
|
if (item.dealtime >= startime && item.dealtime <= endtime)
|
|
2864
|
2864
|
{
|
|
2865
|
2865
|
wccount++;
|
|
2866
|
|
- if (item.score == 4 || item.score == 5 )
|
|
|
2866
|
+ if (item.score == 3||item.score == 4 || item.score == 5 )
|
|
2867
|
2867
|
{
|
|
2868
|
2868
|
allmywocodecounts++;
|
|
2869
|
2869
|
}
|
|
2870
|
|
- if ( item.score == 3)
|
|
2871
|
|
- {
|
|
2872
|
|
- alljbmywocodecounts++;
|
|
2873
|
|
- }
|
|
|
2870
|
+ //if ( item.score == 3)
|
|
|
2871
|
+ //{
|
|
|
2872
|
+ // alljbmywocodecounts++;
|
|
|
2873
|
+ //}
|
|
2874
|
2874
|
if (item.score == 1 || item.score == 2)
|
|
2875
|
2875
|
{
|
|
2876
|
2876
|
allnomywocodecounts++;
|
|
|
@@ -2941,7 +2941,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
2941
|
2941
|
}
|
|
2942
|
2942
|
else
|
|
2943
|
2943
|
{
|
|
2944
|
|
- double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
|
|
|
2944
|
+ //double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
|
|
|
2945
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
2945
|
2946
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
2946
|
2947
|
}
|
|
2947
|
2948
|
#endregion
|
|
|
@@ -3077,14 +3078,14 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3077
|
3078
|
if (item.dealtime >= startime && item.dealtime <= endtime)
|
|
3078
|
3079
|
{
|
|
3079
|
3080
|
wccount++;
|
|
3080
|
|
- if (item.score == 4 || item.score == 5 )
|
|
|
3081
|
+ if (item.score == 3||item.score == 4 || item.score == 5 )
|
|
3081
|
3082
|
{
|
|
3082
|
3083
|
allmywocodecounts++;
|
|
3083
|
3084
|
}
|
|
3084
|
|
- if ( item.score == 3)
|
|
3085
|
|
- {
|
|
3086
|
|
- alljbmywocodecounts++;
|
|
3087
|
|
- }
|
|
|
3085
|
+ //if ( item.score == 3)
|
|
|
3086
|
+ //{
|
|
|
3087
|
+ // alljbmywocodecounts++;
|
|
|
3088
|
+ //}
|
|
3088
|
3089
|
if (item.score == 1 || item.score == 2)
|
|
3089
|
3090
|
{
|
|
3090
|
3091
|
allnomywocodecounts++;
|
|
|
@@ -3150,7 +3151,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3150
|
3151
|
}
|
|
3151
|
3152
|
else
|
|
3152
|
3153
|
{
|
|
3153
|
|
- double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3154
|
+ //double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3155
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
3154
|
3156
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
3155
|
3157
|
}
|
|
3156
|
3158
|
#endregion
|
|
|
@@ -3243,9 +3245,9 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3243
|
3245
|
daytjinfo.finishlv = finishlv; //完成单率
|
|
3244
|
3246
|
daytjinfo.nofinnishlv = nofinnishlv; //未完成率
|
|
3245
|
3247
|
daytjinfo.mywocode = mywocode;//满意
|
|
3246
|
|
- daytjinfo.ybwocode = ybwocode;//一般
|
|
|
3248
|
+ //daytjinfo.ybwocode = ybwocode;//一般
|
|
3247
|
3249
|
daytjinfo.cwocode = cwocode;//差
|
|
3248
|
|
- //daytjinfo.wfinishcount = wfinishcounts;//总完结数
|
|
|
3250
|
+ daytjinfo.wfinishcount = wfinishcounts;//总完结数
|
|
3249
|
3251
|
daytjinfo.mydinfo = mydblcount;//满意度
|
|
3250
|
3252
|
daytjinfo.comfrom = byformcount;//本院
|
|
3251
|
3253
|
daytjinfo.comfrombl = comfrombl;//本院率
|
|
|
@@ -3337,14 +3339,14 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3337
|
3339
|
if (finitem.dealtime >= startime && finitem.dealtime <= endtime)
|
|
3338
|
3340
|
{
|
|
3339
|
3341
|
wccount++;
|
|
3340
|
|
- if (finitem.score == 4 || finitem.score == 5 )
|
|
|
3342
|
+ if (finitem.score == 3||finitem.score == 4 || finitem.score == 5 )
|
|
3341
|
3343
|
{
|
|
3342
|
3344
|
allmywocodecounts++;
|
|
3343
|
3345
|
}
|
|
3344
|
|
- if ( finitem.score == 3)
|
|
3345
|
|
- {
|
|
3346
|
|
- alljbmywocodecounts++;
|
|
3347
|
|
- }
|
|
|
3346
|
+ //if ( finitem.score == 3)
|
|
|
3347
|
+ //{
|
|
|
3348
|
+ // alljbmywocodecounts++;
|
|
|
3349
|
+ //}
|
|
3348
|
3350
|
if (finitem.score == 1 || finitem.score == 2)
|
|
3349
|
3351
|
{
|
|
3350
|
3352
|
allnomywocodecounts++;
|
|
|
@@ -3410,7 +3412,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3410
|
3412
|
}
|
|
3411
|
3413
|
else
|
|
3412
|
3414
|
{
|
|
3413
|
|
- double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3415
|
+ //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3416
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
3414
|
3417
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
3415
|
3418
|
}
|
|
3416
|
3419
|
#endregion
|
|
|
@@ -3526,14 +3529,14 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3526
|
3529
|
if (finiitem.dealtime >= startime && finiitem.dealtime <= endtime)
|
|
3527
|
3530
|
{
|
|
3528
|
3531
|
wccount++;
|
|
3529
|
|
- if (finiitem.score == 4 || finiitem.score == 5 )
|
|
|
3532
|
+ if (finiitem.score == 3||finiitem.score == 4 || finiitem.score == 5 )
|
|
3530
|
3533
|
{
|
|
3531
|
3534
|
allmywocodecounts++;
|
|
3532
|
3535
|
}
|
|
3533
|
|
- if ( finiitem.score == 3)
|
|
3534
|
|
- {
|
|
3535
|
|
- alljbmywocodecounts++;
|
|
3536
|
|
- }
|
|
|
3536
|
+ //if ( finiitem.score == 3)
|
|
|
3537
|
+ //{
|
|
|
3538
|
+ // alljbmywocodecounts++;
|
|
|
3539
|
+ //}
|
|
3537
|
3540
|
if (finiitem.score == 1 || finiitem.score == 2)
|
|
3538
|
3541
|
{
|
|
3539
|
3542
|
allnomywocodecounts++;
|
|
|
@@ -3598,7 +3601,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3598
|
3601
|
}
|
|
3599
|
3602
|
else
|
|
3600
|
3603
|
{
|
|
3601
|
|
- double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3604
|
+ //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3605
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
3602
|
3606
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
3603
|
3607
|
}
|
|
3604
|
3608
|
#endregion
|
|
|
@@ -3697,9 +3701,9 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3697
|
3701
|
daytjinfo.finishlv = finishlv; //完成单率
|
|
3698
|
3702
|
daytjinfo.nofinnishlv = nofinnishlv; //未完成率
|
|
3699
|
3703
|
daytjinfo.mywocode = mywocode;//满意
|
|
3700
|
|
- daytjinfo.ybwocode = ybwocode;//一般
|
|
|
3704
|
+ //daytjinfo.ybwocode = ybwocode;//一般
|
|
3701
|
3705
|
daytjinfo.cwocode = cwocode;//差
|
|
3702
|
|
- // daytjinfo.wfinishcount = wfinishcounts;//完结量
|
|
|
3706
|
+ daytjinfo.wfinishcount = wfinishcounts;//完结量
|
|
3703
|
3707
|
daytjinfo.mydinfo = mydblcount;//满意度
|
|
3704
|
3708
|
daytjinfo.comfrom = byformcount;//本院
|
|
3705
|
3709
|
daytjinfo.comfrombl = comfrombl;//本院率 daytjinfo.comfromsbl = comfromsbl;//第三方率
|
|
|
@@ -3793,12 +3797,18 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3793
|
3797
|
//先获取所有满意的班组内的工单数量
|
|
3794
|
3798
|
//double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
|
|
3795
|
3799
|
//string result = percent.ToString("0.000%");//得到5.882%
|
|
|
3800
|
+ //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
|
3801
|
+ // && p.createtime <= endtime
|
|
|
3802
|
+ // && p.Jwocode == Jwocode
|
|
|
3803
|
+ // && p.isdelete == 0
|
|
|
3804
|
+ // && p.wostate == 3
|
|
|
3805
|
+ // && (p.score == 4 || p.score == 5)).Result.ToString();
|
|
3796
|
3806
|
var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
3797
|
|
- && p.createtime <= endtime
|
|
3798
|
|
- && p.Jwocode == Jwocode
|
|
3799
|
|
- && p.isdelete == 0
|
|
3800
|
|
- && p.wostate == 3
|
|
3801
|
|
- && (p.score == 4 || p.score == 5)).Result.ToString();
|
|
|
3807
|
+ && p.createtime <= endtime
|
|
|
3808
|
+ && p.Jwocode == Jwocode
|
|
|
3809
|
+ && p.isdelete == 0
|
|
|
3810
|
+ && p.wostate == 3
|
|
|
3811
|
+ && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
|
|
3802
|
3812
|
var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
3803
|
3813
|
&& p.createtime <= endtime
|
|
3804
|
3814
|
&& p.Jwocode == Jwocode
|
|
|
@@ -3815,7 +3825,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3815
|
3825
|
}
|
|
3816
|
3826
|
else
|
|
3817
|
3827
|
{
|
|
3818
|
|
- double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3828
|
+ //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3829
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
3819
|
3830
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
3820
|
3831
|
}
|
|
3821
|
3832
|
|
|
|
@@ -3949,10 +3960,14 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3949
|
3960
|
//先获取所有满意的班组内的工单数量
|
|
3950
|
3961
|
//double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
|
|
3951
|
3962
|
//string result = percent.ToString("0.000%");//得到5.882%
|
|
|
3963
|
+ //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
|
|
|
3964
|
+ // && p.isdelete == 0
|
|
|
3965
|
+ // && p.wostate == 3
|
|
|
3966
|
+ // && (p.score == 4 || p.score == 5 )).Result.ToString();
|
|
3952
|
3967
|
var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
|
|
3953
|
|
- && p.isdelete == 0
|
|
3954
|
|
- && p.wostate == 3
|
|
3955
|
|
- && (p.score == 4 || p.score == 5 )).Result.ToString();
|
|
|
3968
|
+ && p.isdelete == 0
|
|
|
3969
|
+ && p.wostate == 3
|
|
|
3970
|
+ && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
|
|
3956
|
3971
|
var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
|
|
3957
|
3972
|
&& p.isdelete == 0
|
|
3958
|
3973
|
&& p.wostate == 3
|
|
|
@@ -3965,7 +3980,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
3965
|
3980
|
}
|
|
3966
|
3981
|
else
|
|
3967
|
3982
|
{
|
|
3968
|
|
- double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3983
|
+ //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
3984
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
3969
|
3985
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
3970
|
3986
|
}
|
|
3971
|
3987
|
#endregion
|
|
|
@@ -4063,9 +4079,9 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
4063
|
4079
|
daytjinfo.finishlv = finishlv; //完成单率
|
|
4064
|
4080
|
daytjinfo.nofinnishlv = nofinnishlv; //未完成率
|
|
4065
|
4081
|
daytjinfo.mywocode = mywocode;//满意
|
|
4066
|
|
- daytjinfo.ybwocode = ybwocode;//一般
|
|
|
4082
|
+ //daytjinfo.ybwocode = ybwocode;//一般
|
|
4067
|
4083
|
daytjinfo.cwocode = cwocode;//差
|
|
4068
|
|
- //daytjinfo.wfinishcount = wfinishcounts;//完结数量
|
|
|
4084
|
+ daytjinfo.wfinishcount = wfinishcounts;//完结数量
|
|
4069
|
4085
|
daytjinfo.mydinfo = mydblcount;//满意度
|
|
4070
|
4086
|
daytjinfo.comfrom = byformcount;//本院
|
|
4071
|
4087
|
daytjinfo.comfrombl = comfrombl;//本院率
|
|
|
@@ -4152,12 +4168,18 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
4152
|
4168
|
//先获取所有满意的班组内的工单数量
|
|
4153
|
4169
|
//double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
|
|
4154
|
4170
|
//string result = percent.ToString("0.000%");//得到5.882%
|
|
|
4171
|
+ //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
|
4172
|
+ // && p.createtime <= endtime
|
|
|
4173
|
+ // && p.Jwocode == Jwocode
|
|
|
4174
|
+ // && p.isdelete == 0
|
|
|
4175
|
+ // && p.wostate == 3
|
|
|
4176
|
+ // && (p.score == 4 || p.score == 5 )).Result.ToString();
|
|
4155
|
4177
|
var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
4156
|
|
- && p.createtime <= endtime
|
|
4157
|
|
- && p.Jwocode == Jwocode
|
|
4158
|
|
- && p.isdelete == 0
|
|
4159
|
|
- && p.wostate == 3
|
|
4160
|
|
- && (p.score == 4 || p.score == 5 )).Result.ToString();
|
|
|
4178
|
+ && p.createtime <= endtime
|
|
|
4179
|
+ && p.Jwocode == Jwocode
|
|
|
4180
|
+ && p.isdelete == 0
|
|
|
4181
|
+ && p.wostate == 3
|
|
|
4182
|
+ && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
|
|
4161
|
4183
|
//基本满意数量
|
|
4162
|
4184
|
var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
4163
|
4185
|
&& p.createtime <= endtime
|
|
|
@@ -4176,7 +4198,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
4176
|
4198
|
}
|
|
4177
|
4199
|
else
|
|
4178
|
4200
|
{
|
|
4179
|
|
- double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecount)*0.8) / Convert.ToDouble(wfinishcount);
|
|
|
4201
|
+ //double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecount)*0.8) / Convert.ToDouble(wfinishcount);
|
|
|
4202
|
+ double percent = Convert.ToDouble(allmywocodecount)/ Convert.ToDouble(wfinishcount);
|
|
4180
|
4203
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
4181
|
4204
|
}
|
|
4182
|
4205
|
#endregion
|
|
|
@@ -4311,10 +4334,14 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
4311
|
4334
|
//先获取所有满意的班组内的工单数量
|
|
4312
|
4335
|
//double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
|
|
4313
|
4336
|
//string result = percent.ToString("0.000%");//得到5.882%
|
|
|
4337
|
+ //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
|
|
|
4338
|
+ // && p.isdelete == 0
|
|
|
4339
|
+ // && p.wostate == 3
|
|
|
4340
|
+ // && (p.score == 4 || p.score == 5 )).Result.ToString();
|
|
4314
|
4341
|
var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
|
|
4315
|
|
- && p.isdelete == 0
|
|
4316
|
|
- && p.wostate == 3
|
|
4317
|
|
- && (p.score == 4 || p.score == 5 )).Result.ToString();
|
|
|
4342
|
+ && p.isdelete == 0
|
|
|
4343
|
+ && p.wostate == 3
|
|
|
4344
|
+ && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
|
|
4318
|
4345
|
//基本满意数量
|
|
4319
|
4346
|
var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
|
|
4320
|
4347
|
&& p.createtime <= endtime
|
|
|
@@ -4330,7 +4357,8 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
4330
|
4357
|
}
|
|
4331
|
4358
|
else
|
|
4332
|
4359
|
{
|
|
4333
|
|
- double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
4360
|
+ //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
|
|
|
4361
|
+ double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
|
|
4334
|
4362
|
mydblcount = percent.ToString("0.00%");//满意度
|
|
4335
|
4363
|
}
|
|
4336
|
4364
|
#endregion
|
|
|
@@ -4427,9 +4455,9 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
4427
|
4455
|
daytjinfo.finishlv = finishlv; //完成单率
|
|
4428
|
4456
|
daytjinfo.nofinnishlv = nofinnishlv; //未完成率
|
|
4429
|
4457
|
daytjinfo.mywocode = mywocode;//满意
|
|
4430
|
|
- daytjinfo.ybwocode = ybwocode;//一般
|
|
|
4458
|
+ //daytjinfo.ybwocode = ybwocode;//一般
|
|
4431
|
4459
|
daytjinfo.cwocode = cwocode;//差
|
|
4432
|
|
- //daytjinfo.wfinishcount = wfinishcounts;//完结数量
|
|
|
4460
|
+ daytjinfo.wfinishcount = wfinishcounts;//完结数量
|
|
4433
|
4461
|
daytjinfo.mydinfo = mydblcount;//满意度
|
|
4434
|
4462
|
daytjinfo.comfrom = byformcount;//本院
|
|
4435
|
4463
|
daytjinfo.comfrombl = comfrombl;//本院率
|
|
|
@@ -8160,6 +8188,53 @@ namespace EquipmentApi.Controllers.workordermanage
|
|
8160
|
8188
|
}
|
|
8161
|
8189
|
}
|
|
8162
|
8190
|
#endregion
|
|
|
8191
|
+ #region 修改超时工单
|
|
|
8192
|
+ [HttpPost("updatecs")]
|
|
|
8193
|
+ public async Task<IActionResult> UpdateAsynccs(WoRepairBaseInput input)
|
|
|
8194
|
+ {
|
|
|
8195
|
+
|
|
|
8196
|
+
|
|
|
8197
|
+ var clmodel = await _wo_repair_baseRepository.GetSingle(input.id);
|
|
|
8198
|
+ if (clmodel != null)// && clmodel.createuser == optuser (int)EnumWorkOrderState.create
|
|
|
8199
|
+ {
|
|
|
8200
|
+ clmodel.wxtimeid = input.wxtimeid;
|
|
|
8201
|
+ clmodel.wostate =2;
|
|
|
8202
|
+ clmodel.wxtimecenter = "";
|
|
|
8203
|
+ var res = await _wo_repair_baseRepository.UpdateOne(clmodel);
|
|
|
8204
|
+ if (res)
|
|
|
8205
|
+ {
|
|
|
8206
|
+ return Success("超时工单修改成功");
|
|
|
8207
|
+ }
|
|
|
8208
|
+ else
|
|
|
8209
|
+ return Error("工单保存失败");
|
|
|
8210
|
+ }
|
|
|
8211
|
+
|
|
|
8212
|
+ return Error("工单不存在或工单不为新工单");
|
|
|
8213
|
+ }
|
|
|
8214
|
+ /// <summary>
|
|
|
8215
|
+ /// 根据班组获取维修项目时效
|
|
|
8216
|
+ /// </summary>
|
|
|
8217
|
+ /// <param name="input"></param>
|
|
|
8218
|
+ /// <returns></returns>
|
|
|
8219
|
+ [HttpGet("updatecsbybz")]
|
|
|
8220
|
+ public async Task<IActionResult> UpdateAsynccsbybz(string Jwocode)
|
|
|
8221
|
+ {
|
|
|
8222
|
+ var model = await _ISys_Role_InfoRepository.Get(p=>p.role_name==Jwocode);
|
|
|
8223
|
+ var bzid = "";
|
|
|
8224
|
+ foreach (var item in model)
|
|
|
8225
|
+ {
|
|
|
8226
|
+ bzid = item.id;
|
|
|
8227
|
+ }
|
|
|
8228
|
+ if (model != null)
|
|
|
8229
|
+ {
|
|
|
8230
|
+ var clmodel = await _wxwpstimeRepository.Get(p=>p.bzid==bzid);
|
|
|
8231
|
+ return Success("成功",clmodel);
|
|
|
8232
|
+
|
|
|
8233
|
+ }
|
|
|
8234
|
+ return Error("工单不存在或工单不为新工单");
|
|
|
8235
|
+ }
|
|
|
8236
|
+
|
|
|
8237
|
+ #endregion
|
|
8163
|
8238
|
#region 获取超时工单
|
|
8164
|
8239
|
[HttpGet("getcswocodelist")]
|
|
8165
|
8240
|
public async Task<IActionResult> getcswocodelist(string stime, string etime,string phone,int pageindex = 1, int pagesize=10)
|