增加Excel导入查询(框架)
This commit is contained in:
parent
1e8d7fa79b
commit
0ef342010f
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.bps.controller;
|
||||
|
||||
import java.util.List;
|
||||
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;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.bps.domain.ExpImportQuery;
|
||||
import com.ruoyi.bps.service.IExpImportQueryService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* Excel批量快递查询Controller
|
||||
*
|
||||
* @author Bo
|
||||
* @date 2021-07-21
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/bps/expImportQuery")
|
||||
public class ExpImportQueryController extends BaseController
|
||||
{
|
||||
private String prefix = "bps/expImportQuery";
|
||||
|
||||
@Autowired
|
||||
private IExpImportQueryService expImportQueryService;
|
||||
|
||||
@RequiresPermissions("bps:expImportQuery:view")
|
||||
@GetMapping()
|
||||
public String expImportQuery()
|
||||
{
|
||||
return prefix + "/expImportQuery";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询Excel批量快递查询列表
|
||||
*/
|
||||
@RequiresPermissions("bps:expImportQuery:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ExpImportQuery expImportQuery)
|
||||
{
|
||||
startPage();
|
||||
List<ExpImportQuery> list = expImportQueryService.selectExpImportQueryList(expImportQuery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出Excel批量快递查询列表
|
||||
*/
|
||||
@RequiresPermissions("bps:expImportQuery:export")
|
||||
@Log(title = "Excel批量快递查询", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ExpImportQuery expImportQuery)
|
||||
{
|
||||
List<ExpImportQuery> list = expImportQueryService.selectExpImportQueryList(expImportQuery);
|
||||
ExcelUtil<ExpImportQuery> util = new ExcelUtil<ExpImportQuery>(ExpImportQuery.class);
|
||||
return util.exportExcel(list, "Excel批量快递查询数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Excel批量快递查询
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存Excel批量快递查询
|
||||
*/
|
||||
@RequiresPermissions("bps:expImportQuery:add")
|
||||
@Log(title = "Excel批量快递查询", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ExpImportQuery expImportQuery)
|
||||
{
|
||||
return toAjax(expImportQueryService.insertExpImportQuery(expImportQuery));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Excel批量快递查询
|
||||
*/
|
||||
@GetMapping("/edit/{sid}")
|
||||
public String edit(@PathVariable("sid") Long sid, ModelMap mmap)
|
||||
{
|
||||
ExpImportQuery expImportQuery = expImportQueryService.selectExpImportQueryById(sid);
|
||||
mmap.put("expImportQuery", expImportQuery);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存Excel批量快递查询
|
||||
*/
|
||||
@RequiresPermissions("bps:expImportQuery:edit")
|
||||
@Log(title = "Excel批量快递查询", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ExpImportQuery expImportQuery)
|
||||
{
|
||||
return toAjax(expImportQueryService.updateExpImportQuery(expImportQuery));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Excel批量快递查询
|
||||
*/
|
||||
@RequiresPermissions("bps:expImportQuery:remove")
|
||||
@Log(title = "Excel批量快递查询", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(expImportQueryService.deleteExpImportQueryByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
package com.ruoyi.bps.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* Excel批量快递查询对象 exp_import_query
|
||||
*
|
||||
* @author Bo
|
||||
* @date 2021-07-21
|
||||
*/
|
||||
public class ExpImportQuery extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** sid */
|
||||
private Long sid;
|
||||
|
||||
/** 查询时间 */
|
||||
@Excel(name = "查询时间")
|
||||
private String queryTime;
|
||||
|
||||
/** 用户ID */
|
||||
@Excel(name = "用户ID")
|
||||
private String queryUserId;
|
||||
|
||||
/** 用户名 */
|
||||
@Excel(name = "用户名")
|
||||
private String queryUserName;
|
||||
|
||||
/** 查询IP */
|
||||
@Excel(name = "查询IP")
|
||||
private String queryIp;
|
||||
|
||||
/** 完成时间 */
|
||||
@Excel(name = "完成时间")
|
||||
private String finishTime;
|
||||
|
||||
/** 完成状态 */
|
||||
@Excel(name = "完成状态")
|
||||
private String status;
|
||||
|
||||
/** 运单总量 */
|
||||
@Excel(name = "运单总量")
|
||||
private String queryQty;
|
||||
|
||||
public void setSid(Long sid)
|
||||
{
|
||||
this.sid = sid;
|
||||
}
|
||||
|
||||
public Long getSid()
|
||||
{
|
||||
return sid;
|
||||
}
|
||||
public void setQueryTime(String queryTime)
|
||||
{
|
||||
this.queryTime = queryTime;
|
||||
}
|
||||
|
||||
public String getQueryTime()
|
||||
{
|
||||
return queryTime;
|
||||
}
|
||||
public void setQueryUserId(String queryUserId)
|
||||
{
|
||||
this.queryUserId = queryUserId;
|
||||
}
|
||||
|
||||
public String getQueryUserId()
|
||||
{
|
||||
return queryUserId;
|
||||
}
|
||||
public void setQueryUserName(String queryUserName)
|
||||
{
|
||||
this.queryUserName = queryUserName;
|
||||
}
|
||||
|
||||
public String getQueryUserName()
|
||||
{
|
||||
return queryUserName;
|
||||
}
|
||||
public void setQueryIp(String queryIp)
|
||||
{
|
||||
this.queryIp = queryIp;
|
||||
}
|
||||
|
||||
public String getQueryIp()
|
||||
{
|
||||
return queryIp;
|
||||
}
|
||||
public void setFinishTime(String finishTime)
|
||||
{
|
||||
this.finishTime = finishTime;
|
||||
}
|
||||
|
||||
public String getFinishTime()
|
||||
{
|
||||
return finishTime;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setQueryQty(String queryQty)
|
||||
{
|
||||
this.queryQty = queryQty;
|
||||
}
|
||||
|
||||
public String getQueryQty()
|
||||
{
|
||||
return queryQty;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("sid", getSid())
|
||||
.append("queryTime", getQueryTime())
|
||||
.append("queryUserId", getQueryUserId())
|
||||
.append("queryUserName", getQueryUserName())
|
||||
.append("queryIp", getQueryIp())
|
||||
.append("finishTime", getFinishTime())
|
||||
.append("status", getStatus())
|
||||
.append("queryQty", getQueryQty())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.bps.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bps.domain.ExpImportQuery;
|
||||
|
||||
/**
|
||||
* Excel批量快递查询Mapper接口
|
||||
*
|
||||
* @author Bo
|
||||
* @date 2021-07-21
|
||||
*/
|
||||
public interface ExpImportQueryMapper
|
||||
{
|
||||
/**
|
||||
* 查询Excel批量快递查询
|
||||
*
|
||||
* @param sid Excel批量快递查询ID
|
||||
* @return Excel批量快递查询
|
||||
*/
|
||||
public ExpImportQuery selectExpImportQueryById(Long sid);
|
||||
|
||||
/**
|
||||
* 查询Excel批量快递查询列表
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return Excel批量快递查询集合
|
||||
*/
|
||||
public List<ExpImportQuery> selectExpImportQueryList(ExpImportQuery expImportQuery);
|
||||
|
||||
/**
|
||||
* 新增Excel批量快递查询
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExpImportQuery(ExpImportQuery expImportQuery);
|
||||
|
||||
/**
|
||||
* 修改Excel批量快递查询
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExpImportQuery(ExpImportQuery expImportQuery);
|
||||
|
||||
/**
|
||||
* 删除Excel批量快递查询
|
||||
*
|
||||
* @param sid Excel批量快递查询ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExpImportQueryById(Long sid);
|
||||
|
||||
/**
|
||||
* 批量删除Excel批量快递查询
|
||||
*
|
||||
* @param sids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExpImportQueryByIds(String[] sids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.bps.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bps.domain.ExpImportQuery;
|
||||
|
||||
/**
|
||||
* Excel批量快递查询Service接口
|
||||
*
|
||||
* @author Bo
|
||||
* @date 2021-07-21
|
||||
*/
|
||||
public interface IExpImportQueryService
|
||||
{
|
||||
/**
|
||||
* 查询Excel批量快递查询
|
||||
*
|
||||
* @param sid Excel批量快递查询ID
|
||||
* @return Excel批量快递查询
|
||||
*/
|
||||
public ExpImportQuery selectExpImportQueryById(Long sid);
|
||||
|
||||
/**
|
||||
* 查询Excel批量快递查询列表
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return Excel批量快递查询集合
|
||||
*/
|
||||
public List<ExpImportQuery> selectExpImportQueryList(ExpImportQuery expImportQuery);
|
||||
|
||||
/**
|
||||
* 新增Excel批量快递查询
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExpImportQuery(ExpImportQuery expImportQuery);
|
||||
|
||||
/**
|
||||
* 修改Excel批量快递查询
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExpImportQuery(ExpImportQuery expImportQuery);
|
||||
|
||||
/**
|
||||
* 批量删除Excel批量快递查询
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExpImportQueryByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除Excel批量快递查询信息
|
||||
*
|
||||
* @param sid Excel批量快递查询ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExpImportQueryById(Long sid);
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
package com.ruoyi.bps.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.bps.mapper.ExpImportQueryMapper;
|
||||
import com.ruoyi.bps.domain.ExpImportQuery;
|
||||
import com.ruoyi.bps.service.IExpImportQueryService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* Excel批量快递查询Service业务层处理
|
||||
*
|
||||
* @author Bo
|
||||
* @date 2021-07-21
|
||||
*/
|
||||
@Service
|
||||
public class ExpImportQueryServiceImpl implements IExpImportQueryService
|
||||
{
|
||||
@Autowired
|
||||
private ExpImportQueryMapper expImportQueryMapper;
|
||||
|
||||
/**
|
||||
* 查询Excel批量快递查询
|
||||
*
|
||||
* @param sid Excel批量快递查询ID
|
||||
* @return Excel批量快递查询
|
||||
*/
|
||||
@Override
|
||||
public ExpImportQuery selectExpImportQueryById(Long sid)
|
||||
{
|
||||
return expImportQueryMapper.selectExpImportQueryById(sid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询Excel批量快递查询列表
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return Excel批量快递查询
|
||||
*/
|
||||
@Override
|
||||
public List<ExpImportQuery> selectExpImportQueryList(ExpImportQuery expImportQuery)
|
||||
{
|
||||
return expImportQueryMapper.selectExpImportQueryList(expImportQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Excel批量快递查询
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertExpImportQuery(ExpImportQuery expImportQuery)
|
||||
{
|
||||
return expImportQueryMapper.insertExpImportQuery(expImportQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Excel批量快递查询
|
||||
*
|
||||
* @param expImportQuery Excel批量快递查询
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateExpImportQuery(ExpImportQuery expImportQuery)
|
||||
{
|
||||
return expImportQueryMapper.updateExpImportQuery(expImportQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Excel批量快递查询对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExpImportQueryByIds(String ids)
|
||||
{
|
||||
return expImportQueryMapper.deleteExpImportQueryByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Excel批量快递查询信息
|
||||
*
|
||||
* @param sid Excel批量快递查询ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExpImportQueryById(Long sid)
|
||||
{
|
||||
return expImportQueryMapper.deleteExpImportQueryById(sid);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
<?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.ruoyi.bps.mapper.ExpImportQueryMapper">
|
||||
|
||||
<resultMap type="ExpImportQuery" id="ExpImportQueryResult">
|
||||
<result property="sid" column="sid" />
|
||||
<result property="queryTime" column="queryTime" />
|
||||
<result property="queryUserId" column="queryUserId" />
|
||||
<result property="queryUserName" column="queryUserName" />
|
||||
<result property="queryIp" column="queryIp" />
|
||||
<result property="finishTime" column="finishTime" />
|
||||
<result property="status" column="status" />
|
||||
<result property="queryQty" column="queryQty" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectExpImportQueryVo">
|
||||
select sid, queryTime, queryUserId, queryUserName, queryIp, finishTime, status, queryQty from exp_import_query
|
||||
</sql>
|
||||
|
||||
<select id="selectExpImportQueryList" parameterType="ExpImportQuery" resultMap="ExpImportQueryResult">
|
||||
<include refid="selectExpImportQueryVo"/>
|
||||
<where>
|
||||
<if test="queryTime != null and queryTime != ''"> and queryTime like concat('%', #{queryTime}, '%')</if>
|
||||
<if test="queryUserId != null and queryUserId != ''"> and queryUserId = #{queryUserId}</if>
|
||||
<if test="queryUserName != null and queryUserName != ''"> and queryUserName = #{queryUserName}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectExpImportQueryById" parameterType="Long" resultMap="ExpImportQueryResult">
|
||||
<include refid="selectExpImportQueryVo"/>
|
||||
where sid = #{sid}
|
||||
</select>
|
||||
|
||||
<insert id="insertExpImportQuery" parameterType="ExpImportQuery" useGeneratedKeys="true" keyProperty="sid">
|
||||
insert into exp_import_query
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="queryTime != null">queryTime,</if>
|
||||
<if test="queryUserId != null">queryUserId,</if>
|
||||
<if test="queryUserName != null">queryUserName,</if>
|
||||
<if test="queryIp != null">queryIp,</if>
|
||||
<if test="finishTime != null">finishTime,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="queryQty != null">queryQty,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="queryTime != null">#{queryTime},</if>
|
||||
<if test="queryUserId != null">#{queryUserId},</if>
|
||||
<if test="queryUserName != null">#{queryUserName},</if>
|
||||
<if test="queryIp != null">#{queryIp},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="queryQty != null">#{queryQty},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateExpImportQuery" parameterType="ExpImportQuery">
|
||||
update exp_import_query
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="queryTime != null">queryTime = #{queryTime},</if>
|
||||
<if test="queryUserId != null">queryUserId = #{queryUserId},</if>
|
||||
<if test="queryUserName != null">queryUserName = #{queryUserName},</if>
|
||||
<if test="queryIp != null">queryIp = #{queryIp},</if>
|
||||
<if test="finishTime != null">finishTime = #{finishTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="queryQty != null">queryQty = #{queryQty},</if>
|
||||
</trim>
|
||||
where sid = #{sid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteExpImportQueryById" parameterType="Long">
|
||||
delete from exp_import_query where sid = #{sid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteExpImportQueryByIds" parameterType="String">
|
||||
delete from exp_import_query where sid in
|
||||
<foreach item="sid" collection="array" open="(" separator="," close=")">
|
||||
#{sid}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增Excel批量快递查询')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-expImportQuery-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">查询时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryUserId" 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="queryUserName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">查询IP:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryIp" 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="finishTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">完成状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="status" class="form-control m-b" th:with="type=${@dict.getType('sys_common_status')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">运单总量:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryQty" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "bps/expImportQuery"
|
||||
$("#form-expImportQuery-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-expImportQuery-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改Excel批量快递查询')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-expImportQuery-edit" th:object="${expImportQuery}">
|
||||
<input name="sid" th:field="*{sid}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">查询时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryTime" th:field="*{queryTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryUserId" th:field="*{queryUserId}" 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="queryUserName" th:field="*{queryUserName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">查询IP:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryIp" th:field="*{queryIp}" 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="finishTime" th:field="*{finishTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">完成状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="status" class="form-control m-b" th:with="type=${@dict.getType('sys_common_status')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{status}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">运单总量:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="queryQty" th:field="*{queryQty}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "bps/expImportQuery";
|
||||
$("#form-expImportQuery-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-expImportQuery-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,129 @@
|
|||
<!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('Excel批量快递查询列表')" />
|
||||
</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>
|
||||
<input type="text" name="queryTime"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>用户ID:</label>
|
||||
<input type="text" name="queryUserId"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>用户名:</label>
|
||||
<input type="text" name="queryUserName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>完成状态:</label>
|
||||
<select name="status" th:with="type=${@dict.getType('sys_common_status')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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="bps:expImportQuery:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="bps:expImportQuery:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="bps:expImportQuery:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="bps:expImportQuery: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('bps:expImportQuery:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('bps:expImportQuery:remove')}]];
|
||||
var statusDatas = [[${@dict.getType('sys_common_status')}]];
|
||||
var prefix = ctx + "bps/expImportQuery";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "Excel批量快递查询",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'sid',
|
||||
title: 'sid',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'queryTime',
|
||||
title: '查询时间'
|
||||
},
|
||||
{
|
||||
field: 'queryUserId',
|
||||
title: '用户ID'
|
||||
},
|
||||
{
|
||||
field: 'queryUserName',
|
||||
title: '用户名'
|
||||
},
|
||||
{
|
||||
field: 'queryIp',
|
||||
title: '查询IP'
|
||||
},
|
||||
{
|
||||
field: 'finishTime',
|
||||
title: '完成时间'
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '完成状态',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(statusDatas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'queryQty',
|
||||
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.sid + '\')"><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.sid + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue