Browse Source

#区域地图配置功能

zhongwei
yang_shj 9 months ago
parent
commit
9548ade352
  1. 26
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/config/entity/AreaMapEntity.java
  2. 21
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/AreaMapController.java
  3. 13
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.java
  4. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.xml
  5. 12
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/AreaMapService.java
  6. 18
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/AreaMapServiceImpl.java

26
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;
}

21
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;
}

13
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<AreaMapEntity> {
}

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/AreaMapMapper.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.hnac.hzims.operational.config.mapper.AreaMapMapper">
</mapper>

12
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<AreaMapEntity> {
}

18
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<AreaMapMapper, AreaMapEntity> implements AreaMapService {
}
Loading…
Cancel
Save