Commit 9e091f5b authored by zhangjianqian's avatar zhangjianqian

修改筛选,修改小区居民数量统计

parent e5395ceb
...@@ -28,8 +28,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -28,8 +28,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectTCommunityList" parameterType="TCommunity" resultMap="TCommunityResult"> <select id="selectTCommunityList" parameterType="TCommunity" resultMap="TCommunityResult">
select id, name, sname,(select area_name from t_area where id=county)county_name,(select area_name from t_area where id=city)city_name,(select area_name from t_area where id=street)street_name, county, city, street, area_type, address, users_num, longitude, latitude, remark, SELECT id, NAME, sname,
(case area_type when 1 then '城镇' else '农村' end)areatype_name from t_community (SELECT area_name FROM t_area WHERE id=c.county)county_name,
(SELECT area_name FROM t_area WHERE id=c.city)city_name,
(SELECT area_name FROM t_area WHERE id=c.street)street_name,
(SELECT COUNT(id) FROM t_user WHERE village = c.id)users_num,
county, city, street, area_type, address, longitude, latitude, remark,
(CASE area_type WHEN 1 THEN '城镇' ELSE '农村' END)areatype_name FROM t_community c
<where> <where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="sname != null and sname != ''"> and sname like concat('%', #{sname}, '%')</if> <if test="sname != null and sname != ''"> and sname like concat('%', #{sname}, '%')</if>
......
...@@ -188,9 +188,9 @@ ...@@ -188,9 +188,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="居民总数" prop="usersNum"> <!--<el-form-item label="居民总数" prop="usersNum">-->
<el-input v-model="form.usersNum" placeholder="请输入小区居民总户数" /> <!--<el-input v-model="form.usersNum" placeholder="请输入小区居民总户数" />-->
</el-form-item> <!--</el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
......
...@@ -746,8 +746,9 @@ export default { ...@@ -746,8 +746,9 @@ export default {
}, },
//街道镇选择 //街道镇选择
steetChange(){ steetChange(){
console.log(this.form.community)
this.community = null; this.community = null;
this.form.community = []; //this.form.community = [];
this.communityData = []; this.communityData = [];
this.getCommunityInfo(); this.getCommunityInfo();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment