区域管理
This commit is contained in:
parent
3f44dae2e6
commit
a7487dcafa
|
|
@ -11,4 +11,9 @@ public class BaseAreaQuery extends PageBaseQuery {
|
|||
* 区域编码or 名称
|
||||
*/
|
||||
private String areaCodeOrName;
|
||||
|
||||
/**
|
||||
* 状态 状态 0-无效 1-有效
|
||||
*/
|
||||
private Integer areaState;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue