7 changed files with 231 additions and 9 deletions
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.screen; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import com.epmet.dto.screen.form.CategoryDictFormDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 项目分类字典上报 |
|||
* @Auther: zhangyong |
|||
* @Date: 2021-03-22 |
|||
*/ |
|||
@Data |
|||
public class CategoryDictDataFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 当isFirst=true时,直接根据 customerId 删除原有数据,再批量insert。 |
|||
*/ |
|||
private Boolean isFirst; |
|||
|
|||
private List<CategoryDictFormDTO> dataList; |
|||
} |
@ -0,0 +1,72 @@ |
|||
package com.epmet.dto.screen.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 项目分类字典上报 |
|||
* @Auther: zhangyong |
|||
* @Date: 2021-03-22 |
|||
*/ |
|||
@Data |
|||
public class CategoryDictFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
// public interface ExtractDailyForm extends CustomerClientShowGroup {}
|
|||
|
|||
/** |
|||
* 客户内自己的分类编码 |
|||
*/ |
|||
// @NotBlank(message = "客户分类编码不能为空", groups = { ExtractDailyForm.class })
|
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 客户内自己的分类名称 |
|||
*/ |
|||
// @NotBlank(message = "客户分类名称不能为空", groups = { ExtractDailyForm.class })
|
|||
private String categoryName; |
|||
|
|||
/** |
|||
* 父类分类编码,如果是一级分类,此列赋值为0 |
|||
*/ |
|||
// @NotBlank(message = "父类分类编码不能为空", groups = { ExtractDailyForm.class })
|
|||
private String parentCategoryCode; |
|||
|
|||
/** |
|||
* 分类等级:1、2....; |
|||
*/ |
|||
// @NotBlank(message = "分类等级不能为空", groups = { ExtractDailyForm.class })
|
|||
private Integer level; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
// @NotBlank(message = "排序不能为空", groups = { ExtractDailyForm.class })
|
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 当前分类对应产品内的分类编码,如果对应不上,此列传空 |
|||
*/ |
|||
private String epmetCategoryCode; |
|||
|
|||
/** |
|||
* 原始创建时间yyyy-MM-dd HH:mm:ss |
|||
*/ |
|||
private String originCreatedTime; |
|||
|
|||
/** |
|||
* 原始更新时间yyyy-MM-dd HH:mm:ss |
|||
*/ |
|||
private String orginUpdatedTime; |
|||
|
|||
/** |
|||
* 分类字典表主键 |
|||
*/ |
|||
// @NotBlank(message = "分类字典表主键不能为空", groups = { ExtractDailyForm.class })
|
|||
private String categoryId; |
|||
} |
Loading…
Reference in new issue