| | |
| | | treatSingle.setUserId(visitOrder.getUserId()); |
| | | |
| | | |
| | | |
| | | |
| | | treatV3Service.add(treatSingle, projectList, visitOrder, employeeRole, isMicNotice, signList); |
| | | |
| | | //返回id |
| | |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "查询不到治疗通知单信息!"); |
| | | } |
| | | |
| | | checkSignParam(reqVo.getSignList()); |
| | | checkSignParam(reqVo.getSignList(), treatSingle); |
| | | |
| | | treatV3Service.updateSign(treatSingle, reqVo.getSignList(), employeeRole); |
| | | |
| | |
| | | |
| | | //校验签名参数---------------------------------------------------------------------------------- |
| | | if(signList != null && signList.size() > 0){ |
| | | checkSignParam(signList); |
| | | checkSignParam(signList, treatSingle); |
| | | } |
| | | |
| | | //---------------------------------------------------------------------------------- |
| | | } |
| | | |
| | | /** 检测校验治疗单签名参数 */ |
| | | private void checkSignParam(List<TreatSingleSign> signList){ |
| | | private void checkSignParam(List<TreatSingleSign> signList, TreatSingle treatSingle){ |
| | | treatSingle.setIsUserSign(BaseEntity.NO); |
| | | for(TreatSingleSign sign : signList){ |
| | | if(StringUtils.isEmpty(sign.getSignImg())){ |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL,"签名图片不能为空!"); |
| | |
| | | //判断类型,更改对应值 |
| | | if(TreatSingleSign.SIGN_PER_TYPE_USER.equals(sign.getSignPerType())){ |
| | | sign.setSortNo(1); |
| | | treatSingle.setIsUserSign(BaseEntity.YES); |
| | | }else if(TreatSingleSign.SIGN_PER_TYPE_NURSE1.equals(sign.getSignPerType())){ |
| | | sign.setSortNo(2); |
| | | }else if(TreatSingleSign.SIGN_PER_TYPE_NURSE2.equals(sign.getSignPerType())){ |