|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html id="htmlId">
|
|
<head>
|
|
<title>Coverage Report > StoreMapper</title>
|
|
<style type="text/css">
|
|
@import "../../css/coverage.css";
|
|
@import "../../css/idea.min.css";
|
|
</style>
|
|
<script type="text/javascript" src="../../js/highlight.min.js"></script>
|
|
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="content">
|
|
<div class="breadCrumbs">
|
|
Current scope: <a href="../../index.html">all classes</a>
|
|
<span class="separator">|</span>
|
|
<a href="../index.html">cn.edu.ecnu.stu.bookstore.mapper</a>
|
|
</div>
|
|
|
|
<h1>Coverage Summary for Class: StoreMapper (cn.edu.ecnu.stu.bookstore.mapper)</h1>
|
|
|
|
<table class="coverageStats">
|
|
<tr>
|
|
<th class="name">Class</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="name">StoreMapper</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<pre>
|
|
<code class="sourceCode" id="sourceCode"> package cn.edu.ecnu.stu.bookstore.mapper;
|
|
|
|
import cn.edu.ecnu.stu.bookstore.pojo.Store;
|
|
import org.apache.ibatis.annotations.Insert;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
@Mapper
|
|
public interface StoreMapper {
|
|
|
|
@Select("select count(*) from t_store where store_id = #{store_id}")
|
|
int checkStoreExist(@Param("store_id") String storeId);
|
|
|
|
@Select("select count(*) from t_store where store_id = #{store_id} and store_id = #{store_id}")
|
|
int checkStore(@Param("seller_id") Integer sellerId, @Param("store_id") String storeId);
|
|
|
|
@Insert("insert into t_store(store_id, seller_id) values(#{store.storeId}, #{store.sellerId})")
|
|
int insert(@Param("store") Store store);
|
|
|
|
@Select("select store_id, seller_id, create_time from t_store where store_id = #{storeId}")
|
|
Store getStoreById(@Param("storeId") String storeId);
|
|
|
|
}
|
|
</code>
|
|
</pre>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
(function() {
|
|
var msie = false, msie9 = false;
|
|
/*@cc_on
|
|
msie = true;
|
|
@if (@_jscript_version >= 9)
|
|
msie9 = true;
|
|
@end
|
|
@*/
|
|
|
|
if (!msie || msie && msie9) {
|
|
hljs.highlightAll()
|
|
hljs.initLineNumbersOnLoad();
|
|
}
|
|
})();
|
|
</script>
|
|
|
|
<div class="footer">
|
|
|
|
<div style="float:right;">generated on 2023-12-12 18:32</div>
|
|
</div>
|
|
</body>
|
|
</html>
|