|
|
|
@ -503,7 +503,7 @@
|
|
|
|
|
CONVERT(varchar(19),eTime,120) etimeStr
|
|
|
|
|
from archive_other_ext where id in (${ids})
|
|
|
|
|
</select>
|
|
|
|
|
<!--<!–批量更新statusFlag = 0–>
|
|
|
|
|
<!--批量更新statusFlag = 0-->
|
|
|
|
|
<update id="updateSubmit">
|
|
|
|
|
update archive_other_ext
|
|
|
|
|
set statusFlag = 0,T2 = '1801-02-03'
|
|
|
|
@ -512,7 +512,7 @@
|
|
|
|
|
ID in (${ids})
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</update>-->
|
|
|
|
|
</update>
|
|
|
|
|
<!--根据ids字段的查询与同步更新比较时间比较较晚时间的集合-->
|
|
|
|
|
<select id="selectAllByIdsAndSubmitTime" resultMap="BaseResultMap">
|
|
|
|
|
SELECT
|
|
|
|
@ -612,4 +612,16 @@
|
|
|
|
|
<select id="selectMaxETimeByNursingAndJzh" resultType="java.lang.String">
|
|
|
|
|
select top 1 convert(varchar(19),eTime,120) eTime from archive_other_ext where sysFlag = 1 and jzh = #{patientId} order by eTime desc
|
|
|
|
|
</select>
|
|
|
|
|
<!--根据sysFlag和id集合查询记录-->
|
|
|
|
|
<select id="selectListBySysFlagAndIds" resultMap="BaseResultMap">
|
|
|
|
|
select id from archive_other_ext
|
|
|
|
|
<where>
|
|
|
|
|
<if test="sysFlag != null">
|
|
|
|
|
and sysFlag = #{sysFlag}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ids != null and ids != ''">
|
|
|
|
|
and id in (${ids})
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|