Ver Fonte

提交平安区域数据表供后期编码转换

hxl13994548489 há 2 anos atrás
pai
commit
aa79e57574

+ 14 - 0
src/main/java/com/ydtech/modules/order/dao/InsPinAnAreaMapper.java

@@ -0,0 +1,14 @@
+package com.ydtech.modules.order.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ydtech.modules.order.entity.api.pingan.area.InsPinAnArea;
+
+/**
+ *  @version
+ *  @author: hxl
+ *  @Date: 2024/4/12 9:23
+ *  @Description:  针对平安区域的转换
+ */
+public interface InsPinAnAreaMapper extends BaseMapper<InsPinAnArea> {
+
+}

+ 57 - 0
src/main/java/com/ydtech/modules/order/entity/api/pingan/area/InsPinAnArea.java

@@ -0,0 +1,57 @@
+package com.ydtech.modules.order.entity.api.pingan.area;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@TableName(value ="ins_pinan_area")
+@NoArgsConstructor
+@Data
+public class InsPinAnArea implements Serializable {
+
+    /**
+     * 主键自增
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 省/市code
+     */
+    @TableField(value = "value_code")
+    private String valueCode;
+
+    /**
+     * 省市名称
+     */
+    @TableField(value = "value_chinese_name")
+    private String valueChineseName;
+
+    /**
+     * 市code
+     */
+    @TableField(value = "city_code")
+    private String cityCode;
+
+    /**
+     * 市名称
+     */
+    @TableField(value = "city_name")
+    private String cityName;
+    /**
+     * 地区代码
+     */
+    @TableField(value = "area_code")
+    private String areaCode;
+
+    /**
+     * 地区名称
+     */
+    @TableField(value = "area_cname")
+    private String areaCname;
+}

+ 13 - 0
src/main/java/com/ydtech/modules/order/service/InsPinAnAreaService.java

@@ -0,0 +1,13 @@
+package com.ydtech.modules.order.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ydtech.modules.order.entity.api.pingan.area.InsPinAnArea;
+
+/**
+ *  @version
+ *  @author: hxl
+ *  @Date: 2024/4/12 9:44
+ *  @Description: 添加平安数据区域表
+ */
+public interface InsPinAnAreaService extends IService<InsPinAnArea> {
+}

+ 25 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsPinAnAreaServiceImpl.java

@@ -0,0 +1,25 @@
+package com.ydtech.modules.order.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ydtech.modules.order.dao.InsPinAnAreaMapper;
+import com.ydtech.modules.order.entity.api.pingan.area.InsPinAnArea;
+import com.ydtech.modules.order.service.InsPinAnAreaService;
+import org.springframework.stereotype.Service;
+
+/**
+ *  @version
+ *  @author: hxl
+ *  @Date: 2024/4/12 9:43
+ *  @Description: 添加平安区域数据表
+ */
+@Service
+public class InsPinAnAreaServiceImpl extends ServiceImpl<InsPinAnAreaMapper, InsPinAnArea>
+        implements InsPinAnAreaService {
+
+
+
+}
+
+
+
+