|  |  |  | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--根据村ID获取全部地址--> | 
|---|
|  |  |  | <select id="getNameById" resultType="java.lang.String"> | 
|---|
|  |  |  | select name | 
|---|
|  |  |  | from pr_intake | 
|---|
|  |  |  | where id = #{intakeId, jdbcType=BIGINT} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--根据村ID获取全部地址--> | 
|---|
|  |  |  | <select id="getAddressByVillageId" parameterType="_long" resultType="java.lang.String"> | 
|---|
|  |  |  | select CONCAT(dis_province.`name`, dis_city.`name`, dis_county.`name`, dis_town.`name`, | 
|---|
|  |  |  | dis_village.`name`) AS address | 
|---|
|  |  |  | 
|---|
|  |  |  | inta.name                   AS intakeNum, | 
|---|
|  |  |  | inta.lng, | 
|---|
|  |  |  | inta.lat, | 
|---|
|  |  |  | IFNULL(hou.instant_amount, 0) AS instantAmount, | 
|---|
|  |  |  | IFNULL(hou.total_amount, 0) AS totalAmount, | 
|---|
|  |  |  | <if test="onLineMap != null and onLineMap !='' and isOnLine != null"> | 
|---|
|  |  |  | rtus.isOnLine, | 
|---|