洗煤报表添加原煤明细信息

This commit is contained in:
2024-05-01 20:25:41 +08:00
parent efe3338743
commit 66f5076ed4
5 changed files with 32 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisItemVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisKFItemVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisParamVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisYmDetailVo;
import cn.lihongjie.coal.common.DictCode;
import cn.lihongjie.coal.pojoProcessor.DictTranslate;
@@ -37,6 +38,7 @@ public class CoalWashingDailyAnalysisDto extends OrgCommonDto {
@ElementCollection
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
private List<CoalWashingDailyAnalysisItemVo> inputItems;
private List<CoalWashingDailyAnalysisYmDetailVo> ymDetails;
@ElementCollection
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))

View File

@@ -4,6 +4,7 @@ import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisItemVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisKFItemVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisParamVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisYmDetailVo;
import jakarta.persistence.CollectionTable;
import jakarta.persistence.ConstraintMode;
@@ -38,6 +39,7 @@ public class CreateCoalWashingDailyAnalysisDto extends OrgCommonDto {
@ElementCollection
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
private List<CoalWashingDailyAnalysisItemVo> inputItems;
private List<CoalWashingDailyAnalysisYmDetailVo> ymDetails;
@ElementCollection
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))

View File

@@ -4,6 +4,7 @@ import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisItemVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisKFItemVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisParamVo;
import cn.lihongjie.coal.coalWashingDailyAnalysis.entity.CoalWashingDailyAnalysisYmDetailVo;
import jakarta.persistence.CollectionTable;
import jakarta.persistence.ConstraintMode;
@@ -38,6 +39,7 @@ public class UpdateCoalWashingDailyAnalysisDto extends OrgCommonDto {
@ElementCollection
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
private List<CoalWashingDailyAnalysisItemVo> inputItems;
private List<CoalWashingDailyAnalysisYmDetailVo> ymDetails;
@ElementCollection
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))

View File

@@ -51,6 +51,12 @@ public class CoalWashingDailyAnalysisEntity extends OrgCommonEntity {
@Fetch(FetchMode.SUBSELECT)
private List<CoalWashingDailyAnalysisItemVo> inputItems;
@ElementCollection()
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@Fetch(FetchMode.SUBSELECT)
private List<CoalWashingDailyAnalysisYmDetailVo> ymDetails;
@ElementCollection()
@CollectionTable(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@Fetch(FetchMode.SUBSELECT)

View File

@@ -0,0 +1,20 @@
package cn.lihongjie.coal.coalWashingDailyAnalysis.entity;
import jakarta.persistence.Embeddable;
import lombok.Data;
import java.util.*;
@Embeddable
@Data
public class CoalWashingDailyAnalysisYmDetailVo {
private String id;
private String code;
private String name;
private Double percent;
private Double amount;
}