WdfacilityRelPersagy.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. package com.persagy.transfer.pojo.dto;
  2. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  6. import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
  7. import com.persagy.common.model.BaseEntity;
  8. import com.persagy.common.utils.StringUtil;
  9. import lombok.EqualsAndHashCode;
  10. import lombok.Getter;
  11. import lombok.Setter;
  12. import lombok.ToString;
  13. /**
  14. * 万达设备参数信息表与博锐尚格信息点的映射表
  15. *
  16. * @version 1.0.0
  17. * @company persagy
  18. * @author zhangqiankun
  19. * @date 2021-09-16 11:06:42
  20. */
  21. @Getter
  22. @Setter
  23. @ToString
  24. @EqualsAndHashCode(callSuper = false)
  25. @TableName("wdfacility_rel_persagy")
  26. public class WdfacilityRelPersagy extends BaseEntity<WdfacilityRelPersagy> {
  27. private static final long serialVersionUID = 522062164350721510L;
  28. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  29. private String code; // 中台数据信息点编码
  30. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  31. private String wdClassCode; // 万达设备类编码
  32. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  33. private String classstructureid; // 万达设备分类表id
  34. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  35. private String assetattrid; // 万达设备参数id
  36. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  37. private String classqc; // 设备分类名称
  38. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  39. private String csdesc; // 设备参数名称
  40. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  41. private String datatype; // 设备参数类型
  42. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  43. private String measureunitid; // 设备参数单位编码
  44. @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
  45. private String csjldw; // 设备参数单位名称
  46. public static Builder builder() {
  47. return new Builder();
  48. }
  49. public static class BuilderQueryWrapper {
  50. private LambdaQueryWrapper<WdfacilityRelPersagy> queryWrapper = new LambdaQueryWrapper<>();
  51. public BuilderQueryWrapper idEq(String id) {
  52. if (StringUtil.isNotBlank(id)) {
  53. queryWrapper.eq(WdfacilityRelPersagy::getId, id);
  54. }
  55. return this;
  56. }
  57. public BuilderQueryWrapper codeEq(String code) {
  58. if (StringUtil.isNotBlank(code)) {
  59. queryWrapper.eq(WdfacilityRelPersagy::getCode, code);
  60. }
  61. return this;
  62. }
  63. public BuilderQueryWrapper wdClassCodeEq(String wdClassCode) {
  64. if (StringUtil.isNotBlank(wdClassCode)) {
  65. queryWrapper.eq(WdfacilityRelPersagy::getWdClassCode, wdClassCode);
  66. }
  67. return this;
  68. }
  69. public BuilderQueryWrapper classstructureidEq(String classstructureid) {
  70. if (StringUtil.isNotBlank(classstructureid)) {
  71. queryWrapper.eq(WdfacilityRelPersagy::getClassstructureid, classstructureid);
  72. }
  73. return this;
  74. }
  75. public BuilderQueryWrapper assetattridEq(String assetattrid) {
  76. if (StringUtil.isNotBlank(assetattrid)) {
  77. queryWrapper.eq(WdfacilityRelPersagy::getAssetattrid, assetattrid);
  78. }
  79. return this;
  80. }
  81. public BuilderQueryWrapper classqcEq(String classqc) {
  82. if (StringUtil.isNotBlank(classqc)) {
  83. queryWrapper.eq(WdfacilityRelPersagy::getClassqc, classqc);
  84. }
  85. return this;
  86. }
  87. public BuilderQueryWrapper csdescEq(String csdesc) {
  88. if (StringUtil.isNotBlank(csdesc)) {
  89. queryWrapper.eq(WdfacilityRelPersagy::getCsdesc, csdesc);
  90. }
  91. return this;
  92. }
  93. public BuilderQueryWrapper datatypeEq(String datatype) {
  94. if (StringUtil.isNotBlank(datatype)) {
  95. queryWrapper.eq(WdfacilityRelPersagy::getDatatype, datatype);
  96. }
  97. return this;
  98. }
  99. public BuilderQueryWrapper measureunitidEq(String measureunitid) {
  100. if (null != measureunitid) {
  101. queryWrapper.eq(WdfacilityRelPersagy::getMeasureunitid, measureunitid);
  102. }
  103. return this;
  104. }
  105. public BuilderQueryWrapper csjldwEq(String csjldw) {
  106. if (StringUtil.isNotBlank(csjldw)) {
  107. queryWrapper.eq(WdfacilityRelPersagy::getCsjldw, csjldw);
  108. }
  109. return this;
  110. }
  111. public LambdaQueryWrapper<WdfacilityRelPersagy> builder() {
  112. return queryWrapper;
  113. }
  114. }
  115. public static class BuilderUpdateWrapper {
  116. private LambdaUpdateWrapper<WdfacilityRelPersagy> updateWrapper = new LambdaUpdateWrapper<>();
  117. public BuilderUpdateWrapper idEq(String id) {
  118. if (StringUtil.isNotBlank(id)) {
  119. updateWrapper.eq(WdfacilityRelPersagy::getId, id);
  120. }
  121. return this;
  122. }
  123. public BuilderUpdateWrapper codeEq(String code) {
  124. if (StringUtil.isNotBlank(code)) {
  125. updateWrapper.eq(WdfacilityRelPersagy::getCode, code);
  126. }
  127. return this;
  128. }
  129. public BuilderUpdateWrapper wdClassCodeEq(String wdClassCode) {
  130. if (StringUtil.isNotBlank(wdClassCode)) {
  131. updateWrapper.eq(WdfacilityRelPersagy::getWdClassCode, wdClassCode);
  132. }
  133. return this;
  134. }
  135. public BuilderUpdateWrapper classstructureidEq(String classstructureid) {
  136. if (StringUtil.isNotBlank(classstructureid)) {
  137. updateWrapper.eq(WdfacilityRelPersagy::getClassstructureid, classstructureid);
  138. }
  139. return this;
  140. }
  141. public BuilderUpdateWrapper assetattridEq(String assetattrid) {
  142. if (StringUtil.isNotBlank(assetattrid)) {
  143. updateWrapper.eq(WdfacilityRelPersagy::getAssetattrid, assetattrid);
  144. }
  145. return this;
  146. }
  147. public BuilderUpdateWrapper classqcEq(String classqc) {
  148. if (StringUtil.isNotBlank(classqc)) {
  149. updateWrapper.eq(WdfacilityRelPersagy::getClassqc, classqc);
  150. }
  151. return this;
  152. }
  153. public BuilderUpdateWrapper csdescEq(String csdesc) {
  154. if (StringUtil.isNotBlank(csdesc)) {
  155. updateWrapper.eq(WdfacilityRelPersagy::getCsdesc, csdesc);
  156. }
  157. return this;
  158. }
  159. public BuilderUpdateWrapper datatypeEq(String datatype) {
  160. if (StringUtil.isNotBlank(datatype)) {
  161. updateWrapper.eq(WdfacilityRelPersagy::getDatatype, datatype);
  162. }
  163. return this;
  164. }
  165. public BuilderUpdateWrapper measureunitidEq(String measureunitid) {
  166. if (null != measureunitid) {
  167. updateWrapper.eq(WdfacilityRelPersagy::getMeasureunitid, measureunitid);
  168. }
  169. return this;
  170. }
  171. public BuilderUpdateWrapper csjldwEq(String csjldw) {
  172. if (StringUtil.isNotBlank(csjldw)) {
  173. updateWrapper.eq(WdfacilityRelPersagy::getCsjldw, csjldw);
  174. }
  175. return this;
  176. }
  177. public LambdaUpdateWrapper<WdfacilityRelPersagy> builder() {
  178. return updateWrapper;
  179. }
  180. }
  181. public static class Builder {
  182. private WdfacilityRelPersagy wdfacilityRelPersagy = new WdfacilityRelPersagy();
  183. public Builder id(String id) {
  184. wdfacilityRelPersagy.setId(id);
  185. return this;
  186. }
  187. public Builder code(String code) {
  188. wdfacilityRelPersagy.setCode(code);
  189. return this;
  190. }
  191. public Builder wdClassCode(String wdClassCode) {
  192. wdfacilityRelPersagy.setWdClassCode(wdClassCode);
  193. return this;
  194. }
  195. public Builder classstructureid(String classstructureid) {
  196. wdfacilityRelPersagy.setClassstructureid(classstructureid);
  197. return this;
  198. }
  199. public Builder assetattrid(String assetattrid) {
  200. wdfacilityRelPersagy.setAssetattrid(assetattrid);
  201. return this;
  202. }
  203. public Builder classqc(String classqc) {
  204. wdfacilityRelPersagy.setClassqc(classqc);
  205. return this;
  206. }
  207. public Builder csdesc(String csdesc) {
  208. wdfacilityRelPersagy.setCsdesc(csdesc);
  209. return this;
  210. }
  211. public Builder datatype(String datatype) {
  212. wdfacilityRelPersagy.setDatatype(datatype);
  213. return this;
  214. }
  215. public Builder measureunitid(String measureunitid) {
  216. wdfacilityRelPersagy.setMeasureunitid(measureunitid);
  217. return this;
  218. }
  219. public Builder csjldw(String csjldw) {
  220. wdfacilityRelPersagy.setCsjldw(csjldw);
  221. return this;
  222. }
  223. public WdfacilityRelPersagy build() {
  224. return wdfacilityRelPersagy;
  225. }
  226. }
  227. }