|
@@ -656,6 +656,8 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'订单信息
|
|
|
//载具码和产品码绑定关系
|
|
|
public static ResponseMessage InsertCarrierBind(string carrierCode, string productBarcode)
|
|
|
{
|
|
|
+ carrierCode = carrierCode.Replace("\r", "");
|
|
|
+ productBarcode = productBarcode.Replace("\r", "");
|
|
|
#region 新建CarrierBind实体,并将数据插入carrierBind表格
|
|
|
// 创建 CarrierBind 实体,并通过传入的参数设置字段值
|
|
|
var CarrierBind_sumRecord = new CarrierBind
|
|
@@ -690,6 +692,7 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'订单信息
|
|
|
//载具码和产品码绑定关系
|
|
|
public static ResponseMessage PCBCarrierBind(string carrierCode, string pcbBarcode)
|
|
|
{
|
|
|
+ pcbBarcode = pcbBarcode.Replace("\r", "");
|
|
|
// 检查记录是否已经存在
|
|
|
var CarrierBind_exists = Db.Queryable<CarrierBind>()
|
|
|
.Where(x => x.CarrierCode == carrierCode)
|