道路环境监测node后端和java后台代码
wangrong
2021-11-24 ac1a5f4542431c28b5865acbeb81985cefdbc2a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.example.demo.model;
 
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.jpa.model.BaseModel;
 
import javax.persistence.Entity;
import javax.persistence.Table;
 
/**
 * @author liyuepeng
 * @date 2021-01-02.
 */
@Erupt(name = "一对多新增")
@Table(name = "e_complex_tab")
@Entity
public class ComplexTab extends BaseModel {
 
    @EruptField(
            views = @View(title = "文本"),
            edit = @Edit(title = "文本", notNull = true)
    )
    private String input;
 
    @EruptField(
            views = @View(title = "数值", sortable = true),
            edit = @Edit(title = "数值")
    )
    private Float number;
 
}