判断在线

0927cmt
zhaoyu 2024-06-19 11:36:09 +08:00
parent 8b88ae3f62
commit 3efc4acb63
1 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
import com.zcloud.aspect.DockAnnotation; import com.zcloud.aspect.DockAnnotation;
import com.zcloud.service.system.UsersService; import com.zcloud.service.system.UsersService;
import com.zcloud.util.Jurisdiction; import com.zcloud.util.Jurisdiction;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -209,8 +210,8 @@ public class SpecialUserController extends BaseController {
String validity_time_end = pageData.getString("VALIDITY_TIME_END"); String validity_time_end = pageData.getString("VALIDITY_TIME_END");
Date endTime = sdf.parse(validity_time_end); Date endTime = sdf.parse(validity_time_end);
Date currentTime = new Date(); Date currentTime = new Date();
if (startTime.compareTo(currentTime) >= 1 && currentTime.compareTo(endTime) >= 1) { if (startTime.compareTo(currentTime) < 0 && currentTime.compareTo(endTime) < 0) {
if (pageData.get("ISREVIEW").equals("1")){ if (StringUtils.equals("1",pageData.getString("ISREVIEW"))){
pageData.put("ISEFFECTIVE","是"); pageData.put("ISEFFECTIVE","是");
} else { } else {
pageData.put("ISEFFECTIVE","否"); pageData.put("ISEFFECTIVE","否");