From 37022a5aa114261dcb9e4f312b07c6e029f59e24 Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期五, 08 十二月 2023 11:28:27 +0800 Subject: [PATCH] 1.治疗单新增字段 --- phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java b/phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java index 28dfdde..b5cffdc 100644 --- a/phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java +++ b/phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java @@ -256,13 +256,14 @@ values.put("allergyInfo", treatSingle.getAllergyInfo()); values.put("isFirstFm", treatSingle.getIsFirstFm()); values.put("isRd", treatSingle.getIsRd()); + values.put("isUserSign", treatSingle.getIsUserSign()); sql.delete(0,sql.length()); //operatorName = #{m.operatorName},operatorId = #{m.operatorId}, sql.append(" developerName = #{m.developerName},developerId = #{m.developerId},remarkInfo = #{m.remarkInfo} "); sql.append(" ,developerShopName = #{m.developerShopName},developerShopId = #{m.developerShopId} "); sql.append(" ,shopName = #{m.shopName},shopId = #{m.shopId},status = #{m.status} "); sql.append(" , orderClassify = #{m.orderClassify}, isWillPhoto = #{m.isWillPhoto}, allergyInfo = #{m.allergyInfo} "); - sql.append(" , isFirstFm = #{m.isFirstFm}, isRd = #{m.isRd} "); + sql.append(" , isFirstFm = #{m.isFirstFm}, isRd = #{m.isRd}, isisUserSign = #{m.isUserSign} "); sql.append(" where id = #{m.id} "); sqlSentence.setSqlSentence(sql.toString()); if (treatSingleMapper.updateWhere(sqlSentence) != 1) { @@ -403,7 +404,7 @@ TreatSingleSign oldSign; StringBuffer logInfo = new StringBuffer(); logInfo.append("鏇存柊绛惧悕绫诲瀷锛�"); - + Integer isUseSign = treatSingle.getIsUserSign(); for(TreatSingleSign sign : signList){ //绫诲瀷 @@ -418,12 +419,26 @@ throw new TipsException("鏂板娌荤枟鍗曠鍚嶅け璐ワ紒"); } + //鍒ゆ柇鐢ㄦ埛鏄惁绛惧悕 + if(TreatSingleSign.SIGN_PER_TYPE_USER.equals(sign.getSignPerType())){ + isUseSign = BaseEntity.YES; + } + + //鎷兼帴鏃ュ織 logInfo.append(TreatSingleSign.signPerTypeCh(sign.getSignPerType())).append("銆�"); } - logInfo.delete(logInfo.length() - 1, logInfo.length()); + //鏇存柊娌荤枟鍗曟槸鍚︾敤鎴峰凡绛惧悕 + if(treatSingle.getIsUserSign() == BaseEntity.NO && isUseSign == BaseEntity.YES){ + values.put("id", treatSingle.getId()); + sqlSentence.setSqlSentence(" isUseSign = 1 where id = #{m.id} "); + if(treatSingleMapper.updateWhere(sqlSentence) != 1){ + throw new TipsException("鏇存柊娌荤枟鍗曠鍚嶅け璐ワ紒"); + } + } + //鏂板娌荤枟鍗曟棩蹇� TreatSingleLogTool.addLog(commonService, TreatSingleConstants.LOG_TYPE_EDIT_SIGN, treatSingle, employeeRole, logInfo.toString()); -- Gitblit v1.8.0