diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index cb23856cb..1d2be4f0c 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1974,10 +1974,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { return err } -var ( - textChan chan string -) - func FreeBatchInfo2(name string, handler func(tasksch.ITask, []*jdapi.SkuIdEntity) (interface{}, int, error), ctx *jxcontext.Context, parentTask tasksch.ITask, storeSkuList []*jdapi.SkuIdEntity, batchSize int, isContinueWhenError bool) (resultList []interface{}, err error) { task := tasksch.NewParallelTask2(fmt.Sprintf("FreeBatchInfo:%s", name), tasksch.NewParallelConfig().SetParallelCount(1).SetBatchSize(batchSize).SetIsContinueWhenError(isContinueWhenError), ctx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, successCount int, err error) { diff --git a/business/partner/printer/feie/feie.go b/business/partner/printer/feie/feie.go index 6154dd559..534b0d68b 100644 --- a/business/partner/printer/feie/feie.go +++ b/business/partner/printer/feie/feie.go @@ -97,7 +97,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count))) //标品需要打印条形码 if sku.Upc != "" { - orderFmt += `%s
` + orderFmt += `upc码: %s
` orderParams = append(orderParams, sku.Upc) } } @@ -188,7 +188,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count))) //标品需要打印条形码 if sku.Upc != "" { - orderFmt += `%s
` + orderFmt += `upc码: %s
` orderParams = append(orderParams, sku.Upc) } } diff --git a/business/partner/printer/yilianyun/yilianyun.go b/business/partner/printer/yilianyun/yilianyun.go index 5701ae1f8..0bc31a2b6 100644 --- a/business/partner/printer/yilianyun/yilianyun.go +++ b/business/partner/printer/yilianyun/yilianyun.go @@ -94,7 +94,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count))) //标品需要打印条形码 if sku.Upc != "" { - orderFmt += `
%s
\n` + orderFmt += `upc码: %s\n` orderParams = append(orderParams, sku.Upc) } } @@ -179,7 +179,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count))) //标品需要打印条形码 if sku.Upc != "" { - orderFmt += `
%s
\n` + orderFmt += `upc码: %s\n` orderParams = append(orderParams, sku.Upc) } }