| | |
| | | |
| | | |
| | | <select id="selectSuserPage" resultMap="suserResultMaps"> |
| | | select s.id,s.ynumber,ST_ASTEXT(s.coordinate) as coordinate,s.yname,s.phone,s.address,s.type,s.dj,s.information,s.createtime,s.addvcd,province,city,district |
| | | from sys_suser s left join sys_district d on d.addvcds=s.addvcd where is_delete=0 |
| | | select s.id,s.ynumber,ST_ASTEXT(s.coordinate) as |
| | | coordinate,s.yname,s.phone,s.address,s.type,s.dj,s.information,s.createtime,s.addvcd,province,city,district |
| | | from sys_suser s left join sys_district d on d.addvcds=s.addvcd where is_delete=0 |
| | | <if test="suser.yname!=null"> |
| | | and s.yname like concat(concat('%', #{suser.yname}), '%') |
| | | </if> |
| | |
| | | </if> |
| | | <if test="suser.province!=null"> |
| | | and s.province like concat(concat('%', #{suser.province}), '%') |
| | | </if> <if test="suser.city!=null"> |
| | | and s.city like concat(concat('%', #{suser.city}), '%') |
| | | </if> <if test="suser.district!=null"> |
| | | and s.district like concat(concat('%', #{suser.district}), '%') |
| | | </if> |
| | | order by s.createtime |
| | | </if> |
| | | <if test="suser.city!=null"> |
| | | and s.city like concat(concat('%', #{suser.city}), '%') |
| | | </if> |
| | | <if test="suser.district!=null"> |
| | | and s.district like concat(concat('%', #{suser.district}), '%') |
| | | </if> |
| | | order by s.createtime |
| | | </select> |
| | | |
| | | <select id="selectInfo" resultMap="suserResultMaps"> |
| | |
| | | |
| | | |
| | | <select id="selectList" resultMap="suserResultMaps"> |
| | | select s.id,ynumber,s.jd,s.wd,ST_ASTEXT(s.coordinate) as coordinate,s.yname,s.phone,s.address,l.types as type,s.dj,s.information,s.createtime,d.addvnm as addvcd from sys_suser s left join sys_district d on d.addvcds=s.addvcd LEFT JOIN sys_lx l on l.tnumber=s.type where is_delete=0 |
| | | select s.id,ynumber,s.jd,s.wd,ST_ASTEXT(s.coordinate) as coordinate,s.yname,s.phone,s.address,l.types as |
| | | type,s.dj,s.information,s.createtime,d.addvnm as addvcd from sys_suser s left join sys_district d on |
| | | d.addvcds=s.addvcd LEFT JOIN sys_lx l on l.tnumber=s.type where is_delete=0 |
| | | <if test="type!=null and type!=''"> |
| | | and s.type =#{type} |
| | | </if> |
| | |
| | | |
| | | <!--查询业主总数--> |
| | | <select id="selectSuserCount" resultType="java.lang.Integer"> |
| | | select count(*) from sys_suser where is_delete=0 |
| | | select count(*) from blade_tenant where is_deleted=0 and tenant_id!="000000" |
| | | </select> |
| | | |
| | | <update id="updateUser"> |