已重命名1个文件
已添加1个文件
已修改4个文件
已删除1个文件
| | |
| | | |
| | | select to_char(optime,'yyyy-mm-dd') as optime,count(*) from lf.sys_login where optime between (select optime - interval '30 day') |
| | | and optime group by to_char(optime, 'yyyy-mm-dd') order by to_char(optime, 'yyyy-mm-dd') asc; |
| | | ----------------------------------------------------------------------------------------------------- |
| | | |
| | | select a.*,coalesce(a.native,'') from lf.sys_user a; |
| | | select ST_PointFromText('POINT(95.80461853400004 34.13862467200005)'); |
| | | select ST_LineFromText('LINESTRING(04.98985101830993 37.43840773692756,104.99318913447104 37.43883729720358)', 4326); |
| | | select ST_PolygonFromText('POLYGON((104.9907822932683 37.43532941961706,104.99088987736599 37.43532941961706,104.9908670336867 37.4349030213574,104.99078327712658 37.4349030213574,104.9907822932683 37.43532941961706))',4326); |
| | | |
| | | ---------------------------------------------------------------------------------------------- |
| | | -- 114msï¼180/3248 |
| | | select count(1) from bd.dlg_agnp a where ST_Intersects(geom, |
| | | ST_PolygonFromText('POLYGON ((115.94927385452 32.3754479115071 0,121.989371092554 32.2766788010181 0,121.850621222894 29.6874200067864 0,115.9727267226 29.7835368627922 0,115.94927385452 32.3754479115071 0))', 4326)) |
| | |
| | | |
| | | select a.* from lf.sys_domain a where exists (select * from lf.sys_dict b where b.ns = 'bd' and b.tab = 'dlg_25w_hyda') and a.dom_code like '210%' order by a.id |
| | | select * from lf.sys_download a where create_user = 1 and type = 2; |
| | | |
| | | |
| | | ---------------------------------------------------------------------------------------------- |
| | | |
| | | |
| | | |
| | |
| | | comment on column lf.sys_domain.bak is '夿³¨'; |
| | | |
| | | select * from lf.sys_domain order by dom_name,orderid; |
| | | ----------------------------------------------------------------------------------------------------- |
| | | ----------------------------------------------------------------------------------------------------- å
æ°æ®æµè¯è¡¨ * |
| | | -- drop table if exists md.md_zxcg; |
| | | create table md.md_zxcg( |
| | | id serial primary key, |
| | | zh varchar(50), |
| | | zj float8, |
| | | lc float8, |
| | | x float8, |
| | | y float8, |
| | | z float8, |
| | | pid integer, |
| | | create_user integer, |
| | | create_time timestamp(6) without time zone default now(), |
| | | update_user integer, |
| | | update_time timestamp(6) without time zone |
| | | ); |
| | | comment on table md.md_zxcg is 'ä¸çº¿ææè¡¨'; |
| | | |
| | | select * from md.md_zxcg; |
| | | |
| | | -- drop table if exists md.md_gdcg; |
| | | create table md.md_gdcg( |
| | | id serial primary key, |
| | | bh varchar(100), |
| | | gxdh varchar(100), |
| | | ljdh varchar(100), |
| | | msfs varchar(100), |
| | | gxcl varchar(100), |
| | | gjcc varchar(100), |
| | | tz varchar(100), |
| | | fsw varchar(100), |
| | | x float8, |
| | | y float8, |
| | | dm float8, |
| | | gd float8, |
| | | gnd float8, |
| | | ms float8, |
| | | dngs varchar(100), |
| | | gkpl varchar(100), |
| | | dldy varchar(100), |
| | | bz varchar(100), |
| | | pid integer, |
| | | create_user integer, |
| | | create_time timestamp(6) without time zone default now(), |
| | | update_user integer, |
| | | update_time timestamp(6) without time zone |
| | | ); |
| | | comment on table md.md_gdcg is 'ç®¡éææè¡¨'; |
| | | |
| | | select * from md.md_gdcg; |
| | | ----------------------------------------------------------------------------------------------------- |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.lf.server.controller.other.FloatServerController; |
| | | import com.lf.server.entity.all.MenusAuthEntity; |
| | | import com.lf.server.entity.all.PermsAuthEntity; |
| | | import com.lf.server.entity.all.ResAuthEntity; |
| | | import com.lf.server.entity.bd.DlgAgnpEntity; |
| | | import com.lf.server.entity.bs.Gxcg; |
| | | import com.lf.server.entity.bs.Zxcg; |
| | | import com.lf.server.entity.md.*; |
| | | import com.lf.server.helper.*; |
| | | import com.lf.server.mapper.bd.DlgAgnpMapper; |
| | | import com.lf.server.service.all.BaseQueryService; |
| | |
| | | * @author WWW |
| | | */ |
| | | @Component |
| | | @SuppressWarnings("AlibabaRemoveCommentedCode") |
| | | public class InitConfig implements ApplicationRunner { |
| | | private final static Log log = LogFactory.getLog(InitConfig.class); |
| | | |
| | |
| | | } |
| | | |
| | | private void testReadExcel() { |
| | | List<Zxcg> listZxcg = ExcelHelper.readExcel(Zxcg.class, "D:\\LF\\data\\xls\\æµç»\\1-é¡¹ç®ææ-西ä¸ä¸\\1-1ä¸çº¿ææè¡¨\\æµ·åå¿ä¸çº¿ææè¡¨.xlsx"); |
| | | int r1 = listZxcg.size(); |
| | | List<MdZxcgEntity> listMdZxcg = ExcelHelper.readExcel(MdZxcgEntity.class, "D:\\LF\\data\\xls\\æµç»\\1-é¡¹ç®ææ-西ä¸ä¸\\1-1ä¸çº¿ææè¡¨\\æµ·åå¿ä¸çº¿ææè¡¨.xlsx"); |
| | | int r1 = listMdZxcg.size(); |
| | | |
| | | //List<Gxcg> listGxcg = ExcelHelper.readExcel(Gxcg.class, "D:\\LF\\data\\xls\\æµç»\\2-å°ä¸ç®¡çº¿æ¢æµææ\\2-2 管线ææè¡¨.xlsx"); |
| | | //int r2 = listGxcg.size(); |
| | | //List<MdGdcgEntity> listGdcg = ExcelHelper.readExcel(MdGdcgEntity.class, "D:\\LF\\data\\xls\\æµç»\\2-å°ä¸ç®¡çº¿æ¢æµææ\\2-2 管线ææè¡¨.xlsx"); |
| | | //int r2 = listGdcg.size(); |
| | | |
| | | String entityName = "Gxcg"; |
| | | String xls = "D:\\LF\\data\\xls\\æµç»\\2-å°ä¸ç®¡çº¿æ¢æµææ\\2-2 管线ææè¡¨.xlsx"; |
ÎļþÃû´Ó src/main/java/com/lf/server/entity/bs/Gxcg.java ÐÞ¸Ä |
| | |
| | | package com.lf.server.entity.bs; |
| | | package com.lf.server.entity.md; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.lf.server.annotation.ExcelHead; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("md.md_gdcg") |
| | | @ExcelHead(headRows = 3,excludeSheets = "å°é¢,ç®å½") |
| | | public class Gxcg { |
| | | public class MdGdcgEntity { |
| | | @ExcelProperty(index = 0) |
| | | private String bh; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.entity.md; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.lf.server.annotation.ExcelHead; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | import java.sql.Timestamp; |
| | | |
| | | /** |
| | | * ä¸çº¿ææè¡¨ |
| | | * @author WWW |
| | | */ |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("md.md_zxcg") |
| | | @ExcelHead(headRows = 1) |
| | | public class MdZxcgEntity implements Serializable { |
| | | private static final long serialVersionUID = 686714648588893312L; |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer gid; |
| | | |
| | | @ExcelProperty(index = 0) |
| | | private String zh; |
| | | |
| | | @ExcelProperty(index = 1) |
| | | private Double zj; |
| | | |
| | | @ExcelProperty(index = 2) |
| | | private Double lc; |
| | | |
| | | @ExcelProperty(index = 3) |
| | | private Double x; |
| | | |
| | | @ExcelProperty(index = 4) |
| | | private Double y; |
| | | |
| | | @ExcelProperty(index = 5) |
| | | private Double z; |
| | | |
| | | private Integer pid; |
| | | |
| | | private Integer createUser; |
| | | |
| | | private Timestamp createTime; |
| | | |
| | | private Integer updateUser; |
| | | |
| | | private Timestamp updateTime; |
| | | |
| | | public Integer getGid() { |
| | | return gid; |
| | | } |
| | | |
| | | public void setGid(Integer gid) { |
| | | this.gid = gid; |
| | | } |
| | | |
| | | public String getZh() { |
| | | return zh; |
| | | } |
| | | |
| | | public void setZh(String zh) { |
| | | this.zh = zh; |
| | | } |
| | | |
| | | public Double getZj() { |
| | | return zj; |
| | | } |
| | | |
| | | public void setZj(Double zj) { |
| | | this.zj = zj; |
| | | } |
| | | |
| | | public Double getLc() { |
| | | return lc; |
| | | } |
| | | |
| | | public void setLc(Double lc) { |
| | | this.lc = lc; |
| | | } |
| | | |
| | | public Double getX() { |
| | | return x; |
| | | } |
| | | |
| | | public void setX(Double x) { |
| | | this.x = x; |
| | | } |
| | | |
| | | public Double getY() { |
| | | return y; |
| | | } |
| | | |
| | | public void setY(Double y) { |
| | | this.y = y; |
| | | } |
| | | |
| | | public Double getZ() { |
| | | return z; |
| | | } |
| | | |
| | | public void setZ(Double z) { |
| | | this.z = z; |
| | | } |
| | | |
| | | public Integer getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(Integer pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public Integer getCreateUser() { |
| | | return createUser; |
| | | } |
| | | |
| | | public void setCreateUser(Integer createUser) { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Timestamp getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Timestamp createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Integer getUpdateUser() { |
| | | return updateUser; |
| | | } |
| | | |
| | | public void setUpdateUser(Integer updateUser) { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Timestamp getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Timestamp updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | } |
| | |
| | | 40.å¼åæ ¹æ®å®ä½åç§°æ¥è¯¢ç©ºé´è¡¨çWKTè®°å½ |
| | | 41.æå»ºQGIS+Pythonå¼åç¯å¢ |
| | | 42.å¼åæ ¹æ®åç§°æ¨¡ç³æç´¢ç¨æ·ãåä½çå10æ¡è®°å½ |
| | | 43.æå»ºQGISå·¥ç¨ï¼ä½¿ç¨Pythonè¿è¡å·¥ç¨ < |
| | | 44. |
| | | 45. |
| | | 43.æå»ºQGISå·¥ç¨ï¼ä½¿ç¨Pythonè¿è¡å·¥ç¨ |
| | | 44.å¼åQGISçæä¸é¢å¾åè½ |
| | | 45.å¼åæ ¹æ®æ ç»JSONæ°æ®çæshpæä»¶å¹¶ä¸è½½ < |
| | | 46. |
| | | 47. |
| | | 48. |
| | | 49. |
| | | 50. |
| | | ----------------------------------------------- |
| | | .å¼åæ ¹æ®æ ç»JSONæ°æ®çæshpæä»¶å¹¶ä¸è½½ |
| | | .å¼åä¸ä¼ shpæä»¶è½¬æ¢ä¸ºJSONæ°æ®æ¥å£ |
| | | .å建QGISåºå¾æ¨¡æ¿ |
| | | .å¼åPythonåºå¾åè½ |
| | | .å¼åQGISåºå¾çC#æå¡ |
| | | .éç¨æ ¼å¼ååæ°è¿è¡Pythonç¨åº |
| | | . |