|
@@ -116,7 +116,7 @@ public class TemplateAdminFacade extends TemplateInfoServiceImpl {
|
|
|
hospitalCodeSetVO.setDoctorId(templateInfosVO.getDoctorId());
|
|
|
hospitalCodeSetVO.setHospitalId(templateInfosVO.getHospitalId());
|
|
|
boolean res = getadminCheck(hospitalCodeSetVO);
|
|
|
- if(res=false){
|
|
|
+ if(!res){
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "暂无修改权限");
|
|
|
}
|
|
|
//1.判断该医生下是否存在模板名相同的数据
|
|
@@ -167,7 +167,7 @@ public class TemplateAdminFacade extends TemplateInfoServiceImpl {
|
|
|
hospitalCodeSetVO.setDoctorId(templateAdminIdsVO.getDoctorId());
|
|
|
hospitalCodeSetVO.setHospitalId(templateAdminIdsVO.getHospitalId());
|
|
|
boolean res = getadminCheck(hospitalCodeSetVO);
|
|
|
- if(res=false){
|
|
|
+ if(!res){
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "暂无删除权限");
|
|
|
}
|
|
|
//1.获取传入的ids数据
|
|
@@ -206,7 +206,7 @@ public class TemplateAdminFacade extends TemplateInfoServiceImpl {
|
|
|
hospitalCodeSetVO.setDoctorId(templateInfoPageVO.getDoctorId());
|
|
|
hospitalCodeSetVO.setHospitalId(templateInfoPageVO.getHospitalId());
|
|
|
boolean res = getadminCheck(hospitalCodeSetVO);
|
|
|
- if(res=false){
|
|
|
+ if(!res){
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "暂无权限");
|
|
|
}
|
|
|
TemplateInfoTypeVO adminVO = new TemplateInfoTypeVO();
|