按日期查询报错;
This commit is contained in:
+2
@@ -188,5 +188,7 @@ public class MaterialInventoryDTO extends MaterialBaseDTO {
|
||||
/** 为 true 时排除库存数量为 0 的行(出库分配选库存用);库存查询页不传或 false */
|
||||
@ApiModelProperty(value = "是否排除库存数量为0", example = "false")
|
||||
private Boolean excludeZeroInventoryQuantity;
|
||||
private String expiryDate;
|
||||
private String productionDate;
|
||||
|
||||
}
|
||||
+3
-1
@@ -81,6 +81,8 @@ public class MaterialInventoryApi extends BaseController {
|
||||
|
||||
//转换实体
|
||||
MaterialInventoryDO materialInventoryDO = materialInventoryAssembler.toDO(materialInventoryDTO);
|
||||
materialInventoryDO.setExpiryDateStr(materialInventoryDTO.getExpiryDate());
|
||||
materialInventoryDO.setProductionDateStr(materialInventoryDTO.getProductionDate());
|
||||
startPage();
|
||||
// 使用带批次属性的查询方法,批次属性值从库存表中获取
|
||||
List<MaterialInventoryPO> list = materialInventoryApplicationService.queryListWithBatchAttributes(materialInventoryDO);
|
||||
@@ -220,4 +222,4 @@ public class MaterialInventoryApi extends BaseController {
|
||||
return AjaxResult.success(materialInventoryApplicationService.sumInventoryQuantity(materialInventoryDO));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user