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

修改商店排序

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