|
|
@@ -501,12 +501,12 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
/// <summary>
|
|
|
/// 增补
|
|
|
/// </summary>
|
|
|
- /// <param name="barcodes"></param>
|
|
|
+ /// <param name="barcode"></param>
|
|
|
/// <param name="entruckingCode"></param>
|
|
|
/// <param name="currentUserCode"></param>
|
|
|
/// <param name="sUser"></param>
|
|
|
/// <returns></returns>
|
|
|
- public static ServiceResultEntity AddTruckBarCode(string[] barcodes, string entruckingCode, string currentUserCode, SUserInfo sUser)
|
|
|
+ public static ServiceResultEntity AddTruckBarCode(string barcode, string entruckingCode, string currentUserCode, SUserInfo sUser)
|
|
|
{
|
|
|
ServiceResultEntity sre = new ServiceResultEntity();
|
|
|
sre.Data = new DataSet();
|
|
|
@@ -536,7 +536,7 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
int batch = Convert.ToInt32(dt.Rows[0]["BATCH"]) + 1;
|
|
|
//获取产品条码当前工序
|
|
|
sqlStr = $@"
|
|
|
- select PROCEDUREID from TP_PM_INPRODUCTION where barcode = '{barcodes[i]}'
|
|
|
+ select PROCEDUREID from TP_PM_INPRODUCTION where barcode = '{barcode}'
|
|
|
";
|
|
|
string procedureid = conn.GetSqlResultToStr(sqlStr);
|
|
|
|
|
|
@@ -557,7 +557,7 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
UPDATEUSERID )
|
|
|
SELECT
|
|
|
'{entruckingCode}',
|
|
|
- '{barcodes}',
|
|
|
+ '{barcode}',
|
|
|
'{batch}',
|
|
|
1,
|
|
|
{procedureid},
|