|
|
|
@ -5,7 +5,9 @@ import cn.estsh.i3plus.core.api.iservice.base.ISystemInitService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ICoreMemTreeService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ISysMenuService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ISysOrganizeService;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.exception.BaseImppException;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.exception.ImppExceptionEnum;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.model.license.ImppLicense;
|
|
|
|
|
import cn.estsh.impp.framework.base.controller.CoreBaseController;
|
|
|
|
@ -189,8 +191,10 @@ public class BackstageController extends CoreBaseController {
|
|
|
|
|
ImppLicenseTool.checkLicenseDateTime();
|
|
|
|
|
ImppLicenseTool.checkOrganize(organizeCodeList.size());
|
|
|
|
|
ImppLicenseTool.checkOrganizeCode(organizeCodeList.get(0));
|
|
|
|
|
}else {
|
|
|
|
|
throw (new BaseImppException("非授权工厂,请联系管理员")).setSystemId(CommonEnumUtil.SOFT_TYPE.IMPP.getCode()).setErrorCode(ImppExceptionEnum.LICENSE_ORGANIZE_ERROR.getCode()).setErrorSolution("请联系管理员");
|
|
|
|
|
}
|
|
|
|
|
ResultBean result = ResultBean.success("校验成功");
|
|
|
|
|
ResultBean result = ResultBean.success("校验成功").setResultList(organizeCodeList);
|
|
|
|
|
return result;
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|