浏览代码

森林管理

wangzhe 4 年之前
父节点
当前提交
03bd5ac14e

+ 129 - 0
mybusiness/src/main/java/com/business/slfh/manager/stationforestmanager/controller/TResStationforestController.java

@@ -0,0 +1,129 @@
+package com.business.slfh.manager.stationforestmanager.controller;
+
+import java.util.List;
+
+import com.business.slfh.manager.stationforestmanager.domain.TResStationforest;
+import com.business.slfh.manager.stationforestmanager.service.ITResStationforestService;
+import com.business.slfh.tools.UUID_Tools;
+import com.sooka.common.annotation.Log;
+import com.sooka.common.core.controller.BaseController;
+import com.sooka.common.core.domain.AjaxResult;
+import com.sooka.common.core.page.TableDataInfo;
+import com.sooka.common.enums.BusinessType;
+import com.sooka.common.utils.poi.ExcelUtil;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+/**
+ * 【请填写功能名称】Controller
+ * 
+ * @author lei
+ * @date 2021-05-11
+ */
+@Controller
+@RequestMapping("/business/manager/stationforestmanager")
+public class TResStationforestController extends BaseController
+{
+    private String prefix = "business/manager/stationforestmanager";
+
+    @Autowired
+    private ITResStationforestService tResStationforestService;
+
+    //@RequiresPermissions("system:stationforest:view")
+    @GetMapping()
+    public String stationforest()
+    {
+        return prefix + "/index";
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    //@RequiresPermissions("system:stationforest:list")
+    @PostMapping("/list")
+    @ResponseBody
+    public TableDataInfo list(TResStationforest tResStationforest)
+    {
+        startPage();
+        List<TResStationforest> list = tResStationforestService.selectTResStationforestList(tResStationforest);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    //@RequiresPermissions("system:stationforest:export")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @ResponseBody
+    public AjaxResult export(TResStationforest tResStationforest)
+    {
+        List<TResStationforest> list = tResStationforestService.selectTResStationforestList(tResStationforest);
+        ExcelUtil<TResStationforest> util = new ExcelUtil<TResStationforest>(TResStationforest.class);
+        return util.exportExcel(list, "stationforest");
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @GetMapping("/add")
+    public String add()
+    {
+        return prefix + "/add";
+    }
+
+    /**
+     * 新增保存【请填写功能名称】
+     */
+    //@RequiresPermissions("system:stationforest:add")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    @ResponseBody
+    public AjaxResult addSave(TResStationforest tResStationforest)
+    {
+        tResStationforest.setId(UUID_Tools.getUUID());
+        return toAjax(tResStationforestService.insertTResStationforest(tResStationforest));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @GetMapping("/edit/{id}")
+    public String edit(@PathVariable("id") String id, ModelMap mmap)
+    {
+        TResStationforest tResStationforest = tResStationforestService.selectTResStationforestById(id);
+        mmap.put("tResStationforest", tResStationforest);
+        return prefix + "/edit";
+    }
+
+    /**
+     * 修改保存【请填写功能名称】
+     */
+    //@RequiresPermissions("system:stationforest:edit")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    @ResponseBody
+    public AjaxResult editSave(TResStationforest tResStationforest)
+    {
+        return toAjax(tResStationforestService.updateTResStationforest(tResStationforest));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    //@RequiresPermissions("system:stationforest:remove")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @PostMapping( "/remove")
+    @ResponseBody
+    public AjaxResult remove(String ids)
+    {
+        return toAjax(tResStationforestService.deleteTResStationforestByIds(ids));
+    }
+}

+ 181 - 0
mybusiness/src/main/java/com/business/slfh/manager/stationforestmanager/domain/TResStationforest.java

@@ -0,0 +1,181 @@
+package com.business.slfh.manager.stationforestmanager.domain;
+
+import com.sooka.common.annotation.Excel;
+import com.sooka.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 【请填写功能名称】对象 t_res_stationforest
+ * 
+ * @author lei
+ * @date 2021-05-11
+ */
+public class TResStationforest extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private String id;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String status;
+
+    /** $column.columnComment */
+    private String delFlag;
+
+    /** 名称 */
+    @Excel(name = "名称")
+    private String name;
+
+    /** 经度 */
+    @Excel(name = "经度")
+    private String longitude;
+
+    /** 纬度 */
+    @Excel(name = "纬度")
+    private String latitude;
+
+    /** 地址 */
+    @Excel(name = "地址")
+    private String address;
+
+    /** 联系人 */
+    @Excel(name = "联系人")
+    private String contactUser;
+
+    /** 电话 */
+    @Excel(name = "电话")
+    private String contactPhone;
+
+    /** $column.columnComment */
+    @Excel(name = "电话")
+    private Long deptId;
+
+    /** $column.columnComment */
+    @Excel(name = "电话")
+    private Long createUserId;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setStatus(String status) 
+    {
+        this.status = status;
+    }
+
+    public String getStatus() 
+    {
+        return status;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setLongitude(String longitude) 
+    {
+        this.longitude = longitude;
+    }
+
+    public String getLongitude() 
+    {
+        return longitude;
+    }
+    public void setLatitude(String latitude) 
+    {
+        this.latitude = latitude;
+    }
+
+    public String getLatitude() 
+    {
+        return latitude;
+    }
+    public void setAddress(String address) 
+    {
+        this.address = address;
+    }
+
+    public String getAddress() 
+    {
+        return address;
+    }
+    public void setContactUser(String contactUser) 
+    {
+        this.contactUser = contactUser;
+    }
+
+    public String getContactUser() 
+    {
+        return contactUser;
+    }
+    public void setContactPhone(String contactPhone) 
+    {
+        this.contactPhone = contactPhone;
+    }
+
+    public String getContactPhone() 
+    {
+        return contactPhone;
+    }
+    public void setDeptId(Long deptId) 
+    {
+        this.deptId = deptId;
+    }
+
+    public Long getDeptId() 
+    {
+        return deptId;
+    }
+    public void setCreateUserId(Long createUserId) 
+    {
+        this.createUserId = createUserId;
+    }
+
+    public Long getCreateUserId() 
+    {
+        return createUserId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("status", getStatus())
+            .append("remark", getRemark())
+            .append("delFlag", getDelFlag())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("name", getName())
+            .append("longitude", getLongitude())
+            .append("latitude", getLatitude())
+            .append("address", getAddress())
+            .append("contactUser", getContactUser())
+            .append("contactPhone", getContactPhone())
+            .append("deptId", getDeptId())
+            .append("createUserId", getCreateUserId())
+            .toString();
+    }
+}

+ 62 - 0
mybusiness/src/main/java/com/business/slfh/manager/stationforestmanager/mapper/TResStationforestMapper.java

@@ -0,0 +1,62 @@
+package com.business.slfh.manager.stationforestmanager.mapper;
+
+import com.business.slfh.manager.stationforestmanager.domain.TResStationforest;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author lei
+ * @date 2021-05-11
+ */
+public interface TResStationforestMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】ID
+     * @return 【请填写功能名称】
+     */
+    public TResStationforest selectTResStationforestById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TResStationforest> selectTResStationforestList(TResStationforest tResStationforest);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTResStationforest(TResStationforest tResStationforest);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTResStationforest(TResStationforest tResStationforest);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】ID
+     * @return 结果
+     */
+    public int deleteTResStationforestById(String id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTResStationforestByIds(String[] ids);
+}

+ 62 - 0
mybusiness/src/main/java/com/business/slfh/manager/stationforestmanager/service/ITResStationforestService.java

@@ -0,0 +1,62 @@
+package com.business.slfh.manager.stationforestmanager.service;
+
+import com.business.slfh.manager.stationforestmanager.domain.TResStationforest;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Service接口
+ * 
+ * @author lei
+ * @date 2021-05-11
+ */
+public interface ITResStationforestService 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】ID
+     * @return 【请填写功能名称】
+     */
+    public TResStationforest selectTResStationforestById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TResStationforest> selectTResStationforestList(TResStationforest tResStationforest);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTResStationforest(TResStationforest tResStationforest);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTResStationforest(TResStationforest tResStationforest);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTResStationforestByIds(String ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】ID
+     * @return 结果
+     */
+    public int deleteTResStationforestById(String id);
+}

+ 100 - 0
mybusiness/src/main/java/com/business/slfh/manager/stationforestmanager/service/impl/TResStationforestServiceImpl.java

@@ -0,0 +1,100 @@
+package com.business.slfh.manager.stationforestmanager.service.impl;
+
+import java.util.List;
+
+import com.business.slfh.manager.stationforestmanager.domain.TResStationforest;
+import com.business.slfh.manager.stationforestmanager.mapper.TResStationforestMapper;
+import com.sooka.common.core.text.Convert;
+import com.sooka.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.business.slfh.manager.stationforestmanager.service.ITResStationforestService;
+
+import javax.annotation.Resource;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ * 
+ * @author lei
+ * @date 2021-05-11
+ */
+@Service
+public class TResStationforestServiceImpl implements ITResStationforestService 
+{
+    @Resource
+    private TResStationforestMapper tResStationforestMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】ID
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public TResStationforest selectTResStationforestById(String id)
+    {
+        return tResStationforestMapper.selectTResStationforestById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<TResStationforest> selectTResStationforestList(TResStationforest tResStationforest)
+    {
+        return tResStationforestMapper.selectTResStationforestList(tResStationforest);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertTResStationforest(TResStationforest tResStationforest)
+    {
+        tResStationforest.setCreateTime(DateUtils.getNowDate());
+        return tResStationforestMapper.insertTResStationforest(tResStationforest);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tResStationforest 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateTResStationforest(TResStationforest tResStationforest)
+    {
+        tResStationforest.setUpdateTime(DateUtils.getNowDate());
+        return tResStationforestMapper.updateTResStationforest(tResStationforest);
+    }
+
+    /**
+     * 删除【请填写功能名称】对象
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTResStationforestByIds(String ids)
+    {
+        return tResStationforestMapper.deleteTResStationforestByIds(Convert.toStrArray(ids));
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTResStationforestById(String id)
+    {
+        return tResStationforestMapper.deleteTResStationforestById(id);
+    }
+}

+ 123 - 0
mybusiness/src/main/resources/mapper/grid/manager/TResStationforestMapper.xml

@@ -0,0 +1,123 @@
+<?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.business.slfh.manager.stationforestmanager.mapper.TResStationforestMapper">
+    
+    <resultMap type="TResStationforest" id="TResStationforestResult">
+        <result property="id"    column="id"    />
+        <result property="status"    column="status"    />
+        <result property="remark"    column="remark"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="name"    column="name"    />
+        <result property="longitude"    column="longitude"    />
+        <result property="latitude"    column="latitude"    />
+        <result property="address"    column="address"    />
+        <result property="contactUser"    column="contact_user"    />
+        <result property="contactPhone"    column="contact_phone"    />
+        <result property="deptId"    column="dept_id"    />
+        <result property="createUserId"    column="create_user_id"    />
+    </resultMap>
+
+    <sql id="selectTResStationforestVo">
+        select id, status, remark, del_flag, create_by, create_time, update_by, update_time, name, longitude, latitude, address, contact_user, contact_phone, dept_id, create_user_id from t_res_stationforest
+    </sql>
+
+    <select id="selectTResStationforestList" parameterType="TResStationforest" resultMap="TResStationforestResult">
+        <include refid="selectTResStationforestVo"/>
+        <where>  
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if>
+            <if test="latitude != null  and latitude != ''"> and latitude = #{latitude}</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="contactUser != null  and contactUser != ''"> and contact_user = #{contactUser}</if>
+            <if test="contactPhone != null  and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
+            <if test="deptId != null "> and dept_id = #{deptId}</if>
+            <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
+        </where>
+    </select>
+    
+    <select id="selectTResStationforestById" parameterType="String" resultMap="TResStationforestResult">
+        <include refid="selectTResStationforestVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTResStationforest" parameterType="TResStationforest">
+        insert into t_res_stationforest
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null and id != ''">id,</if>
+            <if test="status != null">status,</if>
+            <if test="remark != null">remark,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="name != null">name,</if>
+            <if test="longitude != null">longitude,</if>
+            <if test="latitude != null">latitude,</if>
+            <if test="address != null">address,</if>
+            <if test="contactUser != null">contact_user,</if>
+            <if test="contactPhone != null">contact_phone,</if>
+            <if test="deptId != null">dept_id,</if>
+            <if test="createUserId != null">create_user_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null and id != ''">#{id},</if>
+            <if test="status != null">#{status},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="name != null">#{name},</if>
+            <if test="longitude != null">#{longitude},</if>
+            <if test="latitude != null">#{latitude},</if>
+            <if test="address != null">#{address},</if>
+            <if test="contactUser != null">#{contactUser},</if>
+            <if test="contactPhone != null">#{contactPhone},</if>
+            <if test="deptId != null">#{deptId},</if>
+            <if test="createUserId != null">#{createUserId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTResStationforest" parameterType="TResStationforest">
+        update t_res_stationforest
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="status != null">status = #{status},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="longitude != null">longitude = #{longitude},</if>
+            <if test="latitude != null">latitude = #{latitude},</if>
+            <if test="address != null">address = #{address},</if>
+            <if test="contactUser != null">contact_user = #{contactUser},</if>
+            <if test="contactPhone != null">contact_phone = #{contactPhone},</if>
+            <if test="deptId != null">dept_id = #{deptId},</if>
+            <if test="createUserId != null">create_user_id = #{createUserId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTResStationforestById" parameterType="String">
+        delete from t_res_stationforest where id = #{id}
+    </delete>
+
+    <delete id="deleteTResStationforestByIds" parameterType="String">
+        delete from t_res_stationforest where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

+ 95 - 0
mybusiness/src/main/resources/templates/business/manager/stationforestmanager/add.html

@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
+<head>
+    <th:block th:include="include :: header('新增【请填写功能名称】')" />
+</head>
+<body class="white-bg">
+    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
+        <form class="form-horizontal m" id="form-stationforest-add">
+            <div class="form-group">    
+                <label class="col-sm-3 control-label is-required">电话:</label>
+                <div class="col-sm-8">
+                    <input name="id" class="form-control" type="text" required>
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <div class="radio-box">
+                        <input type="radio" name="status" value="">
+                        <label th:for="status" th:text="未知"></label>
+                    </div>
+                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="delFlag" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">名称:</label>
+                <div class="col-sm-8">
+                    <input name="name" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">经度:</label>
+                <div class="col-sm-8">
+                    <input name="longitude" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">纬度:</label>
+                <div class="col-sm-8">
+                    <input name="latitude" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">地址:</label>
+                <div class="col-sm-8">
+                    <input name="address" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">联系人:</label>
+                <div class="col-sm-8">
+                    <input name="contactUser" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="contactPhone" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="deptId" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="createUserId" class="form-control" type="text">
+                </div>
+            </div>
+        </form>
+    </div>
+    <th:block th:include="include :: footer" />
+    <script th:inline="javascript">
+        var prefix = ctx + "business/manager/stationforestmanager"
+        $("#form-stationforest-add").validate({
+            focusCleanup: true
+        });
+
+        function submitHandler() {
+            if ($.validate.form()) {
+                $.operate.save(prefix + "/add", $('#form-stationforest-add').serialize());
+            }
+        }
+    </script>
+</body>
+</html>

+ 84 - 0
mybusiness/src/main/resources/templates/business/manager/stationforestmanager/edit.html

@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
+<head>
+    <th:block th:include="include :: header('修改【请填写功能名称】')" />
+</head>
+<body class="white-bg">
+    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
+        <form class="form-horizontal m" id="form-stationforest-edit" th:object="${tResStationforest}">
+            <input name="id" th:field="*{id}" type="hidden">
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <div class="radio-box">
+                        <input type="radio" name="status" value="">
+                        <label th:for="status" th:text="未知"></label>
+                    </div>
+                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">名称:</label>
+                <div class="col-sm-8">
+                    <input name="name" th:field="*{name}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">经度:</label>
+                <div class="col-sm-8">
+                    <input name="longitude" th:field="*{longitude}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">纬度:</label>
+                <div class="col-sm-8">
+                    <input name="latitude" th:field="*{latitude}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">地址:</label>
+                <div class="col-sm-8">
+                    <input name="address" th:field="*{address}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">联系人:</label>
+                <div class="col-sm-8">
+                    <input name="contactUser" th:field="*{contactUser}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="contactPhone" th:field="*{contactPhone}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="deptId" th:field="*{deptId}" class="form-control" type="text">
+                </div>
+            </div>
+            <div class="form-group">    
+                <label class="col-sm-3 control-label">电话:</label>
+                <div class="col-sm-8">
+                    <input name="createUserId" th:field="*{createUserId}" class="form-control" type="text">
+                </div>
+            </div>
+        </form>
+    </div>
+    <th:block th:include="include :: footer" />
+    <script th:inline="javascript">
+        var prefix = ctx + "business/manager/stationforestmanager";
+        $("#form-stationforest-edit").validate({
+            focusCleanup: true
+        });
+
+        function submitHandler() {
+            if ($.validate.form()) {
+                $.operate.save(prefix + "/edit", $('#form-stationforest-edit').serialize());
+            }
+        }
+    </script>
+</body>
+</html>

+ 152 - 0
mybusiness/src/main/resources/templates/business/manager/stationforestmanager/index.html

@@ -0,0 +1,152 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<head>
+    <th:block th:include="include :: header('【请填写功能名称】列表')" />
+</head>
+<body class="gray-bg">
+     <div class="container-div">
+        <div class="row">
+            <div class="col-sm-12 search-collapse">
+                <form id="formId">
+                    <div class="select-list">
+                        <ul>
+                            <li>
+                                <label>电话:</label>
+                                <select name="status">
+                                    <option value="">所有</option>
+                                    <option value="-1">代码生成请选择字典属性</option>
+                                </select>
+                            </li>
+                            <li>
+                                <label>名称:</label>
+                                <input type="text" name="name"/>
+                            </li>
+                            <li>
+                                <label>经度:</label>
+                                <input type="text" name="longitude"/>
+                            </li>
+                            <li>
+                                <label>纬度:</label>
+                                <input type="text" name="latitude"/>
+                            </li>
+                            <li>
+                                <label>地址:</label>
+                                <input type="text" name="address"/>
+                            </li>
+                            <li>
+                                <label>联系人:</label>
+                                <input type="text" name="contactUser"/>
+                            </li>
+                            <li>
+                                <label>电话:</label>
+                                <input type="text" name="contactPhone"/>
+                            </li>
+                            <li>
+                                <label>电话:</label>
+                                <input type="text" name="deptId"/>
+                            </li>
+                            <li>
+                                <label>电话:</label>
+                                <input type="text" name="createUserId"/>
+                            </li>
+                            <li>
+                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
+                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
+                            </li>
+                        </ul>
+                    </div>
+                </form>
+            </div>
+
+            <div class="btn-group-sm" id="toolbar" role="group">
+                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:stationforest:add">
+                    <i class="fa fa-plus"></i> 添加
+                </a>
+                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:stationforest:edit">
+                    <i class="fa fa-edit"></i> 修改
+                </a>
+                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:stationforest:remove">
+                    <i class="fa fa-remove"></i> 删除
+                </a>
+                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:stationforest:export">
+                    <i class="fa fa-download"></i> 导出
+                </a>
+            </div>
+            <div class="col-sm-12 select-table table-striped">
+                <table id="bootstrap-table"></table>
+            </div>
+        </div>
+    </div>
+    <th:block th:include="include :: footer" />
+    <script th:inline="javascript">
+        var editFlag = [[${@permission.hasPermi('system:stationforest:edit')}]];
+        var removeFlag = [[${@permission.hasPermi('system:stationforest:remove')}]];
+        var prefix = ctx + "business/manager/stationforestmanager";
+
+        $(function() {
+            var options = {
+                url: prefix + "/list",
+                createUrl: prefix + "/add",
+                updateUrl: prefix + "/edit/{id}",
+                removeUrl: prefix + "/remove",
+                exportUrl: prefix + "/export",
+                modalName: "【请填写功能名称】",
+                columns: [{
+                    checkbox: true
+                },
+                {
+                    field: 'status',
+                    title: '电话'
+                },
+                {
+                    field: 'remark',
+                    title: '电话'
+                },
+                {
+                    field: 'name',
+                    title: '名称'
+                },
+                {
+                    field: 'longitude',
+                    title: '经度'
+                },
+                {
+                    field: 'latitude',
+                    title: '纬度'
+                },
+                {
+                    field: 'address',
+                    title: '地址'
+                },
+                {
+                    field: 'contactUser',
+                    title: '联系人'
+                },
+                {
+                    field: 'contactPhone',
+                    title: '电话'
+                },
+                {
+                    field: 'deptId',
+                    title: '电话'
+                },
+                {
+                    field: 'createUserId',
+                    title: '电话'
+                },
+                {
+                    title: '操作',
+                    align: 'center',
+                    formatter: function(value, row, index) {
+                        var actions = [];
+                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
+                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
+                        return actions.join('');
+                    }
+                }]
+            };
+            $.table.init(options);
+        });
+    </script>
+</body>
+</html>