|
|
@ -257,9 +257,11 @@ public class FirstAidService implements IFirstAidService{ |
|
|
|
throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); |
|
|
|
} |
|
|
|
//判断急救状态
|
|
|
|
if(firstAid.getDataStatus() == Constant.DataStatus.FirstAidPass.status || firstAid.getDataStatus() == Constant.DataStatus.DischargePass.status |
|
|
|
|| firstAid.getDataStatus() == Constant.DataStatus.ApplyFor.status || firstAid.getDataStatus() == Constant.DataStatus.ApplyForRefuse.status){ |
|
|
|
throw new BaseException(DefaultCodeError.NO_POWER); |
|
|
|
if(firstAid.getDataStatus() == Constant.DataStatus.FirstAidPass.status){ |
|
|
|
throw new BaseException(DefaultCodeError.FIRST_AID_AUDIT); |
|
|
|
} else if (firstAid.getDataStatus() == Constant.DataStatus.DischargePass.status |
|
|
|
|| firstAid.getDataStatus() == Constant.DataStatus.ApplyFor.status || firstAid.getDataStatus() == Constant.DataStatus.ApplyForRefuse.status) { |
|
|
|
throw new BaseException(DefaultCodeError.OUT_HOSPITAL_AUDIT); |
|
|
|
} |
|
|
|
//判断操作人的权限
|
|
|
|
FirstAidMemberExample firstAidMemberExample = new FirstAidMemberExample(); |
|
|
|