新增病案查询接口,修改退费接口

This commit is contained in:
sangchengzhi
2026-01-22 10:41:24 +08:00
parent 8d2d948ea2
commit a2420d61fd
11 changed files with 333 additions and 17 deletions

View File

@@ -44,6 +44,12 @@
SET status = 0
WHERE orderno = #{orderno}
</update>
<update id="updateByCopies">
UPDATE express
SET copies = #{copies},
amount = #{amount}
WHERE id = #{id}
</update>
<select id="checkSameNameRecordToday" resultType="java.lang.Boolean">
SELECT COUNT(*) > 0
@@ -61,4 +67,10 @@
<select id="selectListByUserIdAndStatus" resultType="com.guahao.h5.reserve.vo.BingAnVO">
SELECT * FROM express WHERE user_id = #{userId} and status = #{status} and deleted = 0 and orderno IS NOT NULL;
</select>
<select id="selectListByPatientId" resultType="com.guahao.h5.reserve.vo.BingAnVO">
SELECT * FROM express WHERE patient_id = #{patientId} and deleted = 0;
</select>
<select id="selectListByHosNum" resultType="com.guahao.h5.reserve.vo.BingAnVO">
SELECT * FROM express WHERE hos_number = #{hosNum} and deleted = 0;
</select>
</mapper>