|
|
|
@ -7,11 +7,8 @@ import com.hai.common.QRCodeGenerator; |
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
|
import com.hai.common.utils.HttpsUtils; |
|
|
|
|
import com.hai.common.utils.IDGenerator; |
|
|
|
|
import com.hai.entity.HighCouponCode; |
|
|
|
|
import com.hai.entity.SecRegion; |
|
|
|
|
import com.hai.service.CommonService; |
|
|
|
|
import com.hai.service.HighCouponCodeService; |
|
|
|
|
import com.hai.service.HighMerchantStoreService; |
|
|
|
|
import com.hai.entity.*; |
|
|
|
|
import com.hai.service.*; |
|
|
|
|
import org.junit.Test; |
|
|
|
|
import org.junit.runner.RunWith; |
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest; |
|
|
|
@ -37,6 +34,30 @@ import java.util.*; |
|
|
|
|
@WebAppConfiguration |
|
|
|
|
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) { |
|
|
|
|
|
|
|
|
|