|
|
|
@ -4,12 +4,7 @@ import java.io.IOException; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Calendar; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Random; |
|
|
|
import java.util.UUID; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.itextpdf.text.DocumentException; |
|
|
|
@ -65,6 +60,20 @@ public class MentalController extends BaseController { |
|
|
|
private AddressService addressService; |
|
|
|
@Resource |
|
|
|
private TrainService trainService; |
|
|
|
private Set<String> specialUsers = new HashSet<>(); |
|
|
|
{ |
|
|
|
specialUsers.add("15536831957"); |
|
|
|
specialUsers.add("18035037199"); |
|
|
|
specialUsers.add("13633515086"); |
|
|
|
specialUsers.add("13834620525"); |
|
|
|
specialUsers.add("13938523224"); |
|
|
|
specialUsers.add("18530038363"); |
|
|
|
specialUsers.add("18838115002"); |
|
|
|
// wu
|
|
|
|
specialUsers.add("18701389847"); |
|
|
|
// 李院长
|
|
|
|
specialUsers.add("15035182003"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 系统首页 |
|
|
|
@ -92,6 +101,9 @@ public class MentalController extends BaseController { |
|
|
|
MentalTest queryMentalRecord = mentalService.queryMentalRecordNewest(user.getId()); |
|
|
|
log.info("查询最新的一条答题记录:" + queryMentalRecord); |
|
|
|
Date monthSpace = DateUtil.getDate(-14, new Date()); |
|
|
|
if (specialUsers.contains(user.getMobile())) { |
|
|
|
return mv; |
|
|
|
} |
|
|
|
if (null != queryMentalRecord && queryMentalRecord.getCreateAt().getTime() > monthSpace.getTime()) { |
|
|
|
// if (null != queryMentalRecord) {
|
|
|
|
// mv.addObject("mentalTest", queryMentalRecord);
|
|
|
|
|