fhx
2024-08-28 69ff9fff0b12fac021b66ae2f5bd1042ed570215
1.修改作废治疗单逻辑问题
1个文件已修改
4 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/service/treat/impl/TreatV3ServiceImpl.java
@@ -351,7 +351,7 @@
        //删除治疗单
        values.put("status", TreatSingleConstants.STATUS_CANCEL);
        sqlSentence.setSqlSentence(" status = #{m.status}, isDel = 1, editTime = now() where id = #{m.treatSingleId}  ");
        sqlSentence.setSqlSentence(" status = #{m.status}, isDel = 1, editTime = now() where id = #{m.treatSingleId} and isDel = 0  ");
        if (treatSingleMapper.updateWhere(sqlSentence)!= 1) {
            throw new PlatTipsException(PlatformCode.ERROR_TIPS, "作废治疗通知单失败!");
        }
@@ -365,7 +365,7 @@
//        treatBodyPartMapper.updateWhere(sqlSentence);
        values.put("id", visitOrder.getId());
        sqlSentence.sqlUpdate(" isTreatOrder = isTreatOrder - 1 WHERE id = #{m.id} ", values);
        sqlSentence.sqlUpdate(" isTreatOrder = isTreatOrder - 1 WHERE id = #{m.id} and isTreatOrder > 0 ", values);
        if (visitOrderMapper.updateWhere(sqlSentence) != 1) {
            throw new PlatTipsException(PlatformCode.ERROR_TIPS, "修改到访订单信息失败!");
        }