diff --git a/DataModelDiagram/zheng.pdm b/DataModelDiagram/zheng.pdm index 1f9eb163..38746668 100644 --- a/DataModelDiagram/zheng.pdm +++ b/DataModelDiagram/zheng.pdm @@ -1,5 +1,5 @@ - + diff --git a/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleVOMapper.java b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleVOMapper.java new file mode 100644 index 00000000..2af3d93a --- /dev/null +++ b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleVOMapper.java @@ -0,0 +1,9 @@ +package com.zheng.cms.dao.mapper; + +public interface CmsArticleVOMapper { + + int up(Integer articleId); + + int down(Integer articleId); + +} \ No newline at end of file diff --git a/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleVOMapper.xml b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleVOMapper.xml new file mode 100644 index 00000000..605d2eff --- /dev/null +++ b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleVOMapper.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryVOMapper.java b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryVOMapper.java new file mode 100644 index 00000000..52d30d90 --- /dev/null +++ b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryVOMapper.java @@ -0,0 +1,9 @@ +package com.zheng.cms.dao.mapper; + +public interface CmsCategoryVOMapper { + + int up(Integer articleId); + + int down(Integer articleId); + +} \ No newline at end of file diff --git a/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagVOMapper.java b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagVOMapper.java new file mode 100644 index 00000000..2045516d --- /dev/null +++ b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagVOMapper.java @@ -0,0 +1,9 @@ +package com.zheng.cms.dao.mapper; + +public interface CmsTagVOMapper { + + int up(Integer articleId); + + int down(Integer articleId); + +} \ No newline at end of file diff --git a/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/UserVOMapper.xml b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/UserVOMapper.xml index 0bd97793..17e51cfc 100644 --- a/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/UserVOMapper.xml +++ b/cms/cms-service/src/main/java/com/zheng/cms/dao/mapper/UserVOMapper.xml @@ -1,10 +1,7 @@  - - - - + @@ -35,5 +32,8 @@ where u.id=#{id,jdbcType=INTEGER} + + + \ No newline at end of file