文件名从 Tiger.Controllers.MES/MESController.Route.cs 修改 |
| | |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> GetRoutePTreeAsync(string prodCode, string orgCode) { |
| | | public async Task<IActionResult> GetRoutePTreeAsync(string? prodCode, string? orgCode) { |
| | | SugarParameter[] pars = Biz.Db.Ado.GetParameters(new { PROD_CODE = prodCode,ORG_CODE = orgCode }); |
| | | var data = Biz.Db.Ado.UseStoredProcedure().SqlQuery<V_MES_ROUTE_PTREE>("SP_MES_GET_ROUTE_PTREE", pars);//杩斿洖List |
| | | return Ok(data); |
| | |
| | | |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> GetWoPTreeAsync(string wo) |
| | | public async Task<IActionResult> GetWoPTreeAsync(string? wo) |
| | | { |
| | | SugarParameter[] pars = Biz.Db.Ado.GetParameters(new { WO = wo }); |
| | | var data = Biz.Db.Ado.UseStoredProcedure().SqlQuery<V_MES_WO_PTREE>("SP_MES_GET_WO_PTREE", pars);//杩斿洖List |
| | |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> RouteToProd(string rotId, string prodCode) |
| | | public async Task<IActionResult> RouteToProd(string? rotId, string? prodCode) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> RouteToCust(string rotId, string prodCode, string custCode) |
| | | public async Task<IActionResult> RouteToCust(string? rotId, string? prodCode, string? custCode) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> SP_MES_PROD2WO(string rotId, string wo) |
| | | public async Task<IActionResult> SP_MES_PROD2WO(string? rotId, string? wo) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> SP_MES_WO2CUST(string wo) |
| | | public async Task<IActionResult> SP_MES_WO2CUST(string? wo) |
| | | { |
| | | ApiAction response = new(); |
| | | try |