Selaa lähdekoodia

删除 GeoScope model

reghao 1 vuosi sitten
vanhempi
commit
1d90ab15bc

+ 0 - 15
content/content-service/src/main/java/cn/reghao/tnb/content/app/geo/db/mapper/GeoScopeMapper.java

@@ -1,15 +0,0 @@
-package cn.reghao.tnb.content.app.geo.db.mapper;
-
-import cn.reghao.jutil.jdk.db.BaseMapper;
-import cn.reghao.tnb.content.app.geo.model.po.GeoScope;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-
-/**
- * @author reghao
- * @date 2023-09-11 18:09:02
- */
-@Mapper
-public interface GeoScopeMapper extends BaseMapper<GeoScope> {
-    GeoScope findByName(@Param("name") String name);
-}

+ 0 - 37
content/content-service/src/main/java/cn/reghao/tnb/content/app/geo/model/po/GeoScope.java

@@ -1,37 +0,0 @@
-package cn.reghao.tnb.content.app.geo.model.po;
-
-import lombok.AllArgsConstructor;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-
-/**
- * @author reghao
- * @date 2023-09-11 17:18:31
- */
-@NoArgsConstructor
-@AllArgsConstructor
-@Setter
-@Getter
-public class GeoScope implements Serializable {
-    private static final long serialVersionUID = 1L;
-
-    private int id;
-    private int pid;
-    private String name;
-    // 起始经度
-    private BigDecimal lngEast;
-    private BigDecimal lngWest;
-    // 起始纬度
-    private BigDecimal latNorth;
-    private BigDecimal latSouth;
-
-    public GeoScope(int id, int pid, String name) {
-        this.id = id;
-        this.pid = pid;
-        this.name = name;
-    }
-}

+ 0 - 30
content/content-service/src/main/resources/mapper/geo/GeoScopeMapper.xml

@@ -1,30 +0,0 @@
-<?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="cn.reghao.tnb.content.app.geo.db.mapper.GeoScopeMapper">
-    <insert id="save" useGeneratedKeys="true" keyProperty="id">
-        insert into geo_scope
-        (`id`,`pid`,`name`,`lng_east`,`lng_west`,`lat_north`,`lat_south`)
-        values 
-        (#{id},#{pid},#{name},#{lngEast},#{lngWest},#{latNorth},#{latSouth})
-    </insert>
-    <insert id="saveAll" useGeneratedKeys="true" keyProperty="id">
-        insert ignore into geo_scope
-        (`id`,`pid`,`name`,`lng_east`,`lng_west`,`lat_north`,`lat_south`)
-        values
-        <foreach collection="list" item="item" index="index" separator=",">
-            (#{item.id},#{item.pid},#{item.name},#{item.lngEast},#{item.lngWest},#{item.latNorth},#{item.latSouth})
-        </foreach>
-    </insert>
-
-    <select id="findById" resultType="cn.reghao.tnb.content.app.geo.model.po.GeoScope">
-        select *
-        from geo_scope
-        where `id`=#{id}
-    </select>
-    <select id="findByName" resultType="cn.reghao.tnb.content.app.geo.model.po.GeoScope">
-        select *
-        from geo_scope
-        where `name` like concat('%',#{name},'%')
-    </select>
-</mapper>