Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
| | |
| | | * @Description |
| | | */ |
| | | @Data |
| | | @JsonPropertyOrder({ "id", "countyId", "townId", "villageId", "divideId", "blockId", "name", "lng", "lat", "remarks", "operator", "operateDt", "blockName", "address"}) |
| | | @JsonPropertyOrder({ "id", "countyId", "townId", "villageId", "divideId", "blockId", "name", "lng", "lat", "remarks", "operator", "operateDt", "blockName", "address", "rtuAddr", "protocol"}) |
| | | public class VoAllIntake implements BaseEntity { |
| | | private static final long serialVersionUID = 202412161003001L; |
| | | |
| | |
| | | * 地址 |
| | | */ |
| | | private String address; |
| | | |
| | | /** |
| | | * RTU地址 |
| | | */ |
| | | private String rtuAddr; |
| | | |
| | | /** |
| | | * 通讯协议 |
| | | */ |
| | | private String protocol; |
| | | } |
| | |
| | | ge.`operator`, |
| | | ge.operateDt, |
| | | blo.`name` AS blockName, |
| | | CONCAT(country.`name`, town.`name`, village.`name`) AS address |
| | | CONCAT(country.`name`, town.`name`, village.`name`) AS address, |
| | | con.rtuAddr, |
| | | con.protocol |
| | | FROM pr_intake ge |
| | | INNER JOIN pr_divide divi ON ge.divideId = divi.id |
| | | INNER JOIN ba_block blo ON divi.blockId = blo.id |
| | | LEFT JOIN ba_district country ON ge.countyId = country.id |
| | | LEFT JOIN ba_district town ON ge.townId = town.id |
| | | LEFT JOIN ba_district village ON ge.villageId = village.id |
| | | INNER JOIN pr_controller con ON con.intakeId = ge.id |
| | | where ge.id = #{id,jdbcType=BIGINT} |
| | | AND ge.deleted = 0 |
| | | AND divi.deleted = 0 |