You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.docus.demo.mapper.sqlserver2.TscanMapper">
|
|
|
|
<insert id="insertScanList">
|
|
|
|
insert into t_scan_assort
|
|
|
|
(patient_id,assort_id,scan_page,source,is_del,up_date,up_state)
|
|
|
|
values
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
(#{item.patientId},#{item.assortId},#{item.scanPage},1,0,#{item.upDate},#{item.upState})
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getOldScanListByPid" resultType="com.docus.demo.entity.sqlserver2.Tscan">
|
|
|
|
SELECT
|
|
|
|
patient_id as patientId,
|
|
|
|
|
|
|
|
assort_id as assortId,
|
|
|
|
|
|
|
|
scan_page as scanPage,
|
|
|
|
|
|
|
|
up_state as upState
|
|
|
|
FROM
|
|
|
|
t_scan_assort
|
|
|
|
WHERE patient_id = #{id}
|
|
|
|
</select>
|
|
|
|
</mapper>
|