From 9548ade35202b2b452b6767130bc1000c0bba225 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 29 Feb 2024 14:56:03 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=8C=BA=E5=9F=9F=E5=9C=B0=E5=9B=BE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operational/config/entity/AreaMapEntity.java | 26 ++++++++++++++++++++++ .../config/controller/AreaMapController.java | 21 +++++++++++++++++ .../operational/config/mapper/AreaMapMapper.java | 13 +++++++++++ .../operational/config/mapper/AreaMapMapper.xml | 5 +++++ .../operational/config/service/AreaMapService.java | 12 ++++++++++ .../config/service/impl/AreaMapServiceImpl.java | 18 +++++++++++++++ 6 files changed, 95 insertions(+) create mode 100644 hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/config/entity/AreaMapEntity.java create mode 100644 hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/AreaMapController.java create mode 100644 hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.java create mode 100644 hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.xml create mode 100644 hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/AreaMapService.java create mode 100644 hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/AreaMapServiceImpl.java diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/config/entity/AreaMapEntity.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/config/entity/AreaMapEntity.java new file mode 100644 index 0000000..4deb318 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/config/entity/AreaMapEntity.java @@ -0,0 +1,26 @@ +package com.hnac.hzims.operational.config.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.NoArgsConstructor; +import org.springblade.core.tenant.mp.TenantEntity; + +/** + * @author ysj + */ +@ApiModel("区域地图配置实体类") +@AllArgsConstructor +@NoArgsConstructor +@Builder +@TableName("hzims_area_map_config") +public class AreaMapEntity extends TenantEntity { + + @ApiModelProperty("区域机构ID") + private Long areaId; + + @ApiModelProperty("地图编码") + private String mapCode; +} \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/AreaMapController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/AreaMapController.java new file mode 100644 index 0000000..8b4cd70 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/AreaMapController.java @@ -0,0 +1,21 @@ +package com.hnac.hzims.operational.config.controller; + +import com.hnac.hzims.operational.config.service.AreaMapService; +import io.swagger.annotations.Api; +import lombok.AllArgsConstructor; +import org.springblade.core.boot.ctrl.BladeController; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + + +/** + * @author ysj + */ +@RestController +@AllArgsConstructor +@Api(value = "区域地图配置",tags = "区域地图配置") +@RequestMapping("/areaMap") +public class AreaMapController extends BladeController { + + private AreaMapService areaMapService; +} \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.java new file mode 100644 index 0000000..99072c1 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.config.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.config.entity.AreaMapEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * @author ysj + */ +@Mapper +public interface AreaMapMapper extends BaseMapper { + +} \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.xml new file mode 100644 index 0000000..185a1fa --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/AreaMapService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/AreaMapService.java new file mode 100644 index 0000000..287cc24 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/AreaMapService.java @@ -0,0 +1,12 @@ +package com.hnac.hzims.operational.config.service; + + +import com.hnac.hzims.operational.config.entity.AreaMapEntity; +import org.springblade.core.mp.base.BaseService; + +/** + * @author ysj + */ +public interface AreaMapService extends BaseService { + +} \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/AreaMapServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/AreaMapServiceImpl.java new file mode 100644 index 0000000..f829010 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/AreaMapServiceImpl.java @@ -0,0 +1,18 @@ +package com.hnac.hzims.operational.config.service.impl; + +import com.hnac.hzims.operational.config.entity.AreaMapEntity; +import com.hnac.hzims.operational.config.mapper.AreaMapMapper; +import com.hnac.hzims.operational.config.service.AreaMapService; +import lombok.RequiredArgsConstructor; +import org.springblade.core.mp.base.BaseServiceImpl; +import org.springframework.stereotype.Service; + + +/** + * @author ysj + */ +@Service +@RequiredArgsConstructor +public class AreaMapServiceImpl extends BaseServiceImpl implements AreaMapService { + +} \ No newline at end of file