| | |
| | | <result column="is_delete" property="isDelete"/> |
| | | <result column="coordinate" property="coordinate"/> |
| | | <result column="addvcd" property="addvcd"/> |
| | | <result column="province" property="province"/> |
| | | <result column="city" property="city"/> |
| | | <result column="district" property="district"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="ss" type="org.springblade.jfpt.suser.vo.SuserVOs"> |
| | |
| | | |
| | | |
| | | <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 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 test="suser.dj!=null"> |
| | | and s.dj like concat(concat('%', #{suser.dj}), '%') |
| | | </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 |
| | | </select> |
| | | |