85d87b7a 张雷

奥体项目实时数据接口开发

1 个父辈 98eca395
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
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!