Commit dbd51918 by qwmqiuwenmin

Merge branch 'developer' into 'master'

Developer

See merge request !91
parents 8e3d61d8 407c6d76
......@@ -504,9 +504,16 @@ public class WxEnterpriseController extends WebBaseController{
return resultResponse(HaoBanErrCode.ERR_2);
}
EnterpriseDTO enterprise = enterpriseService.getEnterpriseByEid(enterpriseId);
if(enterprise == null || enterprise.getExpireTime() == null || enterprise.getEnabledState() == null){
if(enterprise == null){
return resultResponse(HaoBanErrCode.ERR_1, false);
}
if(enterprise.getExpireTime() == null){
if(enterprise.getEnabledState() != null && enterprise.getEnabledState() == 1){
return resultResponse(HaoBanErrCode.ERR_1, false);
}else{
return resultResponse(HaoBanErrCode.ERR_1, true);
}
}
if(enterprise.getExpireTime().getTime() > System.currentTimeMillis() && enterprise.getEnabledState() == 1){
return resultResponse(HaoBanErrCode.ERR_1,false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment