From 2d2fe897c75dd3680f44721c70a0405ecde29171 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4672LME\\Xu Tengfei" Date: Thu, 30 Sep 2021 10:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=89=93=E5=8D=B0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=96=87=E4=BB=B6=E5=90=8D.XLXS=20=E4=B8=BA=20.rldx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/Ordmsg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/Ordmsg.go b/service/Ordmsg.go index ff820c0..3a46896 100644 --- a/service/Ordmsg.go +++ b/service/Ordmsg.go @@ -303,6 +303,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForPickOrder(session *xorm.Session, slaveprintheadtab.Printfiletype = "ACTIVE" slaveprintheadtab.Printobjid = pickordtab.Pickorderid slaveprintheadtab.Templatefile = bl_picktmp.Picktemplatetab.Templatefile + strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 ) slaveprintheadtab.Orientation = bl_picktmp.Picktemplatetab.Orientation slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bl_picktmp.Picktemplatetab.Printqty, 1) slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss") @@ -737,6 +738,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForPackOrder(session *xorm.Session, } else { slaveprintheadtab.Templatefile = packordtab.Templatefile } + strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 ) slaveprintheadtab.Orientation = bl_packtmp.Paktmpltab.Orientation slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bl_packtmp.Paktmpltab.Printqty, 1) slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss") @@ -1004,6 +1006,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForPackOrderToJson(session *xorm.Se } else { slaveprintheadtab.Templatefile = packordtab.Templatefile } + strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 ) slaveprintheadtab.Orientation = bl_packtmp.Paktmpltab.Orientation slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bl_packtmp.Paktmpltab.Printqty, 1) slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss") @@ -1392,6 +1395,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForBbaasn(session *xorm.Session, sl } else { slaveprintheadtab.Templatefile = bbaasntmptab.Templatefile } + strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 ) slaveprintheadtab.Orientation = bbaasntmptab.Orientation slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bbaasntmptab.Printqty, 1) slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss")