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.
51 lines
1.6 KiB
XML
51 lines
1.6 KiB
XML
<?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.ann.demo.dao.OraclePacsMappper">
|
|
|
|
|
|
<insert id="save" parameterType="com.ann.demo.entity.filing.OraclePACS">
|
|
insert into sycView
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
<if test="zyh != null" >
|
|
zyh,
|
|
</if>
|
|
<if test="jzh != null" >
|
|
jzh ,
|
|
</if>
|
|
<if test="typeCode != null" >
|
|
typeCode,
|
|
</if>
|
|
<if test="otherNum != null" >
|
|
otherNum,
|
|
</if>
|
|
<if test="updateTime != null" >
|
|
updateTime,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<if test="zyh != null" >
|
|
#{zyh},
|
|
</if>
|
|
<if test="jzh != null" >
|
|
#{jzh},
|
|
</if>
|
|
<if test="typeCode != null" >
|
|
#{typeCode},
|
|
</if>
|
|
<if test="otherNum != null" >
|
|
#{otherNum},
|
|
</if>
|
|
<if test="updateTime != null" >
|
|
#{updateTime},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<delete id="del" parameterType="java.lang.String">
|
|
delete from sycView
|
|
where jzh=#{jzh} and zyh=#{zyh} and typeCode=#{typeCode}
|
|
</delete>
|
|
<select id="getOraclePacsByJzh" resultType="com.ann.demo.entity.filing.OracleHL">
|
|
SELECT * FROM sycView where jzh=#{jzh} and zyh=#{zyh} and typeCode='PACS文档'
|
|
</select>
|
|
</mapper>
|