2026-03-10 18:04:19 +08:00
<?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.transitPlatForm.transitPF.mapper.RegRequestInfoMapper" >
<select id= "queryRegRequestInfo" resultType= "com.transitPlatForm.common.core.domain.entity.reg.RegApply" >
<![CDATA[select * from reg_apply where OrderTime >= #{begdate} and OrderTime <= #{enddate} ]]>
<if test= "patId != null and patId != ''" > and PatId = #{patId}</if>
<if test= "brxm != null and brxm != ''" > and PatName like '%'+brxm+'%'</if>
<if test= "status != null and status != ''" > and Status = #{status}</if>
</select>
<select id= "queryReqDetail" resultType= "com.transitPlatForm.common.core.domain.entity.reg.RegApplyDetail" >
2026-03-13 11:03:55 +08:00
select a.*,b.itemclass from reg_apply_detail a,reg_item b where a.applyid = #{applyId} and a.OrderItemCode = b.itemcode
2026-03-10 18:04:19 +08:00
</select>
2026-03-12 10:52:16 +08:00
<select id= "getItemInfo" resultType= "map" >
2026-03-12 16:59:25 +08:00
select b.classid,(case when isnull(a.yblx,'') = '' then b.itemclass_yblx else a.yblx end) as itemclass_yblx, a.* from reg_item a,reg_itemclass b where a.itemclass = b.itemclass_code and a.status = '0'
</select>
<select id= "existSQD" resultType= "com.transitPlatForm.common.core.domain.entity.reg.RegTransitSampleDetail" >
select * from reg_TransitSample_detail where applyid = #{applyId} and applyDetailId = #{applyDetailId}
2026-03-10 18:04:19 +08:00
</select>
</mapper>