| | |
| | | WHERE iv.intake_id = inta.id |
| | | ) AND inta.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | |
| | | <!-- 为wechat,根据指定取水口名称模糊(后端)查询水口记录数 --> |
| | | <select id="getSomeIntakesCount4Wx" parameterType="java.util.Map" resultType="java.lang.Long"> |
| | | SELECT COUNT(*) AS recordCount |
| | | FROM pr_intake tb |
| | | <where> |
| | | tb.deleted = 0 |
| | | <if test="intakeName != null and intakeName != ''"> |
| | | AND tb.name LIKE CONCAT('%', #{intakeName}) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!-- 为wechat,根据指定取水口名称模糊(后端)查询水口记录 --> |
| | | <select id="getSomeIntakes4Wx" parameterType="java.util.Map" resultType="com.dy.pipIrrGlobal.voPr.VoOnLineIntake"> |
| | | SELECT |
| | | inta.id AS intakeId, |
| | | con.rtuAddr, |
| | | inta.name AS intakeNum |
| | | FROM pr_intake inta |
| | | INNER JOIN pr_controller con ON con.intakeId = inta.id |
| | | <where> |
| | | inta.deleted = 0 |
| | | <if test="intakeName != null and intakeName != ''"> |
| | | AND inta.name LIKE CONCAT('%', #{intakeName}) |
| | | </if> |
| | | </where> |
| | | ORDER BY inta.id DESC |
| | | </select> |
| | | |
| | | |
| | | </mapper> |