浏览代码

真兰 用户信息

wangzhe 2 年之前
父节点
当前提交
59919ce4e8

+ 134 - 0
mybusiness/src/main/java/com/sooka/system/gas/zenner_user_infor/controller/TGuijiZennerUserInforController.java

@@ -0,0 +1,134 @@
+package com.sooka.system.gas.zenner_user_infor.controller;
+
+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 com.sooka.system.gas.zenner_user_infor.domain.TGuijiZennerUserInfor;
+import com.sooka.system.gas.zenner_user_infor.service.ITGuijiZennerUserInforService;
+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.*;
+
+import java.util.List;
+
+/**
+ * 真兰收费系统-用户信息Controller
+ *
+ * @author lei
+ * @date 2022-08-22
+ */
+@Controller
+@RequestMapping("/system/gas/zenner_user_infor")
+public class TGuijiZennerUserInforController extends BaseController
+{
+    private String prefix = "system/gas/zenner_user_infor";
+
+    @Autowired
+    private ITGuijiZennerUserInforService service;
+
+    @RequiresPermissions("system:zenner_user_infor:view")
+    @GetMapping()
+    public String zenner_user_infor()
+    {
+        return prefix + "/zenner_user_infor";
+    }
+
+    /**
+     * 查询真兰收费系统-用户信息列表
+     */
+    @RequiresPermissions("system:zenner_user_infor:list")
+    @PostMapping("/list")
+    @ResponseBody
+    public TableDataInfo list(TGuijiZennerUserInfor param)
+    {
+        startPage();
+        List<TGuijiZennerUserInfor> list = service.selectList(param);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出真兰收费系统-用户信息列表
+     */
+    @RequiresPermissions("system:zenner_user_infor:export")
+    @Log(title = "真兰收费系统-用户信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @ResponseBody
+    public AjaxResult export(TGuijiZennerUserInfor param)
+    {
+        List<TGuijiZennerUserInfor> list = service.selectList(param);
+        ExcelUtil<TGuijiZennerUserInfor> util = new ExcelUtil<TGuijiZennerUserInfor>(TGuijiZennerUserInfor.class);
+        return util.exportExcel(list, "真兰收费系统-用户信息");
+    }
+
+    /**
+     * 新增真兰收费系统-用户信息
+     */
+    @GetMapping("/add")
+    public String add()
+    {
+        return prefix + "/add";
+    }
+
+    /**
+     * 新增保存真兰收费系统-用户信息
+     */
+    @RequiresPermissions("system:zenner_user_infor:add")
+    @Log(title = "真兰收费系统-用户信息", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    @ResponseBody
+    public AjaxResult addSave(TGuijiZennerUserInfor param)
+    {
+        return toAjax(service.insert(param));
+    }
+
+    /**
+     * 修改真兰收费系统-用户信息
+     */
+    @GetMapping("/edit/{id}")
+    public String edit(@PathVariable("id") String id, ModelMap mmap)
+    {
+        TGuijiZennerUserInfor param = service.selectById(id);
+        mmap.put("param", param);
+        return prefix + "/edit";
+    }
+
+    /**
+     * 修改保存真兰收费系统-用户信息
+     */
+    @RequiresPermissions("system:zenner_user_infor:edit")
+    @Log(title = "真兰收费系统-用户信息", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    @ResponseBody
+    public AjaxResult editSave(TGuijiZennerUserInfor param)
+    {
+        return toAjax(service.update(param));
+    }
+
+    /**
+     * 删除真兰收费系统-用户信息
+     */
+    @RequiresPermissions("system:zenner_user_infor:remove")
+    @Log(title = "真兰收费系统-用户信息", businessType = BusinessType.DELETE)
+    @PostMapping( "/remove")
+    @ResponseBody
+    public AjaxResult remove(String ids)
+    {
+        return toAjax(service.deleteByIds(ids));
+    }
+
+    /**
+     * 真兰收费系统-用户信息详情
+     */
+    @GetMapping("/detail/{id}")
+    public String detail(@PathVariable("id") String id, ModelMap mmap)
+    {
+        TGuijiZennerUserInfor param = service.selectById(id);
+        mmap.put("detail", param);
+        return prefix + "/detail";
+    }
+}

+ 154 - 0
mybusiness/src/main/java/com/sooka/system/gas/zenner_user_infor/domain/TGuijiZennerUserInfor.java

@@ -0,0 +1,154 @@
+package com.sooka.system.gas.zenner_user_infor.domain;
+
+import com.sooka.common.annotation.Excel;
+import com.sooka.system.domain.BaseBusinessEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 真兰收费系统-用户信息对象 t_guiji_medicine_plant
+ *
+ * @author lei
+ * @date 2022-08-22
+ */
+@Getter
+@Setter
+public class TGuijiZennerUserInfor extends BaseBusinessEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 序号 */
+    @Excel(name = "序号")
+    private String id;
+
+    /** 插入时间 */
+    @Excel(name = "插入时间")
+    private String cdTime;
+
+    /** 批次号 */
+    @Excel(name = "批次号")
+    private String cdBatch;
+
+    /** 标志位 */
+    @Excel(name = "标志位")
+    private String cdOperation;
+
+    /** 数据来源 */
+    @Excel(name = "数据来源")
+    private String cdSource;
+
+    /** 用户GUID */
+    @Excel(name = "用户GUID" )
+    private String GUID;
+
+    /** 用户编号 */
+    @Excel(name = "用户编号" )
+    private String VC_UI_CODE;
+
+    /** 用户姓名 */
+    @Excel(name = "用户姓名" )
+    private String VC_UI_NAME;
+
+    /** 用户状态(0停用(退户)  1启用  2销户) */
+    @Excel(name = "用户状态" )
+    private String VC_UI_STATE;
+
+    /** 用户地址 */
+    @Excel(name = "用户地址" )
+    private String VC_UI_ADDR;
+
+    /** 用户电话 */
+    @Excel(name = "用户电话" )
+    private String VC_UI_TEL;
+
+    /** 证件号码 */
+    @Excel(name = "证件号码" )
+    private String VC_UI_IDNO;
+
+    /** 用户备注 */
+    @Excel(name = "用户备注" )
+    private String VC_UI_REMARK;
+
+    /** 上次结余 */
+    @Excel(name = "上次结余" )
+    private String N_UI_BEFOREAMOUNT;
+
+    /** 本次结余 */
+    @Excel(name = "本次结余" )
+    private String N_UI_LASTAMOUNT;
+
+    public String getGuid()
+    {
+        return GUID;
+    }
+
+    public String getVcuicode()
+    {
+        return VC_UI_CODE;
+    }
+
+    public String getVcuiname()
+    {
+        return VC_UI_NAME;
+    }
+
+    public String getVcuistate()
+    {
+        if(VC_UI_STATE == null){
+            return null;
+        }else {
+            //(0停用(退户)  1启用  2销户)
+            String state = VC_UI_STATE;
+            switch (VC_UI_STATE){
+                case "0":
+                    state = "停用";
+                    break;
+                case "1":
+                    state = "启用";
+                    break;
+                case "2":
+                    state = "销户";
+                    break;
+            }
+            return state;
+        }
+    }
+
+    public String getVcuiaddr()
+    {
+        return VC_UI_ADDR;
+    }
+
+    public String getVcuitel()
+    {
+        return VC_UI_TEL;
+    }
+
+    public String getVcuiidno()
+    {
+        return VC_UI_IDNO;
+    }
+
+    public String getVcuiremark()
+    {
+        return VC_UI_REMARK;
+    }
+
+    public String getNuibeforeamount()
+    {
+        if (N_UI_BEFOREAMOUNT == null){
+            return null;
+        }else {
+            return N_UI_BEFOREAMOUNT.startsWith(".")?(0+N_UI_BEFOREAMOUNT):N_UI_BEFOREAMOUNT;
+        }
+    }
+
+    public String getNuilastamount()
+    {
+        if (N_UI_LASTAMOUNT == null){
+            return null;
+        }else {
+            return N_UI_LASTAMOUNT.startsWith(".")?(0+N_UI_LASTAMOUNT):N_UI_LASTAMOUNT;
+        }
+    }
+}

+ 62 - 0
mybusiness/src/main/java/com/sooka/system/gas/zenner_user_infor/mapper/TGuijiZennerUserInforMapper.java

@@ -0,0 +1,62 @@
+package com.sooka.system.gas.zenner_user_infor.mapper;
+
+import com.sooka.system.gas.zenner_user_infor.domain.TGuijiZennerUserInfor;
+
+import java.util.List;
+
+/**
+ * 真兰收费系统-用户信息Mapper接口
+ *
+ * @author lei
+ * @date 2022-08-22
+ */
+public interface TGuijiZennerUserInforMapper
+{
+    /**
+     * 查询真兰收费系统-用户信息
+     *
+     * @param id 真兰收费系统-用户信息ID
+     * @return 真兰收费系统-用户信息
+     */
+    public TGuijiZennerUserInfor selectById(String id);
+
+    /**
+     * 查询真兰收费系统-用户信息列表
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 真兰收费系统-用户信息集合
+     */
+    public List<TGuijiZennerUserInfor> selectList(TGuijiZennerUserInfor param);
+
+    /**
+     * 新增真兰收费系统-用户信息
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 结果
+     */
+    public int insert(TGuijiZennerUserInfor param);
+
+    /**
+     * 修改真兰收费系统-用户信息
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 结果
+     */
+    public int update(TGuijiZennerUserInfor param);
+
+    /**
+     * 删除真兰收费系统-用户信息
+     *
+     * @param id 真兰收费系统-用户信息ID
+     * @return 结果
+     */
+    public int deleteById(String id);
+
+    /**
+     * 批量删除真兰收费系统-用户信息
+     *
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteByIds(String[] ids);
+}

+ 62 - 0
mybusiness/src/main/java/com/sooka/system/gas/zenner_user_infor/service/ITGuijiZennerUserInforService.java

@@ -0,0 +1,62 @@
+package com.sooka.system.gas.zenner_user_infor.service;
+
+import com.sooka.system.gas.zenner_user_infor.domain.TGuijiZennerUserInfor;
+
+import java.util.List;
+
+/**
+ * 真兰收费系统-用户信息Service接口
+ *
+ * @author lei
+ * @date 2022-08-22
+ */
+public interface ITGuijiZennerUserInforService
+{
+    /**
+     * 查询真兰收费系统-用户信息
+     *
+     * @param id 真兰收费系统-用户信息ID
+     * @return 真兰收费系统-用户信息
+     */
+    public TGuijiZennerUserInfor selectById(String id);
+
+    /**
+     * 查询真兰收费系统-用户信息列表
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 真兰收费系统-用户信息集合
+     */
+    public List<TGuijiZennerUserInfor> selectList(TGuijiZennerUserInfor param);
+
+    /**
+     * 新增真兰收费系统-用户信息
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 结果
+     */
+    public int insert(TGuijiZennerUserInfor param);
+
+    /**
+     * 修改真兰收费系统-用户信息
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 结果
+     */
+    public int update(TGuijiZennerUserInfor param);
+
+    /**
+     * 批量删除真兰收费系统-用户信息
+     *
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteByIds(String ids);
+
+    /**
+     * 删除真兰收费系统-用户信息信息
+     *
+     * @param id 真兰收费系统-用户信息ID
+     * @return 结果
+     */
+    public int deleteById(String id);
+}

+ 97 - 0
mybusiness/src/main/java/com/sooka/system/gas/zenner_user_infor/service/impl/TGuijiZennerUserInforServiceImpl.java

@@ -0,0 +1,97 @@
+package com.sooka.system.gas.zenner_user_infor.service.impl;
+
+import com.sooka.common.core.text.Convert;
+import com.sooka.common.utils.DateUtils;
+import com.sooka.system.gas.zenner_user_infor.domain.TGuijiZennerUserInfor;
+import com.sooka.system.gas.zenner_user_infor.mapper.TGuijiZennerUserInforMapper;
+import com.sooka.system.gas.zenner_user_infor.service.ITGuijiZennerUserInforService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 真兰收费系统-用户信息Service业务层处理
+ *
+ * @author lei
+ * @date 2022-08-22
+ */
+@Service
+public class TGuijiZennerUserInforServiceImpl implements ITGuijiZennerUserInforService
+{
+    @Autowired
+    private TGuijiZennerUserInforMapper mapper;
+
+    /**
+     * 查询真兰收费系统-用户信息
+     *
+     * @param id 真兰收费系统-用户信息ID
+     * @return 真兰收费系统-用户信息
+     */
+    @Override
+    public TGuijiZennerUserInfor selectById(String id)
+    {
+        return mapper.selectById(id);
+    }
+
+    /**
+     * 查询真兰收费系统-用户信息列表
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 真兰收费系统-用户信息
+     */
+    @Override
+    public List<TGuijiZennerUserInfor> selectList(TGuijiZennerUserInfor param)
+    {
+        return mapper.selectList(param);
+    }
+
+    /**
+     * 新增真兰收费系统-用户信息
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 结果
+     */
+    @Override
+    public int insert(TGuijiZennerUserInfor param)
+    {
+        param.setCreateTime(DateUtils.getNowDate());
+        return mapper.insert(param);
+    }
+
+    /**
+     * 修改真兰收费系统-用户信息
+     *
+     * @param param 真兰收费系统-用户信息
+     * @return 结果
+     */
+    @Override
+    public int update(TGuijiZennerUserInfor param)
+    {
+        return mapper.update(param);
+    }
+
+    /**
+     * 删除真兰收费系统-用户信息对象
+     *
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    @Override
+    public int deleteByIds(String ids)
+    {
+        return mapper.deleteByIds(Convert.toStrArray(ids));
+    }
+
+    /**
+     * 删除真兰收费系统-用户信息信息
+     *
+     * @param id 真兰收费系统-用户信息ID
+     * @return 结果
+     */
+    @Override
+    public int deleteById(String id)
+    {
+        return mapper.deleteById(id);
+    }
+}

+ 58 - 0
mybusiness/src/main/resources/mapper/system/TGuijiZennerUserInforMapper.xml

@@ -0,0 +1,58 @@
+<?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.sooka.system.gas.zenner_user_infor.mapper.TGuijiZennerUserInforMapper">
+
+    <sql id="selectVo">
+        select id, GUID, VC_UI_CODE, VC_UI_NAME, VC_UI_STATE, VC_UI_ADDR, VC_UI_TEL, VC_UI_IDNO, VC_UI_REMARK, N_UI_BEFOREAMOUNT, N_UI_LASTAMOUNT from t_guiji_gas_zenner_user_infor
+    </sql>
+
+    <select id="selectList" parameterType="TGuijiZennerUserInfor" resultType="TGuijiZennerUserInfor">
+        <include refid="selectVo"/>
+        <where>
+            <if test="GUID != null  and GUID != ''"> and GUID like concat('%', #{GUID}, '%')</if>
+            <if test="VC_UI_CODE != null  and VC_UI_CODE != ''"> and VC_UI_CODE like concat('%', #{VC_UI_CODE}, '%')</if>
+            <if test="VC_UI_NAME != null  and VC_UI_NAME != ''"> and VC_UI_NAME like concat('%', #{VC_UI_NAME}, '%')</if>
+            <if test="VC_UI_STATE != null  and VC_UI_STATE != ''"> and VC_UI_STATE like concat('%', #{VC_UI_STATE}, '%')</if>
+            <if test="VC_UI_ADDR != null  and VC_UI_ADDR != ''"> and VC_UI_ADDR like concat('%', #{VC_UI_ADDR}, '%')</if>
+            <if test="VC_UI_TEL != null  and VC_UI_TEL != ''"> and VC_UI_TEL like concat('%', #{VC_UI_TEL}, '%')</if>
+            <if test="VC_UI_IDNO != null  and VC_UI_IDNO != ''"> and VC_UI_IDNO like concat('%', #{VC_UI_IDNO}, '%')</if>
+            <if test="VC_UI_REMARK != null  and VC_UI_REMARK != ''"> and VC_UI_REMARK like concat('%', #{VC_UI_REMARK}, '%')</if>
+            <if test="N_UI_BEFOREAMOUNT != null  and N_UI_BEFOREAMOUNT != ''"> and N_UI_BEFOREAMOUNT like concat('%', #{N_UI_BEFOREAMOUNT}, '%')</if>
+            <if test="N_UI_LASTAMOUNT != null  and N_UI_LASTAMOUNT != ''"> and N_UI_LASTAMOUNT like concat('%', #{N_UI_LASTAMOUNT}, '%')</if>
+        </where>
+    </select>
+
+    <select id="selectById" parameterType="String" resultType="TGuijiZennerUserInfor">
+        <include refid="selectVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insert" parameterType="TGuijiZennerUserInfor">
+        insert into t_guiji_gas_zenner_user_infor
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+         </trim>
+    </insert>
+
+    <update id="update" parameterType="TGuijiZennerUserInfor">
+        update t_guiji_gas_zenner_user_infor
+        <trim prefix="SET" suffixOverrides=",">
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteById" parameterType="String">
+        delete from t_guiji_gas_zenner_user_infor where id = #{id}
+    </delete>
+
+    <delete id="deleteByIds" parameterType="String">
+        delete from t_guiji_gas_zenner_user_infor where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

+ 53 - 0
mybusiness/src/main/resources/templates/system/gas/zenner_user_infor/detail.html

@@ -0,0 +1,53 @@
+<!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-guiji-edit" th:object="${detail}">
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户GUID:</label>
+                <div class="form-control-static" th:text="*{guid}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户编号:</label>
+                <div class="form-control-static" th:text="*{VC_UI_CODE}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户姓名:</label>
+                <div class="form-control-static" th:text="*{VC_UI_NAME}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户状态:</label>
+                <div class="form-control-static" th:text="*{vcuistate}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户地址:</label>
+                <div class="form-control-static" th:text="*{VC_UI_ADDR}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户电话:</label>
+                <div class="form-control-static" th:text="*{VC_UI_TEL}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">证件号码:</label>
+                <div class="form-control-static" th:text="*{VC_UI_IDNO}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">用户备注:</label>
+                <div class="form-control-static" th:text="*{VC_UI_REMARK}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">上次结余:</label>
+                <div class="form-control-static" th:text="*{nuibeforeamount}"></div>
+            </div>
+            <div class="form-group">
+                <label class="col-sm-3 control-label">本次结余:</label>
+                <div class="form-control-static" th:text="*{nuilastamount}"></div>
+            </div>
+        </form>
+    </div>
+    <th:block th:include="include :: footer" />
+</body>
+</html>

+ 162 - 0
mybusiness/src/main/resources/templates/system/gas/zenner_user_infor/zenner_user_infor.html

@@ -0,0 +1,162 @@
+<!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>用户GUID:</label>
+                                <input type="text" name="GUID"/>
+                            </li>-->
+                            <!--<li>
+                                <label>用户编号:</label>
+                                <input type="text" name="VC_UI_CODE"/>
+                            </li>-->
+                            <li>
+                                <label>用户姓名:</label>
+                                <input type="text" name="VC_UI_NAME"/>
+                            </li>
+                            <!--<li>
+                                <label>用户状态(0停用(退户)  1启用  2销户):</label>
+                                <input type="text" name="VC_UI_STATE"/>
+                            </li>
+                            <li>
+                                <label>用户地址:</label>
+                                <input type="text" name="VC_UI_ADDR"/>
+                            </li>-->
+                            <li>
+                                <label>用户电话:</label>
+                                <input type="text" name="VC_UI_TEL"/>
+                            </li>
+                            <!--<li>
+                                <label>证件号码:</label>
+                                <input type="text" name="VC_UI_IDNO"/>
+                            </li>
+                            <li>
+                                <label>用户备注:</label>
+                                <input type="text" name="VC_UI_REMARK"/>
+                            </li>
+                            <li>
+                                <label>上次结余:</label>
+                                <input type="text" name="N_UI_BEFOREAMOUNT"/>
+                            </li>
+                            <li>
+                                <label>本次结余:</label>
+                                <input type="text" name="N_UI_LASTAMOUNT"/>
+                            </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:zenner_user_infor:add">-->
+<!--                    <i class="fa fa-plus"></i> 添加-->
+<!--                </a>-->
+<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:zenner_user_infor:edit">-->
+<!--                    <i class="fa fa-edit"></i> 修改-->
+<!--                </a>-->
+<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:zenner_user_infor:remove">-->
+<!--                    <i class="fa fa-remove"></i> 删除-->
+<!--                </a>-->
+                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:zenner_user_infor: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:zenner_user_infor:edit')}]];
+        var removeFlag = [[${@permission.hasPermi('system:zenner_user_infor:remove')}]];
+        var detailFlag = [[${@permission.hasPermi('system:zenner_user_infor:detail')}]];
+
+        var prefix = ctx + "system/gas/zenner_user_infor";
+
+        $(function() {
+            var options = {
+                url: prefix + "/list",
+                createUrl: prefix + "/add",
+                updateUrl: prefix + "/edit/{id}",
+                removeUrl: prefix + "/remove",
+                exportUrl: prefix + "/export",
+                detailUrl: prefix + "/detail/{id}",
+                modalName: "真兰收费系统-用户信息",
+                columns: [{
+                    checkbox: true
+                },
+                {
+                    field: 'id',
+                    title: 'ID',
+                    visible: false
+                },
+                /*{
+                    field: 'guid',
+                    title: '用户GUID'
+                },*/
+                {
+                    field: 'vcuicode',
+                    title: '用户编号'
+                },
+                {
+                    field: 'vcuiname',
+                    title: '用户姓名'
+                },
+                {
+                    field: 'vcuistate',
+                    title: '用户状态'
+                },
+                {
+                    field: 'vcuiaddr',
+                    title: '用户地址'
+                },
+                {
+                    field: 'vcuitel',
+                    title: '用户电话'
+                },
+                /*{
+                    field: 'vcuiidno',
+                    title: '证件号码'
+                },
+                {
+                    field: 'vcuiremark',
+                    title: '用户备注'
+                },*/
+                {
+                    field: 'nuibeforeamount',
+                    title: '上次结余'
+                },
+                {
+                    field: 'nuilastamount',
+                    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>');
+                        actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a>');
+                        return actions.join('');
+                    }
+                }]
+            };
+            $.table.init(options);
+        });
+    </script>
+</body>
+</html>

+ 7 - 45
mybusiness/src/main/resources/templates/system/medicine/industry/detail.html

@@ -2,75 +2,37 @@
 <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
 <head>
     <th:block th:include="include :: header('规上工业经济数据信息')" />
-    <th:block th:include="include :: jsonview-css" />
 </head>
 <body class="white-bg">
     <div class="wrapper wrapper-content animated fadeInRight ibox-content">
         <form class="form-horizontal m" id="form-industry-edit" th:object="${tGuijiMedicineIndustry}">
             <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">
-                    <input name="cdTime" th:field="*{cdTime}" class="form-control" type="text" disabled>
-                </div>
-            </div>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">批次号:</label>
-                <div class="col-sm-8">
-                    <input name="cdBatch" th:field="*{cdBatch}" class="form-control" type="text" disabled>
-                </div>
-            </div>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">操作状态:</label>
-                <div class="col-sm-8">
-                    <input name="cdOperation" th:field="*{cdOperation}" class="form-control" type="text" disabled>
-                </div>
-            </div>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">数据来源:</label>
-                <div class="col-sm-8">
-                    <input name="cdSource" th:field="*{cdSource}" class="form-control" type="text" disabled>
-                </div>
-            </div>-->
             <div class="form-group">
                 <label class="col-sm-3 control-label">年份:</label>
-                <div class="col-sm-8">
-                    <input name="year" th:field="*{year}" class="form-control" type="text" disabled>
-                </div>
+                <div class="form-control-static" th:text="*{year}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">截至月份:</label>
-                <div class="col-sm-8">
-                    <input name="month" th:field="*{month}" class="form-control" type="text" disabled>
-                </div>
+                <div class="form-control-static" th:text="*{month}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">经济数据类型:</label>
-                <div class="col-sm-8">
-                    <input name="economyType" th:field="*{economyType}" class="form-control" type="text" disabled>
-                </div>
+                <div class="form-control-static" th:text="*{economyType}"></div>
             </div>
             <div class="form-group">
-                <label class="col-sm-3 control-label">数值(亿元):</label>
-                <div class="col-sm-8">
-                    <input name="number" th:field="*{number}" class="form-control" type="text" disabled>
-                </div>
+                <label class="col-sm-3 control-label">数值:</label>
+                <div class="form-control-static" th:text="*{number}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">同比增长:</label>
-                <div class="col-sm-8">
-                    <input name="yearOnYear" th:field="*{yearOnYear}" class="form-control" type="text" disabled>
-                </div>
+                <div class="form-control-static" th:text="*{yearOnYear}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">占比全市规上:</label>
-                <div class="col-sm-8">
-                    <input name="cityProportion" th:field="*{cityProportion}" class="form-control" type="text" disabled>
-                </div>
+                <div class="form-control-static" th:text="*{cityProportion}"></div>
             </div>
         </form>
     </div>
     <th:block th:include="include :: footer" />
-    <th:block th:include="include :: jsonview-js" />
 </body>
 </html>

+ 7 - 46
mybusiness/src/main/resources/templates/system/medicine/plant/detail.html

@@ -1,77 +1,38 @@
 <!DOCTYPE html>
 <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
 <head>
-    <th:block th:include="include :: header('种植采集数信息')" />
-    <th:block th:include="include :: jsonview-css" />
-
+    <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-plant-edit" th:object="${tGuijiMedicinePlant}">
             <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">
-                    <input name="cdTime" th:field="*{cdTime}" 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="cdBatch" th:field="*{cdBatch}" 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="cdOperation" th:field="*{cdOperation}" 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="cdSource" th:field="*{cdSource}" 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="plantName" th:field="*{plantName}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{plantName}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">种植区域:</label>
-                <div class="col-sm-8">
-                    <input name="plantAddress" th:field="*{plantAddress}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{plantAddress}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">种植面积(单位:亩):</label>
-                <div class="col-sm-8">
-                    <input name="plantHectare" th:field="*{plantHectare}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{plantHectare}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">年产量(单位:吨):</label>
-                <div class="col-sm-8">
-                    <input name="produceTons" th:field="*{produceTons}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{produceTons}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">年产值(单位:万元):</label>
-                <div class="col-sm-8">
-                    <input name="produceValue" th:field="*{produceValue}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{produceValue}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">统计年份:</label>
-                <div class="col-sm-8">
-                    <input name="plantYear" th:field="*{plantYear}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{plantYear}"></div>
             </div>
         </form>
     </div>
     <th:block th:include="include :: footer" />
-    <th:block th:include="include :: jsonview-js" />
 </body>
 </html>

+ 3 - 3
mybusiness/src/main/resources/templates/system/medicine/plant/plant.html

@@ -1,7 +1,7 @@
 <!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('种植采集数列表')" />
+    <th:block th:include="include :: header('种植采集数列表')" />
 </head>
 <body class="gray-bg">
      <div class="container-div">
@@ -94,13 +94,13 @@
                 removeUrl: prefix + "/remove",
                 exportUrl: prefix + "/export",
                 detailUrl: prefix + "/detail/{id}",
-                modalName: "种植采集数",
+                modalName: "种植采集数",
                 columns: [{
                     checkbox: true
                 },
                 {
                     field: 'id',
-                    title: '传感器编号',
+                    title: 'ID',
                     visible: false
                 },
                 /*{

+ 9 - 65
mybusiness/src/main/resources/templates/system/medicine/platform/detail.html

@@ -1,94 +1,38 @@
 <!DOCTYPE html>
 <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
 <head>
-    <th:block th:include="include :: header('修改平台采集')" />
-    <th:block th:include="include :: jsonview-css" />
+    <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-platform-edit" th:object="${tGuijiMedicinePlatform}">
             <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">
-                    <input name="cdTime" th:field="*{cdTime}" 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="cdBatch" th:field="*{cdBatch}" 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="cdOperation" th:field="*{cdOperation}" 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="cdSource" th:field="*{cdSource}" 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="platformName" th:field="*{platformName}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{platformName}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">建设单位:</label>
-                <div class="col-sm-8">
-                    <input name="constructingUnit" th:field="*{constructingUnit}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{constructingUnit}"></div>
             </div>
-            <!--<div class="form-group">
+            <div class="form-group">
                 <label class="col-sm-3 control-label">建设时间:</label>
-                <div class="col-sm-8">
-                    <input name="constructingDate" th:field="*{constructingDate}" 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="platformAddress" th:field="*{platformAddress}" class="form-control" type="text">
-                </div>
-            </div>-->
+                <div class="form-control-static" th:text="*{constructingDate}"></div>
+            </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">平台地址:</label>
-                <div class="col-sm-8">
-                    <input name="platformAddressExt" th:field="*{platformAddressExt}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{platformAddressExt}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">平台级别:</label>
-                <div class="col-sm-8">
-                    <input name="platformLevel" th:field="*{platformLevel}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{platformLevel}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">平台类型:</label>
-                <div class="col-sm-8">
-                    <input name="platformLevel" th:field="*{platformType}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{platformType}"></div>
             </div>
         </form>
     </div>
     <th:block th:include="include :: footer" />
-    <th:block th:include="include :: jsonview-js" />
-<!--    <script th:inline="javascript">-->
-<!--        var prefix = ctx + "system/platform";-->
-<!--        $("#form-platform-edit").validate({-->
-<!--            focusCleanup: true-->
-<!--        });-->
-
-<!--        function submitHandler() {-->
-<!--            if ($.validate.form()) {-->
-<!--                $.operate.save(prefix + "/edit", $('#form-platform-edit').serialize());-->
-<!--            }-->
-<!--        }-->
-<!--    </script>-->
 </body>
 </html>

+ 7 - 70
mybusiness/src/main/resources/templates/system/medicine/project/detail.html

@@ -1,101 +1,38 @@
 <!DOCTYPE html>
 <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
 <head>
-    <th:block th:include="include :: header('修改项目采集')" />
-    <th:block th:include="include :: jsonview-css" />
+    <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-project-edit" th:object="${tGuijiMedicineProject}">
             <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">
-                    <input name="cdTime" th:field="*{cdTime}" 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="cdBatch" th:field="*{cdBatch}" 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="cdOperation" th:field="*{cdOperation}" 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="cdSource" th:field="*{cdSource}" 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="projectName" th:field="*{projectName}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{projectName}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">项目机构:</label>
-                <div class="col-sm-8">
-                    <input name="projectOrgName" th:field="*{projectOrgName}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{projectOrgName}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">项目地址:</label>
-                <div class="col-sm-8">
-                    <input name="projectAddress" th:field="*{projectAddress}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{projectAddress}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">建设阶段:</label>
-                <div class="col-sm-8">
-                    <input name="projectAddress" th:field="*{projectStatus}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{projectStatus}"></div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">项目总投资:</label>
-                <div class="col-sm-8">
-                    <input name="projectTotalInvestment" th:field="*{projectTotalInvestment}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{projectTotalInvestment}"></div>
             </div>
-            <!--<div class="form-group">
-                <label class="col-sm-3 control-label">项目起年份:</label>
-                <div class="col-sm-8">
-                    <input name="projectStart" th:field="*{projectStart}" 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="projectEnd" th:field="*{projectEnd}" 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="projectStartEnd" th:field="*{projectStartEnd}" class="form-control" type="text">
-                </div>
+                <div class="form-control-static" th:text="*{projectStartEnd}"></div>
             </div>
         </form>
     </div>
     <th:block th:include="include :: footer" />
-    <th:block th:include="include :: jsonview-js" />
-<!--    <th:block th:include="include :: footer" />-->
-<!--    <script th:inline="javascript">-->
-<!--        var prefix = ctx + "system/project";-->
-<!--        $("#form-project-edit").validate({-->
-<!--            focusCleanup: true-->
-<!--        });-->
-
-<!--        function submitHandler() {-->
-<!--            if ($.validate.form()) {-->
-<!--                $.operate.save(prefix + "/edit", $('#form-project-edit').serialize());-->
-<!--            }-->
-<!--        }-->
-<!--    </script>-->
 </body>
 </html>