给部分表增加启用状态和排序字段,完善对应接口
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
and remark like #{bindRemark}
|
||||
</if>
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
order by sort asc, id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
and dep.remark like #{bindRemark}
|
||||
</if>
|
||||
and ifnull(dep.delete_Flag,'0') !='1'
|
||||
order by dep.sort asc
|
||||
order by dep.sort asc, dep.id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
and remark like #{bindRemark}
|
||||
</if>
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
order by sort asc, id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
and type=#{type}
|
||||
</if>
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
order by sort asc, id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
|
||||
@@ -10,9 +10,10 @@
|
||||
<bind name="bindName" value="'%'+name+'%'"/>
|
||||
and name like #{bindName}
|
||||
</if>
|
||||
order by sort asc, id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>;
|
||||
</if>
|
||||
</select>
|
||||
<select id="countsByRole" resultType="java.lang.Long">
|
||||
SELECT
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
and telephone like #{bindTelephone}
|
||||
</if>
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
order by id desc
|
||||
order by sort asc, id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
and name like #{bindName}
|
||||
</if>
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
order by id desc
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user