陈昶聿
昨天 a993043a20a6c9bccb0ab563e2d955b36a801408
smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -286,6 +286,14 @@
        where id = #{id} and del_flag=0
    </select>
    <!-- 串行化同一患者的人工随访创建,避免并发重复校验失效 -->
    <select id="lockPatArchiveByPatid" resultType="java.lang.Long">
        select id
        from pat_archive
        where id = #{patid} and del_flag = 0
        for update
    </select>
    <select id="selectPatArchiveByPatnos" resultMap="PatArchiveResult">
        SELECT id, patientno
        FROM pat_archive