| | |
| | | private readonly IIntentionCustomerService _intentionCustomerService; |
| | | private readonly IUserService _userService; |
| | | private readonly IIntentionVisitService _intentionVisitService; |
| | | private readonly ICusFangwenjiluService _cusFangwenjiluService; |
| | | |
| | | |
| | | public IntentionVisitController(ILogger<IntentionVisitController> logger, IProjectService projectService, ILiaotianService liaotianService, IIntentionCustomerService intentionCustomerService, IUserService userService, IIntentionVisitService intentionVisitService) |
| | | public IntentionVisitController(ILogger<IntentionVisitController> logger, IProjectService projectService, ILiaotianService liaotianService, IIntentionCustomerService intentionCustomerService, IUserService userService, IIntentionVisitService intentionVisitService |
| | | , ICusFangwenjiluService cusFangwenjiluService) |
| | | { |
| | | _logger = logger; |
| | | _projectService = projectService; |
| | |
| | | _intentionCustomerService = intentionCustomerService; |
| | | _userService = userService; |
| | | _intentionVisitService = intentionVisitService; |
| | | _cusFangwenjiluService = cusFangwenjiluService; |
| | | } |
| | | |
| | | |
| | |
| | | resultEntity.Message = "短信发送失败"; |
| | | |
| | | } |
| | | CusFangwenjiluDTO dto = new CusFangwenjiluDTO(); |
| | | dto.Fasongfangshi = "01"; |
| | | dto.Fasongneirong = neirong; |
| | | dto.Jieshouren = baifangid; |
| | | dto.RecStatus = "A"; |
| | | dto.Creater = curentuser.Id; |
| | | dto.Modifytime = DateTime.Now; |
| | | dto.Modifier = curentuser.Id; |
| | | dto.Createtime = dto.Modifytime; |
| | | resultEntity = _cusFangwenjiluService.save(dto); |
| | | _logger.LogInformation(curentuser.UserName + "发送短信给客户" + customename); |
| | | return new JsonResult(resultEntity); |
| | | } |
| | |
| | | { |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | |
| | | CusFangwenjiluDTO dto = new CusFangwenjiluDTO(); |
| | | dto.Fasongfangshi = "02"; |
| | | dto.Fasongneirong = neirong; |
| | | dto.Jieshouren = baifangid; |
| | | dto.RecStatus = "A"; |
| | | dto.Creater = curentuser.Id; |
| | | dto.Modifytime = DateTime.Now; |
| | | dto.Modifier = curentuser.Id; |
| | | dto.Createtime = dto.Modifytime; |
| | | resultEntity = _cusFangwenjiluService.save(dto); |
| | | _logger.LogInformation(curentuser.UserName +"发送邮件给客户"+ customename); |
| | | |
| | | return new JsonResult(resultEntity); |