Browse Source

24-07-31 标签记录

master
qiezi 1 year ago
parent
commit
c3540d054f
  1. 2
      src/main/java/com/heai/modules/production/service/impl/PrintLabelRecordServiceImpl.java
  2. 8
      src/main/resources/mapper/production/PrintLabelRecordMapper.xml
  3. 7
      src/test/java/com/heai/RedisTest.java

2
src/main/java/com/heai/modules/production/service/impl/PrintLabelRecordServiceImpl.java

@ -69,8 +69,6 @@ public class PrintLabelRecordServiceImpl extends ServiceImpl<PrintLabelRecordMap
item.put("partSpec",part.getSpec()); item.put("partSpec",part.getSpec());
item.put("partDesc",part.getPartDescription()); item.put("partDesc",part.getPartDescription());
item.put("code",genPrintTypeCode(String.valueOf(item.get("labelType")))); item.put("code",genPrintTypeCode(String.valueOf(item.get("labelType"))));
item.put("code",genPrintTypeCode(String.valueOf(item.get("labelType"))));
item.put("code",genPrintTypeCode(String.valueOf(item.get("labelType"))));
item.put("contractNo", finalCoHeader.getContractNo()); item.put("contractNo", finalCoHeader.getContractNo());
item.put("customerPONo",finalCoHeader.getCustomerPoNo()); item.put("customerPONo",finalCoHeader.getCustomerPoNo());
item.put("partRevNo",partRevNo); item.put("partRevNo",partRevNo);

8
src/main/resources/mapper/production/PrintLabelRecordMapper.xml

@ -2,7 +2,7 @@
<mapper namespace="com.heai.modules.production.dao.PrintLabelRecordMapper"> <mapper namespace="com.heai.modules.production.dao.PrintLabelRecordMapper">
<select id="handlerPrintBoxLabel" resultType="java.util.Map"> <select id="handlerPrintBoxLabel" resultType="java.util.Map">
Select '*' as batchNo
Select D.DelNotifyNo as batchNo
, '' as printerName , '' as printerName
, 'N' as status , 'N' as status
, D.DelnotifyNo as orderRef1 , D.DelnotifyNo as orderRef1
@ -24,7 +24,7 @@
, 1 as printQty , 1 as printQty
, REPLACE(Address_E + ' Phone:' + S.PhoneNo + ' Email:' + S.Email, CHAR(13) + CHAR(10), , REPLACE(Address_E + ' Phone:' + S.PhoneNo + ' Email:' + S.Email, CHAR(13) + CHAR(10),
'') as siteDetail '') as siteDetail
, SiteName as siteName
, SiteName_E as siteName
, (case , (case
when C.CustomerGroup = 'TBC' then CA.EndCustOurVendorCode when C.CustomerGroup = 'TBC' then CA.EndCustOurVendorCode
else C.OurVendorCode end) as endCustVendorCode else C.OurVendorCode end) as endCustVendorCode
@ -45,7 +45,7 @@
and H.SeqNo &lt;= #{boxNum} and H.SeqNo &lt;= #{boxNum}
and #{boxNum} > 0 and #{boxNum} > 0
Union all Union all
Select '*' as batchNo
Select D.DelNotifyNo as batchNo
, '' as printerName , '' as printerName
, 'N' as status , 'N' as status
, D.DelnotifyNo as orderRef1 , D.DelnotifyNo as orderRef1
@ -67,7 +67,7 @@
, 1 as printQty , 1 as printQty
, REPLACE(Address_E + ' Phone:' + S.PhoneNo + ' Email:' + S.Email, CHAR(13) + CHAR(10), , REPLACE(Address_E + ' Phone:' + S.PhoneNo + ' Email:' + S.Email, CHAR(13) + CHAR(10),
'') as siteDetail '') as siteDetail
, SiteName as siteName
, SiteName_E as siteName
, (case , (case
when C.CustomerGroup = 'TBC' then CA.EndCustOurVendorCode when C.CustomerGroup = 'TBC' then CA.EndCustOurVendorCode
else C.OurVendorCode end) as endCustVendorCode else C.OurVendorCode end) as endCustVendorCode

7
src/test/java/com/heai/RedisTest.java

@ -9,6 +9,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import java.net.Socket;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest @SpringBootTest
public class RedisTest { public class RedisTest {
@ -24,4 +26,9 @@ public class RedisTest {
System.out.println(ToStringBuilder.reflectionToString(redisUtils.get("user", SysUserEntity.class))); System.out.println(ToStringBuilder.reflectionToString(redisUtils.get("user", SysUserEntity.class)));
} }
@Test
public void test(){
}
} }
Loading…
Cancel
Save