| | |
| | | |
| | | //删除治疗单 |
| | | 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, "作废治疗通知单失败!"); |
| | | } |
| | |
| | | // 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, "修改到访订单信息失败!"); |
| | | } |