22 lines
779 B
XML
22 lines
779 B
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.czlis.transitPF.mapper.LabQuerySampleMapper">
|
||
|
|
|
||
|
|
<select id="getQuerySample" resultType="com.czlis.transitPF.pojo.LabQuerySample">
|
||
|
|
select * from lab_QuerySample
|
||
|
|
<where>
|
||
|
|
<if test="Barcode != null and Barcode !=''">and Barcode = #{Barcode}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getQuerySampleDetail" resultType="com.czlis.transitPF.pojo.LabQuerySampleDetail">
|
||
|
|
select * from lab_QuerySample_detail
|
||
|
|
<where>
|
||
|
|
<if test="Barcode != null and Barcode !=''">and Barcode = #{Barcode}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|