区域添加字段:类别(国内、国外),字典id

This commit is contained in:
曹鹏飞 2026-01-20 16:00:47 +08:00
parent b33d1c393d
commit 82aa17f77a
5 changed files with 27 additions and 3 deletions

View File

@ -3,6 +3,7 @@ package com.nflg.mobilebroken.admin.pojo.dto;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
*
@ -17,4 +18,10 @@ public class BaseAreaEditDTO {
@NotBlank(message = "区域名称不能为空")
private String areaName;
/**
* 类别国内国外字典id
*/
@NotNull(message = "类别不能为空")
private Long categoryId;
}

View File

@ -15,5 +15,5 @@ public class BaseAreaQuery extends PageBaseQuery {
/**
* 状态 状态 0-无效 1-有效
*/
private Integer areaState;
private Byte areaState;
}

View File

@ -79,6 +79,16 @@ public class TBaseAreaVO implements Serializable {
*/
private LocalDateTime dataModifyTime;
/**
* 类别国内国外字典id
*/
private Long categoryId;
/**
* 类别名称
*/
private String categoryName;
/**
* 子级列表
*/

View File

@ -85,4 +85,9 @@ public class TBaseArea implements Serializable {
* 是否删除0- 1-
*/
private Integer delIs;
/**
* 类别国内国外字典id
*/
private Long categoryId;
}

View File

@ -13,9 +13,11 @@
</sql>
<select id="getList" resultType="com.nflg.mobilebroken.common.pojo.vo.TBaseAreaVO">
select * from t_base_area where del_is=0
select a.*,di.name as 'category_name'
from t_base_area a where del_is=0
left join dictionary_item di on a.category_id=di.id
<if test="(query.areaCodeOrName==null or query.areaCodeOrName=='') and query.areaState==null ">
and parent_area_row_id=0
and a.parent_area_row_id=0
</if>
<include refid="whr" />