|
|
|
@ -24,6 +24,7 @@ using ATS.NonCustodial.Application.Contracts.Interfaces.Business.MaterialManager |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.PunchRecordServices; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.PunchRecordServices; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.PunchRecordServices.Input; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.PunchRecordServices.Input; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.PunchRecordServices.Output; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.PunchRecordServices.Output; |
|
|
|
|
|
|
|
using ATS.NonCustodial.Application.Impl.Admins; |
|
|
|
using ATS.NonCustodial.Application.Impl.Business.IM; |
|
|
|
using ATS.NonCustodial.Application.Impl.Business.IM; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Admins; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Admins; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Business; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Business; |
|
|
|
@ -839,7 +840,12 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[HttpPost] |
|
|
|
public async Task<IResultOutput> AddAppBusinessAsync(AppBusinessApplicationCreateOrModifyInput input) => await _appBusinessApplicationService.CreateOrModify(input); |
|
|
|
public async Task<IResultOutput> AddAppBusinessAsync(AppBusinessApplicationCreateOrModifyInput input) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
//测试发短信流程 |
|
|
|
|
|
|
|
// await _smsService.SendMessageSMS("13461916012","您有一条申请待处理,请及时处理"); |
|
|
|
|
|
|
|
return await _appBusinessApplicationService.CreateOrModify(input); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// 获取被监管人员业务申请列表(正在进行的案件) |
|
|
|
/// 获取被监管人员业务申请列表(正在进行的案件) |
|
|
|
@ -987,8 +993,8 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
[AllowAnonymous] |
|
|
|
[AllowAnonymous] |
|
|
|
public async Task<IResultOutput> SubmitBindingApplication(SubmitBindingApplicationInput input) |
|
|
|
public async Task<IResultOutput> SubmitBindingApplication(SubmitBindingApplicationInput input) |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool checkCode = await _smsService.CheckCodeAsync(input.phone, input.checkCode, "CheckCode"); |
|
|
|
// bool checkCode = await _smsService.CheckCodeAsync(input.phone, input.checkCode, "CheckCode"); |
|
|
|
if (!checkCode) return ResultOutput.NotOk("无效验证码"); |
|
|
|
// if (!checkCode) return ResultOutput.NotOk("无效验证码"); |
|
|
|
|
|
|
|
|
|
|
|
//[1]校验当前账户是否是第一次绑定 |
|
|
|
//[1]校验当前账户是否是第一次绑定 |
|
|
|
//if (!await _appSupervisedPersonRepository.AnyAsync(w => w.IdCard == input.IdCard && !w.IsBound)) return ResultOutput.NotOk("当前身份没有被监管,请检查身份证是否输入正确"); |
|
|
|
//if (!await _appSupervisedPersonRepository.AnyAsync(w => w.IdCard == input.IdCard && !w.IsBound)) return ResultOutput.NotOk("当前身份没有被监管,请检查身份证是否输入正确"); |
|
|
|
|