feat(schProdScheduleDetail): 添加生产排程明细下发状态字段
- 在SchProdScheduleDetail实体类中新增isIssued字段用于标识下发状态 - 在SchProdScheduleDetailBo业务对象中添加对应字段定义 - 配置MyBatis映射文件以支持isIssued字段的数据库映射 - 实现查询条件中对isIssued字段的筛选逻辑 - 在SchProdScheduleDetailVo视图对象中添加该字段并配置Excel导出转换
This commit is contained in:
@@ -62,6 +62,10 @@ public class SchProdScheduleDetail extends BaseEntity {
|
|||||||
* 单行排产备注
|
* 单行排产备注
|
||||||
*/
|
*/
|
||||||
private String remark;
|
private String remark;
|
||||||
|
/**
|
||||||
|
* 是否下发(0=未下发, 1=已下发)
|
||||||
|
*/
|
||||||
|
private Long isIssued;
|
||||||
/**
|
/**
|
||||||
* 删除标识 0正常 2删除
|
* 删除标识 0正常 2删除
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -69,5 +69,9 @@ public class SchProdScheduleDetailBo extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否下发(0=未下发, 1=已下发)
|
||||||
|
*/
|
||||||
|
private Long isIssued;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,13 @@ public class SchProdScheduleDetailVo {
|
|||||||
@ExcelProperty(value = "单行排产备注")
|
@ExcelProperty(value = "单行排产备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否下发(0=未下发, 1=已下发)
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "是否下发", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(readConverterExp = "0=未下发,1=已下发")
|
||||||
|
private Long isIssued;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联的排产单主表信息
|
* 关联的排产单主表信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ public class SchProdScheduleDetailServiceImpl implements ISchProdScheduleDetailS
|
|||||||
lqw.eq(StringUtils.isNotBlank(bo.getMaterial()), SchProdScheduleDetail::getMaterial, bo.getMaterial());
|
lqw.eq(StringUtils.isNotBlank(bo.getMaterial()), SchProdScheduleDetail::getMaterial, bo.getMaterial());
|
||||||
lqw.eq(bo.getScheduleWeight() != null, SchProdScheduleDetail::getScheduleWeight, bo.getScheduleWeight());
|
lqw.eq(bo.getScheduleWeight() != null, SchProdScheduleDetail::getScheduleWeight, bo.getScheduleWeight());
|
||||||
lqw.eq(StringUtils.isNotBlank(bo.getProductType()), SchProdScheduleDetail::getProductType, bo.getProductType());
|
lqw.eq(StringUtils.isNotBlank(bo.getProductType()), SchProdScheduleDetail::getProductType, bo.getProductType());
|
||||||
|
// 是否下发
|
||||||
|
lqw.eq(bo.getIsIssued() != null, SchProdScheduleDetail::getIsIssued, bo.getIsIssued());
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
<result property="scheduleWeight" column="schedule_weight"/>
|
<result property="scheduleWeight" column="schedule_weight"/>
|
||||||
<result property="productType" column="product_type"/>
|
<result property="productType" column="product_type"/>
|
||||||
<result property="remark" column="remark"/>
|
<result property="remark" column="remark"/>
|
||||||
|
<result property="isIssued" column="is_issued"/>
|
||||||
<result property="createBy" column="create_by"/>
|
<result property="createBy" column="create_by"/>
|
||||||
<result property="createTime" column="create_time"/>
|
<result property="createTime" column="create_time"/>
|
||||||
<result property="updateBy" column="update_by"/>
|
<result property="updateBy" column="update_by"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user