|
|
@@ -385,13 +385,10 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
|
|
385
|
385
|
/// </summary>
|
|
386
|
386
|
/// <param name="ids"></param>
|
|
387
|
387
|
/// <returns></returns>
|
|
388
|
|
- [HttpPost("deal")]
|
|
389
|
|
- public async Task<IActionResult> Deal(int[] ids, int notagree=-1)//同意传0,不同意传1
|
|
|
388
|
+ [HttpGet("deal")]
|
|
|
389
|
+ public async Task<IActionResult> Deal(int[] ids, int notagree=0)//同意传0,不同意传1
|
|
390
|
390
|
{
|
|
391
|
|
- if (notagree<0)
|
|
392
|
|
- {
|
|
393
|
|
- return Error("请选择是否同意!");
|
|
394
|
|
- }
|
|
|
391
|
+
|
|
395
|
392
|
var res = 0;
|
|
396
|
393
|
if (ids != null && ids.Length > 0)
|
|
397
|
394
|
{
|
|
|
@@ -412,11 +409,19 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
|
|
412
|
409
|
if (notagree == 0)//同意转移时更新会员信息
|
|
413
|
410
|
{
|
|
414
|
411
|
var m = await _cus_vip_infoRepository.GetSingle(x => x.F_ID == ml.F_VipInfoID );
|
|
415
|
|
- m.F_Saleperson = ml.F_ToPerson ;
|
|
416
|
|
- m.F_LastModifyOn = DateTime.Now.ToLocalTime();
|
|
417
|
|
- m.F_LastModifyBy = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value;
|
|
418
|
|
- if (_cus_vip_infoRepository.Update(m).Result)
|
|
419
|
|
- { }
|
|
|
412
|
+ if (m !=null )
|
|
|
413
|
+ {
|
|
|
414
|
+ m.F_Saleperson = ml.F_ToPerson;
|
|
|
415
|
+ m.F_LastModifyOn = DateTime.Now.ToLocalTime();
|
|
|
416
|
+ m.F_LastModifyBy = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value;
|
|
|
417
|
+ if (_cus_vip_infoRepository.Update(m).Result)
|
|
|
418
|
+ { }
|
|
|
419
|
+ }
|
|
|
420
|
+ else
|
|
|
421
|
+ {
|
|
|
422
|
+ return Error("该会员已删除或不存在");
|
|
|
423
|
+ }
|
|
|
424
|
+
|
|
420
|
425
|
}
|
|
421
|
426
|
res += 1;
|
|
422
|
427
|
}
|