Parcourir la source

fix 分页问题

gongfuzhu il y a 5 mois
Parent
commit
cc6be14d9a

+ 2 - 2
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/service/PaymentService.java

@@ -27,6 +27,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.ApplicationContext;
 import org.springframework.data.domain.Page;
 import org.springframework.stereotype.Service;
+import org.springframework.util.Assert;
 
 import javax.annotation.Resource;
 import java.util.List;
@@ -118,8 +119,7 @@ public class PaymentService {
     }
 
     public ResultContent transferList(AdminSeachOrderModel seachOrderModel) {
-        String enterPriseId = authHelper.getEnterPriseId();
-        seachOrderModel.setShopId(enterPriseId);
+        Assert.hasText(seachOrderModel.getCode(), "code不能为空");
         return paymentService2.transferList(seachOrderModel);
     }