提交 5416e160 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 2d42263c
......@@ -43,7 +43,7 @@
// 表单行间距
.app-form{
.app-form-item{
margin-bottom: 10px;
margin-bottom: 20px;
}
}
// this is less
......@@ -43,7 +43,7 @@
// 表单行间距
.app-form{
.app-form-item{
margin-bottom: 10px;
margin-bottom: 20px;
}
}
// this is less
......@@ -10,6 +10,7 @@ import java.util.HashMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
......
......@@ -10,6 +10,7 @@ import java.util.HashMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
......
......@@ -14,6 +14,7 @@ import lombok.Data;
@Data
public class DTOBase implements Serializable {
@JsonIgnore
@JSONField(serialize = false)
private Set<String> focusNull;
......@@ -21,13 +22,30 @@ public class DTOBase implements Serializable {
public void modify(String field,Object val) {
if(val==null)
this.getFocusNull().add(field.toLowerCase());
this.getFocusNull(true).add(field.toLowerCase());
else
this.getFocusNull().remove(field.toLowerCase());
this.getFocusNull(true).remove(field.toLowerCase());
}
public Set<String> getFocusNull() {
if(focusNull==null)
focusNull=new HashSet<>();
if(focusNull.size()>0 && extensionparams.containsKey("dirtyflagenable"))
{
Set<String> nocheck=new HashSet<>();
for(String key:focusNull)
{
if(!extensionparams.containsKey(key+"dirtyflag"))
nocheck.add(key);
}
for(String key:nocheck)
focusNull.remove(key);
}
return focusNull;
}
private Set<String> getFocusNull(boolean newflag) {
if(focusNull==null)
focusNull=new HashSet<>();
return focusNull;
......@@ -54,3 +72,4 @@ public class DTOBase implements Serializable {
extensionparams.put(name.toLowerCase(), value);
}
}
......@@ -31,10 +31,7 @@ public class EntityBase implements Serializable {
}
public void modify(String field,Object val) {
if(val==null)
this.getFocusNull().add(field.toLowerCase());
else
this.getFocusNull().remove(field.toLowerCase());
}
public Serializable getDefaultKey(boolean gen) {
......
package cn.ibizlab.util.domain;
public class EntityClient extends EntityBase {
@Override
public void modify(String field,Object val) {
if(val==null){
this.getFocusNull().add(field.toLowerCase());
getExtensionparams().put("dirtyflagenable",true);
getExtensionparams().put(field.toLowerCase()+"dirtyflag",true);
}
else{
this.getFocusNull().remove(field.toLowerCase());
getExtensionparams().remove(field.toLowerCase()+"dirtyflag");
}
}
}
......@@ -16,5 +16,13 @@ public class EntityMP extends EntityBase {
return wrapper;
}
@Override
public void modify(String field,Object val) {
if(val==null)
this.getFocusNull().add(field.toLowerCase());
else
this.getFocusNull().remove(field.toLowerCase());
}
}
package cn.ibizlab.util.domain;
public class EntityMongo extends EntityBase {
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册