打印接口
This commit is contained in:
parent
badab1ce19
commit
5d38e1a413
|
@ -27,6 +27,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetList(string monotorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据企业id获取相机列表 GetList");
|
||||
//获取公司所有相机信息
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var list = bll_camera.GetModelList(string.Format("MONITOR_ID = '{0}'", monotorId)).FindAll(a => Tool.IsFuZhouCustom(a.CUSTOMS_CODE));
|
||||
|
|
|
@ -29,6 +29,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetNum()
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取福州海关所有监管企业总数 GetNum");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
//查询企业表所有数据
|
||||
var list = bll.GetModelList("");
|
||||
|
@ -73,6 +74,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetInfo(string monitorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据企业id获取企业信息 GetInfo");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var tmp = bll.GetModel(monitorId);
|
||||
|
||||
|
@ -87,6 +89,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetAllPosition(string customCodes)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取关区下所有企业图标的经纬度 GetAllPosition");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
string[] customlist=customCodes.Split(',');
|
||||
var list =bll_version.GetListByCustom(customlist);
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetAll()
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取福州所有关区 GetAll");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var list= bll_custom.GetModelList("").FindAll(a=>Tool.IsFuZhouCustom(a.CUSTOMS_CODE));
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetGoodNumByYear(int year)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:全年进出口商品种类 GetGoodNumByYear");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
//福州海关下的,本年度,按货种分类
|
||||
var list_good = bll_good.GetModelList("");
|
||||
|
@ -142,6 +143,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetLastNum()
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:在库总量 GetLastNum");
|
||||
//在库总量
|
||||
decimal num = 0;
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
|
@ -167,6 +169,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetBoCiByYear(int year)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:全年累计进出口传播艘次 GetBoCiByYear");
|
||||
//全年累计进出口传播艘次
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
//按年度,福州海关下的,按VOYAGE_NO+SHIP_NAME_EN 航次+船名算一个艘次
|
||||
|
@ -200,6 +203,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetInNumByYear(int year)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:全年累计进口总量,按年度查询 GetInNumByYear");
|
||||
//全年累计进口总量,按年度查询
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
//按年度,福州海关下的,进口,BILL_GROSS_WT提单毛重即入库数量
|
||||
|
@ -235,6 +239,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetInNumWithCurrent()
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:本年度和本季度进口总量 GetInNumWithCurrent");
|
||||
//本年度,本季度进口总量
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
//本年度,福州海关下的,进口,BILL_GROSS_WT提单毛重即入库数量
|
||||
|
|
|
@ -25,6 +25,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult Index()
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取企业接口 Index");
|
||||
//读取配置文件示例
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetInfo(string pipeCode,string monitorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据皮带秤编码和企业id获取皮带秤信息 GetInfo");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var pipe = bll_elec_weighter.GetModel(pipeCode, monitorId);
|
||||
if (Tool.IsFuZhouCustom(pipe.CUSTOMS_CODE))
|
||||
|
@ -59,6 +60,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetList(string monitorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据企业id,获取皮带秤列表 GetList");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var list = bll_elec_weighter.GetModelList(string.Format("MONITOR_ID = '{0}'", monitorId)).FindAll(a=>Tool.IsFuZhouCustom(a.CUSTOMS_CODE));
|
||||
return Json(Tool.GetJsonWithCode(APICode.Success, list));
|
||||
|
@ -72,6 +74,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetRealTimeData(string pipeCode)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取一个皮带秤实时数据 GetRealTimeData");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var tmp=bll_pipeReal.GetModel(pipeCode);
|
||||
return Json(Tool.GetJsonWithCode(APICode.Success, tmp));
|
||||
|
@ -85,6 +88,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetRealTimeDataByMonitorId(string monitorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据企业id获取所有皮带秤实时数据 GetRealTimeDataByMonitorId");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var tmp = bll_pipeReal.GetModelList(string.Format("MONITOR_ID = '{0}'",monitorId));
|
||||
return Json(Tool.GetJsonWithCode(APICode.Success, tmp));
|
||||
|
@ -98,6 +102,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpPost]
|
||||
public JsonResult GetHistroyData([FromBody] RequestHistoryData req)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取一个皮带秤历史数据列表(按时间倒序,间隔筛选出N条) GetHistroyData");
|
||||
if (!string.IsNullOrEmpty(req.pipeCode) && req.startTime != null && req.endTime != null && req.startTime<=req.endTime)
|
||||
{
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
|
|
|
@ -49,6 +49,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetAllInfo()
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString()+ " 调接口:首页堆场总数 GetAllInfo");
|
||||
//堆场总数
|
||||
int allNum = 0;
|
||||
//堆场面积
|
||||
|
@ -84,6 +85,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetYardList(string monitorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据企业id获取堆场信息 GetYardList");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var list = bll_yard.GetModelList(string.Format("MONITOR_ID = '{0}'", monitorId)).FindAll(a=>Tool.IsFuZhouCustom(a.CUSTOMS_CODE));
|
||||
return Json(Tool.GetJsonWithCode(APICode.Success, list));
|
||||
|
@ -97,6 +99,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetYardStorage(string SILO_CODE)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:根据堆场id获取堆场库存信息 GetYardStorage");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var list = bll_storage.GetYardList(SILO_CODE).OrderByDescending(a=>a.INSTRG_DATE.Value).ToList();
|
||||
return Json(Tool.GetJsonWithCode(APICode.Success, list));
|
||||
|
@ -110,6 +113,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpGet]
|
||||
public JsonResult GetYardLastStorage(string monitorId)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:获取企业每个堆场的在库数量 GetYardLastStorage");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
var list = bll_storage.GetYardLastStorage(monitorId);
|
||||
|
||||
|
@ -143,6 +147,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
[HttpPost]
|
||||
public JsonResult CheckYard([FromBody] ReqYardCheck req)
|
||||
{
|
||||
Console.WriteLine(DateTime.Now.ToString() + " 调接口:堆场模糊查询 CheckYard");
|
||||
var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
//查询商品库存地列表
|
||||
var list = bll_storageSILO.CheckYardList(req);
|
||||
|
|
Loading…
Reference in New Issue