库位监控新增导出

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.setStatus("-1");
wmsOthersProcRes.setResult(resultGetOthersInf); wmsOthersProcRes.setResult(resultGetOthersInf);
// wmsOthersProcRes.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(wmsOthersProcRes); tEbsRecordService.updateTEbsRecord(wmsOthersProcRes);
} }
} }
@ -110,11 +111,13 @@ public class EbsReportController extends BaseController {
// 更新子库存转移 // 更新子库存转移
WmsSubInvProcRes.setStatus("1"); WmsSubInvProcRes.setStatus("1");
WmsSubInvProcRes.setResult(resultGetSubinvInf); WmsSubInvProcRes.setResult(resultGetSubinvInf);
// WmsSubInvProcRes.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(WmsSubInvProcRes); tEbsRecordService.updateTEbsRecord(WmsSubInvProcRes);
} else if (dataGetSubinvInf.size() > 0 && dataGetSubinvInf.get(0).getString("processStatus").equals("ERROR")) { } else if (dataGetSubinvInf.size() > 0 && dataGetSubinvInf.get(0).getString("processStatus").equals("ERROR")) {
// 更新子库存转移 // 更新子库存转移
WmsSubInvProcRes.setStatus("-1"); WmsSubInvProcRes.setStatus("-1");
WmsSubInvProcRes.setResult(resultGetSubinvInf); WmsSubInvProcRes.setResult(resultGetSubinvInf);
// WmsSubInvProcRes.setUpdateTime(new Date());
tEbsRecordService.updateTEbsRecord(WmsSubInvProcRes); 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.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.StringUtils; 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.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; 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.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
@Controller @Controller
@RequestMapping("/business/locationMonitor") @RequestMapping("/business/locationMonitor")
public class LocationController extends BaseController { public class LocationController extends BaseController {
@ -85,4 +91,17 @@ public class LocationController extends BaseController {
} }
return success("1"); 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,15 +7,7 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div"> <div class="container-div">
<div class="row" style="height: auto !important;"> <div class="row" style="height: auto !important;">
<div class="col-sm-12 pr0 pl0 shadow"> <div class="col-sm-12 search-collapse">
<div class="ibox float-e-margins ">
<div class="ibox-title">
<div class="col-sm-8 pl0 pr0">
<h8>库位列表</h8>
</div>
</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"> <form id="formId">
<div class="select-list"> <div class="select-list">
<ul> <ul>
@ -35,13 +27,15 @@
</div> </div>
</form> </form>
</div> </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"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" data-resizable="true"></table> <table id="bootstrap-table" data-resizable="true"></table>
</div> </div>
</div> </div>
</div>
</div>
</div>
</div> </div>
<th:block th:include="include :: footer"/> <th:block th:include="include :: footer"/>
<script th:inline="javascript"> <script th:inline="javascript">
@ -53,6 +47,7 @@
$(function () { $(function () {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
exportUrl: prefix + "/export",
modalName: "库位列表", modalName: "库位列表",
showSearch: false, showSearch: false,
showToggle: false, showToggle: false,

View File

@ -25,10 +25,25 @@ public class TBaseStorageAreaLocation extends BaseEntity
/** 库位编号 */ /** 库位编号 */
@TableId(value = "LOCATION_ID") @TableId(value = "LOCATION_ID")
@Excel(name = "库位号")
private String locationId; 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") @TableField("PY_NAME")
private String pyName; private String pyName;
@ -36,84 +51,74 @@ public class TBaseStorageAreaLocation extends BaseEntity
@TableField(value = "STORAGE_ID") @TableField(value = "STORAGE_ID")
private String storageId; private String storageId;
/** 有锁 0否 1是 */
@Excel(name = "有锁 0否 1")
@TableField("ISLOCK")
private String islock;
/** 长 */ /** 长 */
@Excel(name = "") // @Excel(name = "")
@TableField("LOCATION_LONG") @TableField("LOCATION_LONG")
private BigDecimal locationLong; private BigDecimal locationLong;
/** 宽 */ /** 宽 */
@Excel(name = "") // @Excel(name = "")
@TableField("LOCATION_WIDTH") @TableField("LOCATION_WIDTH")
private BigDecimal locationWidth; private BigDecimal locationWidth;
/** 高 */ /** 高 */
@Excel(name = "") // @Excel(name = "")
@TableField("LOCATION_HEIGHT") @TableField("LOCATION_HEIGHT")
private String locationHeight; private String locationHeight;
/** 容积 */ /** 容积 */
@Excel(name = "容积") // @Excel(name = "容积")
@TableField("VOLUME") @TableField("VOLUME")
private BigDecimal volume; private BigDecimal volume;
/** 已占用容积 */ /** 已占用容积 */
@Excel(name = "已占用容积") // @Excel(name = "已占用容积")
@TableField("HASVOLUME") @TableField("HASVOLUME")
private BigDecimal hasvolume; private BigDecimal hasvolume;
/** 承载重量 */ /** 承载重量 */
@Excel(name = "承载重量") // @Excel(name = "承载重量")
@TableField("BEARWEIGHT") @TableField("BEARWEIGHT")
private BigDecimal bearweight; private BigDecimal bearweight;
/** ABC分类 */
@Excel(name = "ABC分类")
@TableField("ABC_ID")
private String abcId;
/** 排序 */ /** 排序 */
@Excel(name = "排序") // @Excel(name = "排序")
@TableField("SORT") @TableField("SORT")
private BigDecimal sort; private BigDecimal sort;
/** 状态 0正常 1停用 */
@Excel(name = "状态 0正常 1停用")
@TableField("STATUS")
private String status;
/** 版本号 */ /** 版本号 */
@Excel(name = "版本号") // @Excel(name = "版本号")
@TableField("VERSION") @TableField("VERSION")
private String version; private String version;
/** 操作人 */ /** 操作人 */
@Excel(name = "操作人") // @Excel(name = "操作人")
@TableField("OPERATORID") @TableField("OPERATORID")
private String operatorid; private String operatorid;
/** 操作时间 */ /** 操作时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd") // @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("OPERATEDATE") @TableField("OPERATEDATE")
private Date operatedate; private Date operatedate;
/** $column.columnComment */ /** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") // @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@TableField("ROW1") @TableField("ROW1")
private String row1; private String row1;
/** $column.columnComment */ /** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") // @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@TableField("CLN") @TableField("CLN")
private String cln; private String cln;
/** $column.columnComment */ /** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") // @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@TableField("LAYER1") @TableField("LAYER1")
private String 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="goodsName" column="goods_name" />
<result property="lotId" column="lot_id" /> <result property="lotId" column="lot_id" />
<result property="quantity" column="quantity" /> <result property="quantity" column="quantity" />
<result property="createTime" column="CREATE_TIME" />
<result property="updateTime" column="UPDATE_TIME" />
</resultMap> </resultMap>
<sql id="selectTEbsRecordVo"> <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> </sql>
<select id="selectTEbsRecordList" parameterType="TEbsRecord" resultMap="TEbsRecordResult"> <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="goodsName != null">goods_name,</if>
<if test="lotId != null">lot_id,</if> <if test="lotId != null">lot_id,</if>
<if test="quantity != null">quantity,</if> <if test="quantity != null">quantity,</if>
<if test="createTime != null">CREATE_TIME,</if>
operate_time, operate_time,
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <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="goodsName != null">#{goodsName},</if>
<if test="lotId != null">#{lotId},</if> <if test="lotId != null">#{lotId},</if>
<if test="quantity != null">#{quantity},</if> <if test="quantity != null">#{quantity},</if>
<if test="createTime != null">#{createTime},</if>
now() now()
</trim> </trim>
</insert> </insert>
@ -98,7 +94,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="goodsName != null">goods_name = #{goodsName},</if> <if test="goodsName != null">goods_name = #{goodsName},</if>
<if test="lotId != null">lot_id = #{lotId},</if> <if test="lotId != null">lot_id = #{lotId},</if>
<if test="quantity != null">quantity = #{quantity},</if> <if test="quantity != null">quantity = #{quantity},</if>
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
operate_time = now(), operate_time = now(),
</trim> </trim>
where record_id = #{recordId} where record_id = #{recordId}

View File

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