Commit 43359707 by songzhenmin

feat:新增发布功能控制

parent 566a2b12
......@@ -96,7 +96,9 @@ public class LoginServiceImpl implements LoginService {
//查询病案信息
SysVersion version = sysVersionMapper.selectLastDate();
//add 检查发布功能 by mengchao 2021-05-24 begin
if(sysConfigService.getStateByKey(SysConfigKeyType.BAH_CXRQ_CONTROL.getCode()) && !user.getIsAdmin())
if(sysConfigService.getStateByKey(SysConfigKeyType.BAH_CXRQ_CONTROL.getCode())
&& sysConfigService.getStateByKey(SysConfigKeyType.SYS_VERSION_CONTROL.getCode())
&& !user.getIsAdmin())
{
version.setBahDate(version.getBahDate()-1);
}
......
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