奥体项目实时数据接口开发
正在显示
3 个修改的文件
包含
7 行增加
和
0 行删除
1 | package com.skua.modules.business.mapper; | 1 | package com.skua.modules.business.mapper; |
2 | 2 | ||
3 | import com.skua.modules.business.entity.WhatStructData; | 3 | import com.skua.modules.business.entity.WhatStructData; |
4 | import org.apache.ibatis.annotations.Param; | ||
4 | 5 | ||
5 | import java.util.List; | 6 | import java.util.List; |
6 | 7 | ||
... | @@ -10,4 +11,6 @@ import java.util.List; | ... | @@ -10,4 +11,6 @@ import java.util.List; |
10 | public interface WhatStructDataMapper { | 11 | public interface WhatStructDataMapper { |
11 | 12 | ||
12 | List<WhatStructData> getList(); | 13 | List<WhatStructData> getList(); |
14 | |||
15 | WhatStructData getOneById(@Param("id") String id); | ||
13 | } | 16 | } | ... | ... |
... | @@ -6,4 +6,8 @@ | ... | @@ -6,4 +6,8 @@ |
6 | select * from what_struct_data | 6 | select * from what_struct_data |
7 | </select> | 7 | </select> |
8 | 8 | ||
9 | <select id="getOneById" resultType="com.skua.modules.business.entity.WhatStructData"> | ||
10 | select * from what_struct_data where id = #{id} limit 1 | ||
11 | </select> | ||
12 | |||
9 | </mapper> | 13 | </mapper> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
请 注册 或 登录 后发表评论