给部分表增加启用状态和排序字段,完善对应接口

This commit is contained in:
季圣华
2022-08-26 01:52:05 +08:00
parent 8906294c97
commit f8e542cbcc
21 changed files with 333 additions and 42 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>