| | |
| | | comment on column lf.sys_menu.update_time is 'æ´æ°æ¶é´'; |
| | | comment on column lf.sys_menu.bak is '夿³¨'; |
| | | |
| | | --update lf.sys_menu set bak=null,create_time=now() where 1=1; |
| | | |
| | | select * from lf.sys_menu; |
| | | ----------------------------------------------------------------------------------------------------- ç»ç»æºæè¡¨ |
| | | -- DROP TABLE IF EXISTS lf.sys_dep; |
| | |
| | | id serial primary key, |
| | | pid integer, |
| | | name varchar(150), |
| | | short varchar(50), |
| | | sname varchar(50), |
| | | code varchar(50), |
| | | uncode varchar(50), |
| | | addr varchar(300), |
| | |
| | | comment on column lf.sys_dep.id is '主é®'; |
| | | comment on column lf.sys_dep.pid is 'ç¶ID,æ ¹èç¹-0'; |
| | | comment on column lf.sys_dep.name is 'åç§°'; |
| | | comment on column lf.sys_dep.short is 'ç®ç§°'; |
| | | comment on column lf.sys_dep.sname is 'ç®ç§°'; |
| | | comment on column lf.sys_dep.code is 'ç¼ç '; |
| | | comment on column lf.sys_dep.uncode is 'æºæä»£ç '; |
| | | comment on column lf.sys_dep.addr is 'å°å'; |
| | |
| | | comment on column lf.sys_dep.update_time is 'æ´æ°æ¶é´'; |
| | | comment on column lf.sys_dep.bak is '夿³¨'; |
| | | |
| | | update lf.sys_dep set bak=null where 1=1; |
| | | --alter table lf.sys_dep rename short to sname; |
| | | --update lf.sys_dep set bak=null,create_time=now() where 1=1; |
| | | |
| | | select * from lf.sys_dep; |
| | | ----------------------------------------------------------------------------------------------------- ç®å½ç®¡ç |
| | | -- DROP TABLE IF EXISTS lf.sys_dir; |
| | | create table lf.sys_dir( |
| | | id serial primary key, |
| | | pid integer, |
| | | name varchar(150), |
| | | short varchar(50), |
| | | code varchar(50), |
| | | uncode varchar(50), |
| | | addr varchar(300), |
| | | contact varchar(50), |
| | | fax varchar(50), |
| | | email varchar(50), |
| | | post varchar(20), |
| | | website varchar(1024), |
| | | level integer, |
| | | order_num integer, |
| | | create_user integer, |
| | | create_time timestamp(6) without time zone default now(), |
| | | update_user integer, |
| | | update_time timestamp(6) without time zone, |
| | | bak varchar(256) |
| | | ); |
| | | |
| | | comment on table lf.sys_dir is 'åä½è¡¨'; |
| | | comment on column lf.sys_dir.id is '主é®'; |
| | | comment on column lf.sys_dir.pid is 'ç¶ID,æ ¹èç¹-0'; |
| | | comment on column lf.sys_dir.name is 'åç§°'; |
| | | |
| | | comment on column lf.sys_dep.short is 'ç®ç§°'; |
| | | comment on column lf.sys_dep.code is 'ç¼ç '; |
| | | comment on column lf.sys_dep.uncode is 'æºæä»£ç '; |
| | | comment on column lf.sys_dep.addr is 'å°å'; |
| | | comment on column lf.sys_dep.contact is 'èç³»æ¹å¼'; |
| | | comment on column lf.sys_dep.fax is 'ä¼ ç'; |
| | | comment on column lf.sys_dep.email is 'çµåé®ä»¶'; |
| | | comment on column lf.sys_dep.post is '鮿¿ç¼ç '; |
| | | comment on column lf.sys_dep.website is 'ç½ç«å°å'; |
| | | comment on column lf.sys_dep.level is 'å±çº§,æ ¹èç¹-0'; |
| | | comment on column lf.sys_dep.order_num is 'æåºå·'; |
| | | |
| | | comment on column lf.sys_dir.create_user is 'å建人ID'; |
| | | comment on column lf.sys_dir.create_time is 'å建æ¶é´'; |
| | | comment on column lf.sys_dir.update_user is 'æ´æ°äººID'; |
| | | comment on column lf.sys_dir.update_time is 'æ´æ°æ¶é´'; |
| | | comment on column lf.sys_dir.bak is '夿³¨'; |
| | | |
| | | --update lf.sys_dir set bak=null,create_time=now() where 1=1; |
| | | |
| | | select * from lf.sys_dir; |
| | | ----------------------------------------------------------------------------------------------------------- |
| | | select * from public.addr |
| | | |
| | | |
| | | |
| | | |
| | | CREATE TABLE IF NOT EXISTS public.data_dir |
| | | ( |
| | | id integer NOT NULL, |
| | | name character varying(60) COLLATE pg_catalog."default", |
| | | pid integer NOT NULL, |
| | | oid integer DEFAULT 1, |
| | | CONSTRAINT data_dir_pkey PRIMARY KEY (id) |
| | | ) |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 1,0,管éåºç¡å¤§æ°æ®å¹³å°,Pipeline Basic Big Data Platform,,,0,,0,1,0,1,,,, |
| | | 2,1,综åå±ç¤º,Comprehensive Display,,,1,,1,2,1,1,,,, |
| | | 3,2,综åå±ç¤º,Comprehensive Display,Synthesis,,1,,2,1,1,1,,,, |
| | | 4,3,å¾å±,Coverage,,,2,,3,1,1,1,,,, |
| | | 5,3,è§å¾,Viewport,,,2,,3,2,1,1,,,, |
| | | 6,3,漫游,Wander,,,2,,3,3,1,1,,,, |
| | | 7,3,åæ,Analyse,,,2,,3,4,1,1,,,, |
| | | 8,3,æ¥è¯¢,IQuery,,,2,,3,5,1,1,,,, |
| | | 9,3,å®ä½,Orientation,,,2,,3,6,1,1,,,, |
| | | 10,3,æµé,Measurement,,,2,,3,7,1,1,,,, |
| | | 11,3,æ ç»,Plotting,,,2,,3,8,1,1,,,, |
| | | 12,2,ä¸é¢å¾,Thematic Maps,Thematic,,1,,2,2,1,1,,,, |
| | | 14,2,èµæé¦,Data Library,Archive,,1,,2,3,1,1,,,, |
| | | 15,14,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 16,14,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 17,14,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 18,14,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 19,14,ä¸è½½,Download,,,2,,3,5,1,1,,,, |
| | | 20,1,æ°æ®ç®¡ç,Data Manage,,,1,,1,3,1,1,,,, |
| | | 21,20,ç®å½ç®¡ç,CatalogueManage,catalogueManage,,1,,2,1,1,1,,,, |
| | | 22,21,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 23,21,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 24,21,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 25,21,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 26,20,æ°æ®ä¸ä¼ ,Data Updata,dataUpdata,,1,,2,2,1,1,,,, |
| | | 27,26,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 28,26,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 29,26,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 30,26,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 31,20,å
æ°æ®ç®¡ç,MetadataManage,metadataManage,,1,,2,3,1,1,,,, |
| | | 32,31,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 33,31,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 34,31,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 35,31,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 36,31,ä¸è½½,Download,,,2,,3,5,1,1,,,, |
| | | 37,20,æ°æ®å
¥åº,DataLoading,dataLoading,,1,,2,4,1,1,,,, |
| | | 38,37,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 39,37,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 40,37,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 41,37,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 42,20,ç©ºé´æ°æ®ç®¡ç,SpatialData,SpatialData,,1,,2,5,1,1,,,, |
| | | 43,42,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 44,42,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 45,42,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 46,42,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 47,20,çæ¬ç®¡ç,VersionManage,versionManage,,1,,2,6,1,1,,,, |
| | | 48,47,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 49,47,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 50,47,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 51,47,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 52,20,åå
¸ç®¡ç,DictionaryManage,dictionaryManage,,1,,2,7,1,1,,,, |
| | | 53,52,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 54,52,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 55,52,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 56,52,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 57,20,æ ·å¼ç®¡ç,StyleManage,styleManage,,1,,2,8,1,1,,,, |
| | | 58,57,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 59,57,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 60,57,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 61,57,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 62,1,è¿ç»´ç®¡ç,Operat Manage,,,1,,1,4,1,1,,,, |
| | | 63,62,ç³»ç»é
ç½®,System Layout,,,1,,2,1,1,1,,,, |
| | | 64,63,èåé
ç½®,Menu Settings,menuSettings,,1,,3,1,1,1,,,, |
| | | 65,64,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 66,64,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 67,64,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 68,64,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 69,63,åæ°é
ç½®,ParameterConfiguration,parameterConfiguration,,1,,3,2,1,1,,,, |
| | | 70,69,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 71,69,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 72,69,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 73,69,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 74,63,å
¶ä»,Rests,rests,,1,,3,3,1,1,,,, |
| | | 75,74,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 76,74,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 77,74,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 78,74,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 79,62,å®å
¨ç®¡ç,Safety Management,safetyManagement,,1,,2,2,1,1,,,, |
| | | 80,79,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 81,79,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 82,79,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 83,79,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 84,62,è¿è¡çæ§,Operation Monitoring,,,1,,2,3,1,1,,,, |
| | | 85,84,äºä»¶æ¥å¿ç®¡ç,Event Log Manage,eventlogManage,,1,,3,1,1,1,,,, |
| | | 86,85,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 87,85,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 88,85,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 89,85,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 90,84,ç»å½æ¥å¿,ConLog,logLog,,1,,3,2,1,1,,,, |
| | | 91,90,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 92,90,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 93,90,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 94,90,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 95,84,æä½æ¥å¿,Operation Log,operationLog,,1,,3,3,1,1,,,, |
| | | 96,95,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 97,95,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 98,95,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 99,95,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 100,84,æ°æ®åºçæ§,Database Monitoring,databaseMonitoring,,1,,3,4,1,1,,,, |
| | | 101,100,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 102,100,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 103,100,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 104,100,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 105,84,æå¡èµæºå®æ¶çæ§,System Monitoring,systemMonitoring,,1,,3,5,1,1,,,, |
| | | 106,105,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 107,105,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 108,105,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 109,105,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 110,84,é»ç½åå,Black/White List,blackwhiteList,,1,,3,6,1,1,,,, |
| | | 111,110,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 112,110,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 113,110,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 114,110,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 115,84,Tokenå·¥å
·,Token Tool,tokentool,,1,,3,7,1,1,,,, |
| | | 116,115,æ¥ç,Check,,,2,,4,1,1,1,,,, |
| | | 117,115,æ°å¢,Insert,,,2,,4,2,1,1,,,, |
| | | 118,115,ä¿®æ¹,Update,,,2,,4,3,1,1,,,, |
| | | 119,115,å é¤,Delete,,,2,,4,4,1,1,,,, |
| | | 120,62,ç¨æ·ç®¡ç,User Manage,,,1,,2,5,1,1,,,, |
| | | 121,120,ç¨æ·ä¿¡æ¯ç®¡ç,User Information Manage,userInfoManage,,1,,2,1,1,1,,,, |
| | | 122,121,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 123,121,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 124,121,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 125,121,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 126,120,ç»ç»æºæç®¡ç,Org Manage,orgManage,,1,,2,2,1,1,,,, |
| | | 127,126,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 128,126,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 129,126,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 130,126,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 131,120,ç¨æ·å®¡æ ¸,User Auditing,userAuditing,,1,,2,3,1,1,,,, |
| | | 132,131,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 133,131,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 134,131,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 135,131,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 136,120,è§è²ç®¡ç,Role Manage,roleManage,,1,,2,4,1,1,,,, |
| | | 137,136,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 138,136,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 139,136,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 140,136,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 141,120,群ç»ç®¡ç,Group Manage,groupManage,,1,,2,5,1,1,,,, |
| | | 142,141,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 143,141,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 144,141,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 145,141,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | | 146,120,æé管ç,Permission management,authorityManage,,1,,2,6,1,1,,,, |
| | | 147,146,æ¥ç,Check,,,2,,3,1,1,1,,,, |
| | | 148,146,æ°å¢,Insert,,,2,,3,2,1,1,,,, |
| | | 149,146,ä¿®æ¹,Update,,,2,,3,3,1,1,,,, |
| | | 150,146,å é¤,Delete,,,2,,3,4,1,1,,,, |
| | |
| | | package com.lf.server; |
| | | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | |
| | |
| | | * @author |
| | | */ |
| | | @SpringBootApplication |
| | | |
| | | public class LfApplication { |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(LfApplication.class, args); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.controller.organization; |
| | | |
| | | import com.lf.server.entity.Result; |
| | | import com.lf.server.entity.organization.DepEntity; |
| | | import com.lf.server.service.oraganization.DepService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç»ç»æºæ |
| | | * @author sws |
| | | * @date 2022-09-23 |
| | | */ |
| | | |
| | | @RestController |
| | | @RequestMapping("/dep") |
| | | public class DepController { |
| | | @Autowired |
| | | DepService depService; |
| | | |
| | | @RequestMapping(value ="/insertDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public Boolean insertDep(DepEntity depEntity){ |
| | | return depService.insertDep(depEntity); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value ="/delecteDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public Boolean delecteDep(int id){ |
| | | return depService.delecteDep(id); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value ="/updateDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public Boolean updateDep(DepEntity depEntity){ |
| | | return depService.updateDep(depEntity); |
| | | } |
| | | |
| | | |
| | | @GetMapping(value ="/selectDep") |
| | | public DepEntity selectDep(DepEntity depEntity){ |
| | | return depService.selectDep(depEntity); |
| | | } |
| | | |
| | | @GetMapping(value ="/selectDepAll") |
| | | public List<DepEntity> selectDepAll( ){ |
| | | return depService.selectDepAll( ); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.entity.organization; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | import java.sql.Timestamp; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * sys_dep |
| | | * @author www |
| | | * @date 2022-09-23 |
| | | */ |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class DepEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -3673810416800666364L; |
| | | |
| | | private int id; |
| | | |
| | | private int pid; |
| | | |
| | | private String name; |
| | | |
| | | private String sname; |
| | | |
| | | private String code; |
| | | |
| | | private String uncode; |
| | | |
| | | private String addr; |
| | | |
| | | private String contact; |
| | | |
| | | private String fax ; |
| | | |
| | | private String email; |
| | | |
| | | private String post; |
| | | |
| | | private String website; |
| | | |
| | | private int level; |
| | | |
| | | private int orderNum; |
| | | |
| | | private int createUser; |
| | | |
| | | private Timestamp createTime; |
| | | |
| | | private int updateUser; |
| | | |
| | | private Timestamp updateTime; |
| | | |
| | | private String bak; |
| | | |
| | | public int getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(int id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public int getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(int pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getSname() { |
| | | return sname; |
| | | } |
| | | |
| | | public void setSname(String sname) { |
| | | this.sname = sname; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getUncode() { |
| | | return uncode; |
| | | } |
| | | |
| | | public void setUncode(String uncode) { |
| | | this.uncode = uncode; |
| | | } |
| | | |
| | | public String getAddr() { |
| | | return addr; |
| | | } |
| | | |
| | | public void setAddr(String addr) { |
| | | this.addr = addr; |
| | | } |
| | | |
| | | public String getContact() { |
| | | return contact; |
| | | } |
| | | |
| | | public void setContact(String contact) { |
| | | this.contact = contact; |
| | | } |
| | | |
| | | public String getFax() { |
| | | return fax; |
| | | } |
| | | |
| | | public void setFax(String fax) { |
| | | this.fax = fax; |
| | | } |
| | | |
| | | public String getEmail() { |
| | | return email; |
| | | } |
| | | |
| | | public void setEmail(String email) { |
| | | this.email = email; |
| | | } |
| | | |
| | | public String getPost() { |
| | | return post; |
| | | } |
| | | |
| | | public void setPost(String post) { |
| | | this.post = post; |
| | | } |
| | | |
| | | public String getWebsite() { |
| | | return website; |
| | | } |
| | | |
| | | public void setWebsite(String website) { |
| | | this.website = website; |
| | | } |
| | | |
| | | public int getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(int level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public int getOrderNum() { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(int orderNum) { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | public int getCreateUser() { |
| | | return createUser; |
| | | } |
| | | |
| | | public void setCreateUser(int createUser) { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Timestamp getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Timestamp createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public int getUpdateUser() { |
| | | return updateUser; |
| | | } |
| | | |
| | | public void setUpdateUser(int updateUser) { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Timestamp getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Timestamp updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getBak() { |
| | | return bak; |
| | | } |
| | | |
| | | public void setBak(String bak) { |
| | | this.bak = bak; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.mapper.oraganization; |
| | | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | import com.lf.server.entity.organization.DepEntity; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç»ç»æºæ |
| | | * @author sws |
| | | * @date 2022-09-23 |
| | | */ |
| | | @Mapper |
| | | @Repository |
| | | public interface DepMapper { |
| | | /** |
| | | * æ·»å æ°æ® |
| | | * @param depEntity |
| | | * @return |
| | | */ |
| | | public Boolean insertDep(DepEntity depEntity); |
| | | |
| | | /** |
| | | * åªé¤æ°æ® |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Boolean delecteDep(int id); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * @param depEntity |
| | | * @return |
| | | */ |
| | | public Boolean updateDep(DepEntity depEntity); |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ¡æ°æ® |
| | | * @param depEntity |
| | | * @return |
| | | */ |
| | | public DepEntity selectDep(DepEntity depEntity); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
¨é¨æ°æ® |
| | | * @return |
| | | */ |
| | | public List<DepEntity> selectDepAll(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.service.oraganization; |
| | | |
| | | |
| | | import com.lf.server.entity.organization.DepEntity; |
| | | import com.lf.server.mapper.oraganization.DepMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | /** |
| | | * ç»ç»æºæ |
| | | * @author sws |
| | | * @date 2022-09-23 |
| | | */ |
| | | |
| | | @Service |
| | | public class DepService implements DepMapper { |
| | | @Autowired |
| | | DepMapper depMapper; |
| | | |
| | | @Override |
| | | public Boolean insertDep(DepEntity depEntity) { |
| | | return depMapper.insertDep(depEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean delecteDep(int id) { |
| | | return depMapper.delecteDep(id); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateDep(DepEntity depEntity) { |
| | | return depMapper.updateDep(depEntity); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public DepEntity selectDep(DepEntity depEntity) { |
| | | return depMapper.selectDep(depEntity); |
| | | } |
| | | |
| | | @Override |
| | | public List<DepEntity> selectDepAll() { |
| | | return depMapper.selectDepAll(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | datasource: |
| | | username : postgres |
| | | password: postgres |
| | | url : jdbc:postgresql://127.0.0.1:5432/langfang |
| | | url : jdbc:postgresql://192.168.20.39:5433/langfang |
| | | driver-class-name: org.postgresql.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource # èªå®ä¹æ°æ®æº |
| | | |
| | |
| | | |
| | | mybatis: |
| | | type-aliases-package: com.terra.land.mapper |
| | | mapper-locations: classpath:mapper/*.xml |
| | | mapper-locations: classpath:mapper/**/*.xml |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.lf.server.mapper.oraganization.DepMapper"> |
| | | <resultMap id="selectDepAllMap" type="com.lf.server.entity.organization.DepEntity"> |
| | | <id property="id" column="id"></id> |
| | | <result property="orderNum" column="order_num"></result> |
| | | <result property="createUser" column="create_user"></result> |
| | | <result property="createTime" column="create_time"></result> |
| | | <result property="updateUser" column="update_user"></result> |
| | | <result property="updateTime" column="update_time"></result> |
| | | </resultMap> |
| | | |
| | | <select id="selectDepAll" resultMap="selectDepAllMap" resultType="com.lf.server.entity.organization.DepEntity"> |
| | | select * from lf.sys_dep |
| | | </select> |
| | | </mapper> |