自定义表头--添加字段

This commit is contained in:
zhn
2023-04-06 16:41:37 +08:00
parent 25e099d80b
commit c1ebadf961
3 changed files with 7 additions and 1 deletions
@@ -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());//升序
@@ -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());