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
and s.yname like concat(concat('%', #{suser.yname}), '%')
and s.dj like concat(concat('%', #{suser.dj}), '%')
and s.type like concat(concat('%', #{suser.type}), '%')
and s.addvcd like concat(concat('%', #{suser.addvcd}), '%')
and s.dj like concat(concat('%', #{suser.dj}), '%')
and s.province like concat(concat('%', #{suser.province}), '%')
and s.city like concat(concat('%', #{suser.city}), '%')
and s.district like concat(concat('%', #{suser.district}), '%')
order by s.createtime
select s.id,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 and s.id=#{id}
INSERT INTO sys_suser (ynumber,yname,phone,address,type,dj,information,coordinate,createtime,addvcd) VALUES (#{ynumber},#{yname},#{phone},#{address},#{type},#{dj},#{information},POINT(#{jd},#{wd}),#{createtime},#{addvcd})
update sys_suser SET ynumber=#{ynumber},yname=#{yname},phone=#{phone},address=#{address},type=#{type},dj=#{dj},information=#{information},coordinate=POINT(#{jd},#{wd}),createtime=#{createtime},addvcd=#{addvcd} where id=#{id}
select ynumber,yname as aaa from sys_suser
select yname from sys_suser where ynumber=#{ud}
select s.id,ynumber,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
and s.type =#{type}
and s.dj =#{dj}