Commit 4f55475c by qwmqiuwenmin

fix

parent 5fc5bb39
......@@ -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