区域管理

This commit is contained in:
大米 2025-02-06 17:35:19 +08:00
parent 3f44dae2e6
commit a7487dcafa
2 changed files with 7 additions and 4 deletions

View File

@ -11,4 +11,9 @@ public class BaseAreaQuery extends PageBaseQuery {
* 区域编码or 名称
*/
private String areaCodeOrName;
/**
* 状态 状态 0-无效 1-有效
*/
private Integer areaState;
}

View File

@ -6,13 +6,11 @@
<if test="query.areaCodeOrName!=null and query.areaCodeOrName!=''">
and (area_code =#{query.areaCodeOrName} or area_name = #{query.areaCodeOrName} )
</if>
<if test="query.areaState!=null and query.areaState!=''">
and area_state=#{query.areaState}
</if>
</sql>
<select id="getList" resultType="com.nflg.mobilebroken.common.pojo.vo.TBaseAreaVO">
select * from t_base_area where 1=1
select * from t_base_area where area_state=1
<if test="query.areaCodeOrName==null or query.areaCodeOrName==''">
and parent_area_row_id=0
</if>