数据库第二次大作业boostore
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

91 wiersze
2.4 KiB

<!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">&nbsp;package cn.edu.ecnu.stu.bookstore.mapper;
&nbsp;
&nbsp;import cn.edu.ecnu.stu.bookstore.pojo.Store;
&nbsp;import org.apache.ibatis.annotations.Insert;
&nbsp;import org.apache.ibatis.annotations.Mapper;
&nbsp;import org.apache.ibatis.annotations.Param;
&nbsp;import org.apache.ibatis.annotations.Select;
&nbsp;
&nbsp;@Mapper
&nbsp;public interface StoreMapper {
&nbsp;
&nbsp; @Select(&quot;select count(*) from t_store where store_id = #{store_id}&quot;)
&nbsp; int checkStoreExist(@Param(&quot;store_id&quot;) String storeId);
&nbsp;
&nbsp; @Select(&quot;select count(*) from t_store where store_id = #{store_id} and store_id = #{store_id}&quot;)
&nbsp; int checkStore(@Param(&quot;seller_id&quot;) Integer sellerId, @Param(&quot;store_id&quot;) String storeId);
&nbsp;
&nbsp; @Insert(&quot;insert into t_store(store_id, seller_id) values(#{store.storeId}, #{store.sellerId})&quot;)
&nbsp; int insert(@Param(&quot;store&quot;) Store store);
&nbsp;
&nbsp; @Select(&quot;select store_id, seller_id, create_time from t_store where store_id = #{storeId}&quot;)
&nbsp; Store getStoreById(@Param(&quot;storeId&quot;) String storeId);
&nbsp;
&nbsp;}
</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>