| | |
| | | private readonly IIntentionCustomerService _intentionCustomerService; |
| | | private readonly ICooperVisitService _cooperVisitService; |
| | | private readonly IIntentionVisitService _intentionVisitService; |
| | | |
| | | private readonly IExpertService _expertService; |
| | | |
| | | public APIController(ILogger<UserController> logger, IUserService userService, IHrDeptService hrDeptService, IHrPositionService hrPositionService, ILiaotianService liaotianService, IPltJiatingchengyuanService pltJiatingchengyuanService, ISysAttachmentService sysAttachmentService |
| | | , IPltRoleService pltRoleService |
| | |
| | | , ICooperatecustomCustomerService cooperatecustomCustomerService |
| | | , IIntentionCustomerService intentionCustomerService |
| | | , ICooperVisitService cooperVisitService |
| | | , IIntentionVisitService intentionVisitService) |
| | | , IIntentionVisitService intentionVisitService |
| | | , IExpertService expertService) |
| | | { |
| | | _logger = logger; |
| | | _userService = userService; |
| | |
| | | _intentionCustomerService = intentionCustomerService; |
| | | _cooperVisitService = cooperVisitService; |
| | | _intentionVisitService = intentionVisitService; |
| | | _expertService = expertService; |
| | | } |
| | | |
| | | |
| | |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //代理合作申请 |
| | | public IActionResult SaveDlhz([FromBody] ExpertDTO dTO) |
| | | { |
| | | ReturnMsg<ExpertDTO> returnMsg = new ReturnMsg<ExpertDTO>(); |
| | | returnMsg.code = 2; |
| | | try |
| | | { |
| | | |
| | | |
| | | |
| | | dTO.InfoSource = ""; |
| | | dTO.ExpertType = ""; |
| | | dTO.RecStatus = "A"; |
| | | dTO.Modifier = "1"; |
| | | dTO.Modifytime = DateTime.Now; |
| | | dTO.Creater = "1"; |
| | | dTO.Createtime = dTO.Modifytime; |
| | | var resultDataEntity = _expertService.savehezuo(dTO); |
| | | |
| | | |
| | | |
| | | if (resultDataEntity.Result) |
| | | { |
| | | returnMsg.code = 1; |
| | | returnMsg.returnObj = dTO; |
| | | returnMsg.count = 1; |
| | | } |
| | | else |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "保存失败"; |
| | | returnMsg.count = 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有获取到token"; |
| | | returnMsg.count = 0; |
| | | |
| | | } |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | } |
| | | } |