CustomAnalysisItemSetting.java 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. package cn.cslg.pas.domain.business;
  2. import cn.cslg.pas.common.dto.customAnalyse.CustomSettingConfigDTO;
  3. import cn.cslg.pas.domain.BaseEntity;
  4. import com.baomidou.mybatisplus.annotation.FieldFill;
  5. import com.baomidou.mybatisplus.annotation.TableField;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import com.fasterxml.jackson.annotation.JsonFormat;
  8. import lombok.Data;
  9. import org.springframework.format.annotation.DateTimeFormat;
  10. import java.util.Date;
  11. /**
  12. * 自定义分析项目图表设置
  13. *
  14. * @Author zero
  15. * @Date 2024/01/15
  16. */
  17. @Data
  18. @TableName("os_custom_analysis_item_setting")
  19. public class CustomAnalysisItemSetting extends BaseEntity<CustomAnalysisItemSetting> {
  20. public CustomAnalysisItemSetting() {
  21. this.type = 1;
  22. this.showType = 0;
  23. this.tableType = 0;
  24. this.theme = "customed";
  25. this.titleSize = 14;
  26. this.dataSize = 14;
  27. this.axisSize = 14;
  28. this.dataLabel = false;
  29. this.dataLabel2 = false;
  30. this.dataLabel3 = false;
  31. this.title1Dir = 0;
  32. this.title1 = "";
  33. this.title2 = "";
  34. this.dataPosition = "top";
  35. this.fontFamily = "sans-serif";
  36. this.fontFamily2 = "sans-serif";
  37. this.fontFamily3 = "sans-serif";
  38. this.fontFamily4 = "sans-serif";
  39. this.fontWeight = false;
  40. this.fontWeight2 = false;
  41. this.nameLocation = "end";
  42. this.nameLocation2 = "end";
  43. this.width = "100";
  44. this.height = "650";
  45. this.widthUnit = "%";
  46. this.heightUnit = "px";
  47. this.splitLine = false;
  48. this.splitLine2 = false;
  49. this.legend = true;
  50. this.gridTop = "0";
  51. this.gridLeft = "0";
  52. this.gridBottom = "0";
  53. this.gridRight = "0";
  54. this.labelColor = "#000000";
  55. this.legendColor = "#000000";
  56. this.legendLocation = "top";
  57. this.legendFontSize = "13";
  58. this.fontSize = "13";
  59. this.fontSize2 = "13";
  60. this.fontColor = "#000000";
  61. this.fontColor2 = "#000000";
  62. this.show = true;
  63. this.show2 = true;
  64. this.interval = true;
  65. this.interval2 = true;
  66. this.rotate = "0";
  67. this.rotate2 = "0";
  68. this.paddingTop = 0;
  69. this.paddingBottom = 0;
  70. this.paddingRight = 0;
  71. this.paddingLeft = 0;
  72. this.paddingTop2 = 0;
  73. this.paddingLeft2 = 0;
  74. this.paddingBottom2 = 0;
  75. this.paddingRight2 = 0;
  76. this.type2 = "scroll";
  77. this.barWidth = "";
  78. this.scatterSize = "0";
  79. this.config = new CustomSettingConfigDTO();
  80. }
  81. @TableField(value = "uid")
  82. private String uid;
  83. @TableField(value = "type")
  84. private Integer type;
  85. @TableField(value = "show_type")
  86. private Integer showType;
  87. @TableField(value = "table_type")
  88. private Integer tableType;
  89. @TableField(value = "theme")
  90. private String theme;
  91. @TableField(value = "title1")
  92. private String title1;
  93. @TableField(value = "title2")
  94. private String title2;
  95. @TableField(value = "data_label")
  96. private Boolean dataLabel;
  97. @TableField(value = "data_position")
  98. private String dataPosition;
  99. @TableField(value = "data_size")
  100. private Integer dataSize;
  101. @TableField(value = "title_size")
  102. private Integer titleSize;
  103. @TableField(value = "axis_size")
  104. private Integer axisSize;
  105. @TableField(value = "title1_dir")
  106. private Integer title1Dir;
  107. @TableField(value = "status")
  108. private Integer status;
  109. /**
  110. * 表格设置
  111. */
  112. @TableField(value = "table_config")
  113. private String tableConfig;
  114. /**
  115. * 颜色
  116. */
  117. @TableField(value = "color_config")
  118. private String colorConfig;
  119. /**
  120. * 辅助线
  121. */
  122. @TableField(value = "line_config")
  123. private String lineConfig;
  124. /**
  125. * 字体
  126. */
  127. @TableField(value = "font_family")
  128. private String fontFamily;
  129. @TableField(exist = false)
  130. private CustomSettingConfigDTO config;
  131. @TableField(value = "create_id")
  132. private String createId;
  133. @TableField(value = "create_name")
  134. private String createName;
  135. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  136. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  137. @TableField(value = "create_time",fill = FieldFill.INSERT_UPDATE)
  138. private Date createTime;
  139. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  140. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  141. @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
  142. private Date updateTime;
  143. /**
  144. * 坐标轴(X)加粗
  145. */
  146. @TableField(value = "font_weight")
  147. private Boolean fontWeight;
  148. /**
  149. * 坐标轴(Y)加粗
  150. */
  151. @TableField(value = "font_weight2")
  152. private Boolean fontWeight2;
  153. @TableField(value = "name_location")
  154. private String nameLocation;
  155. /**
  156. * 高
  157. */
  158. @TableField(value = "height")
  159. private String height;
  160. /**
  161. * 宽
  162. */
  163. @TableField(value = "width")
  164. private String width;
  165. /**
  166. * 高(单位)
  167. */
  168. @TableField(value = "height_unit")
  169. private String heightUnit;
  170. /**
  171. * 宽(单位)
  172. */
  173. @TableField(value = "width_unit")
  174. private String widthUnit;
  175. /**
  176. * 坐标轴X(线)是否显示
  177. */
  178. @TableField(value = "split_line")
  179. private Boolean splitLine;
  180. /**
  181. * 坐标轴Y(线)是否显示
  182. */
  183. @TableField(value = "split_line2")
  184. private Boolean splitLine2;
  185. /**
  186. * 图例是否显示
  187. */
  188. @TableField(value = "legend")
  189. private Boolean legend;
  190. /**
  191. * 图例位置
  192. */
  193. @TableField(value = "legend_location")
  194. private String legendLocation;
  195. /**
  196. * 图表位置
  197. */
  198. @TableField(value = "grid_top")
  199. private String gridTop;
  200. @TableField(value = "grid_left")
  201. private String gridLeft;
  202. @TableField(value = "grid_right")
  203. private String gridRight;
  204. @TableField(value = "grid_bottom")
  205. private String gridBottom;
  206. /**
  207. * 标签字体
  208. */
  209. @TableField(value = "font_family2")
  210. private String fontFamily2;
  211. /**
  212. * 标签字体颜色
  213. */
  214. @TableField(value = "label_color")
  215. private String labelColor;
  216. /**
  217. * 图例字体
  218. */
  219. @TableField(value = "font_family3")
  220. private String fontFamily3;
  221. /**
  222. * 图例字体大小
  223. */
  224. @TableField(value = "legend_font_size")
  225. private String legendFontSize;
  226. /**
  227. * 图例字体颜色
  228. */
  229. @TableField(value = "legend_color")
  230. private String legendColor;
  231. /**
  232. * 坐标轴(Y)字体
  233. */
  234. @TableField(value = "font_family4")
  235. private String fontFamily4;
  236. /**
  237. * 坐标轴(X)字体大小
  238. */
  239. @TableField(value = "font_size")
  240. private String fontSize;
  241. /**
  242. * 坐标轴(Y)字体大小
  243. */
  244. @TableField(value = "font_size2")
  245. private String fontSize2;
  246. /**
  247. * 坐标轴(X)字体颜色
  248. */
  249. @TableField(value = "font_color")
  250. private String fontColor;
  251. /**
  252. * 坐标轴(Y)字体颜色
  253. */
  254. @TableField(value = "font_color2")
  255. private String fontColor2;
  256. /**
  257. * 坐标轴(X)显示
  258. */
  259. @TableField(value = "show")
  260. private Boolean show;
  261. /**
  262. * 坐标轴(Y)显示
  263. */
  264. @TableField(value = "show2")
  265. private Boolean show2;
  266. @TableField(value = "name_location2")
  267. private String nameLocation2;
  268. /**
  269. * X轴信息全部显示
  270. */
  271. @TableField(value = "interval")
  272. private Boolean interval;
  273. /**
  274. * X轴倾斜角度
  275. */
  276. @TableField(value = "rotate")
  277. private String rotate;
  278. /**
  279. * Y轴信息全部显示
  280. */
  281. @TableField(value = "interval2")
  282. private Boolean interval2;
  283. /**
  284. * Y轴倾斜角度
  285. */
  286. @TableField(value = "rotate2")
  287. private String rotate2;
  288. /**
  289. * X轴标题padding
  290. */
  291. @TableField(value = "padding_top")
  292. private Integer paddingTop;
  293. @TableField(value = "padding_left")
  294. private Integer paddingLeft;
  295. @TableField(value = "padding_bottom")
  296. private Integer paddingBottom;
  297. @TableField(value = "padding_right")
  298. private Integer paddingRight;
  299. /**
  300. * Y轴标题padding
  301. */
  302. @TableField(value = "padding_top2")
  303. private Integer paddingTop2;
  304. @TableField(value = "padding_right2")
  305. private Integer paddingLeft2;
  306. @TableField(value = "padding_bottom2")
  307. private Integer paddingBottom2;
  308. @TableField(value = "padding_left2")
  309. private Integer paddingRight2;
  310. /**
  311. * 图例类型
  312. */
  313. @TableField(value = "type2")
  314. private String type2;
  315. /**
  316. * 饼图(环形图)数值
  317. */
  318. @TableField(value = "data_label2")
  319. private Boolean dataLabel2;
  320. /**
  321. * 饼图(环形图)百分比
  322. */
  323. @TableField(value = "data_label3")
  324. private Boolean dataLabel3;
  325. /**
  326. * 柱形图宽度
  327. */
  328. @TableField(value = "bar_width")
  329. private String barWidth;
  330. /**
  331. * 气泡比例
  332. */
  333. @TableField(value = "scatter_size")
  334. private String scatterSize;
  335. }