feat(JsReceiptDetail): add model field to receipt detail DTOs and entity

This commit is contained in:
2025-11-09 15:18:47 +08:00
parent 4b7fe8f561
commit 00a703cc14
5 changed files with 18 additions and 1 deletions

View File

@@ -10,7 +10,9 @@ import org.hibernate.annotations.Comment;
public class CreateJsReceiptDetailDto extends OrgCommonDto {
private String receipt;
@Comment("型号")
private String model;
@Comment("类目ID")
private String category;

View File

@@ -23,6 +23,9 @@ public class JsReceiptDetailDto extends OrgCommonDto {
@Comment("类目")
private JsItemCategoryDto category;
@Comment("型号")
private String model;
@Comment("商品名称")
private String goodsName;

View File

@@ -1,6 +1,8 @@
package cn.lihongjie.coal.jsReceiptDetail.dto;
import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.jsItemCategory.dto.JsItemCategoryDto;
import cn.lihongjie.coal.jsItemUnit.dto.JsItemUnitDto;
import lombok.Data;
@@ -9,11 +11,17 @@ import org.hibernate.annotations.Comment;
@Data
public class JsReceiptDetailSimpleDto extends OrgCommonDto {
@Comment("类目")
private JsItemCategoryDto category;
@Comment("型号")
private String model;
@Comment("商品名称")
private String goodsName;
@Comment("单位")
private String unit;
private JsItemUnitDto unit;
@Comment("数量")
private Double number;

View File

@@ -10,7 +10,9 @@ import org.hibernate.annotations.Comment;
public class UpdateJsReceiptDetailDto extends OrgCommonDto {
private String receipt;
@Comment("型号")
private String model;
@Comment("类目ID")
private String category;

View File

@@ -33,7 +33,9 @@ public class JsReceiptDetailEntity extends OrgCommonEntity {
@ManyToOne
@JoinColumn(name = "receipt_id")
private JsReceiptEntity receipt;
@Comment("型号")
private String model;
@Comment("类目")
@ManyToOne
private JsItemCategoryEntity category;