gunshi-project-ss/src/main/resources/mapper/StWaterRRealMapper.xml

14 lines
551 B
XML
Raw Normal View History

2024-07-08 17:47:02 +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.gunshi.project.xyt.mapper.StWaterRRealMapper">
2024-07-24 09:02:59 +08:00
<select id="listRelated" resultType="com.gunshi.project.xyt.model.StWaterRReal">
SELECT stb.stcd, stb.sttp, t.tm, t.q, t.v
FROM public.st_stbprp_b stb
LEFT JOIN public.st_water_r_real t ON t.stcd = stb.stcd
<where>
stb.sttp in ('QQ', 'PQ')
</where>
</select>
2024-07-08 17:47:02 +08:00
</mapper>