Преглед на файлове

台区模块实体类提交

jichaobo преди 3 години
родител
ревизия
ac921b3daa

+ 21 - 0
fiveep-controller/src/main/java/com/bizmatics/controller/web/PlatformAreaController.java

@@ -0,0 +1,21 @@
+package com.bizmatics.controller.web;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.stereotype.Controller;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author ya
+ * @since 2021-09-29
+ */
+@Controller
+@RequestMapping("/platformArea")
+public class PlatformAreaController {
+
+}
+

+ 52 - 0
fiveep-model/src/main/java/com/bizmatics/model/PlatformArea.java

@@ -0,0 +1,52 @@
+package com.bizmatics.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author ya
+ * @since 2021-09-29
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class PlatformArea implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 台区表主键ID
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 台区名称
+     */
+    private String platformAreaName;
+
+    /**
+     * 台区地址
+     */
+    private String platformAreaAddress;
+
+    /**
+     * 台区编号
+     */
+    private String platformAreaCode;
+
+    /**
+     * 使能标识(0 不生效,1 生效)
+     */
+    private Integer enable;
+
+
+}

+ 16 - 0
fiveep-persistence/src/main/java/com/bizmatics/persistence/mapper/PlatformAreaMapper.java

@@ -0,0 +1,16 @@
+package com.bizmatics.persistence.mapper;
+
+import com.bizmatics.model.PlatformArea;
+import com.bizmatics.common.mvc.base.CrudMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author ya
+ * @since 2021-09-29
+ */
+public interface PlatformAreaMapper extends CrudMapper<PlatformArea> {
+
+}

+ 14 - 0
fiveep-persistence/src/main/resources/mapper/mysql/PlatformAreaMapper.xml

@@ -0,0 +1,14 @@
+<?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.bizmatics.persistence.mapper.PlatformAreaMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.bizmatics.model.PlatformArea">
+        <id column="id" property="id" />
+        <result column="platform_area_name" property="platformAreaName" />
+        <result column="platform_area_address" property="platformAreaAddress" />
+        <result column="platform_area_code" property="platformAreaCode" />
+        <result column="enable" property="enable" />
+    </resultMap>
+
+</mapper>

+ 16 - 0
fiveep-service/src/main/java/com/bizmatics/service/PlatformAreaService.java

@@ -0,0 +1,16 @@
+package com.bizmatics.service;
+
+import com.bizmatics.model.PlatformArea;
+import com.bizmatics.common.mvc.base.CrudService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author ya
+ * @since 2021-09-29
+ */
+public interface PlatformAreaService extends CrudService<PlatformArea> {
+
+}

+ 20 - 0
fiveep-service/src/main/java/com/bizmatics/service/impl/PlatformAreaServiceImpl.java

@@ -0,0 +1,20 @@
+package com.bizmatics.service.impl;
+
+import com.bizmatics.model.PlatformArea;
+import com.bizmatics.persistence.mapper.PlatformAreaMapper;
+import com.bizmatics.service.PlatformAreaService;
+import com.bizmatics.common.mvc.base.AbstractCrudService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author ya
+ * @since 2021-09-29
+ */
+@Service
+public class PlatformAreaServiceImpl extends AbstractCrudService<PlatformAreaMapper, PlatformArea> implements PlatformAreaService {
+
+}