Commit 154d5179 by qwmqiuwenmin

fix

parent 6db0ad80
......@@ -315,9 +315,16 @@ public class WxEnterpriseController extends WebBaseController{
//企业信息
@RequestMapping("enterprise-is-over")
public HaobanResponse enterpriseIsOver(String enterprise) {
if(StringUtils.isEmpty(enterprise)){
return resultResponse(HaoBanErrCode.ERR_1);
public HaobanResponse enterpriseIsOver(String enterpriseId) {
if(StringUtils.isEmpty(enterpriseId)){
return resultResponse(HaoBanErrCode.ERR_2);
}
EnterpriseDTO enterprise = enterpriseService.getEnterpriseByEid(enterpriseId);
if(enterprise == null || enterprise.getExpireTime() == null){
return resultResponse(HaoBanErrCode.ERR_1,true);
}
if(enterprise.getExpireTime().getTime() > System.currentTimeMillis()){
return resultResponse(HaoBanErrCode.ERR_1,false);
}
return resultResponse(HaoBanErrCode.ERR_1,true);
}
......
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