Pārlūkot izejas kodu

添加中队信息

yq 3 gadi atpakaļ
vecāks
revīzija
3bbf728b4b

+ 19 - 0
mhfire-controller/src/main/java/com/bizmatics/mhfire/controller/web/ZskTeamController.java

@@ -0,0 +1,19 @@
+package com.bizmatics.mhfire.controller.web;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.stereotype.Controller;
+
+/**
+
+ * 消防中队
+ * @author ya
+ * @since 2021-11-26
+ */
+@Controller
+@RequestMapping("/zskTeam")
+public class ZskTeamController {
+
+}
+

+ 16 - 0
mhfire-mapping/src/main/java/com/bizmatics/mhfire/persistence/mapper/ZskTeamMapper.java

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

+ 17 - 0
mhfire-mapping/src/main/resources/mapper/mysql/ZskTeamMapper.xml

@@ -0,0 +1,17 @@
+<?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.mhfire.persistence.mapper.ZskTeamMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.bizmatics.mhfire.model.ZskTeam">
+        <id column="id" property="id" />
+        <result column="name" property="name" />
+        <result column="parentid" property="parentid" />
+        <result column="created" property="created" />
+        <result column="updated" property="updated" />
+        <result column="xfjg_id" property="xfjgId" />
+        <result column="orgType" property="orgType" />
+        <result column="flag" property="flag" />
+    </resultMap>
+
+</mapper>

+ 53 - 0
mhfire-model/src/main/java/com/bizmatics/mhfire/model/ZskTeam.java

@@ -0,0 +1,53 @@
+package com.bizmatics.mhfire.model;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.time.LocalDate;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author ya
+ * @since 2021-11-26
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class ZskTeam implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    private String name;
+
+    private Integer parentid;
+
+    private LocalDate created;
+
+    private LocalDate updated;
+
+    private String xfjgId;
+
+    /**
+     * 机构类型(0:支队,1:大队,2:中队)
+     */
+    @TableField("orgType")
+    private BigDecimal orgType;
+
+    /**
+     * 1 浦东 2 闵行
+     */
+    private Integer flag;
+
+
+}

+ 16 - 0
mhfire-service/src/main/java/com/bizmatics/mhfire/service/ZskTeamService.java

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

+ 20 - 0
mhfire-service/src/main/java/com/bizmatics/mhfire/service/impl/ZskTeamServiceImpl.java

@@ -0,0 +1,20 @@
+package com.bizmatics.mhfire.service.impl;
+
+import com.bizmatics.mhfire.model.ZskTeam;
+import com.bizmatics.mhfire.persistence.mapper.ZskTeamMapper;
+import com.bizmatics.mhfire.service.ZskTeamService;
+import com.bizmatics.common.mvc.base.AbstractCrudService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author ya
+ * @since 2021-11-26
+ */
+@Service
+public class ZskTeamServiceImpl extends AbstractCrudService<ZskTeamMapper, ZskTeam> implements ZskTeamService {
+
+}