自定义表头--添加字段
This commit is contained in:
+3
@@ -129,6 +129,9 @@ public class HeadCustomEO implements Comparable<HeadCustomEO> {
|
||||
@ApiModelProperty(value = "动态表头使用")
|
||||
private String dbFieldName;
|
||||
|
||||
@ApiModelProperty(value = "动态表头使用")
|
||||
private String dbFieldTxt;
|
||||
|
||||
@Override
|
||||
public int compareTo(HeadCustomEO o) {
|
||||
return Integer.valueOf(this.getSort())-Integer.valueOf(o.getSort());//升序
|
||||
|
||||
+2
@@ -174,6 +174,7 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
|
||||
headCustomEOTemp.setClick5(headCustomEO.getClick5());
|
||||
headCustomEOTemp.setClick6(headCustomEO.getClick6());
|
||||
headCustomEOTemp.setDbFieldName(headCustomEO.getDbFieldName());
|
||||
headCustomEOTemp.setDbFieldTxt(headCustomEO.getDbFieldTxt());
|
||||
return headCustomEOTemp;
|
||||
}
|
||||
|
||||
@@ -340,6 +341,7 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
|
||||
private HeadCustomVO getHeadCustomVO(String cut, HeadCustomEO headCustomEO, HeadCustomVO headCustomVO) {
|
||||
headCustomVO.setDataIndex(headCustomEO.getField());
|
||||
headCustomVO.setDb_field_name(headCustomEO.getDbFieldName());
|
||||
headCustomVO.setDb_field_txt(headCustomEO.getDbFieldTxt());
|
||||
headCustomVO.setSortParams(headCustomEO.getSortParams());
|
||||
headCustomVO.setSort(headCustomEO.getSort());
|
||||
headCustomVO.setClick(headCustomEO.getClick());
|
||||
|
||||
Reference in New Issue
Block a user