首检添加数据看板

This commit is contained in:
2024-06-07 11:04:26 +08:00
parent c93711290e
commit 769d2da1e0
344 changed files with 1772 additions and 2526 deletions

View File

@@ -1,21 +1,8 @@
using Aliyun.OSS;
using AutoMapper.Configuration.Conventions;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Hosting.Internal;
using MimeKit;
using Microsoft.AspNetCore.Mvc;
using MiniExcelLibs;
using MiniExcelLibs.OpenXml;
using Model.DBModel;
using Org.BouncyCastle.Crypto.IO;
using System.IO;
using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters;
using ZR.Model;
using ZR.Model.mes.pro;
using ZR.Model.MES.pro.DTO;
using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.mes.pro;
using ZR.Service.mes.pro.IService;
namespace ZR.Admin.WebApi.Controllers.mes.pro
@@ -90,13 +77,13 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("deleteAll")]
public IActionResult DeleteAllItem(int? year,int? week)
public IActionResult DeleteAllItem(int? year, int? week)
{
int data = 0;
if (week!=null&&week>0)
if (week != null && week > 0)
{
if (year != null && year > 0)
data = proWorkplanService.DeleteAllWorkPlan((int)year,(int)week);
data = proWorkplanService.DeleteAllWorkPlan((int)year, (int)week);
}
return ToResponse(new ApiResult(200, "success", data));
@@ -185,7 +172,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
targetFileStream.Write(buffer, 0, bytesRead);
}
//读取列表数据
@@ -214,7 +201,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
}
catch (Exception ex)
{
return ToResponse(ResultCode.GLOBAL_ERROR,"内容错误,请仔细检测格式,并联系管理员"+ex.Message);
return ToResponse(ResultCode.GLOBAL_ERROR, "内容错误,请仔细检测格式,并联系管理员" + ex.Message);
}
}
return SUCCESS(null);
@@ -257,7 +244,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
return ToResponse(new ApiResult(500, ex.Message, 0));
}
}
}