yang_shj
9 months ago
6 changed files with 95 additions and 0 deletions
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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> { |
||||
|
||||
} |
@ -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> |
@ -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> { |
||||
|
||||
} |
@ -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…
Reference in new issue