| | |
| | | <select id="getRecordCount" resultType="java.lang.Long"> |
| | | SELECT COUNT(*) AS recordCount |
| | | FROM ir_irrigate_unit uni |
| | | left join pr_intake intake on intake.id = uni.intake_id |
| | | left join ir_project pro on pro.id = uni.project_id |
| | | left join se_client cli on cli.id = uni.operator |
| | | left join ir_group_unit gu on gu.unit_id = uni.id |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--根据灌溉单元ID获取取水口ID--> |
| | | <select id="getIntakeIdByUnitId" resultType="java.lang.Long"> |
| | | SELECT |
| | | intake_id AS intakeId |
| | | FROM ir_irrigate_unit |
| | | WHERE deleted = 0 AND id = #{unitId} |
| | | </select> |
| | | </mapper> |