diff --git a/modules/kdayun-app/.classpath b/modules/kdayun-app/.classpath index aca5799..c0a1ac0 100644 --- a/modules/kdayun-app/.classpath +++ b/modules/kdayun-app/.classpath @@ -18,7 +18,6 @@ - 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/DemoEntity.java similarity index 92% rename from modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/CoreRole.java rename to modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/DemoEntity.java index cadb9b9..c0ca053 100644 --- a/modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/CoreRole.java +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/entity/DemoEntity.java @@ -4,7 +4,7 @@ import java.math.BigDecimal; import com.kdayun.z1.core.base.BaseEntity; -public class CoreRole extends BaseEntity{ +public class DemoEntity extends BaseEntity{ /** * */ 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 deleted file mode 100644 index 49eeb02..0000000 --- a/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.java +++ /dev/null @@ -1,20 +0,0 @@ -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 deleted file mode 100644 index 3e07bd4..0000000 --- a/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/CoreRoleMapper.xml +++ /dev/null @@ -1,1021 +0,0 @@ - - - - - - - - - - - - - - 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/mapper/DemoMapper.java b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/DemoMapper.java new file mode 100644 index 0000000..da033c4 --- /dev/null +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/DemoMapper.java @@ -0,0 +1,20 @@ +package com.kdayun.demo.mapper; + +import org.springframework.stereotype.Repository; + +import com.kdayun.demo.entity.DemoEntity; + +@Repository +public interface DemoMapper { + int deleteByPrimaryKey(String RWID); + + int insert(DemoMapper record); + + int insertSelective(DemoMapper record); + + DemoMapper selectByPrimaryKey(String RWID); + + int updateByPrimaryKeySelective(DemoMapper record); + + int updateByPrimaryKey(DemoMapper record); +} \ No newline at end of file diff --git a/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/DemoMapper.xml b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/DemoMapper.xml new file mode 100644 index 0000000..f602a18 --- /dev/null +++ b/modules/kdayun-demo/src/main/java/com/kdayun/demo/mapper/DemoMapper.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + 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