修复已知问题

master
Bosen 2021-08-07 18:40:49 +08:00
parent 770d82c996
commit 05fc0708bf
1 changed files with 4 additions and 4 deletions

View File

@ -34,15 +34,15 @@
</select>
<select id="findRand" resultType="com.example.jieyue.common.entity.SysGoods">
select * from sys_goods order by rand() limit #{num};
select * from sys_goods where state = 1 order by rand() limit #{num};
</select>
<select id="findAllDesc" resultType="com.example.jieyue.common.entity.SysGoods">
select * from sys_goods order by id desc limit #{num};
select * from sys_goods where state = 1 order by id desc limit #{num};
</select>
<select id="findAllEsc" resultType="com.example.jieyue.common.entity.SysGoods">
select * from sys_goods limit #{num};
select * from sys_goods where state = 1 limit #{num};
</select>
<select id="findById" resultType="com.example.jieyue.common.entity.SysGoods">
@ -50,7 +50,7 @@
</select>
<select id="search" resultType="com.example.jieyue.common.entity.SysGoods">
select * from sys_goods where `name` like concat(concat('%',#{keyword}),'%') or `describe` like concat(concat('%',#{keyword}),'%');
select * from sys_goods where `name` and state = 1 like concat(concat('%',#{keyword}),'%') or `describe` like concat(concat('%',#{keyword}),'%');
</select>
<select id="findByMt" resultType="com.example.jieyue.common.entity.SysGoods">