mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-07-25 07:07:37 +08:00
feat(JsReceiptDetail): add model field to receipt detail DTOs and entity
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@ public class JsReceiptDetailDto extends OrgCommonDto {
|
||||
@Comment("类目")
|
||||
private JsItemCategoryDto category;
|
||||
|
||||
@Comment("型号")
|
||||
|
||||
private String model;
|
||||
@Comment("商品名称")
|
||||
private String goodsName;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user