Browse Source

修改测试BUG

hejq 7 years ago
parent
commit
041e1e20c5
1 changed files with 0 additions and 12 deletions
  1. 0 12
      src/test/java/com/uas/platform/b2b/purc/PurchaseNotify.java

+ 0 - 12
src/test/java/com/uas/platform/b2b/purc/PurchaseNotify.java

@@ -2,12 +2,9 @@ package com.uas.platform.b2b.purc;
 
 import com.uas.platform.b2b.BaseJunitTest;
 import com.uas.platform.b2b.dao.PurchaseNoticeDao;
-import com.uas.platform.b2b.dao.PurchaseNoticeEndDao;
 import com.uas.platform.b2b.dao.PurchaseOrderItemDao;
 import com.uas.platform.b2b.model.PurchaseNotice;
-import com.uas.platform.b2b.model.PurchaseNoticeEnd;
 import com.uas.platform.b2b.model.PurchaseOrderItem;
-import com.uas.platform.core.model.Constant;
 import org.junit.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
@@ -126,9 +123,6 @@ public class PurchaseNotify extends BaseJunitTest {
         return notice;
     }
 
-    @Autowired
-    private PurchaseNoticeEndDao noticeEndDao;
-
     @Test
     public void findNoticeTime() {
         Long[] ids = {33809L,33810L,33825L,33826L,33827L,33845L,33965L,34045L,34046L,34072L,34073L,34076L,34077L,34078L,34125L,34145L,34146L,34326L,34327L,34328L,34329L,34330L,34331L,34332L,34333L,34334L,34335L,34336L,34337L,34338L,34339L,34340L,34341L,34343L,34347L,34348L,34349L,34350L,34351L,34352L,34353L,34354L,34355L,34356L,34359L,34606L,34607L,34608L,34609L,34610L,34611L,34612L,34613L,34614L,34618L,34619L,34620L,34621L,34622L,34623L,34624L,34965L,35087L,35117L,35129L,35134L,35149L,35153L,35154L,35199L,35225L,35227L,35231L,35235L,35237L,35244L,35273L,35293L,35305L,35313L,35335L,35338L,35368L,35369L,35401L,35402L,35419L,35436L,35460L,35465L,35520L,35528L,35566L,35577L,35607L,35608L,35642L,35644L,35647L,35680L,35693L,35786L,35790L,35809L,35824L,35866L,35926L,35941L,35942L,35943L,35944L,35945L,35946L,35947L,35948L,35949L,35950L,35951L,35952L,35953L,35954L,35955L,35956L,35957L,35958L,35985L,35986L,36005L,36065L,36108L,36110L,36126L,36140L,36152L,36157L,36158L,36173L,36176L,36204L,36239L,36246L,36250L,36254L,36256L,36263L,36322L,36330L,36338L,36353L,36356L,36363L,36386L,36387L,36407L,36420L,36437L,36483L,36538L,36546L,36552L,36566L,36568L,36588L,36599L,36625L,36630L,36631L,36649L,36667L,36669L,36672L,36707L,36720L,36783L,36815L,36819L,36820L,36853L,36871L,36898L,37046L,37047L,37085L,37086L,37087L,37088L,37089L,37090L,37091L,37092L,37093L,37094L,37105L,37106L,37107L,37109L,37110L,37111L,37147L,37148L};
@@ -136,12 +130,6 @@ public class PurchaseNotify extends BaseJunitTest {
         Long enUU = 10041166L;
         Long startTime = System.currentTimeMillis();
         System.out.println("startTime-> " + startTime);
-        List<PurchaseNoticeEnd> noticeList = noticeEndDao.findByEnUUAndSourceIdList(enUU, idList);
-        for (PurchaseNoticeEnd notice : noticeList) {
-            notice.setErpDate(new Date(System.currentTimeMillis()));
-            notice.setEnd(Constant.YES);
-        }
-        noticeEndDao.save(noticeList);
         Long endTime = System.currentTimeMillis();
         System.out.println("endTime-> " + endTime);
         System.out.println("cost-> " + (endTime - startTime));