修复呆滞库存更新功能
- 添加 Inventory 实体 isStagnant 字段及@TableField 注解 - InventoryQueryReportDto 添加 isStagnant 字段用于导出 - 添加 updateStagnantStatusJobHandler 定时任务 - InventoryQueryReportServiceImpl 支持 isStagnant 参数查询
This commit is contained in:
parent
4efd244d79
commit
212a2f9408
@ -197,11 +197,7 @@ public class InventoryQueryReportDto {
|
||||
@ExcelProperty("区域")
|
||||
private String storageLocation;
|
||||
|
||||
/**
|
||||
* 是否呆滞
|
||||
*/
|
||||
@ExcelProperty("是否呆滞")
|
||||
private String isStagnant;
|
||||
|
||||
|
||||
/**
|
||||
* 物料类别
|
||||
@ -266,5 +262,10 @@ public class InventoryQueryReportDto {
|
||||
@ExcelProperty("冻结原因")
|
||||
private String freezeReason;
|
||||
|
||||
/**
|
||||
* 是否呆滞
|
||||
*/
|
||||
@ExcelProperty("是否呆滞")
|
||||
private String isStagnant;
|
||||
|
||||
}
|
||||
|
||||
@ -244,11 +244,7 @@ public class Inventory extends Model<Inventory> {
|
||||
@ApiModelProperty(value = "膜卷类型")
|
||||
private String rollType;
|
||||
|
||||
/**
|
||||
* 是否呆滞
|
||||
*/
|
||||
@ApiModelProperty(value = "是否呆滞")
|
||||
private String isStagnant = "N";
|
||||
|
||||
|
||||
/**
|
||||
* 辅助单位
|
||||
@ -368,6 +364,13 @@ public class Inventory extends Model<Inventory> {
|
||||
@ApiModelProperty(value = "接口数量")
|
||||
private String jointQuantity;
|
||||
|
||||
/**
|
||||
* 是否呆滞
|
||||
*/
|
||||
@TableField("IS_STAGNANT")
|
||||
@ApiModelProperty(value = "是否呆滞")
|
||||
private String isStagnant = "N";
|
||||
|
||||
public Inventory() {
|
||||
}
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ package com.foreverwin.mom.wms.job;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.foreverwin.mom.wms.service.ZWmsInventoryService;
|
||||
import com.xxl.job.core.biz.model.ReturnT;
|
||||
import com.xxl.job.core.context.XxlJobHelper;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@ -24,7 +25,8 @@ public class WmsInventoryJob {
|
||||
* 更新库存呆滞状态
|
||||
*/
|
||||
@XxlJob("updateStagnantStatusJobHandler")
|
||||
public ReturnT<String> updateStagnantStatus(String param) {
|
||||
public ReturnT<String> updateStagnantStatus() {
|
||||
String param = XxlJobHelper.getJobParam();
|
||||
String site = StrUtil.blankToDefault(StrUtil.trim(param), "2031");
|
||||
logger.info("开始执行更新库存呆滞状态任务, site={}", site);
|
||||
try {
|
||||
|
||||
@ -201,6 +201,12 @@ public class InventoryQueryReportServiceImpl implements InventoryQueryReportServ
|
||||
case "D":
|
||||
rollType1 = "调试模";
|
||||
break;
|
||||
case "Y":
|
||||
rollType1 = "试验膜-黄单实验";
|
||||
break;
|
||||
case "R":
|
||||
rollType1 = "试验膜-红单实验";
|
||||
break;
|
||||
case "W":
|
||||
rollType1 = "特采膜";
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user