库位监控新增导出

This commit is contained in:
15066119699 2025-02-25 16:51:29 +08:00
parent 5088c23b30
commit eb552f8d7f
7 changed files with 133 additions and 115 deletions

View File

@ -86,6 +86,7 @@ public class EbsReportController extends BaseController {
// 更新账户别名发放结果
wmsOthersProcRes.setStatus("-1");
wmsOthersProcRes.setResult(resultGetOthersInf);
// wmsOthersProcRes.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(wmsOthersProcRes);
}
}
@ -110,11 +111,13 @@ public class EbsReportController extends BaseController {
// 更新子库存转移
WmsSubInvProcRes.setStatus("1");
WmsSubInvProcRes.setResult(resultGetSubinvInf);
// WmsSubInvProcRes.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(WmsSubInvProcRes);
} else if (dataGetSubinvInf.size() > 0 && dataGetSubinvInf.get(0).getString("processStatus").equals("ERROR")) {
// 更新子库存转移
WmsSubInvProcRes.setStatus("-1");
WmsSubInvProcRes.setResult(resultGetSubinvInf);
// WmsSubInvProcRes.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(WmsSubInvProcRes);
}
}

View File

@ -10,6 +10,9 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.web.controller.demo.domain.UserOperateModel;
import org.apache.commons.collections.bag.TransformedBag;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -19,6 +22,9 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
@Controller
@RequestMapping("/business/locationMonitor")
public class LocationController extends BaseController {
@ -85,4 +91,17 @@ public class LocationController extends BaseController {
}
return success("1");
}
/**
* 导出
*/
@PostMapping("/export")
@ResponseBody
@RequiresPermissions("business:locationMonitor:export")
public AjaxResult export()
{
List<TBaseStorageAreaLocation> list = locationService.selectTBaseStorageAreaLocationList(new TBaseStorageAreaLocation());
ExcelUtil<TBaseStorageAreaLocation> util = new ExcelUtil<TBaseStorageAreaLocation>(TBaseStorageAreaLocation.class);
return util.exportExcel(list, "库位监控数据");
}
}

View File

@ -7,41 +7,35 @@
<body class="gray-bg">
<div class="container-div">
<div class="row" style="height: auto !important;">
<div class="col-sm-12 pr0 pl0 shadow">
<div class="ibox float-e-margins ">
<div class="ibox-title">
<div class="col-sm-8 pl0 pr0">
<h8>库位列表</h8>
</div>
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>库位编号:</label>
<input type="text" name="locationId"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm"
onclick="$.table.search('formId')"><i
class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm"
onclick="$.form.reset('formId')"><i
class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="ibox-content ibox-content-1" style="margin: 0; height: 350px">
<div class="btn-group-sm" id="toolbar" role="group">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>库位编号:</label>
<input type="text" name="locationId"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm"
onclick="$.table.search('formId')"><i
class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm"
onclick="$.form.reset('formId')"><i
class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" data-resizable="true"></table>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="business:locationMonitor:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" data-resizable="true"></table>
</div>
</div>
</div>
</div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
@ -53,6 +47,7 @@
$(function () {
var options = {
url: prefix + "/list",
exportUrl: prefix + "/export",
modalName: "库位列表",
showSearch: false,
showToggle: false,

View File

@ -25,10 +25,25 @@ public class TBaseStorageAreaLocation extends BaseEntity
/** 库位编号 */
@TableId(value = "LOCATION_ID")
@Excel(name = "库位号")
private String locationId;
/** ABC分类 */
@Excel(name = "巷道")
@TableField("ABC_ID")
private String abcId;
/** 有锁 0否 1是 */
@Excel(name = "是否锁定",dictType="is_lock",type = Excel.Type.EXPORT)
@TableField("ISLOCK")
private String islock;
/** 状态 0正常 1停用 */
@Excel(name = "是否占用",dictType="is_status",type = Excel.Type.EXPORT)
@TableField("STATUS")
private String status;
/** 助记码 */
@Excel(name = "助记码")
// @Excel(name = "助记码")
@TableField("PY_NAME")
private String pyName;
@ -36,84 +51,74 @@ public class TBaseStorageAreaLocation extends BaseEntity
@TableField(value = "STORAGE_ID")
private String storageId;
/** 有锁 0否 1是 */
@Excel(name = "有锁 0否 1")
@TableField("ISLOCK")
private String islock;
/** 长 */
@Excel(name = "")
// @Excel(name = "")
@TableField("LOCATION_LONG")
private BigDecimal locationLong;
/** 宽 */
@Excel(name = "")
// @Excel(name = "")
@TableField("LOCATION_WIDTH")
private BigDecimal locationWidth;
/** 高 */
@Excel(name = "")
// @Excel(name = "")
@TableField("LOCATION_HEIGHT")
private String locationHeight;
/** 容积 */
@Excel(name = "容积")
// @Excel(name = "容积")
@TableField("VOLUME")
private BigDecimal volume;
/** 已占用容积 */
@Excel(name = "已占用容积")
// @Excel(name = "已占用容积")
@TableField("HASVOLUME")
private BigDecimal hasvolume;
/** 承载重量 */
@Excel(name = "承载重量")
// @Excel(name = "承载重量")
@TableField("BEARWEIGHT")
private BigDecimal bearweight;
/** ABC分类 */
@Excel(name = "ABC分类")
@TableField("ABC_ID")
private String abcId;
/** 排序 */
@Excel(name = "排序")
// @Excel(name = "排序")
@TableField("SORT")
private BigDecimal sort;
/** 状态 0正常 1停用 */
@Excel(name = "状态 0正常 1停用")
@TableField("STATUS")
private String status;
/** 版本号 */
@Excel(name = "版本号")
// @Excel(name = "版本号")
@TableField("VERSION")
private String version;
/** 操作人 */
@Excel(name = "操作人")
// @Excel(name = "操作人")
@TableField("OPERATORID")
private String operatorid;
/** 操作时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
// @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("OPERATEDATE")
private Date operatedate;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
// @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@TableField("ROW1")
private String row1;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
// @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@TableField("CLN")
private String cln;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
// @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@TableField("LAYER1")
private String layer1;

View File

@ -18,12 +18,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="goodsName" column="goods_name" />
<result property="lotId" column="lot_id" />
<result property="quantity" column="quantity" />
<result property="createTime" column="CREATE_TIME" />
<result property="updateTime" column="UPDATE_TIME" />
</resultMap>
<sql id="selectTEbsRecordVo">
select record_id, method_name, api_id, api_url, api_param, result, status, description, operate_time, goods_id, goods_name, lot_id, quantity,CREATE_TIME,UPDATE_TIME from t_ebs_record
select record_id, method_name, api_id, api_url, api_param, result, status, description, operate_time, goods_id, goods_name, lot_id, quantity from t_ebs_record
</sql>
<select id="selectTEbsRecordList" parameterType="TEbsRecord" resultMap="TEbsRecordResult">
@ -64,7 +62,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="goodsName != null">goods_name,</if>
<if test="lotId != null">lot_id,</if>
<if test="quantity != null">quantity,</if>
<if test="createTime != null">CREATE_TIME,</if>
operate_time,
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -79,7 +76,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="goodsName != null">#{goodsName},</if>
<if test="lotId != null">#{lotId},</if>
<if test="quantity != null">#{quantity},</if>
<if test="createTime != null">#{createTime},</if>
now()
</trim>
</insert>
@ -98,7 +94,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="goodsName != null">goods_name = #{goodsName},</if>
<if test="lotId != null">lot_id = #{lotId},</if>
<if test="quantity != null">quantity = #{quantity},</if>
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
operate_time = now(),
</trim>
where record_id = #{recordId}

View File

@ -334,6 +334,7 @@ public class ExpiryCheckTask {
// 更新账户别名发放结果
getEkpExpireItem.setStatus("1");
getEkpExpireItem.setResult(resultGetEkpExpireItem);
// getEkpExpireItem.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(getEkpExpireItem);
}
}