| | |
| | | return Ok(data); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 添加生产工艺路线 |
| | | /// </summary> |
| | | /// <param name="rotId"></param> |
| | | /// <param name="prodCode"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> RouteToProd(string rotId, string prodCode) |
| | |
| | | } |
| | | return Ok(response); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 添加客户工艺路线 |
| | | /// </summary> |
| | | /// <param name="rotId"></param> |
| | | /// <param name="prodCode"></param> |
| | | /// <param name="custCode"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> RouteToCust(string rotId, string prodCode, string custCode) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | | { |
| | | SugarParameter[] pars = Biz.Db.Ado.GetParameters(new { ROT_ID = rotId, PROD_CODE = prodCode, CUST_CODE = custCode }); |
| | | Biz.Db.Ado.UseStoredProcedure().ExecuteCommand("SP_MES_ROUTE2CUST", pars); ; |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | response = response.GetResponse().CatchExceptionWithLog(ex); |
| | | } |
| | | return Ok(response); |
| | | } |
| | | } |
| | | } |