diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_zp.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_zp.java index f7a91c6..1f8dc7c 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_zp.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_zp.java @@ -1,7 +1,9 @@ package com.budwk.app.zhgh.dayofficework.ghkh.model; +import lombok.Data; import org.nutz.dao.DB; import org.nutz.dao.entity.annotation.*; +import org.nutz.lang.util.NutMap; import java.util.List; import java.util.Map; @@ -13,10 +15,10 @@ import java.util.Map; * @Date: 2020/09/27/20:13 * @Description: */ +@Data @Table("Kh_zp") public class Kh_zp { - @Column @Name @Comment("id") @@ -28,10 +30,12 @@ public class Kh_zp { @Comment("标准id") @ColDefine(type = ColType.VARCHAR, width = 32) private String bz_id; + @Column @Comment("指标id") @ColDefine(type = ColType.VARCHAR, width = 32) private String zb_id; + @Column @Comment("内容id") @ColDefine(type = ColType.VARCHAR, width = 32) @@ -52,92 +56,21 @@ public class Kh_zp { @ColDefine(type = ColType.VARCHAR, width = 32) private String flatid; - - @Column @Comment("文件") @ColDefine(type = ColType.MYSQL_JSON) - private List files; - + private List files; @Column @Comment("排序字段") @Prev({ @SQL(db = DB.MYSQL, value = "SELECT IFNULL(MAX(location),0)+1 FROM Kh_zp"), }) - private Integer location; - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getBz_id() { - return bz_id; - } - - public void setBz_id(String bz_id) { - this.bz_id = bz_id; - } - - public String getZb_id() { - return zb_id; - } - - public void setZb_id(String zb_id) { - this.zb_id = zb_id; - } - - public String getNr_id() { - return nr_id; - } - - public void setNr_id(String nr_id) { - this.nr_id = nr_id; - } - - public String getClnr() { - return clnr; - } - - public void setClnr(String clnr) { - this.clnr = clnr; - } - - public Integer getZpf() { - return zpf; - } - - public void setZpf(Integer zpf) { - this.zpf = zpf; - } - - public String getFlatid() { - return flatid; - } - - public void setFlatid(String flatid) { - this.flatid = flatid; - } - - - public List getFiles() { - return files; - } - - public void setFiles(List files) { - this.files = files; - } - - public Integer getLocation() { - return location; - } - - public void setLocation(Integer location) { - this.location = location; - } + @Column + @Comment("是否修改,默认为false") + @ColDefine(type = ColType.BOOLEAN) + @Default("0") + private Boolean updateStatus; } diff --git a/src/main/resources/views/platform/zhgh/dayofficework/ghkh/xghsh.html b/src/main/resources/views/platform/zhgh/dayofficework/ghkh/xghsh.html index 4c10733..61a8fd0 100644 --- a/src/main/resources/views/platform/zhgh/dayofficework/ghkh/xghsh.html +++ b/src/main/resources/views/platform/zhgh/dayofficework/ghkh/xghsh.html @@ -2,6 +2,11 @@ layout("/layouts/platform.html"){ #--> +
@@ -130,15 +135,16 @@ layout("/layouts/platform.html"){ - -