|
@@ -10,6 +10,7 @@ using System.Collections;
|
|
|
using System.Data;
|
|
|
using System.Diagnostics;
|
|
|
using System.Linq;
|
|
|
+using OASystem.Domain.Attributes;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
@@ -65,6 +66,7 @@ namespace OASystem.API.Controllers
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.List)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> QueryNewClientData(NewClientDataQueryDto dto)
|
|
|
{
|
|
@@ -83,7 +85,7 @@ namespace OASystem.API.Controllers
|
|
|
if (resultData.Code == 0)
|
|
|
{
|
|
|
#region 客户资料表操作记录
|
|
|
- await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.NoOperation, dto.OperationUserId, 0, "");
|
|
|
+ //await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.NoOperation, dto.OperationUserId, 0, "");
|
|
|
#endregion
|
|
|
|
|
|
jw = JsonView(true, resultData.Msg, resultData.Data);
|
|
@@ -107,6 +109,7 @@ namespace OASystem.API.Controllers
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.Details)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostNewClientDataDetails(NewClientDataDetailsDto dto)
|
|
|
{
|
|
@@ -128,7 +131,7 @@ namespace OASystem.API.Controllers
|
|
|
if (resultData.Code == 0)
|
|
|
{
|
|
|
#region 客户资料表操作记录
|
|
|
- await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Details, dto.UserId, dto.Id, "");
|
|
|
+ //await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Details, dto.UserId, dto.Id, "");
|
|
|
#endregion
|
|
|
jw = JsonView(true, "查询成功!", resultData.Data);
|
|
|
}
|
|
@@ -151,6 +154,7 @@ namespace OASystem.API.Controllers
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.NoOperation)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> NewClientOp(NewClientOpDto dto)
|
|
|
{
|
|
@@ -175,15 +179,14 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, result.Msg));
|
|
|
}
|
|
|
#region 客户资料操作记录
|
|
|
- OperationEnum operationEnum = OperationEnum.NoOperation;
|
|
|
- if (dto.Status == 1)
|
|
|
- {
|
|
|
- operationEnum = OperationEnum.Add;
|
|
|
- dto.Id = Convert.ToInt32(result.Data);
|
|
|
- }
|
|
|
- else if (dto.Status == 2) operationEnum = OperationEnum.Edit;
|
|
|
-
|
|
|
- await GeneralMethod.NewClientOperationRecord(dto.PortType, operationEnum, dto.CreateUserId, dto.Id, "");
|
|
|
+ //OperationEnum operationEnum = OperationEnum.NoOperation;
|
|
|
+ //if (dto.Status == 1)
|
|
|
+ //{
|
|
|
+ // operationEnum = OperationEnum.Add;
|
|
|
+ // dto.Id = Convert.ToInt32(result.Data);
|
|
|
+ //}
|
|
|
+ //else if (dto.Status == 2) operationEnum = OperationEnum.Edit;
|
|
|
+ //await GeneralMethod.NewClientOperationRecord(dto.PortType, operationEnum, dto.CreateUserId, dto.Id, "");
|
|
|
#endregion
|
|
|
|
|
|
return Ok(JsonView(true, result.Msg + "Id:" + dto.Id));
|
|
@@ -200,6 +203,7 @@ namespace OASystem.API.Controllers
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.Del)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> NewClientDel(DelBaseDto dto)
|
|
|
{
|
|
@@ -226,7 +230,7 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
|
|
|
#region 客户资料表操作记录
|
|
|
- await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Del, dto.DeleteUserId, dto.Id, "");
|
|
|
+ //await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Del, dto.DeleteUserId, dto.Id, "");
|
|
|
#endregion
|
|
|
|
|
|
return Ok(JsonView(true, "删除成功!"));
|
|
@@ -238,6 +242,7 @@ namespace OASystem.API.Controllers
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.Details)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> QuerySelectAndSingleData(QuerySingleDto dto)
|
|
|
{
|
|
@@ -246,7 +251,7 @@ namespace OASystem.API.Controllers
|
|
|
if (result.Code == 0)
|
|
|
{
|
|
|
#region 客户资料表操作记录
|
|
|
- await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Details, dto.UserId, dto.Id, "");
|
|
|
+ //await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Details, dto.UserId, dto.Id, "");
|
|
|
#endregion
|
|
|
|
|
|
jw = JsonView(true, result.Msg, result.Data);
|
|
@@ -300,6 +305,7 @@ namespace OASystem.API.Controllers
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.BatchAssignment)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostBatchAssignment(BatchAssignmentDto dto)
|
|
|
{
|
|
@@ -569,6 +575,7 @@ namespace OASystem.API.Controllers
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
+ [ApiLog("Crm_NewClientData", OperationEnum.Download)]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> NewClientDataExcelDownload(NewClientDataExcelDownloadDto dto)
|
|
|
{
|
|
@@ -601,14 +608,13 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
#region 客户资料表操作记录
|
|
|
var respose = JsonView(true, "成功", url);
|
|
|
- var paramData = new
|
|
|
- {
|
|
|
- APIName = @"MarketCustomerResources/NewClientDataExcelDownload",
|
|
|
- RequestParam = dto,
|
|
|
- ResposeParam = respose
|
|
|
- };
|
|
|
-
|
|
|
- await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Download, dto.OperationUserId, 0, JsonConvert.SerializeObject(paramData));
|
|
|
+ //var paramData = new
|
|
|
+ //{
|
|
|
+ // APIName = @"MarketCustomerResources/NewClientDataExcelDownload",
|
|
|
+ // RequestParam = dto,
|
|
|
+ // ResposeParam = respose
|
|
|
+ //};
|
|
|
+ //await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Download, dto.OperationUserId, 0, JsonConvert.SerializeObject(paramData));
|
|
|
#endregion
|
|
|
|
|
|
return Ok(respose);
|
|
@@ -619,8 +625,6 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
#region 修改数据
|
|
|
//[HttpPost]
|
|
|
//public IActionResult SynchronizationData()
|
|
@@ -828,8 +832,6 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 客户资料 操作记录记录查询
|
|
|
/// </summary>
|