判断在线
parent
8b88ae3f62
commit
3efc4acb63
|
@ -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","否");
|
||||||
|
|
Loading…
Reference in New Issue