1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Microsoft.AspNetCore.Mvc;
- using OASystem.Domain.Dtos.CRM;
- using OASystem.Infrastructure.Repositories.CRM;
- namespace OASystem.API.Controllers
- {
- [Route("api/[controller]/[action]")]
- public class MarketCustomerResourcesController : ControllerBase
- {
- private readonly NewClientDataRepository _clientDataRepository;
- /// <summary>
- /// 初始化
- /// </summary>
- public MarketCustomerResourcesController(NewClientDataRepository clientDataRepository)
- {
- this._clientDataRepository = clientDataRepository;
- }
- /// <summary>
- /// 查询客户资料数据
- /// </summary>
- /// <returns></returns>
- [HttpPost]
- [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
- public async Task<IActionResult> QueryNewClientData(NewClientDataQueryDto dto)
- {
- try
- {
- Result resTable = await _clientDataRepository.QueryNewClientData(dto);
- //Result resSelect = await _clientDataRepository.NewClientSelectData();
-
- return Ok(JsonView(true, resTable.Msg, resTable));
- }
- catch (Exception)
- {
- return Ok(JsonView(false, "程序错误!"));
- throw;
- }
- }
- }
- }
|