fhx
2023-12-08 37022a5aa114261dcb9e4f312b07c6e029f59e24
phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java
@@ -121,6 +121,8 @@
        treatSingle.setUserId(visitOrder.getUserId());
        treatV3Service.add(treatSingle, projectList, visitOrder, employeeRole, isMicNotice, signList);
        //返回id
@@ -285,7 +287,7 @@
            throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "查询不到治疗通知单信息!");
        }
        checkSignParam(reqVo.getSignList());
        checkSignParam(reqVo.getSignList(), treatSingle);
        treatV3Service.updateSign(treatSingle, reqVo.getSignList(), employeeRole);
@@ -577,14 +579,15 @@
        //校验签名参数----------------------------------------------------------------------------------
        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,"签名图片不能为空!");
@@ -599,6 +602,7 @@
            //判断类型,更改对应值
            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())){