修改接口
This commit is contained in:
@@ -18,12 +18,12 @@ namespace WebAPI.Controllers.HSSE
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="pageIndex"></param>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getHSSELogDataList( string projectId, string userId, int pageIndex=0)
|
||||
public Model.ResponeData getHSSELogDataList( string projectId, string userId,string CompileDate="",string CompileMan="", int pageIndex=0)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
var getDataList = HSSELogService.getHSSELogDataList(projectId, userId);
|
||||
var getDataList = HSSELogService.getHSSELogDataList(projectId, userId, CompileMan, CompileDate);
|
||||
int pageCount = getDataList.Count;
|
||||
if (pageCount > 0 && pageIndex > 0)
|
||||
{
|
||||
@@ -86,7 +86,7 @@ namespace WebAPI.Controllers.HSSE
|
||||
/// </summary>
|
||||
/// <param name="licenseDataItem">作业票记录</param>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SaveHSSELogData([FromBody] Model.Manager_HSSELog HSSELog)
|
||||
public Model.ResponeData SaveHSSELogData([FromBody] Model.HSSELogItem HSSELog)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
HSSELog.IsVisible = true;
|
||||
@@ -94,13 +94,13 @@ namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
if (!string.IsNullOrEmpty(HSSELog.HSSELogId))
|
||||
{
|
||||
BLL.HSSELogService.UpdateHSSELog(HSSELog);
|
||||
BLL.HSSELogService.UpdateHSSELogApi(HSSELog);
|
||||
responeData.message = "修改成功";
|
||||
}
|
||||
else
|
||||
{
|
||||
HSSELog.HSSELogId = SQLHelper.GetNewID(typeof(Model.Manager_HSSELog));
|
||||
BLL.HSSELogService.AddHSSELog(HSSELog);
|
||||
BLL.HSSELogService.AddHSSELogApi(HSSELog);
|
||||
responeData.message = "保存成功";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user