feat(inspection): 添加检验模块日期范围筛选功能
- 在WmsInspectionMainBo中增加inspectionDateStart和inspectionDateEnd字段用于日期范围筛选 - 在WmsInspectionMainServiceImpl中实现日期范围查询逻辑 - 在WmsInspectionTensileDetailBo中增加productionDateStart、productionDateEnd、testDateStart和testDateEnd字段 - 在WmsInspectionTensileDetailServiceImpl中实现生产日期和试验日期范围查询逻辑 - 添加DateTimeFormat注解支持日期格式化处理
This commit is contained in:
@@ -7,6 +7,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* 检验主业务对象 wms_inspection_main
|
||||
@@ -29,6 +30,20 @@ public class WmsInspectionMainBo extends BaseEntity {
|
||||
*/
|
||||
private Date inspectionDate;
|
||||
|
||||
/**
|
||||
* 检验日期开始(用于范围筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date inspectionDateStart;
|
||||
|
||||
/**
|
||||
* 检验日期结束(用于范围筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date inspectionDateEnd;
|
||||
|
||||
/**
|
||||
* 样品名称(对应样品名称列)
|
||||
*/
|
||||
|
||||
@@ -75,11 +75,35 @@ public class WmsInspectionTensileDetailBo extends BaseEntity {
|
||||
*/
|
||||
private Date productionDate;
|
||||
|
||||
/**
|
||||
* 生产日期开始(用于范围筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date productionDateStart;
|
||||
|
||||
/**
|
||||
* 生产日期结束(用于范围筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date productionDateEnd;
|
||||
|
||||
/**
|
||||
* 试验日期
|
||||
*/
|
||||
private Date testDate;
|
||||
|
||||
/**
|
||||
* 试验日期开始(用于范围筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date testDateStart;
|
||||
|
||||
/**
|
||||
* 试验日期结束(用于范围筛选)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date testDateEnd;
|
||||
|
||||
/**
|
||||
* 试样方向(纵/横)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user