提交 163b1c42 authored 作者: zgy's avatar zgy

修改商店排序

上级 00b4a2c8
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/com.mashape.unirest/unirest-java --> <!-- https://mvnrepository.com/artifact/com.mashape.unirest/unirest-java -->
<dependency> <dependency>
<groupId>com.mashape.unirest</groupId> <groupId>com.mashape.unirest</groupId>
......
...@@ -40,16 +40,16 @@ ...@@ -40,16 +40,16 @@
select select
* *
from tb_cf_store from tb_cf_store
WHERE 1=1 and enable_flag!=0 WHERE 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
AND name LIKE concat('%',#{name},'%') AND name LIKE concat('%',#{name},'%')
</if> </if>
<choose> <choose>
<when test="sidx != null and sidx.trim() != ''"> <when test="sidx != null and sidx.trim() != ''">
order by ${sidx} ${order} order by ${sidx} ${order},store_code asc
</when> </when>
<otherwise> <otherwise>
order by cast(store_code as SIGNED) order by cast(store_code as SIGNED),store_code asc
</otherwise> </otherwise>
</choose> </choose>
<if test="offset != null and limit != null"> <if test="offset != null and limit != null">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论