From 7d778beb58e40edae669afb355b6142480230808 Mon Sep 17 00:00:00 2001 From: gk Date: Thu, 24 Feb 2022 15:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/kdayun-demo/.classpath | 59 +- modules/kdayun-demo/.gitignore | 2 +- modules/kdayun-demo/.project | 90 +- .../org.eclipse.core.resources.prefs | 5 + .../.settings/org.eclipse.jdt.core.prefs | 9 + .../.settings/org.eclipse.m2e.core.prefs | 4 + modules/kdayun-demo/build.bat | 16 +- modules/kdayun-demo/jar-source.bat | 10 +- modules/kdayun-demo/jar.bat | 4 +- modules/kdayun-demo/mavendeploy.bat | 10 +- modules/kdayun-demo/maveninstall.bat | 2 +- modules/kdayun-demo/pom.xml | 244 ++-- .../src/main/java/META-INF/MANIFEST.MF | 6 +- .../demo/controller/DemoController.java | 76 +- .../java/com/kdayun/demo/entity/CoreRole.java | 82 ++ .../kdayun/demo/mapper/CoreRoleMapper.java | 20 + .../com/kdayun/demo/mapper/CoreRoleMapper.xml | 1021 +++++++++++++++++ .../com/kdayun/demo/service/DemoService.java | 20 +- .../demo/service/impl/DemoServiceImpl.java | 34 +- .../src/main/resources/generatorConfig.xml | 51 + .../test/java/com/kdayun/report/AppTest.java | 48 +- 21 files changed, 1504 insertions(+), 309 deletions(-) create mode 100644 modules/kdayun-demo/.settings/org.eclipse.core.resources.prefs create mode 100644 modules/kdayun-demo/.settings/org.eclipse.jdt.core.prefs create mode 100644 modules/kdayun-demo/.settings/org.eclipse.m2e.core.prefs create mode 100644 modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/CoreRole.java create mode 100644 modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.java create mode 100644 modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.xml create mode 100644 modules/kdayun-demo/src/main/resources/generatorConfig.xml diff --git a/modules/kdayun-demo/.classpath b/modules/kdayun-demo/.classpath index 5e8a55f..cab3585 100644 --- a/modules/kdayun-demo/.classpath +++ b/modules/kdayun-demo/.classpath @@ -1,27 +1,32 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/kdayun-demo/.gitignore b/modules/kdayun-demo/.gitignore index b83d222..24d6437 100644 --- a/modules/kdayun-demo/.gitignore +++ b/modules/kdayun-demo/.gitignore @@ -1 +1 @@ -/target/ +/target/ diff --git a/modules/kdayun-demo/.project b/modules/kdayun-demo/.project index 78332ab..4d30acf 100644 --- a/modules/kdayun-demo/.project +++ b/modules/kdayun-demo/.project @@ -1,45 +1,45 @@ - - - kdayun-demo - - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.genuitec.eclipse.springframework.springbuilder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - org.eclipse.wst.common.project.facet.core.nature - - + + + kdayun-demo + + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.genuitec.eclipse.springframework.springbuilder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + + diff --git a/modules/kdayun-demo/.settings/org.eclipse.core.resources.prefs b/modules/kdayun-demo/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..365bbd6 --- /dev/null +++ b/modules/kdayun-demo/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/modules/kdayun-demo/.settings/org.eclipse.jdt.core.prefs b/modules/kdayun-demo/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..0ada971 --- /dev/null +++ b/modules/kdayun-demo/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,9 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.methodParameters=generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/modules/kdayun-demo/.settings/org.eclipse.m2e.core.prefs b/modules/kdayun-demo/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..14b697b --- /dev/null +++ b/modules/kdayun-demo/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/modules/kdayun-demo/build.bat b/modules/kdayun-demo/build.bat index e78da30..dbbf94f 100644 --- a/modules/kdayun-demo/build.bat +++ b/modules/kdayun-demo/build.bat @@ -1,8 +1,8 @@ -cd /d %~dp0 -set JAVA_HOME="D:\BS\Server\tomcat8\jdk" -set mavenpath=H:\M\BS\maven\apache-maven-3.2.5\bin\mvn -call jar.bat -call jar-source.bat -call maveninstall.bat - - +cd /d %~dp0 +set JAVA_HOME="D:\BS\Server\tomcat8\jdk" +set mavenpath=H:\M\BS\maven\apache-maven-3.2.5\bin\mvn +call jar.bat +call jar-source.bat +call maveninstall.bat + + diff --git a/modules/kdayun-demo/jar-source.bat b/modules/kdayun-demo/jar-source.bat index 7892c81..f92f786 100644 --- a/modules/kdayun-demo/jar-source.bat +++ b/modules/kdayun-demo/jar-source.bat @@ -1,5 +1,5 @@ -cd /d %~dp0 - -mvn source:jar -Dmaven.test.skip=true - - +cd /d %~dp0 + +mvn source:jar -Dmaven.test.skip=true + + diff --git a/modules/kdayun-demo/jar.bat b/modules/kdayun-demo/jar.bat index b621aff..13bf098 100644 --- a/modules/kdayun-demo/jar.bat +++ b/modules/kdayun-demo/jar.bat @@ -1,3 +1,3 @@ -cd /d %~dp0 - +cd /d %~dp0 + mvn clean package -Dmaven.test.skip=true \ No newline at end of file diff --git a/modules/kdayun-demo/mavendeploy.bat b/modules/kdayun-demo/mavendeploy.bat index e5baf51..7552d2f 100644 --- a/modules/kdayun-demo/mavendeploy.bat +++ b/modules/kdayun-demo/mavendeploy.bat @@ -1,6 +1,6 @@ -cd /d %~dp0 -set JAVA_HOME="D:\BS\Server\tomcat8\jdk" -set mavenpath=H:\M\BS\maven\apache-maven-3.2.5\bin\mvn -mvn deploy -Dmaven.test.skip=true - +cd /d %~dp0 +set JAVA_HOME="D:\BS\Server\tomcat8\jdk" +set mavenpath=H:\M\BS\maven\apache-maven-3.2.5\bin\mvn +mvn deploy -Dmaven.test.skip=true + pause \ No newline at end of file diff --git a/modules/kdayun-demo/maveninstall.bat b/modules/kdayun-demo/maveninstall.bat index 54831e6..9197fa0 100644 --- a/modules/kdayun-demo/maveninstall.bat +++ b/modules/kdayun-demo/maveninstall.bat @@ -1 +1 @@ -%mavenpath% install -Dmaven.test.skip=true +%mavenpath% install -Dmaven.test.skip=true diff --git a/modules/kdayun-demo/pom.xml b/modules/kdayun-demo/pom.xml index 30cd112..cc16a03 100644 --- a/modules/kdayun-demo/pom.xml +++ b/modules/kdayun-demo/pom.xml @@ -1,122 +1,122 @@ - - - - 4.0.0 - - kdayun-root - com.kdayun - 5.0.0 - ../.. - - 1.0.1 - kdayun-demo - kdayun-demo - - http://www.kdayun.com - 快搭科技(上海)有限公司-企业微信库 - - - com.kdayun - kdayun-core - ${base.version} - - - - UTF-8 - - - - kdayun-releases - http://develop.kdayun.com:8081/repository/maven-local/ - - - kdayun-snapshots - http://develop.kdayun.com:8081/repository/maven-snapshots/ - - - - - - maven-compiler-plugin - - ${jdk.version} - ${jdk.version} - UTF-8 - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - lib/ - - - - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - true - true - - - - maven-resources-plugin - - - copy-xmls - process-sources - - copy-resources - - - ${basedir}/target/classes - - - ${basedir}/src/main/java - - **/*.xml - - - - - - - - - - - - jdk-${jdk.version} - - - true - ${jdk.version} - - - ${jdk.version} - ${jdk.version} - ${jdk.version} - - - - - + + + + 4.0.0 + + kdayun-root + com.kdayun + 5.0.0 + ../.. + + 1.0.1 + kdayun-demo + kdayun-demo + + http://www.kdayun.com + 快搭科技(上海)有限公司-企业微信库 + + + com.kdayun + kdayun-core + ${base.version} + + + + UTF-8 + + + + kdayun-releases + http://develop.kdayun.com:8081/repository/maven-local/ + + + kdayun-snapshots + http://develop.kdayun.com:8081/repository/maven-snapshots/ + + + + + + maven-compiler-plugin + + ${jdk.version} + ${jdk.version} + UTF-8 + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + lib/ + + + + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + true + true + + + + maven-resources-plugin + + + copy-xmls + process-sources + + copy-resources + + + ${basedir}/target/classes + + + ${basedir}/src/main/java + + **/*.xml + + + + + + + + + + + + jdk-${jdk.version} + + + true + ${jdk.version} + + + ${jdk.version} + ${jdk.version} + ${jdk.version} + + + + + diff --git a/modules/kdayun-demo/src/main/java/META-INF/MANIFEST.MF b/modules/kdayun-demo/src/main/java/META-INF/MANIFEST.MF index 254272e..5e94951 100644 --- a/modules/kdayun-demo/src/main/java/META-INF/MANIFEST.MF +++ b/modules/kdayun-demo/src/main/java/META-INF/MANIFEST.MF @@ -1,3 +1,3 @@ -Manifest-Version: 1.0 -Class-Path: - +Manifest-Version: 1.0 +Class-Path: + diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/controller/DemoController.java b/modules/kdayun-demo/src/main/java/com/kdayun/demo/controller/DemoController.java index 2a17db2..d0d4653 100644 --- a/modules/kdayun-demo/src/main/java/com/kdayun/demo/controller/DemoController.java +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/controller/DemoController.java @@ -1,39 +1,37 @@ -package com.kdayun.demo.controller; - -import java.util.Date; -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -import com.kdayun.demo.service.DemoService; -import com.kdayun.z1.core.base.BaseController; -import com.kdayun.z1.core.base.RetVo; -import com.kdayun.z1.core.base.RetVo.retstate; - -/** - * 企业微信 - * - * @author gk - * - */ -@Controller -@RequestMapping("demo") -public class DemoController extends BaseController { - - @Autowired - DemoService demoService; - - /** - * 上传资源文件 返回文件资源的路径 一般用于识别的文件图片识别 - */ - @RequestMapping(value = "hello", method = RequestMethod.GET) - public RetVo upload(HttpServletRequest request, HttpServletResponse response) throws Exception { - return RetVo.getNewInstance(retstate.OK, "hello", null); - } -} +package com.kdayun.demo.controller; + + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +import com.kdayun.demo.service.DemoService; +import com.kdayun.z1.core.base.BaseController; +import com.kdayun.z1.core.base.RetVo; +import com.kdayun.z1.core.base.RetVo.retstate; + +/** + * 演示Contoller + * + * @author gk + * + */ +@Controller +@RequestMapping("demo") +public class DemoController extends BaseController { + + @Autowired + DemoService demoService; + + /** + * 上传资源文件 返回文件资源的路径 一般用于识别的文件图片识别 + */ + @RequestMapping(value = "hello", method = RequestMethod.GET) + public RetVo upload(HttpServletRequest request, HttpServletResponse response) throws Exception { + return RetVo.getNewInstance(retstate.OK, "hello", null); + } +} diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/CoreRole.java b/modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/CoreRole.java new file mode 100644 index 0000000..cadb9b9 --- /dev/null +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/CoreRole.java @@ -0,0 +1,82 @@ +package com.kdayun.demo.entity; + +import java.math.BigDecimal; + +import com.kdayun.z1.core.base.BaseEntity; + +public class CoreRole extends BaseEntity{ + /** + * + */ + private static final long serialVersionUID = 1L; + + private String RWID; + + private String OBJCODE; + + private String OBJNAME; + + private String DES; + + private Integer VISIBILITY; + + private Integer ROLELEV; + + private BigDecimal SYS_SORT; + + public String getRWID() { + return RWID; + } + + public void setRWID(String RWID) { + this.RWID = RWID == null ? null : RWID.trim(); + } + + public String getOBJCODE() { + return OBJCODE; + } + + public void setOBJCODE(String OBJCODE) { + this.OBJCODE = OBJCODE == null ? null : OBJCODE.trim(); + } + + public String getOBJNAME() { + return OBJNAME; + } + + public void setOBJNAME(String OBJNAME) { + this.OBJNAME = OBJNAME == null ? null : OBJNAME.trim(); + } + + public String getDES() { + return DES; + } + + public void setDES(String DES) { + this.DES = DES == null ? null : DES.trim(); + } + + public Integer getVISIBILITY() { + return VISIBILITY; + } + + public void setVISIBILITY(Integer VISIBILITY) { + this.VISIBILITY = VISIBILITY; + } + + public Integer getROLELEV() { + return ROLELEV; + } + + public void setROLELEV(Integer ROLELEV) { + this.ROLELEV = ROLELEV; + } + + public BigDecimal getSYS_SORT() { + return SYS_SORT; + } + + public void setSYS_SORT(BigDecimal SYS_SORT) { + this.SYS_SORT = SYS_SORT; + } +} \ No newline at end of file diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.java b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.java new file mode 100644 index 0000000..49eeb02 --- /dev/null +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.java @@ -0,0 +1,20 @@ +package com.kdayun.demo.mapper; + +import org.springframework.stereotype.Repository; + +import com.kdayun.demo.entity.CoreRole; + +@Repository +public interface CoreRoleMapper { + int deleteByPrimaryKey(String RWID); + + int insert(CoreRole record); + + int insertSelective(CoreRole record); + + CoreRole selectByPrimaryKey(String RWID); + + int updateByPrimaryKeySelective(CoreRole record); + + int updateByPrimaryKey(CoreRole record); +} \ No newline at end of file diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.xml b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.xml new file mode 100644 index 0000000..3e07bd4 --- /dev/null +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.xml @@ -0,0 +1,1021 @@ + + + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + + + + + + + + + + + RWID, OBJCODE, OBJNAME, DES, VISIBILITY, ROLELEV, SYS_SORT + + + + delete from core_role + where RWID = #{RWID,jdbcType=VARCHAR} + + + insert into core_role (RWID, OBJCODE, OBJNAME, + DES, VISIBILITY, ROLELEV, + SYS_SORT) + values (#{RWID,jdbcType=VARCHAR}, #{OBJCODE,jdbcType=VARCHAR}, #{OBJNAME,jdbcType=VARCHAR}, + #{DES,jdbcType=VARCHAR}, #{VISIBILITY,jdbcType=INTEGER}, #{ROLELEV,jdbcType=INTEGER}, + #{SYS_SORT,jdbcType=DECIMAL}) + + + insert into core_role + + + RWID, + + + OBJCODE, + + + OBJNAME, + + + DES, + + + VISIBILITY, + + + ROLELEV, + + + SYS_SORT, + + + + + #{RWID,jdbcType=VARCHAR}, + + + #{OBJCODE,jdbcType=VARCHAR}, + + + #{OBJNAME,jdbcType=VARCHAR}, + + + #{DES,jdbcType=VARCHAR}, + + + #{VISIBILITY,jdbcType=INTEGER}, + + + #{ROLELEV,jdbcType=INTEGER}, + + + #{SYS_SORT,jdbcType=DECIMAL}, + + + + + update core_role + + + OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + + + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + + + DES = #{DES,jdbcType=VARCHAR}, + + + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + + + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + + + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL}, + + + where RWID = #{RWID,jdbcType=VARCHAR} + + + update core_role + set OBJCODE = #{OBJCODE,jdbcType=VARCHAR}, + OBJNAME = #{OBJNAME,jdbcType=VARCHAR}, + DES = #{DES,jdbcType=VARCHAR}, + VISIBILITY = #{VISIBILITY,jdbcType=INTEGER}, + ROLELEV = #{ROLELEV,jdbcType=INTEGER}, + SYS_SORT = #{SYS_SORT,jdbcType=DECIMAL} + where RWID = #{RWID,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/DemoService.java b/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/DemoService.java index a1bac40..96fe232 100644 --- a/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/DemoService.java +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/DemoService.java @@ -1,10 +1,10 @@ -package com.kdayun.demo.service; - -public interface DemoService { - - /** - * 获取百度云的访问AccessToken - */ - String hello(); - -} +package com.kdayun.demo.service; + +public interface DemoService { + + /** + * 获取百度云的访问AccessToken + */ + String hello(); + +} diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/impl/DemoServiceImpl.java b/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/impl/DemoServiceImpl.java index cdf739b..7587e02 100644 --- a/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/impl/DemoServiceImpl.java +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/service/impl/DemoServiceImpl.java @@ -1,17 +1,17 @@ -package com.kdayun.demo.service.impl; - -import org.springframework.stereotype.Service; - -import com.kdayun.demo.service.DemoService; - -@Service -public class DemoServiceImpl implements DemoService { - - @Override - public String hello() { - - return "hello"; - } - - -} +package com.kdayun.demo.service.impl; + +import org.springframework.stereotype.Service; + +import com.kdayun.demo.service.DemoService; + +@Service +public class DemoServiceImpl implements DemoService { + + @Override + public String hello() { + + return "hello"; + } + + +} diff --git a/modules/kdayun-demo/src/main/resources/generatorConfig.xml b/modules/kdayun-demo/src/main/resources/generatorConfig.xml new file mode 100644 index 0000000..c2e278e --- /dev/null +++ b/modules/kdayun-demo/src/main/resources/generatorConfig.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/modules/kdayun-demo/src/test/java/com/kdayun/report/AppTest.java b/modules/kdayun-demo/src/test/java/com/kdayun/report/AppTest.java index 8c0736e..831a84b 100644 --- a/modules/kdayun-demo/src/test/java/com/kdayun/report/AppTest.java +++ b/modules/kdayun-demo/src/test/java/com/kdayun/report/AppTest.java @@ -1,24 +1,24 @@ -package com.kdayun.report; - -import static org.junit.Assert.assertTrue; - -import org.junit.Test; - -/** - * - * @package com.kdayun.demo - * @author qjb - * @email qjb@kdayun.com.cn - * @date 2019年3月26日下午5:05:43 - * @company 快搭科技(上海)有限公司 - * @desc - */ -public class AppTest { - /** - * Rigorous Test :-) - */ - @Test - public void shouldAnswerWithTrue() { - assertTrue(true); - } -} +package com.kdayun.report; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * + * @package com.kdayun.demo + * @author qjb + * @email qjb@kdayun.com.cn + * @date 2019年3月26日下午5:05:43 + * @company 快搭科技(上海)有限公司 + * @desc + */ +public class AppTest { + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() { + assertTrue(true); + } +}