修改 行政区添加接口
行政区删除接口id传入方式
行政区级别枚举类 添加省
2个文件已修改
16 ■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/util/DistrictLevel.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/util/DistrictLevel.java
@@ -15,6 +15,7 @@
 */
public enum DistrictLevel implements IEnum {
    Province((byte)0, "省"),
    City((byte)1, "市"),
    County((byte)2, "县"),
    Town((byte)3,  "镇"),
@@ -52,7 +53,9 @@
    }
    public static DistrictLevel get(Byte code){
        if(code.byteValue() == City.code.byteValue()){
        if(code.byteValue() == Province.code.byteValue()) {
            return Province;
        }else if(code.byteValue() == City.code.byteValue()){
            return City ;
        }else if(code.byteValue() == County.code.byteValue()){
            return County ;
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java
@@ -43,6 +43,7 @@
    /**
     * 客户端请求得到所有行政区划级别数据
     *
     * @return 所有行政区划级别数据
     */
    @Operation(summary = "行政区划级别", description = "返回所有行政区划级别数据")
@@ -62,6 +63,7 @@
    /**
     * 客户端请求得到所有行政区数据
     *
     * @return 所有行政区数据
     */
    @Operation(summary = "获得所有行政区", description = "返回所有行政区数据")
@@ -82,6 +84,7 @@
    /**
     * 得到一个行政区数据
     *
     * @return 一个行政区数据
     */
    @Operation(summary = "一个行政区", description = "得到一个行政区数据")
@@ -101,6 +104,7 @@
    /**
     * 保存行政区
     *
     * @param vo 保存行政区form表单对象
     * @return 是否成功
     */
@@ -143,6 +147,7 @@
    /**
     * 编辑修改行政区
     *
     * @param vo 保存行政区form表单对象
     * @return 是否成功
     */
@@ -179,6 +184,7 @@
    /**
     * 删除行政区
     *
     * @param id 行政区ID
     * @return 是否成功
     */
@@ -191,7 +197,7 @@
                            schema = @Schema(implementation = Boolean.class))}
            )
    })
    @GetMapping(path = "delete", consumes = MediaType.TEXT_PLAIN_VALUE)
    @GetMapping(path = "delete")
    @SsoAop()
    public BaseResponse<Boolean> delete(Long id){
        if(id == null){
@@ -213,6 +219,7 @@
    /**
     * 根据级别获取行政区划列表
     *
     * @param id
     * @return
     */
@@ -241,6 +248,7 @@
    /**
     * 根据父ID获取行政区划列表
     *
     * @param supperId
     * @return
     */
@@ -269,6 +277,7 @@
    /**
     * 获取三级行政区划
     *
     * @return 县镇村三级行政区划
     */
    @GetMapping(path = "/three")