提交代码

dev-discount
胡锐 3 years ago
parent 6c3e946bda
commit 9df8787ac2
  1. 31
      hai-cweb/src/test/common/test.java

@ -7,11 +7,8 @@ import com.hai.common.QRCodeGenerator;
import com.hai.common.utils.DateUtil; import com.hai.common.utils.DateUtil;
import com.hai.common.utils.HttpsUtils; import com.hai.common.utils.HttpsUtils;
import com.hai.common.utils.IDGenerator; import com.hai.common.utils.IDGenerator;
import com.hai.entity.HighCouponCode; import com.hai.entity.*;
import com.hai.entity.SecRegion; import com.hai.service.*;
import com.hai.service.CommonService;
import com.hai.service.HighCouponCodeService;
import com.hai.service.HighMerchantStoreService;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
@ -37,6 +34,30 @@ import java.util.*;
@WebAppConfiguration @WebAppConfiguration
public class test { public class test {
@Resource
private HighUserService highUserService;
@Resource
private HighDiscountUserRelService highDiscountUserRelService;
@Resource
private HighDiscountAgentCodeService highDiscountAgentCodeService;
@Test
public void test(){
/* List<HighDiscountAgentCode> codeList = highDiscountAgentCodeService.getDiscountCodeByDiscountAgentId(55L);
List<HighUser> userList = highUserService.getUserList();
int num = 0;
for (HighUser user : userList) {
// 领取优惠券
highDiscountUserRelService.receiveDiscount(user.getId(), codeList.get(num).getId());
num++;
}*/
}
public static void main(String[] args) { public static void main(String[] args) {

Loading…
Cancel
Save