diff --git a/common-lib/src/main/java/com/mortals/xhx/common/pdu/LoginForm.java b/common-lib/src/main/java/com/mortals/xhx/common/pdu/LoginForm.java new file mode 100644 index 0000000000000000000000000000000000000000..c4d962d5b17fcca3a487eb0b6481494f82db7489 --- /dev/null +++ b/common-lib/src/main/java/com/mortals/xhx/common/pdu/LoginForm.java @@ -0,0 +1,56 @@ +package com.mortals.xhx.common.pdu; + +import com.mortals.framework.exception.AppException; +import com.mortals.framework.web.BaseForm; + +public class LoginForm extends BaseForm { + private String loginName; + + private String password; + + private String securityCode; + + public String getLoginName() { + return loginName; + } + + public void setLoginName(String loginName) { + this.loginName = loginName; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + public String getSecurityCode() { + return securityCode; + } + + public void setSecurityCode(String securityCode) { + this.securityCode = securityCode; + } + + @Override + public String toString() { + return "loginName:" + this.loginName + " password:" + this.password; + } + + @Override + public boolean validate() throws AppException { + if (loginName == null || loginName.trim().length() == 0) { + throw new AppException("甯愬彿涓嶈兘涓虹┖锛�"); + } + if (password == null || password.trim().length() == 0) { + throw new AppException("瀵嗙爜涓嶈兘涓虹┖锛�"); + } +// if (securityCode == null || securityCode.trim().length() == 0) { +// throw new AppException("楠岃瘉鐮佷笉鑳戒负绌猴紒"); +// } + return super.validate(); + } +} diff --git a/common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceReq.java b/common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceReq.java new file mode 100644 index 0000000000000000000000000000000000000000..a598176d2a6dd0f54a476a535b6ff58f0d1b7634 --- /dev/null +++ b/common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceReq.java @@ -0,0 +1,138 @@ +package com.mortals.xhx.common.pdu.device; + +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + + +@Data +public class DeviceReq implements Serializable { + + /** + * 1锛氭柊澧烇紝2锛氫慨鏀癸紝3锛氬垹闄わ紝4锛氭縺娲伙紝5锛氬惎鐢紝6锛氬仠鐢� + */ + private Integer receiveMethod; + + /** + * 浜у搧id + */ + private Long productId; + /** + * 浜у搧缂栫爜 + */ + private String productCode; + + /** + * 璁惧鐢熶骇鍘傚晢ID + */ + private Long deviceFirmId; + + /** + * 璁惧鐢熶骇鍘傚晢鍚嶇О + */ + private String deviceFirmname; + + /** + * 璁惧鍚嶇О + */ + private String deviceName; + /** + * 璁惧缂栫爜(鏆傚畾mac鍦板潃) + */ + private String deviceCode; + + /** + * 璁惧Mac + */ + private String deviceMac; + + /** + * 鎵€灞炵珯鐐笽d + */ + private Long siteId; + /** + * 鎵€灞炵珯鐐圭紪鐮� + */ + private String siteCode; + /** + * 鎵€灞炵珯鐐瑰悕绉� + */ + private String siteName; + /** + * 璁惧澶囨敞淇℃伅 + */ + private String deviceRemark; + /** + * 璁惧 + */ + private String homeUrl; + /** + * 璁惧璁块棶ip + */ + private String ip; + /** + * 涓績璁惧缂栫爜 + */ + private String centernum; + /** + * 绔彛 + */ + private String port; + + /** + * 缁忓害 + */ + private String lon; + + + /** + * 绾害 + */ + private String lati; + /** + * 妤煎眰 + */ + private Integer deviceInBuilding; + + /** + * 鎵€灞炴ゼ鏍� + */ + private Integer deviceInFloor; + + /** + * 璐熻矗浜� + */ + private String leadingOfficial; + + /** + * 鑱旂郴鐢佃瘽 + */ + private String leadingOfficialTelephone; + + /** + * 淇濅慨鏈熻嚦 + */ + private Date defectsLiabilityPeriod; + + /** + * 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + */ + private Integer deviceStatus; + + /** + * 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + */ + private Integer source; + + /** + * 婵€娲�(0.鍚︼紝1.鏄�) + */ + private Integer active; + + /** + * 璁惧鐗堟湰淇℃伅 + */ + private String deviceVersion; + +} diff --git a/common-lib/src/main/java/com/mortals/xhx/feign/device/IDeviceFeign.java b/common-lib/src/main/java/com/mortals/xhx/feign/device/IDeviceFeign.java index 54814d7c6ff11792dfa20ca7b0aaebca6a445108..c63c82b6a48ebc83a5a4c0573ee64fadaf101cf1 100644 --- a/common-lib/src/main/java/com/mortals/xhx/feign/device/IDeviceFeign.java +++ b/common-lib/src/main/java/com/mortals/xhx/feign/device/IDeviceFeign.java @@ -1,8 +1,10 @@ package com.mortals.xhx.feign.device; import com.mortals.framework.common.Rest; +import com.mortals.xhx.common.pdu.LoginForm; import com.mortals.xhx.common.pdu.RespData; import com.mortals.xhx.common.pdu.device.DevicePdu; +import com.mortals.xhx.common.pdu.device.DeviceReq; import com.mortals.xhx.feign.IFeign; import feign.hystrix.FallbackFactory; import lombok.extern.slf4j.Slf4j; @@ -59,6 +61,25 @@ public interface IDeviceFeign extends IFeign { Rest<RespData<DevicePdu>> save(@RequestBody DevicePdu devicePdu,@RequestHeader("Authorization") String authorization); + /** + * 鑾峰彇token + * + * @param loginForm + * @return + */ + @PostMapping(value = "/api/getToken") + Rest<String> getToken(@RequestBody LoginForm loginForm); + + + /** + * 璁惧鍥炶皟 + * + * @param deviceReq + * @return + */ + @PostMapping(value = "/api/receive") + Rest<String> deviceCall(@RequestBody DeviceReq deviceReq, @RequestHeader("Authorization") String authorization); + } @@ -87,6 +108,16 @@ class DeviceFeignFallbackFactory implements FallbackFactory<IDeviceFeign> { public Rest<RespData<DevicePdu>> save(DevicePdu devicePdu, String authorization) { return Rest.fail("鏆傛椂鏃犳硶淇濆瓨璁惧锛岃绋嶅悗鍐嶈瘯!"); } + + @Override + public Rest<String> getToken(LoginForm loginForm) { + return Rest.fail("鏆傛椂鏃犳硶鑾峰彇token锛岃绋嶅悗鍐嶈瘯!"); + } + + @Override + public Rest<String> deviceCall(DeviceReq deviceReq, String authorization) { + return Rest.fail("鏆傛椂鏃犳硶淇濆瓨璁惧锛岃绋嶅悗鍐嶈瘯!"); + } }; } } diff --git a/fill-manager/db/add.sql b/fill-manager/db/add.sql index a6c2e4afdbac2a708f930def3c7bf54dc782d63e..2c949cbd4af1eb615b5d5068afdb45748873552d 100644 --- a/fill-manager/db/add.sql +++ b/fill-manager/db/add.sql @@ -16,3 +16,24 @@ ALTER TABLE mortals_xhx_matter_datum_print ADD COLUMN `mobile` varchar(64) defau 2023-03-22 -- ---------------------------- INSERT INTO `mortals_xhx_task` (`id`, `name`, `taskKey`, `status`, `excuteService`, `excuteParam`, `excuteHost`, `excuteStrategy`, `excuteDate`, `excuteTime`, `remark`, `lastExcuteHost`, `lastExcuteTime`, `interimExcuteStatus`, `createTime`, `createUserId`, `createUserName`) VALUES ('4', '鍚屾璁惧', 'SyncSiteDeviceTask', '0', 'SyncSiteDeviceTask', NULL, NULL, '4', '120', '00:00', NULL, '127.0.1.1', '2023-02-26 22:15:59', '0', '2023-02-25 14:34:12', '1', NULL); + + + -- ---------------------------- +2023-06-21 +-- ---------------------------- +ALTER TABLE mortals_xhx_device + ADD COLUMN `deviceFirmId` bigint(20) DEFAULT NULL COMMENT '璁惧鐢熶骇鍘傚晢ID' AFTER siteName; +ALTER TABLE mortals_xhx_device + ADD COLUMN `deviceFirmname` varchar(200) DEFAULT NULL COMMENT '璁惧鐢熶骇鍘傚晢鍚嶇О' AFTER deviceFirmId; + +ALTER TABLE mortals_xhx_device + ADD COLUMN `ip` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '璁惧璁块棶ip' AFTER deviceFirmname; + +ALTER TABLE mortals_xhx_device + ADD COLUMN `port` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '绔彛' AFTER ip; +ALTER TABLE mortals_xhx_device + ADD COLUMN `enabled` tinyint(2) DEFAULT NULL COMMENT '鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤)' AFTER port; +ALTER TABLE mortals_xhx_device + ADD COLUMN `onlineTime` datetime DEFAULT NULL COMMENT '鏈€杩戜笂绾挎椂闂�' AFTER enabled; +ALTER TABLE mortals_xhx_device + ADD COLUMN `offlineTime` datetime DEFAULT NULL COMMENT '鏈€杩戠绾挎椂闂�' AFTER onlineTime; \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/base/framework/aspect/OperlogAspect.java b/fill-manager/src/main/java/com/mortals/xhx/base/framework/aspect/OperlogAspect.java index 6266ecdf8f00f830f596869b26ec835ceede7ca6..8f46dc7b4eff9b3570c3039670881f11a349ffcf 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/base/framework/aspect/OperlogAspect.java +++ b/fill-manager/src/main/java/com/mortals/xhx/base/framework/aspect/OperlogAspect.java @@ -4,8 +4,10 @@ import java.util.Date; import javax.servlet.http.HttpServletRequest; +import cn.hutool.core.util.StrUtil; import com.mortals.framework.model.OperateLogPdu; import com.mortals.framework.service.IMessageProduceService; +import com.mortals.xhx.common.code.OperTypeEnum; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.AfterReturning; @@ -43,6 +45,16 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService { String content, String ip, Date logDate) { super.doHandlerLog(platformMark, userId, userName, loginName, requestUrl, content, ip, logDate); operLogService.insertOperLog(ip, requestUrl, userId, userName, loginName, content); + + int operType = OperTypeEnum.OTHER.getValue(); + //鍒ゆ柇鍐呭鍖呭惈 + if (StrUtil.contains(content, "鏌ヨ") || StrUtil.contains(content, "鏌ョ湅")) { + operType = OperTypeEnum.SEARCH.getValue(); + } else if (StrUtil.contains(content, "淇濆瓨") || StrUtil.contains(content, "鏂板") || StrUtil.contains(content, "淇敼")) { + operType = OperTypeEnum.SAVE.getValue(); + } else if (StrUtil.contains(content, "鍒犻櫎")) { + operType = OperTypeEnum.DELETE.getValue(); + } OperateLogPdu operateLogPdu = new OperateLogPdu(); operateLogPdu.initAttrValue(); operateLogPdu.setIp(ip); @@ -53,7 +65,7 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService { operateLogPdu.setPlatformMark(platformMark); operateLogPdu.setLogDate(logDate); operateLogPdu.setContent(content); - operateLogPdu.setOperType(1); + operateLogPdu.setOperType(operType); messageProduceService.syncOperSend(operateLogPdu); } diff --git a/fill-manager/src/main/java/com/mortals/xhx/common/code/DeviceMethodEnum.java b/fill-manager/src/main/java/com/mortals/xhx/common/code/DeviceMethodEnum.java new file mode 100644 index 0000000000000000000000000000000000000000..be498e943e10c34c5a29062722a15d3926b7e0e1 --- /dev/null +++ b/fill-manager/src/main/java/com/mortals/xhx/common/code/DeviceMethodEnum.java @@ -0,0 +1,72 @@ +package com.mortals.xhx.common.code; + +import java.util.LinkedHashMap; +import java.util.Map; + +/** +* 璁惧璇锋眰鏂瑰紡锛�1锛氭柊澧烇紝2锛氫慨鏀癸紝3锛氬垹闄わ紝4锛氭縺娲伙紝5锛氬惎鐢紝6锛氬仠鐢� +* +* @author zxfei +*/ +public enum DeviceMethodEnum { + ADD(1, "鏂板"), + UPDATE(2, "淇敼"), + DEL(3, "鍒犻櫎"), + ACTIVE(4, "婵€娲�"), + ENABLED(5, "鍚敤"), + STOP(6, "鍋滅敤"), + ONLINE(7, "涓婄嚎"), + OFFLINE(8, "涓嬬嚎") + ; + private Integer value; + private String desc; + + DeviceMethodEnum(Integer value, String desc) { + this.value = value; + this.desc = desc; + } + + public Integer getValue() { + return this.value; + } + + public String getDesc() { + return this.desc; + } + + public static DeviceMethodEnum getByValue(Integer value) { + for (DeviceMethodEnum deviceTypeEnum : DeviceMethodEnum.values()) { + if (deviceTypeEnum.getValue() == value) { + return deviceTypeEnum; + } + } + return null; + } + + /** + * 鑾峰彇Map闆嗗悎 + * + * @param eItem 涓嶅寘鍚」 + * @return + */ + public static Map<String, String> getEnumMap(Integer... eItem) { + Map<String, String> resultMap = new LinkedHashMap<>(); + for (DeviceMethodEnum item : DeviceMethodEnum.values()) { + try { + boolean hasE = false; + for (Integer e : eItem) { + if (item.getValue() == e) { + hasE = true; + break; + } + } + if (!hasE) { + resultMap.put(item.getValue() + "", item.getDesc()); + } + } catch (Exception ex) { + + } + } + return resultMap; + } +} \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/common/code/DeviceStatusEnum.java b/fill-manager/src/main/java/com/mortals/xhx/common/code/DeviceStatusEnum.java new file mode 100644 index 0000000000000000000000000000000000000000..f3d647727b520e9c112696f117f9c9867f8b07e4 --- /dev/null +++ b/fill-manager/src/main/java/com/mortals/xhx/common/code/DeviceStatusEnum.java @@ -0,0 +1,66 @@ +package com.mortals.xhx.common.code; + +import java.util.LinkedHashMap; +import java.util.Map; + +/** +* 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎)鏋氫妇绫� +* +* @author zxfei +*/ +public enum DeviceStatusEnum { + 鏈縺娲�(0, "鏈縺娲�"), + 绂荤嚎(1, "绂荤嚎"), + 鍦ㄧ嚎(2, "鍦ㄧ嚎"); + private Integer value; + private String desc; + + DeviceStatusEnum(Integer value, String desc) { + this.value = value; + this.desc = desc; + } + + public Integer getValue() { + return this.value; + } + + public String getDesc() { + return this.desc; + } + + public static DeviceStatusEnum getByValue(Integer value) { + for (DeviceStatusEnum deviceStatusEnum : DeviceStatusEnum.values()) { + if (deviceStatusEnum.getValue() == value) { + return deviceStatusEnum; + } + } + return null; + } + + /** + * 鑾峰彇Map闆嗗悎 + * + * @param eItem 涓嶅寘鍚」 + * @return + */ + public static Map<String, String> getEnumMap(Integer... eItem) { + Map<String, String> resultMap = new LinkedHashMap<>(); + for (DeviceStatusEnum item : DeviceStatusEnum.values()) { + try { + boolean hasE = false; + for (Integer e : eItem) { + if (item.getValue() == e) { + hasE = true; + break; + } + } + if (!hasE) { + resultMap.put(item.getValue() + "", item.getDesc()); + } + } catch (Exception ex) { + + } + } + return resultMap; + } +} \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/common/code/EnabledEnum.java b/fill-manager/src/main/java/com/mortals/xhx/common/code/EnabledEnum.java new file mode 100644 index 0000000000000000000000000000000000000000..6fb8409157d3c93d9b0a9a368a10f6589e5a18e7 --- /dev/null +++ b/fill-manager/src/main/java/com/mortals/xhx/common/code/EnabledEnum.java @@ -0,0 +1,65 @@ +package com.mortals.xhx.common.code; + +import java.util.LinkedHashMap; +import java.util.Map; + +/** +* 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤)鏋氫妇绫� +* +* @author zxfei +*/ +public enum EnabledEnum { + 鍋滄(0, "鍋滄"), + 鍚敤(1, "鍚敤"); + private Integer value; + private String desc; + + EnabledEnum(Integer value, String desc) { + this.value = value; + this.desc = desc; + } + + public Integer getValue() { + return this.value; + } + + public String getDesc() { + return this.desc; + } + + public static EnabledEnum getByValue(Integer value) { + for (EnabledEnum enabledEnum : EnabledEnum.values()) { + if (enabledEnum.getValue() == value) { + return enabledEnum; + } + } + return null; + } + + /** + * 鑾峰彇Map闆嗗悎 + * + * @param eItem 涓嶅寘鍚」 + * @return + */ + public static Map<String, String> getEnumMap(Integer... eItem) { + Map<String, String> resultMap = new LinkedHashMap<>(); + for (EnabledEnum item : EnabledEnum.values()) { + try { + boolean hasE = false; + for (Integer e : eItem) { + if (item.getValue() == e) { + hasE = true; + break; + } + } + if (!hasE) { + resultMap.put(item.getValue() + "", item.getDesc()); + } + } catch (Exception ex) { + + } + } + return resultMap; + } +} \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java b/fill-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java index 930a305680a0001f080a64ed4fe449cc705a4783..31cb9c65b13d842dc199681e78b9094865b8d3ea 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java +++ b/fill-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java @@ -3,20 +3,19 @@ package com.mortals.xhx.common.code; import java.util.HashMap; import java.util.Map; -/** - * Created by chendilin on 2018/3/7. - */ + public enum OperTypeEnum { - SAVE(0,"娣诲姞"), - UPDATE(1,"鏇存柊"), - DELETE(2,"鍒犻櫎"), - OTHER(-1,"鍏跺畠"); + SAVE(0, "娣诲姞"), + UPDATE(1, "鏇存柊"), + DELETE(2, "鍒犻櫎"), + SEARCH(3, "鏌ヨ"), + OTHER(-1, "鍏跺畠"); private int value; private String msg; - private OperTypeEnum(int value,String msg) { + private OperTypeEnum(int value, String msg) { this.value = value; this.msg = msg; } @@ -25,11 +24,11 @@ public enum OperTypeEnum { return this.value; } - public static Map<String,String> getEnumMap(){ - Map<String,String> resultMap = new HashMap<>(); - OperTypeEnum[] operTypeEnum = OperTypeEnum.values(); + public static Map<String, String> getEnumMap() { + Map<String, String> resultMap = new HashMap<>(); + OperTypeEnum[] operTypeEnum = OperTypeEnum.values(); for (OperTypeEnum typeEnum : operTypeEnum) { - resultMap.put(String.valueOf(typeEnum.value),typeEnum.msg); + resultMap.put(String.valueOf(typeEnum.value), typeEnum.msg); } return resultMap; } diff --git a/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java b/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java index 14a3faf37c54d70c1cbd5a963ef5892211f4a567..10c54e73a671ca5e43184e465cae3c7bd95def3b 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java +++ b/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java @@ -1,333 +1,121 @@ package com.mortals.xhx.module.device.model; - +import java.util.Date; +import java.util.List; +import java.util.ArrayList; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.mortals.framework.annotation.Excel; +import com.mortals.framework.model.BaseEntityLong; import com.mortals.xhx.module.device.model.vo.DeviceVo; +import lombok.Data; /** -* 璁惧瀹炰綋瀵硅薄 -* -* @author zxfei -* @date 2023-02-25 -*/ - + * 璁惧瀹炰綋瀵硅薄 + * + * @author zxfei + * @date 2023-06-21 + */ +@Data public class DeviceEntity extends DeviceVo { private static final long serialVersionUID = 1L; /** - * 璁惧id - */ + * 璁惧id + */ private Long deviceId; /** - * 璁惧鍚嶇О - */ + * 璁惧鍚嶇О + */ private String deviceName; /** - * 璁惧缂栫爜 - */ + * 璁惧缂栫爜 + */ private String deviceCode; /** - * 璁惧鐨凪AC鍦板潃 - */ + * 璁惧鐨凪AC鍦板潃 + */ private String deviceMac; /** - * 绔欑偣Id - */ + * 绔欑偣Id + */ private Long siteId; /** - * 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - */ + * 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + */ private String siteCode; /** - * 绔欑偣鍚嶇О - */ + * 绔欑偣鍚嶇О + */ private String siteName; /** - * 浜у搧缂栫爜 - */ + * 浜у搧缂栫爜 + */ private String productCode; /** - * 浜у搧鍚嶇О - */ + * 浜у搧鍚嶇О + */ private String productName; /** - * 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - */ + * 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + */ private Integer deviceSrc; /** - * 缁忓害 - */ + * 缁忓害 + */ private String lon; /** - * 绾害 - */ + * 绾害 + */ private String lati; /** - * 璐熻矗浜� - */ + * 璐熻矗浜� + */ private String leadingOfficial; /** - * 鑱旂郴鐢佃瘽 - */ + * 鑱旂郴鐢佃瘽 + */ private String leadingOfficialTelephone; /** - * 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - */ + * 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + */ private Integer deviceStatus; /** - * 澶囨敞 - */ + * 澶囨敞 + */ private String deviceRemark; /** - * 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - */ + * 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + */ private Integer source; - - - - public DeviceEntity(){} - /** - * 鑾峰彇 璁惧id - * @return Long - */ - public Long getDeviceId(){ - return deviceId; - } - /** - * 璁剧疆 璁惧id - * @param deviceId - */ - public void setDeviceId(Long deviceId){ - this.deviceId = deviceId; - } - /** - * 鑾峰彇 璁惧鍚嶇О - * @return String - */ - public String getDeviceName(){ - return deviceName; - } - /** - * 璁剧疆 璁惧鍚嶇О - * @param deviceName - */ - public void setDeviceName(String deviceName){ - this.deviceName = deviceName; - } - /** - * 鑾峰彇 璁惧缂栫爜 - * @return String - */ - public String getDeviceCode(){ - return deviceCode; - } - /** - * 璁剧疆 璁惧缂栫爜 - * @param deviceCode - */ - public void setDeviceCode(String deviceCode){ - this.deviceCode = deviceCode; - } - /** - * 鑾峰彇 璁惧鐨凪AC鍦板潃 - * @return String - */ - public String getDeviceMac(){ - return deviceMac; - } - /** - * 璁剧疆 璁惧鐨凪AC鍦板潃 - * @param deviceMac - */ - public void setDeviceMac(String deviceMac){ - this.deviceMac = deviceMac; - } - /** - * 鑾峰彇 绔欑偣Id - * @return Long - */ - public Long getSiteId(){ - return siteId; - } - /** - * 璁剧疆 绔欑偣Id - * @param siteId - */ - public void setSiteId(Long siteId){ - this.siteId = siteId; - } - /** - * 鑾峰彇 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @return String - */ - public String getSiteCode(){ - return siteCode; - } - /** - * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @param siteCode - */ - public void setSiteCode(String siteCode){ - this.siteCode = siteCode; - } - /** - * 鑾峰彇 绔欑偣鍚嶇О - * @return String - */ - public String getSiteName(){ - return siteName; - } /** - * 璁剧疆 绔欑偣鍚嶇О - * @param siteName - */ - public void setSiteName(String siteName){ - this.siteName = siteName; - } + * 璁惧鐢熶骇鍘傚晢ID + */ + private Long deviceFirmId; /** - * 鑾峰彇 浜у搧缂栫爜 - * @return String - */ - public String getProductCode(){ - return productCode; - } - /** - * 璁剧疆 浜у搧缂栫爜 - * @param productCode - */ - public void setProductCode(String productCode){ - this.productCode = productCode; - } + * 璁惧鐢熶骇鍘傚晢鍚嶇О + */ + private String deviceFirmname; /** - * 鑾峰彇 浜у搧鍚嶇О - * @return String - */ - public String getProductName(){ - return productName; - } + * 璁惧璁块棶ip + */ + private String ip; /** - * 璁剧疆 浜у搧鍚嶇О - * @param productName - */ - public void setProductName(String productName){ - this.productName = productName; - } + * 绔彛 + */ + private String port; /** - * 鑾峰彇 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @return Integer - */ - public Integer getDeviceSrc(){ - return deviceSrc; - } + * 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + */ + private Integer enabled; /** - * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrc - */ - public void setDeviceSrc(Integer deviceSrc){ - this.deviceSrc = deviceSrc; - } + * 鏈€杩戜笂绾挎椂闂� + */ + private Date onlineTime; /** - * 鑾峰彇 缁忓害 - * @return String - */ - public String getLon(){ - return lon; - } - /** - * 璁剧疆 缁忓害 - * @param lon - */ - public void setLon(String lon){ - this.lon = lon; - } - /** - * 鑾峰彇 绾害 - * @return String - */ - public String getLati(){ - return lati; - } - /** - * 璁剧疆 绾害 - * @param lati - */ - public void setLati(String lati){ - this.lati = lati; - } - /** - * 鑾峰彇 璐熻矗浜� - * @return String - */ - public String getLeadingOfficial(){ - return leadingOfficial; - } - /** - * 璁剧疆 璐熻矗浜� - * @param leadingOfficial - */ - public void setLeadingOfficial(String leadingOfficial){ - this.leadingOfficial = leadingOfficial; - } - /** - * 鑾峰彇 鑱旂郴鐢佃瘽 - * @return String - */ - public String getLeadingOfficialTelephone(){ - return leadingOfficialTelephone; - } - /** - * 璁剧疆 鑱旂郴鐢佃瘽 - * @param leadingOfficialTelephone - */ - public void setLeadingOfficialTelephone(String leadingOfficialTelephone){ - this.leadingOfficialTelephone = leadingOfficialTelephone; - } - /** - * 鑾峰彇 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @return Integer - */ - public Integer getDeviceStatus(){ - return deviceStatus; - } - /** - * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatus - */ - public void setDeviceStatus(Integer deviceStatus){ - this.deviceStatus = deviceStatus; - } - /** - * 鑾峰彇 澶囨敞 - * @return String - */ - public String getDeviceRemark(){ - return deviceRemark; - } - /** - * 璁剧疆 澶囨敞 - * @param deviceRemark - */ - public void setDeviceRemark(String deviceRemark){ - this.deviceRemark = deviceRemark; - } - /** - * 鑾峰彇 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @return Integer - */ - public Integer getSource(){ - return source; - } - /** - * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param source - */ - public void setSource(Integer source){ - this.source = source; - } - - - - + * 鏈€杩戠绾挎椂闂� + */ + private Date offlineTime; @Override public int hashCode() { - return this.getId().hashCode(); + return this.getId().hashCode(); } @Override public boolean equals(Object obj) { @@ -335,68 +123,60 @@ public class DeviceEntity extends DeviceVo { if (obj instanceof DeviceEntity) { DeviceEntity tmp = (DeviceEntity) obj; if (this.getId() == tmp.getId()) { - return true; + return true; } } return false; } - public String toString(){ - StringBuilder sb = new StringBuilder(""); - sb.append(",deviceId:").append(getDeviceId()); - sb.append(",deviceName:").append(getDeviceName()); - sb.append(",deviceCode:").append(getDeviceCode()); - sb.append(",deviceMac:").append(getDeviceMac()); - sb.append(",siteId:").append(getSiteId()); - sb.append(",siteCode:").append(getSiteCode()); - sb.append(",siteName:").append(getSiteName()); - sb.append(",productCode:").append(getProductCode()); - sb.append(",productName:").append(getProductName()); - sb.append(",deviceSrc:").append(getDeviceSrc()); - sb.append(",lon:").append(getLon()); - sb.append(",lati:").append(getLati()); - sb.append(",leadingOfficial:").append(getLeadingOfficial()); - sb.append(",leadingOfficialTelephone:").append(getLeadingOfficialTelephone()); - sb.append(",deviceStatus:").append(getDeviceStatus()); - sb.append(",deviceRemark:").append(getDeviceRemark()); - sb.append(",source:").append(getSource()); - return sb.toString(); - } - public void initAttrValue(){ - this.deviceId = null; + this.deviceId = -1L; + + this.deviceName = ""; + + this.deviceCode = ""; + + this.deviceMac = ""; + + this.siteId = -1L; + + this.siteCode = ""; + + this.siteName = ""; + + this.productCode = ""; - this.deviceName = null; + this.productName = ""; - this.deviceCode = null; + this.deviceSrc = 2; - this.deviceMac = null; + this.lon = ""; - this.siteId = null; + this.lati = ""; - this.siteCode = null; + this.leadingOfficial = ""; - this.siteName = null; + this.leadingOfficialTelephone = ""; - this.productCode = null; + this.deviceStatus = 0; - this.productName = null; + this.deviceRemark = ""; - this.deviceSrc = 2; + this.source = 1; - this.lon = null; + this.deviceFirmId = -1L; - this.lati = null; + this.deviceFirmname = ""; - this.leadingOfficial = null; + this.ip = ""; - this.leadingOfficialTelephone = null; + this.port = ""; - this.deviceStatus = null; + this.enabled = 0; - this.deviceRemark = null; + this.onlineTime = null; - this.source = 1; + this.offlineTime = null; } } \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java b/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java index 6ee7ec267f112b39c5c9636757831ed879ec2bdd..ff8d5aa34994832b41437c703f0d9e4690f1fae4 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java +++ b/fill-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java @@ -1,13 +1,14 @@ package com.mortals.xhx.module.device.model; +import java.util.Date; import java.util.List; - +import com.mortals.xhx.module.device.model.DeviceEntity; /** -* 璁惧鏌ヨ瀵硅薄 -* -* @author zxfei -* @date 2023-02-25 -*/ + * 璁惧鏌ヨ瀵硅薄 + * + * @author zxfei + * @date 2023-06-21 + */ public class DeviceQuery extends DeviceEntity { /** 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� */ private Long idStart; @@ -201,6 +202,63 @@ public class DeviceQuery extends DeviceEntity { /** 缁撴潫 鏇存柊鏃堕棿 */ private String updateTimeEnd; + /** 寮€濮� 璁惧鐢熶骇鍘傚晢ID */ + private Long deviceFirmIdStart; + + /** 缁撴潫 璁惧鐢熶骇鍘傚晢ID */ + private Long deviceFirmIdEnd; + + /** 澧炲姞 璁惧鐢熶骇鍘傚晢ID */ + private Long deviceFirmIdIncrement; + + /** 璁惧鐢熶骇鍘傚晢ID鍒楄〃 */ + private List <Long> deviceFirmIdList; + + /** 璁惧鐢熶骇鍘傚晢ID鎺掗櫎鍒楄〃 */ + private List <Long> deviceFirmIdNotList; + + /** 璁惧鐢熶骇鍘傚晢鍚嶇О */ + private List<String> deviceFirmnameList; + + /** 璁惧鐢熶骇鍘傚晢鍚嶇О鎺掗櫎鍒楄〃 */ + private List <String> deviceFirmnameNotList; + /** 璁惧璁块棶ip */ + private List<String> ipList; + + /** 璁惧璁块棶ip鎺掗櫎鍒楄〃 */ + private List <String> ipNotList; + /** 绔彛 */ + private List<String> portList; + + /** 绔彛鎺掗櫎鍒楄〃 */ + private List <String> portNotList; + /** 寮€濮� 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) */ + private Integer enabledStart; + + /** 缁撴潫 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) */ + private Integer enabledEnd; + + /** 澧炲姞 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) */ + private Integer enabledIncrement; + + /** 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤)鍒楄〃 */ + private List <Integer> enabledList; + + /** 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤)鎺掗櫎鍒楄〃 */ + private List <Integer> enabledNotList; + + /** 寮€濮� 鏈€杩戜笂绾挎椂闂� */ + private String onlineTimeStart; + + /** 缁撴潫 鏈€杩戜笂绾挎椂闂� */ + private String onlineTimeEnd; + + /** 寮€濮� 鏈€杩戠绾挎椂闂� */ + private String offlineTimeStart; + + /** 缁撴潫 鏈€杩戠绾挎椂闂� */ + private String offlineTimeEnd; + /** OR鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疧R锛岄」鍐呭涔嬮棿鏄疉ND锛屽锛�(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */ private List<DeviceQuery> orConditionList; @@ -210,1791 +268,2280 @@ public class DeviceQuery extends DeviceEntity { public DeviceQuery(){} /** - * 鑾峰彇 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� - * @return idStart - */ + * 鑾峰彇 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� + * @return idStart + */ public Long getIdStart(){ return this.idStart; } /** - * 璁剧疆 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� - * @param idStart - */ + * 璁剧疆 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� + * @param idStart + */ public void setIdStart(Long idStart){ this.idStart = idStart; } /** - * 鑾峰彇 缁撴潫 涓婚敭ID锛屼富閿紝鑷闀� - * @return $idEnd - */ + * 鑾峰彇 缁撴潫 涓婚敭ID锛屼富閿紝鑷闀� + * @return $idEnd + */ public Long getIdEnd(){ return this.idEnd; } /** - * 璁剧疆 缁撴潫 涓婚敭ID锛屼富閿紝鑷闀� - * @param idEnd - */ + * 璁剧疆 缁撴潫 涓婚敭ID锛屼富閿紝鑷闀� + * @param idEnd + */ public void setIdEnd(Long idEnd){ this.idEnd = idEnd; } /** - * 鑾峰彇 澧炲姞 涓婚敭ID锛屼富閿紝鑷闀� - * @return idIncrement - */ + * 鑾峰彇 澧炲姞 涓婚敭ID锛屼富閿紝鑷闀� + * @return idIncrement + */ public Long getIdIncrement(){ return this.idIncrement; } /** - * 璁剧疆 澧炲姞 涓婚敭ID锛屼富閿紝鑷闀� - * @param idIncrement - */ + * 璁剧疆 澧炲姞 涓婚敭ID锛屼富閿紝鑷闀� + * @param idIncrement + */ public void setIdIncrement(Long idIncrement){ this.idIncrement = idIncrement; } /** - * 鑾峰彇 涓婚敭ID锛屼富閿紝鑷闀� - * @return idList - */ + * 鑾峰彇 涓婚敭ID锛屼富閿紝鑷闀� + * @return idList + */ public List<Long> getIdList(){ return this.idList; } /** - * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� - * @param idList - */ + * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� + * @param idList + */ public void setIdList(List<Long> idList){ this.idList = idList; } /** - * 鑾峰彇 涓婚敭ID锛屼富閿紝鑷闀� - * @return idNotList - */ + * 鑾峰彇 涓婚敭ID锛屼富閿紝鑷闀� + * @return idNotList + */ public List<Long> getIdNotList(){ return this.idNotList; } /** - * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� - * @param idNotList - */ + * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� + * @param idNotList + */ public void setIdNotList(List<Long> idNotList){ this.idNotList = idNotList; } /** - * 鑾峰彇 寮€濮� 璁惧id - * @return deviceIdStart - */ + * 鑾峰彇 寮€濮� 璁惧id + * @return deviceIdStart + */ public Long getDeviceIdStart(){ return this.deviceIdStart; } /** - * 璁剧疆 寮€濮� 璁惧id - * @param deviceIdStart - */ + * 璁剧疆 寮€濮� 璁惧id + * @param deviceIdStart + */ public void setDeviceIdStart(Long deviceIdStart){ this.deviceIdStart = deviceIdStart; } /** - * 鑾峰彇 缁撴潫 璁惧id - * @return $deviceIdEnd - */ + * 鑾峰彇 缁撴潫 璁惧id + * @return $deviceIdEnd + */ public Long getDeviceIdEnd(){ return this.deviceIdEnd; } /** - * 璁剧疆 缁撴潫 璁惧id - * @param deviceIdEnd - */ + * 璁剧疆 缁撴潫 璁惧id + * @param deviceIdEnd + */ public void setDeviceIdEnd(Long deviceIdEnd){ this.deviceIdEnd = deviceIdEnd; } /** - * 鑾峰彇 澧炲姞 璁惧id - * @return deviceIdIncrement - */ + * 鑾峰彇 澧炲姞 璁惧id + * @return deviceIdIncrement + */ public Long getDeviceIdIncrement(){ return this.deviceIdIncrement; } /** - * 璁剧疆 澧炲姞 璁惧id - * @param deviceIdIncrement - */ + * 璁剧疆 澧炲姞 璁惧id + * @param deviceIdIncrement + */ public void setDeviceIdIncrement(Long deviceIdIncrement){ this.deviceIdIncrement = deviceIdIncrement; } /** - * 鑾峰彇 璁惧id - * @return deviceIdList - */ + * 鑾峰彇 璁惧id + * @return deviceIdList + */ public List<Long> getDeviceIdList(){ return this.deviceIdList; } /** - * 璁剧疆 璁惧id - * @param deviceIdList - */ + * 璁剧疆 璁惧id + * @param deviceIdList + */ public void setDeviceIdList(List<Long> deviceIdList){ this.deviceIdList = deviceIdList; } /** - * 鑾峰彇 璁惧id - * @return deviceIdNotList - */ + * 鑾峰彇 璁惧id + * @return deviceIdNotList + */ public List<Long> getDeviceIdNotList(){ return this.deviceIdNotList; } /** - * 璁剧疆 璁惧id - * @param deviceIdNotList - */ + * 璁剧疆 璁惧id + * @param deviceIdNotList + */ public void setDeviceIdNotList(List<Long> deviceIdNotList){ this.deviceIdNotList = deviceIdNotList; } /** - * 鑾峰彇 璁惧鍚嶇О - * @return deviceNameList - */ + * 鑾峰彇 璁惧鍚嶇О + * @return deviceNameList + */ public List<String> getDeviceNameList(){ return this.deviceNameList; } /** - * 璁剧疆 璁惧鍚嶇О - * @param deviceNameList - */ + * 璁剧疆 璁惧鍚嶇О + * @param deviceNameList + */ public void setDeviceNameList(List<String> deviceNameList){ this.deviceNameList = deviceNameList; } /** - * 鑾峰彇 璁惧鍚嶇О - * @return deviceNameNotList - */ + * 鑾峰彇 璁惧鍚嶇О + * @return deviceNameNotList + */ public List<String> getDeviceNameNotList(){ return this.deviceNameNotList; } /** - * 璁剧疆 璁惧鍚嶇О - * @param deviceNameNotList - */ + * 璁剧疆 璁惧鍚嶇О + * @param deviceNameNotList + */ public void setDeviceNameNotList(List<String> deviceNameNotList){ this.deviceNameNotList = deviceNameNotList; } /** - * 鑾峰彇 璁惧缂栫爜 - * @return deviceCodeList - */ + * 鑾峰彇 璁惧缂栫爜 + * @return deviceCodeList + */ public List<String> getDeviceCodeList(){ return this.deviceCodeList; } /** - * 璁剧疆 璁惧缂栫爜 - * @param deviceCodeList - */ + * 璁剧疆 璁惧缂栫爜 + * @param deviceCodeList + */ public void setDeviceCodeList(List<String> deviceCodeList){ this.deviceCodeList = deviceCodeList; } /** - * 鑾峰彇 璁惧缂栫爜 - * @return deviceCodeNotList - */ + * 鑾峰彇 璁惧缂栫爜 + * @return deviceCodeNotList + */ public List<String> getDeviceCodeNotList(){ return this.deviceCodeNotList; } /** - * 璁剧疆 璁惧缂栫爜 - * @param deviceCodeNotList - */ + * 璁剧疆 璁惧缂栫爜 + * @param deviceCodeNotList + */ public void setDeviceCodeNotList(List<String> deviceCodeNotList){ this.deviceCodeNotList = deviceCodeNotList; } /** - * 鑾峰彇 璁惧鐨凪AC鍦板潃 - * @return deviceMacList - */ + * 鑾峰彇 璁惧鐨凪AC鍦板潃 + * @return deviceMacList + */ public List<String> getDeviceMacList(){ return this.deviceMacList; } /** - * 璁剧疆 璁惧鐨凪AC鍦板潃 - * @param deviceMacList - */ + * 璁剧疆 璁惧鐨凪AC鍦板潃 + * @param deviceMacList + */ public void setDeviceMacList(List<String> deviceMacList){ this.deviceMacList = deviceMacList; } /** - * 鑾峰彇 璁惧鐨凪AC鍦板潃 - * @return deviceMacNotList - */ + * 鑾峰彇 璁惧鐨凪AC鍦板潃 + * @return deviceMacNotList + */ public List<String> getDeviceMacNotList(){ return this.deviceMacNotList; } /** - * 璁剧疆 璁惧鐨凪AC鍦板潃 - * @param deviceMacNotList - */ + * 璁剧疆 璁惧鐨凪AC鍦板潃 + * @param deviceMacNotList + */ public void setDeviceMacNotList(List<String> deviceMacNotList){ this.deviceMacNotList = deviceMacNotList; } /** - * 鑾峰彇 寮€濮� 绔欑偣Id - * @return siteIdStart - */ + * 鑾峰彇 寮€濮� 绔欑偣Id + * @return siteIdStart + */ public Long getSiteIdStart(){ return this.siteIdStart; } /** - * 璁剧疆 寮€濮� 绔欑偣Id - * @param siteIdStart - */ + * 璁剧疆 寮€濮� 绔欑偣Id + * @param siteIdStart + */ public void setSiteIdStart(Long siteIdStart){ this.siteIdStart = siteIdStart; } /** - * 鑾峰彇 缁撴潫 绔欑偣Id - * @return $siteIdEnd - */ + * 鑾峰彇 缁撴潫 绔欑偣Id + * @return $siteIdEnd + */ public Long getSiteIdEnd(){ return this.siteIdEnd; } /** - * 璁剧疆 缁撴潫 绔欑偣Id - * @param siteIdEnd - */ + * 璁剧疆 缁撴潫 绔欑偣Id + * @param siteIdEnd + */ public void setSiteIdEnd(Long siteIdEnd){ this.siteIdEnd = siteIdEnd; } /** - * 鑾峰彇 澧炲姞 绔欑偣Id - * @return siteIdIncrement - */ + * 鑾峰彇 澧炲姞 绔欑偣Id + * @return siteIdIncrement + */ public Long getSiteIdIncrement(){ return this.siteIdIncrement; } /** - * 璁剧疆 澧炲姞 绔欑偣Id - * @param siteIdIncrement - */ + * 璁剧疆 澧炲姞 绔欑偣Id + * @param siteIdIncrement + */ public void setSiteIdIncrement(Long siteIdIncrement){ this.siteIdIncrement = siteIdIncrement; } /** - * 鑾峰彇 绔欑偣Id - * @return siteIdList - */ + * 鑾峰彇 绔欑偣Id + * @return siteIdList + */ public List<Long> getSiteIdList(){ return this.siteIdList; } /** - * 璁剧疆 绔欑偣Id - * @param siteIdList - */ + * 璁剧疆 绔欑偣Id + * @param siteIdList + */ public void setSiteIdList(List<Long> siteIdList){ this.siteIdList = siteIdList; } /** - * 鑾峰彇 绔欑偣Id - * @return siteIdNotList - */ + * 鑾峰彇 绔欑偣Id + * @return siteIdNotList + */ public List<Long> getSiteIdNotList(){ return this.siteIdNotList; } /** - * 璁剧疆 绔欑偣Id - * @param siteIdNotList - */ + * 璁剧疆 绔欑偣Id + * @param siteIdNotList + */ public void setSiteIdNotList(List<Long> siteIdNotList){ this.siteIdNotList = siteIdNotList; } /** - * 鑾峰彇 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @return siteCodeList - */ + * 鑾峰彇 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + * @return siteCodeList + */ public List<String> getSiteCodeList(){ return this.siteCodeList; } /** - * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @param siteCodeList - */ + * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + * @param siteCodeList + */ public void setSiteCodeList(List<String> siteCodeList){ this.siteCodeList = siteCodeList; } /** - * 鑾峰彇 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @return siteCodeNotList - */ + * 鑾峰彇 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + * @return siteCodeNotList + */ public List<String> getSiteCodeNotList(){ return this.siteCodeNotList; } /** - * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @param siteCodeNotList - */ + * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + * @param siteCodeNotList + */ public void setSiteCodeNotList(List<String> siteCodeNotList){ this.siteCodeNotList = siteCodeNotList; } /** - * 鑾峰彇 绔欑偣鍚嶇О - * @return siteNameList - */ + * 鑾峰彇 绔欑偣鍚嶇О + * @return siteNameList + */ public List<String> getSiteNameList(){ return this.siteNameList; } /** - * 璁剧疆 绔欑偣鍚嶇О - * @param siteNameList - */ + * 璁剧疆 绔欑偣鍚嶇О + * @param siteNameList + */ public void setSiteNameList(List<String> siteNameList){ this.siteNameList = siteNameList; } /** - * 鑾峰彇 绔欑偣鍚嶇О - * @return siteNameNotList - */ + * 鑾峰彇 绔欑偣鍚嶇О + * @return siteNameNotList + */ public List<String> getSiteNameNotList(){ return this.siteNameNotList; } /** - * 璁剧疆 绔欑偣鍚嶇О - * @param siteNameNotList - */ + * 璁剧疆 绔欑偣鍚嶇О + * @param siteNameNotList + */ public void setSiteNameNotList(List<String> siteNameNotList){ this.siteNameNotList = siteNameNotList; } /** - * 鑾峰彇 浜у搧缂栫爜 - * @return productCodeList - */ + * 鑾峰彇 浜у搧缂栫爜 + * @return productCodeList + */ public List<String> getProductCodeList(){ return this.productCodeList; } /** - * 璁剧疆 浜у搧缂栫爜 - * @param productCodeList - */ + * 璁剧疆 浜у搧缂栫爜 + * @param productCodeList + */ public void setProductCodeList(List<String> productCodeList){ this.productCodeList = productCodeList; } /** - * 鑾峰彇 浜у搧缂栫爜 - * @return productCodeNotList - */ + * 鑾峰彇 浜у搧缂栫爜 + * @return productCodeNotList + */ public List<String> getProductCodeNotList(){ return this.productCodeNotList; } /** - * 璁剧疆 浜у搧缂栫爜 - * @param productCodeNotList - */ + * 璁剧疆 浜у搧缂栫爜 + * @param productCodeNotList + */ public void setProductCodeNotList(List<String> productCodeNotList){ this.productCodeNotList = productCodeNotList; } /** - * 鑾峰彇 浜у搧鍚嶇О - * @return productNameList - */ + * 鑾峰彇 浜у搧鍚嶇О + * @return productNameList + */ public List<String> getProductNameList(){ return this.productNameList; } /** - * 璁剧疆 浜у搧鍚嶇О - * @param productNameList - */ + * 璁剧疆 浜у搧鍚嶇О + * @param productNameList + */ public void setProductNameList(List<String> productNameList){ this.productNameList = productNameList; } /** - * 鑾峰彇 浜у搧鍚嶇О - * @return productNameNotList - */ + * 鑾峰彇 浜у搧鍚嶇О + * @return productNameNotList + */ public List<String> getProductNameNotList(){ return this.productNameNotList; } /** - * 璁剧疆 浜у搧鍚嶇О - * @param productNameNotList - */ + * 璁剧疆 浜у搧鍚嶇О + * @param productNameNotList + */ public void setProductNameNotList(List<String> productNameNotList){ this.productNameNotList = productNameNotList; } /** - * 鑾峰彇 寮€濮� 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @return deviceSrcStart - */ + * 鑾峰彇 寮€濮� 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @return deviceSrcStart + */ public Integer getDeviceSrcStart(){ return this.deviceSrcStart; } /** - * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcStart - */ + * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcStart + */ public void setDeviceSrcStart(Integer deviceSrcStart){ this.deviceSrcStart = deviceSrcStart; } /** - * 鑾峰彇 缁撴潫 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @return $deviceSrcEnd - */ + * 鑾峰彇 缁撴潫 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @return $deviceSrcEnd + */ public Integer getDeviceSrcEnd(){ return this.deviceSrcEnd; } /** - * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcEnd - */ + * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcEnd + */ public void setDeviceSrcEnd(Integer deviceSrcEnd){ this.deviceSrcEnd = deviceSrcEnd; } /** - * 鑾峰彇 澧炲姞 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @return deviceSrcIncrement - */ + * 鑾峰彇 澧炲姞 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @return deviceSrcIncrement + */ public Integer getDeviceSrcIncrement(){ return this.deviceSrcIncrement; } /** - * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcIncrement - */ + * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcIncrement + */ public void setDeviceSrcIncrement(Integer deviceSrcIncrement){ this.deviceSrcIncrement = deviceSrcIncrement; } /** - * 鑾峰彇 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @return deviceSrcList - */ + * 鑾峰彇 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @return deviceSrcList + */ public List<Integer> getDeviceSrcList(){ return this.deviceSrcList; } /** - * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcList - */ + * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcList + */ public void setDeviceSrcList(List<Integer> deviceSrcList){ this.deviceSrcList = deviceSrcList; } /** - * 鑾峰彇 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @return deviceSrcNotList - */ + * 鑾峰彇 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @return deviceSrcNotList + */ public List<Integer> getDeviceSrcNotList(){ return this.deviceSrcNotList; } /** - * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcNotList - */ + * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcNotList + */ public void setDeviceSrcNotList(List<Integer> deviceSrcNotList){ this.deviceSrcNotList = deviceSrcNotList; } /** - * 鑾峰彇 缁忓害 - * @return lonList - */ + * 鑾峰彇 缁忓害 + * @return lonList + */ public List<String> getLonList(){ return this.lonList; } /** - * 璁剧疆 缁忓害 - * @param lonList - */ + * 璁剧疆 缁忓害 + * @param lonList + */ public void setLonList(List<String> lonList){ this.lonList = lonList; } /** - * 鑾峰彇 缁忓害 - * @return lonNotList - */ + * 鑾峰彇 缁忓害 + * @return lonNotList + */ public List<String> getLonNotList(){ return this.lonNotList; } /** - * 璁剧疆 缁忓害 - * @param lonNotList - */ + * 璁剧疆 缁忓害 + * @param lonNotList + */ public void setLonNotList(List<String> lonNotList){ this.lonNotList = lonNotList; } /** - * 鑾峰彇 绾害 - * @return latiList - */ + * 鑾峰彇 绾害 + * @return latiList + */ public List<String> getLatiList(){ return this.latiList; } /** - * 璁剧疆 绾害 - * @param latiList - */ + * 璁剧疆 绾害 + * @param latiList + */ public void setLatiList(List<String> latiList){ this.latiList = latiList; } /** - * 鑾峰彇 绾害 - * @return latiNotList - */ + * 鑾峰彇 绾害 + * @return latiNotList + */ public List<String> getLatiNotList(){ return this.latiNotList; } /** - * 璁剧疆 绾害 - * @param latiNotList - */ + * 璁剧疆 绾害 + * @param latiNotList + */ public void setLatiNotList(List<String> latiNotList){ this.latiNotList = latiNotList; } /** - * 鑾峰彇 璐熻矗浜� - * @return leadingOfficialList - */ + * 鑾峰彇 璐熻矗浜� + * @return leadingOfficialList + */ public List<String> getLeadingOfficialList(){ return this.leadingOfficialList; } /** - * 璁剧疆 璐熻矗浜� - * @param leadingOfficialList - */ + * 璁剧疆 璐熻矗浜� + * @param leadingOfficialList + */ public void setLeadingOfficialList(List<String> leadingOfficialList){ this.leadingOfficialList = leadingOfficialList; } /** - * 鑾峰彇 璐熻矗浜� - * @return leadingOfficialNotList - */ + * 鑾峰彇 璐熻矗浜� + * @return leadingOfficialNotList + */ public List<String> getLeadingOfficialNotList(){ return this.leadingOfficialNotList; } /** - * 璁剧疆 璐熻矗浜� - * @param leadingOfficialNotList - */ + * 璁剧疆 璐熻矗浜� + * @param leadingOfficialNotList + */ public void setLeadingOfficialNotList(List<String> leadingOfficialNotList){ this.leadingOfficialNotList = leadingOfficialNotList; } /** - * 鑾峰彇 鑱旂郴鐢佃瘽 - * @return leadingOfficialTelephoneList - */ + * 鑾峰彇 鑱旂郴鐢佃瘽 + * @return leadingOfficialTelephoneList + */ public List<String> getLeadingOfficialTelephoneList(){ return this.leadingOfficialTelephoneList; } /** - * 璁剧疆 鑱旂郴鐢佃瘽 - * @param leadingOfficialTelephoneList - */ + * 璁剧疆 鑱旂郴鐢佃瘽 + * @param leadingOfficialTelephoneList + */ public void setLeadingOfficialTelephoneList(List<String> leadingOfficialTelephoneList){ this.leadingOfficialTelephoneList = leadingOfficialTelephoneList; } /** - * 鑾峰彇 鑱旂郴鐢佃瘽 - * @return leadingOfficialTelephoneNotList - */ + * 鑾峰彇 鑱旂郴鐢佃瘽 + * @return leadingOfficialTelephoneNotList + */ public List<String> getLeadingOfficialTelephoneNotList(){ return this.leadingOfficialTelephoneNotList; } /** - * 璁剧疆 鑱旂郴鐢佃瘽 - * @param leadingOfficialTelephoneNotList - */ + * 璁剧疆 鑱旂郴鐢佃瘽 + * @param leadingOfficialTelephoneNotList + */ public void setLeadingOfficialTelephoneNotList(List<String> leadingOfficialTelephoneNotList){ this.leadingOfficialTelephoneNotList = leadingOfficialTelephoneNotList; } /** - * 鑾峰彇 寮€濮� 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @return deviceStatusStart - */ + * 鑾峰彇 寮€濮� 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @return deviceStatusStart + */ public Integer getDeviceStatusStart(){ return this.deviceStatusStart; } /** - * 璁剧疆 寮€濮� 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusStart - */ + * 璁剧疆 寮€濮� 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusStart + */ public void setDeviceStatusStart(Integer deviceStatusStart){ this.deviceStatusStart = deviceStatusStart; } /** - * 鑾峰彇 缁撴潫 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @return $deviceStatusEnd - */ + * 鑾峰彇 缁撴潫 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @return $deviceStatusEnd + */ public Integer getDeviceStatusEnd(){ return this.deviceStatusEnd; } /** - * 璁剧疆 缁撴潫 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusEnd - */ + * 璁剧疆 缁撴潫 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusEnd + */ public void setDeviceStatusEnd(Integer deviceStatusEnd){ this.deviceStatusEnd = deviceStatusEnd; } /** - * 鑾峰彇 澧炲姞 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @return deviceStatusIncrement - */ + * 鑾峰彇 澧炲姞 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @return deviceStatusIncrement + */ public Integer getDeviceStatusIncrement(){ return this.deviceStatusIncrement; } /** - * 璁剧疆 澧炲姞 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusIncrement - */ + * 璁剧疆 澧炲姞 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusIncrement + */ public void setDeviceStatusIncrement(Integer deviceStatusIncrement){ this.deviceStatusIncrement = deviceStatusIncrement; } /** - * 鑾峰彇 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @return deviceStatusList - */ + * 鑾峰彇 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @return deviceStatusList + */ public List<Integer> getDeviceStatusList(){ return this.deviceStatusList; } /** - * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusList - */ + * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusList + */ public void setDeviceStatusList(List<Integer> deviceStatusList){ this.deviceStatusList = deviceStatusList; } /** - * 鑾峰彇 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @return deviceStatusNotList - */ + * 鑾峰彇 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @return deviceStatusNotList + */ public List<Integer> getDeviceStatusNotList(){ return this.deviceStatusNotList; } /** - * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusNotList - */ + * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusNotList + */ public void setDeviceStatusNotList(List<Integer> deviceStatusNotList){ this.deviceStatusNotList = deviceStatusNotList; } /** - * 鑾峰彇 澶囨敞 - * @return deviceRemarkList - */ + * 鑾峰彇 澶囨敞 + * @return deviceRemarkList + */ public List<String> getDeviceRemarkList(){ return this.deviceRemarkList; } /** - * 璁剧疆 澶囨敞 - * @param deviceRemarkList - */ + * 璁剧疆 澶囨敞 + * @param deviceRemarkList + */ public void setDeviceRemarkList(List<String> deviceRemarkList){ this.deviceRemarkList = deviceRemarkList; } /** - * 鑾峰彇 澶囨敞 - * @return deviceRemarkNotList - */ + * 鑾峰彇 澶囨敞 + * @return deviceRemarkNotList + */ public List<String> getDeviceRemarkNotList(){ return this.deviceRemarkNotList; } /** - * 璁剧疆 澶囨敞 - * @param deviceRemarkNotList - */ + * 璁剧疆 澶囨敞 + * @param deviceRemarkNotList + */ public void setDeviceRemarkNotList(List<String> deviceRemarkNotList){ this.deviceRemarkNotList = deviceRemarkNotList; } /** - * 鑾峰彇 寮€濮� 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @return sourceStart - */ + * 鑾峰彇 寮€濮� 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @return sourceStart + */ public Integer getSourceStart(){ return this.sourceStart; } /** - * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceStart - */ + * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceStart + */ public void setSourceStart(Integer sourceStart){ this.sourceStart = sourceStart; } /** - * 鑾峰彇 缁撴潫 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @return $sourceEnd - */ + * 鑾峰彇 缁撴潫 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @return $sourceEnd + */ public Integer getSourceEnd(){ return this.sourceEnd; } /** - * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceEnd - */ + * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceEnd + */ public void setSourceEnd(Integer sourceEnd){ this.sourceEnd = sourceEnd; } /** - * 鑾峰彇 澧炲姞 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @return sourceIncrement - */ + * 鑾峰彇 澧炲姞 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @return sourceIncrement + */ public Integer getSourceIncrement(){ return this.sourceIncrement; } /** - * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceIncrement - */ + * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceIncrement + */ public void setSourceIncrement(Integer sourceIncrement){ this.sourceIncrement = sourceIncrement; } /** - * 鑾峰彇 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @return sourceList - */ + * 鑾峰彇 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @return sourceList + */ public List<Integer> getSourceList(){ return this.sourceList; } /** - * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceList - */ + * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceList + */ public void setSourceList(List<Integer> sourceList){ this.sourceList = sourceList; } /** - * 鑾峰彇 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @return sourceNotList - */ + * 鑾峰彇 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @return sourceNotList + */ public List<Integer> getSourceNotList(){ return this.sourceNotList; } /** - * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceNotList - */ + * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceNotList + */ public void setSourceNotList(List<Integer> sourceNotList){ this.sourceNotList = sourceNotList; } /** - * 鑾峰彇 寮€濮� 鍒涘缓鐢ㄦ埛 - * @return createUserIdStart - */ + * 鑾峰彇 寮€濮� 鍒涘缓鐢ㄦ埛 + * @return createUserIdStart + */ public Long getCreateUserIdStart(){ return this.createUserIdStart; } /** - * 璁剧疆 寮€濮� 鍒涘缓鐢ㄦ埛 - * @param createUserIdStart - */ + * 璁剧疆 寮€濮� 鍒涘缓鐢ㄦ埛 + * @param createUserIdStart + */ public void setCreateUserIdStart(Long createUserIdStart){ this.createUserIdStart = createUserIdStart; } /** - * 鑾峰彇 缁撴潫 鍒涘缓鐢ㄦ埛 - * @return $createUserIdEnd - */ + * 鑾峰彇 缁撴潫 鍒涘缓鐢ㄦ埛 + * @return $createUserIdEnd + */ public Long getCreateUserIdEnd(){ return this.createUserIdEnd; } /** - * 璁剧疆 缁撴潫 鍒涘缓鐢ㄦ埛 - * @param createUserIdEnd - */ + * 璁剧疆 缁撴潫 鍒涘缓鐢ㄦ埛 + * @param createUserIdEnd + */ public void setCreateUserIdEnd(Long createUserIdEnd){ this.createUserIdEnd = createUserIdEnd; } /** - * 鑾峰彇 澧炲姞 鍒涘缓鐢ㄦ埛 - * @return createUserIdIncrement - */ + * 鑾峰彇 澧炲姞 鍒涘缓鐢ㄦ埛 + * @return createUserIdIncrement + */ public Long getCreateUserIdIncrement(){ return this.createUserIdIncrement; } /** - * 璁剧疆 澧炲姞 鍒涘缓鐢ㄦ埛 - * @param createUserIdIncrement - */ + * 璁剧疆 澧炲姞 鍒涘缓鐢ㄦ埛 + * @param createUserIdIncrement + */ public void setCreateUserIdIncrement(Long createUserIdIncrement){ this.createUserIdIncrement = createUserIdIncrement; } /** - * 鑾峰彇 鍒涘缓鐢ㄦ埛 - * @return createUserIdList - */ + * 鑾峰彇 鍒涘缓鐢ㄦ埛 + * @return createUserIdList + */ public List<Long> getCreateUserIdList(){ return this.createUserIdList; } /** - * 璁剧疆 鍒涘缓鐢ㄦ埛 - * @param createUserIdList - */ + * 璁剧疆 鍒涘缓鐢ㄦ埛 + * @param createUserIdList + */ public void setCreateUserIdList(List<Long> createUserIdList){ this.createUserIdList = createUserIdList; } /** - * 鑾峰彇 鍒涘缓鐢ㄦ埛 - * @return createUserIdNotList - */ + * 鑾峰彇 鍒涘缓鐢ㄦ埛 + * @return createUserIdNotList + */ public List<Long> getCreateUserIdNotList(){ return this.createUserIdNotList; } /** - * 璁剧疆 鍒涘缓鐢ㄦ埛 - * @param createUserIdNotList - */ + * 璁剧疆 鍒涘缓鐢ㄦ埛 + * @param createUserIdNotList + */ public void setCreateUserIdNotList(List<Long> createUserIdNotList){ this.createUserIdNotList = createUserIdNotList; } /** - * 鑾峰彇 寮€濮� 鍒涘缓鏃堕棿 - * @return createTimeStart - */ + * 鑾峰彇 寮€濮� 鍒涘缓鏃堕棿 + * @return createTimeStart + */ public String getCreateTimeStart(){ return this.createTimeStart; } /** - * 璁剧疆 寮€濮� 鍒涘缓鏃堕棿 - * @param createTimeStart - */ + * 璁剧疆 寮€濮� 鍒涘缓鏃堕棿 + * @param createTimeStart + */ public void setCreateTimeStart(String createTimeStart){ this.createTimeStart = createTimeStart; } /** - * 鑾峰彇 缁撴潫 鍒涘缓鏃堕棿 - * @return createTimeEnd - */ + * 鑾峰彇 缁撴潫 鍒涘缓鏃堕棿 + * @return createTimeEnd + */ public String getCreateTimeEnd(){ return this.createTimeEnd; } /** - * 璁剧疆 缁撴潫 鍒涘缓鏃堕棿 - * @param createTimeEnd - */ + * 璁剧疆 缁撴潫 鍒涘缓鏃堕棿 + * @param createTimeEnd + */ public void setCreateTimeEnd(String createTimeEnd){ this.createTimeEnd = createTimeEnd; } /** - * 鑾峰彇 寮€濮� 鏇存柊鐢ㄦ埛 - * @return updateUserIdStart - */ + * 鑾峰彇 寮€濮� 鏇存柊鐢ㄦ埛 + * @return updateUserIdStart + */ public Long getUpdateUserIdStart(){ return this.updateUserIdStart; } /** - * 璁剧疆 寮€濮� 鏇存柊鐢ㄦ埛 - * @param updateUserIdStart - */ + * 璁剧疆 寮€濮� 鏇存柊鐢ㄦ埛 + * @param updateUserIdStart + */ public void setUpdateUserIdStart(Long updateUserIdStart){ this.updateUserIdStart = updateUserIdStart; } /** - * 鑾峰彇 缁撴潫 鏇存柊鐢ㄦ埛 - * @return $updateUserIdEnd - */ + * 鑾峰彇 缁撴潫 鏇存柊鐢ㄦ埛 + * @return $updateUserIdEnd + */ public Long getUpdateUserIdEnd(){ return this.updateUserIdEnd; } /** - * 璁剧疆 缁撴潫 鏇存柊鐢ㄦ埛 - * @param updateUserIdEnd - */ + * 璁剧疆 缁撴潫 鏇存柊鐢ㄦ埛 + * @param updateUserIdEnd + */ public void setUpdateUserIdEnd(Long updateUserIdEnd){ this.updateUserIdEnd = updateUserIdEnd; } /** - * 鑾峰彇 澧炲姞 鏇存柊鐢ㄦ埛 - * @return updateUserIdIncrement - */ + * 鑾峰彇 澧炲姞 鏇存柊鐢ㄦ埛 + * @return updateUserIdIncrement + */ public Long getUpdateUserIdIncrement(){ return this.updateUserIdIncrement; } /** - * 璁剧疆 澧炲姞 鏇存柊鐢ㄦ埛 - * @param updateUserIdIncrement - */ + * 璁剧疆 澧炲姞 鏇存柊鐢ㄦ埛 + * @param updateUserIdIncrement + */ public void setUpdateUserIdIncrement(Long updateUserIdIncrement){ this.updateUserIdIncrement = updateUserIdIncrement; } /** - * 鑾峰彇 鏇存柊鐢ㄦ埛 - * @return updateUserIdList - */ + * 鑾峰彇 鏇存柊鐢ㄦ埛 + * @return updateUserIdList + */ public List<Long> getUpdateUserIdList(){ return this.updateUserIdList; } /** - * 璁剧疆 鏇存柊鐢ㄦ埛 - * @param updateUserIdList - */ + * 璁剧疆 鏇存柊鐢ㄦ埛 + * @param updateUserIdList + */ public void setUpdateUserIdList(List<Long> updateUserIdList){ this.updateUserIdList = updateUserIdList; } /** - * 鑾峰彇 鏇存柊鐢ㄦ埛 - * @return updateUserIdNotList - */ + * 鑾峰彇 鏇存柊鐢ㄦ埛 + * @return updateUserIdNotList + */ public List<Long> getUpdateUserIdNotList(){ return this.updateUserIdNotList; } /** - * 璁剧疆 鏇存柊鐢ㄦ埛 - * @param updateUserIdNotList - */ + * 璁剧疆 鏇存柊鐢ㄦ埛 + * @param updateUserIdNotList + */ public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){ this.updateUserIdNotList = updateUserIdNotList; } /** - * 鑾峰彇 寮€濮� 鏇存柊鏃堕棿 - * @return updateTimeStart - */ + * 鑾峰彇 寮€濮� 鏇存柊鏃堕棿 + * @return updateTimeStart + */ public String getUpdateTimeStart(){ return this.updateTimeStart; } /** - * 璁剧疆 寮€濮� 鏇存柊鏃堕棿 - * @param updateTimeStart - */ + * 璁剧疆 寮€濮� 鏇存柊鏃堕棿 + * @param updateTimeStart + */ public void setUpdateTimeStart(String updateTimeStart){ this.updateTimeStart = updateTimeStart; } /** - * 鑾峰彇 缁撴潫 鏇存柊鏃堕棿 - * @return updateTimeEnd - */ + * 鑾峰彇 缁撴潫 鏇存柊鏃堕棿 + * @return updateTimeEnd + */ public String getUpdateTimeEnd(){ return this.updateTimeEnd; } /** - * 璁剧疆 缁撴潫 鏇存柊鏃堕棿 - * @param updateTimeEnd - */ + * 璁剧疆 缁撴潫 鏇存柊鏃堕棿 + * @param updateTimeEnd + */ public void setUpdateTimeEnd(String updateTimeEnd){ this.updateTimeEnd = updateTimeEnd; } /** - * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� - * @param id - */ + * 鑾峰彇 寮€濮� 璁惧鐢熶骇鍘傚晢ID + * @return deviceFirmIdStart + */ + public Long getDeviceFirmIdStart(){ + return this.deviceFirmIdStart; + } + + /** + * 璁剧疆 寮€濮� 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdStart + */ + public void setDeviceFirmIdStart(Long deviceFirmIdStart){ + this.deviceFirmIdStart = deviceFirmIdStart; + } + + /** + * 鑾峰彇 缁撴潫 璁惧鐢熶骇鍘傚晢ID + * @return $deviceFirmIdEnd + */ + public Long getDeviceFirmIdEnd(){ + return this.deviceFirmIdEnd; + } + + /** + * 璁剧疆 缁撴潫 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdEnd + */ + public void setDeviceFirmIdEnd(Long deviceFirmIdEnd){ + this.deviceFirmIdEnd = deviceFirmIdEnd; + } + + /** + * 鑾峰彇 澧炲姞 璁惧鐢熶骇鍘傚晢ID + * @return deviceFirmIdIncrement + */ + public Long getDeviceFirmIdIncrement(){ + return this.deviceFirmIdIncrement; + } + + /** + * 璁剧疆 澧炲姞 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdIncrement + */ + public void setDeviceFirmIdIncrement(Long deviceFirmIdIncrement){ + this.deviceFirmIdIncrement = deviceFirmIdIncrement; + } + + /** + * 鑾峰彇 璁惧鐢熶骇鍘傚晢ID + * @return deviceFirmIdList + */ + public List<Long> getDeviceFirmIdList(){ + return this.deviceFirmIdList; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdList + */ + public void setDeviceFirmIdList(List<Long> deviceFirmIdList){ + this.deviceFirmIdList = deviceFirmIdList; + } + + /** + * 鑾峰彇 璁惧鐢熶骇鍘傚晢ID + * @return deviceFirmIdNotList + */ + public List<Long> getDeviceFirmIdNotList(){ + return this.deviceFirmIdNotList; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdNotList + */ + public void setDeviceFirmIdNotList(List<Long> deviceFirmIdNotList){ + this.deviceFirmIdNotList = deviceFirmIdNotList; + } + + + /** + * 鑾峰彇 璁惧鐢熶骇鍘傚晢鍚嶇О + * @return deviceFirmnameList + */ + public List<String> getDeviceFirmnameList(){ + return this.deviceFirmnameList; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢鍚嶇О + * @param deviceFirmnameList + */ + public void setDeviceFirmnameList(List<String> deviceFirmnameList){ + this.deviceFirmnameList = deviceFirmnameList; + } + + /** + * 鑾峰彇 璁惧鐢熶骇鍘傚晢鍚嶇О + * @return deviceFirmnameNotList + */ + public List<String> getDeviceFirmnameNotList(){ + return this.deviceFirmnameNotList; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢鍚嶇О + * @param deviceFirmnameNotList + */ + public void setDeviceFirmnameNotList(List<String> deviceFirmnameNotList){ + this.deviceFirmnameNotList = deviceFirmnameNotList; + } + + /** + * 鑾峰彇 璁惧璁块棶ip + * @return ipList + */ + public List<String> getIpList(){ + return this.ipList; + } + + /** + * 璁剧疆 璁惧璁块棶ip + * @param ipList + */ + public void setIpList(List<String> ipList){ + this.ipList = ipList; + } + + /** + * 鑾峰彇 璁惧璁块棶ip + * @return ipNotList + */ + public List<String> getIpNotList(){ + return this.ipNotList; + } + + /** + * 璁剧疆 璁惧璁块棶ip + * @param ipNotList + */ + public void setIpNotList(List<String> ipNotList){ + this.ipNotList = ipNotList; + } + + /** + * 鑾峰彇 绔彛 + * @return portList + */ + public List<String> getPortList(){ + return this.portList; + } + + /** + * 璁剧疆 绔彛 + * @param portList + */ + public void setPortList(List<String> portList){ + this.portList = portList; + } + + /** + * 鑾峰彇 绔彛 + * @return portNotList + */ + public List<String> getPortNotList(){ + return this.portNotList; + } + + /** + * 璁剧疆 绔彛 + * @param portNotList + */ + public void setPortNotList(List<String> portNotList){ + this.portNotList = portNotList; + } + + /** + * 鑾峰彇 寮€濮� 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @return enabledStart + */ + public Integer getEnabledStart(){ + return this.enabledStart; + } + + /** + * 璁剧疆 寮€濮� 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledStart + */ + public void setEnabledStart(Integer enabledStart){ + this.enabledStart = enabledStart; + } + + /** + * 鑾峰彇 缁撴潫 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @return $enabledEnd + */ + public Integer getEnabledEnd(){ + return this.enabledEnd; + } + + /** + * 璁剧疆 缁撴潫 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledEnd + */ + public void setEnabledEnd(Integer enabledEnd){ + this.enabledEnd = enabledEnd; + } + + /** + * 鑾峰彇 澧炲姞 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @return enabledIncrement + */ + public Integer getEnabledIncrement(){ + return this.enabledIncrement; + } + + /** + * 璁剧疆 澧炲姞 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledIncrement + */ + public void setEnabledIncrement(Integer enabledIncrement){ + this.enabledIncrement = enabledIncrement; + } + + /** + * 鑾峰彇 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @return enabledList + */ + public List<Integer> getEnabledList(){ + return this.enabledList; + } + + /** + * 璁剧疆 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledList + */ + public void setEnabledList(List<Integer> enabledList){ + this.enabledList = enabledList; + } + + /** + * 鑾峰彇 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @return enabledNotList + */ + public List<Integer> getEnabledNotList(){ + return this.enabledNotList; + } + + /** + * 璁剧疆 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledNotList + */ + public void setEnabledNotList(List<Integer> enabledNotList){ + this.enabledNotList = enabledNotList; + } + + + /** + * 鑾峰彇 寮€濮� 鏈€杩戜笂绾挎椂闂� + * @return onlineTimeStart + */ + public String getOnlineTimeStart(){ + return this.onlineTimeStart; + } + + /** + * 璁剧疆 寮€濮� 鏈€杩戜笂绾挎椂闂� + * @param onlineTimeStart + */ + public void setOnlineTimeStart(String onlineTimeStart){ + this.onlineTimeStart = onlineTimeStart; + } + + /** + * 鑾峰彇 缁撴潫 鏈€杩戜笂绾挎椂闂� + * @return onlineTimeEnd + */ + public String getOnlineTimeEnd(){ + return this.onlineTimeEnd; + } + + /** + * 璁剧疆 缁撴潫 鏈€杩戜笂绾挎椂闂� + * @param onlineTimeEnd + */ + public void setOnlineTimeEnd(String onlineTimeEnd){ + this.onlineTimeEnd = onlineTimeEnd; + } + + /** + * 鑾峰彇 寮€濮� 鏈€杩戠绾挎椂闂� + * @return offlineTimeStart + */ + public String getOfflineTimeStart(){ + return this.offlineTimeStart; + } + + /** + * 璁剧疆 寮€濮� 鏈€杩戠绾挎椂闂� + * @param offlineTimeStart + */ + public void setOfflineTimeStart(String offlineTimeStart){ + this.offlineTimeStart = offlineTimeStart; + } + + /** + * 鑾峰彇 缁撴潫 鏈€杩戠绾挎椂闂� + * @return offlineTimeEnd + */ + public String getOfflineTimeEnd(){ + return this.offlineTimeEnd; + } + + /** + * 璁剧疆 缁撴潫 鏈€杩戠绾挎椂闂� + * @param offlineTimeEnd + */ + public void setOfflineTimeEnd(String offlineTimeEnd){ + this.offlineTimeEnd = offlineTimeEnd; + } + + /** + * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� + * @param id + */ public DeviceQuery id(Long id){ - setId(id); - return this; - } - - /** - * 璁剧疆 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� - * @param idStart - */ + setId(id); + return this; + } + + /** + * 璁剧疆 寮€濮� 涓婚敭ID锛屼富閿紝鑷闀� + * @param idStart + */ public DeviceQuery idStart(Long idStart){ - this.idStart = idStart; - return this; + this.idStart = idStart; + return this; } /** - * 璁剧疆 缁撴潫 涓婚敭ID锛屼富閿紝鑷闀� - * @param idEnd - */ + * 璁剧疆 缁撴潫 涓婚敭ID锛屼富閿紝鑷闀� + * @param idEnd + */ public DeviceQuery idEnd(Long idEnd){ - this.idEnd = idEnd; - return this; + this.idEnd = idEnd; + return this; } /** - * 璁剧疆 澧炲姞 涓婚敭ID锛屼富閿紝鑷闀� - * @param idIncrement - */ + * 璁剧疆 澧炲姞 涓婚敭ID锛屼富閿紝鑷闀� + * @param idIncrement + */ public DeviceQuery idIncrement(Long idIncrement){ - this.idIncrement = idIncrement; - return this; + this.idIncrement = idIncrement; + return this; } /** - * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� - * @param idList - */ + * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� + * @param idList + */ public DeviceQuery idList(List<Long> idList){ this.idList = idList; - return this; - } - - /** - * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� - * @param idNotList - */ - public DeviceQuery idNotList(List<Long> idNotList){ + return this; + } + + /** + * 璁剧疆 涓婚敭ID锛屼富閿紝鑷闀� + * @param idNotList + */ + public DeviceQuery idNotList(List<Long> idNotList){ this.idNotList = idNotList; return this; - } + } /** - * 璁剧疆 璁惧id - * @param deviceId - */ + * 璁剧疆 璁惧id + * @param deviceId + */ public DeviceQuery deviceId(Long deviceId){ - setDeviceId(deviceId); - return this; - } - - /** - * 璁剧疆 寮€濮� 璁惧id - * @param deviceIdStart - */ + setDeviceId(deviceId); + return this; + } + + /** + * 璁剧疆 寮€濮� 璁惧id + * @param deviceIdStart + */ public DeviceQuery deviceIdStart(Long deviceIdStart){ - this.deviceIdStart = deviceIdStart; - return this; + this.deviceIdStart = deviceIdStart; + return this; } /** - * 璁剧疆 缁撴潫 璁惧id - * @param deviceIdEnd - */ + * 璁剧疆 缁撴潫 璁惧id + * @param deviceIdEnd + */ public DeviceQuery deviceIdEnd(Long deviceIdEnd){ - this.deviceIdEnd = deviceIdEnd; - return this; + this.deviceIdEnd = deviceIdEnd; + return this; } /** - * 璁剧疆 澧炲姞 璁惧id - * @param deviceIdIncrement - */ + * 璁剧疆 澧炲姞 璁惧id + * @param deviceIdIncrement + */ public DeviceQuery deviceIdIncrement(Long deviceIdIncrement){ - this.deviceIdIncrement = deviceIdIncrement; - return this; + this.deviceIdIncrement = deviceIdIncrement; + return this; } /** - * 璁剧疆 璁惧id - * @param deviceIdList - */ + * 璁剧疆 璁惧id + * @param deviceIdList + */ public DeviceQuery deviceIdList(List<Long> deviceIdList){ this.deviceIdList = deviceIdList; - return this; - } - - /** - * 璁剧疆 璁惧id - * @param deviceIdNotList - */ - public DeviceQuery deviceIdNotList(List<Long> deviceIdNotList){ + return this; + } + + /** + * 璁剧疆 璁惧id + * @param deviceIdNotList + */ + public DeviceQuery deviceIdNotList(List<Long> deviceIdNotList){ this.deviceIdNotList = deviceIdNotList; return this; - } + } - /** - * 璁剧疆 璁惧鍚嶇О - * @param deviceName - */ + /** + * 璁剧疆 璁惧鍚嶇О + * @param deviceName + */ public DeviceQuery deviceName(String deviceName){ setDeviceName(deviceName); - return this; + return this; } /** - * 璁剧疆 璁惧鍚嶇О - * @param deviceNameList - */ + * 璁剧疆 璁惧鍚嶇О + * @param deviceNameList + */ public DeviceQuery deviceNameList(List<String> deviceNameList){ this.deviceNameList = deviceNameList; - return this; + return this; } - /** - * 璁剧疆 璁惧缂栫爜 - * @param deviceCode - */ + /** + * 璁剧疆 璁惧缂栫爜 + * @param deviceCode + */ public DeviceQuery deviceCode(String deviceCode){ setDeviceCode(deviceCode); - return this; + return this; } /** - * 璁剧疆 璁惧缂栫爜 - * @param deviceCodeList - */ + * 璁剧疆 璁惧缂栫爜 + * @param deviceCodeList + */ public DeviceQuery deviceCodeList(List<String> deviceCodeList){ this.deviceCodeList = deviceCodeList; - return this; + return this; } - /** - * 璁剧疆 璁惧鐨凪AC鍦板潃 - * @param deviceMac - */ + /** + * 璁剧疆 璁惧鐨凪AC鍦板潃 + * @param deviceMac + */ public DeviceQuery deviceMac(String deviceMac){ setDeviceMac(deviceMac); - return this; + return this; } /** - * 璁剧疆 璁惧鐨凪AC鍦板潃 - * @param deviceMacList - */ + * 璁剧疆 璁惧鐨凪AC鍦板潃 + * @param deviceMacList + */ public DeviceQuery deviceMacList(List<String> deviceMacList){ this.deviceMacList = deviceMacList; - return this; + return this; } /** - * 璁剧疆 绔欑偣Id - * @param siteId - */ + * 璁剧疆 绔欑偣Id + * @param siteId + */ public DeviceQuery siteId(Long siteId){ - setSiteId(siteId); - return this; - } - - /** - * 璁剧疆 寮€濮� 绔欑偣Id - * @param siteIdStart - */ + setSiteId(siteId); + return this; + } + + /** + * 璁剧疆 寮€濮� 绔欑偣Id + * @param siteIdStart + */ public DeviceQuery siteIdStart(Long siteIdStart){ - this.siteIdStart = siteIdStart; - return this; + this.siteIdStart = siteIdStart; + return this; } /** - * 璁剧疆 缁撴潫 绔欑偣Id - * @param siteIdEnd - */ + * 璁剧疆 缁撴潫 绔欑偣Id + * @param siteIdEnd + */ public DeviceQuery siteIdEnd(Long siteIdEnd){ - this.siteIdEnd = siteIdEnd; - return this; + this.siteIdEnd = siteIdEnd; + return this; } /** - * 璁剧疆 澧炲姞 绔欑偣Id - * @param siteIdIncrement - */ + * 璁剧疆 澧炲姞 绔欑偣Id + * @param siteIdIncrement + */ public DeviceQuery siteIdIncrement(Long siteIdIncrement){ - this.siteIdIncrement = siteIdIncrement; - return this; + this.siteIdIncrement = siteIdIncrement; + return this; } /** - * 璁剧疆 绔欑偣Id - * @param siteIdList - */ + * 璁剧疆 绔欑偣Id + * @param siteIdList + */ public DeviceQuery siteIdList(List<Long> siteIdList){ this.siteIdList = siteIdList; - return this; - } - - /** - * 璁剧疆 绔欑偣Id - * @param siteIdNotList - */ - public DeviceQuery siteIdNotList(List<Long> siteIdNotList){ + return this; + } + + /** + * 璁剧疆 绔欑偣Id + * @param siteIdNotList + */ + public DeviceQuery siteIdNotList(List<Long> siteIdNotList){ this.siteIdNotList = siteIdNotList; return this; - } + } - /** - * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @param siteCode - */ + /** + * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + * @param siteCode + */ public DeviceQuery siteCode(String siteCode){ setSiteCode(siteCode); - return this; + return this; } /** - * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 - * @param siteCodeList - */ + * 璁剧疆 绔欑偣缂栧彿锛屾潵婧愬熀纭€鏈嶅姟骞冲彴 + * @param siteCodeList + */ public DeviceQuery siteCodeList(List<String> siteCodeList){ this.siteCodeList = siteCodeList; - return this; + return this; } - /** - * 璁剧疆 绔欑偣鍚嶇О - * @param siteName - */ + /** + * 璁剧疆 绔欑偣鍚嶇О + * @param siteName + */ public DeviceQuery siteName(String siteName){ setSiteName(siteName); - return this; + return this; } /** - * 璁剧疆 绔欑偣鍚嶇О - * @param siteNameList - */ + * 璁剧疆 绔欑偣鍚嶇О + * @param siteNameList + */ public DeviceQuery siteNameList(List<String> siteNameList){ this.siteNameList = siteNameList; - return this; + return this; } - /** - * 璁剧疆 浜у搧缂栫爜 - * @param productCode - */ + /** + * 璁剧疆 浜у搧缂栫爜 + * @param productCode + */ public DeviceQuery productCode(String productCode){ setProductCode(productCode); - return this; + return this; } /** - * 璁剧疆 浜у搧缂栫爜 - * @param productCodeList - */ + * 璁剧疆 浜у搧缂栫爜 + * @param productCodeList + */ public DeviceQuery productCodeList(List<String> productCodeList){ this.productCodeList = productCodeList; - return this; + return this; } - /** - * 璁剧疆 浜у搧鍚嶇О - * @param productName - */ + /** + * 璁剧疆 浜у搧鍚嶇О + * @param productName + */ public DeviceQuery productName(String productName){ setProductName(productName); - return this; + return this; } /** - * 璁剧疆 浜у搧鍚嶇О - * @param productNameList - */ + * 璁剧疆 浜у搧鍚嶇О + * @param productNameList + */ public DeviceQuery productNameList(List<String> productNameList){ this.productNameList = productNameList; - return this; + return this; } /** - * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrc - */ + * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrc + */ public DeviceQuery deviceSrc(Integer deviceSrc){ - setDeviceSrc(deviceSrc); - return this; - } - - /** - * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcStart - */ + setDeviceSrc(deviceSrc); + return this; + } + + /** + * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcStart + */ public DeviceQuery deviceSrcStart(Integer deviceSrcStart){ - this.deviceSrcStart = deviceSrcStart; - return this; + this.deviceSrcStart = deviceSrcStart; + return this; } /** - * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcEnd - */ + * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcEnd + */ public DeviceQuery deviceSrcEnd(Integer deviceSrcEnd){ - this.deviceSrcEnd = deviceSrcEnd; - return this; + this.deviceSrcEnd = deviceSrcEnd; + return this; } /** - * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcIncrement - */ + * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcIncrement + */ public DeviceQuery deviceSrcIncrement(Integer deviceSrcIncrement){ - this.deviceSrcIncrement = deviceSrcIncrement; - return this; + this.deviceSrcIncrement = deviceSrcIncrement; + return this; } /** - * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcList - */ + * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcList + */ public DeviceQuery deviceSrcList(List<Integer> deviceSrcList){ this.deviceSrcList = deviceSrcList; - return this; - } - - /** - * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) - * @param deviceSrcNotList - */ - public DeviceQuery deviceSrcNotList(List<Integer> deviceSrcNotList){ + return this; + } + + /** + * 璁剧疆 璁惧鏉ユ簮(0.瀛愯澶囷紝1.缃戝叧璁惧锛�2.鐩磋繛璁惧) + * @param deviceSrcNotList + */ + public DeviceQuery deviceSrcNotList(List<Integer> deviceSrcNotList){ this.deviceSrcNotList = deviceSrcNotList; return this; - } + } - /** - * 璁剧疆 缁忓害 - * @param lon - */ + /** + * 璁剧疆 缁忓害 + * @param lon + */ public DeviceQuery lon(String lon){ setLon(lon); - return this; + return this; } /** - * 璁剧疆 缁忓害 - * @param lonList - */ + * 璁剧疆 缁忓害 + * @param lonList + */ public DeviceQuery lonList(List<String> lonList){ this.lonList = lonList; - return this; + return this; } - /** - * 璁剧疆 绾害 - * @param lati - */ + /** + * 璁剧疆 绾害 + * @param lati + */ public DeviceQuery lati(String lati){ setLati(lati); - return this; + return this; } /** - * 璁剧疆 绾害 - * @param latiList - */ + * 璁剧疆 绾害 + * @param latiList + */ public DeviceQuery latiList(List<String> latiList){ this.latiList = latiList; - return this; + return this; } - /** - * 璁剧疆 璐熻矗浜� - * @param leadingOfficial - */ + /** + * 璁剧疆 璐熻矗浜� + * @param leadingOfficial + */ public DeviceQuery leadingOfficial(String leadingOfficial){ setLeadingOfficial(leadingOfficial); - return this; + return this; } /** - * 璁剧疆 璐熻矗浜� - * @param leadingOfficialList - */ + * 璁剧疆 璐熻矗浜� + * @param leadingOfficialList + */ public DeviceQuery leadingOfficialList(List<String> leadingOfficialList){ this.leadingOfficialList = leadingOfficialList; - return this; + return this; } - /** - * 璁剧疆 鑱旂郴鐢佃瘽 - * @param leadingOfficialTelephone - */ + /** + * 璁剧疆 鑱旂郴鐢佃瘽 + * @param leadingOfficialTelephone + */ public DeviceQuery leadingOfficialTelephone(String leadingOfficialTelephone){ setLeadingOfficialTelephone(leadingOfficialTelephone); - return this; + return this; } /** - * 璁剧疆 鑱旂郴鐢佃瘽 - * @param leadingOfficialTelephoneList - */ + * 璁剧疆 鑱旂郴鐢佃瘽 + * @param leadingOfficialTelephoneList + */ public DeviceQuery leadingOfficialTelephoneList(List<String> leadingOfficialTelephoneList){ this.leadingOfficialTelephoneList = leadingOfficialTelephoneList; - return this; + return this; } /** - * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatus - */ + * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatus + */ public DeviceQuery deviceStatus(Integer deviceStatus){ - setDeviceStatus(deviceStatus); - return this; - } - - /** - * 璁剧疆 寮€濮� 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusStart - */ + setDeviceStatus(deviceStatus); + return this; + } + + /** + * 璁剧疆 寮€濮� 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusStart + */ public DeviceQuery deviceStatusStart(Integer deviceStatusStart){ - this.deviceStatusStart = deviceStatusStart; - return this; + this.deviceStatusStart = deviceStatusStart; + return this; } /** - * 璁剧疆 缁撴潫 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusEnd - */ + * 璁剧疆 缁撴潫 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusEnd + */ public DeviceQuery deviceStatusEnd(Integer deviceStatusEnd){ - this.deviceStatusEnd = deviceStatusEnd; - return this; + this.deviceStatusEnd = deviceStatusEnd; + return this; } /** - * 璁剧疆 澧炲姞 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusIncrement - */ + * 璁剧疆 澧炲姞 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusIncrement + */ public DeviceQuery deviceStatusIncrement(Integer deviceStatusIncrement){ - this.deviceStatusIncrement = deviceStatusIncrement; - return this; + this.deviceStatusIncrement = deviceStatusIncrement; + return this; } /** - * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusList - */ + * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusList + */ public DeviceQuery deviceStatusList(List<Integer> deviceStatusList){ this.deviceStatusList = deviceStatusList; - return this; - } - - /** - * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) - * @param deviceStatusNotList - */ - public DeviceQuery deviceStatusNotList(List<Integer> deviceStatusNotList){ + return this; + } + + /** + * 璁剧疆 璁惧鐘舵€� (0.鏈縺娲伙紝1.绂荤嚎,2.鍦ㄧ嚎) + * @param deviceStatusNotList + */ + public DeviceQuery deviceStatusNotList(List<Integer> deviceStatusNotList){ this.deviceStatusNotList = deviceStatusNotList; return this; - } + } - /** - * 璁剧疆 澶囨敞 - * @param deviceRemark - */ + /** + * 璁剧疆 澶囨敞 + * @param deviceRemark + */ public DeviceQuery deviceRemark(String deviceRemark){ setDeviceRemark(deviceRemark); - return this; + return this; } /** - * 璁剧疆 澶囨敞 - * @param deviceRemarkList - */ + * 璁剧疆 澶囨敞 + * @param deviceRemarkList + */ public DeviceQuery deviceRemarkList(List<String> deviceRemarkList){ this.deviceRemarkList = deviceRemarkList; - return this; + return this; } /** - * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param source - */ + * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param source + */ public DeviceQuery source(Integer source){ - setSource(source); - return this; - } - - /** - * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceStart - */ + setSource(source); + return this; + } + + /** + * 璁剧疆 寮€濮� 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceStart + */ public DeviceQuery sourceStart(Integer sourceStart){ - this.sourceStart = sourceStart; - return this; + this.sourceStart = sourceStart; + return this; } /** - * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceEnd - */ + * 璁剧疆 缁撴潫 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceEnd + */ public DeviceQuery sourceEnd(Integer sourceEnd){ - this.sourceEnd = sourceEnd; - return this; + this.sourceEnd = sourceEnd; + return this; } /** - * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceIncrement - */ + * 璁剧疆 澧炲姞 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceIncrement + */ public DeviceQuery sourceIncrement(Integer sourceIncrement){ - this.sourceIncrement = sourceIncrement; - return this; + this.sourceIncrement = sourceIncrement; + return this; } /** - * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceList - */ + * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceList + */ public DeviceQuery sourceList(List<Integer> sourceList){ this.sourceList = sourceList; - return this; - } - - /** - * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) - * @param sourceNotList - */ - public DeviceQuery sourceNotList(List<Integer> sourceNotList){ + return this; + } + + /** + * 璁剧疆 璁惧鏉ユ簮(0.鏃ц澶囷紝1.鏂拌澶�) + * @param sourceNotList + */ + public DeviceQuery sourceNotList(List<Integer> sourceNotList){ this.sourceNotList = sourceNotList; return this; - } + } /** - * 璁剧疆 鍒涘缓鐢ㄦ埛 - * @param createUserId - */ + * 璁剧疆 鍒涘缓鐢ㄦ埛 + * @param createUserId + */ public DeviceQuery createUserId(Long createUserId){ - setCreateUserId(createUserId); - return this; - } - - /** - * 璁剧疆 寮€濮� 鍒涘缓鐢ㄦ埛 - * @param createUserIdStart - */ + setCreateUserId(createUserId); + return this; + } + + /** + * 璁剧疆 寮€濮� 鍒涘缓鐢ㄦ埛 + * @param createUserIdStart + */ public DeviceQuery createUserIdStart(Long createUserIdStart){ - this.createUserIdStart = createUserIdStart; - return this; + this.createUserIdStart = createUserIdStart; + return this; } /** - * 璁剧疆 缁撴潫 鍒涘缓鐢ㄦ埛 - * @param createUserIdEnd - */ + * 璁剧疆 缁撴潫 鍒涘缓鐢ㄦ埛 + * @param createUserIdEnd + */ public DeviceQuery createUserIdEnd(Long createUserIdEnd){ - this.createUserIdEnd = createUserIdEnd; - return this; + this.createUserIdEnd = createUserIdEnd; + return this; } /** - * 璁剧疆 澧炲姞 鍒涘缓鐢ㄦ埛 - * @param createUserIdIncrement - */ + * 璁剧疆 澧炲姞 鍒涘缓鐢ㄦ埛 + * @param createUserIdIncrement + */ public DeviceQuery createUserIdIncrement(Long createUserIdIncrement){ - this.createUserIdIncrement = createUserIdIncrement; - return this; + this.createUserIdIncrement = createUserIdIncrement; + return this; } /** - * 璁剧疆 鍒涘缓鐢ㄦ埛 - * @param createUserIdList - */ + * 璁剧疆 鍒涘缓鐢ㄦ埛 + * @param createUserIdList + */ public DeviceQuery createUserIdList(List<Long> createUserIdList){ this.createUserIdList = createUserIdList; - return this; - } - - /** - * 璁剧疆 鍒涘缓鐢ㄦ埛 - * @param createUserIdNotList - */ - public DeviceQuery createUserIdNotList(List<Long> createUserIdNotList){ + return this; + } + + /** + * 璁剧疆 鍒涘缓鐢ㄦ埛 + * @param createUserIdNotList + */ + public DeviceQuery createUserIdNotList(List<Long> createUserIdNotList){ this.createUserIdNotList = createUserIdNotList; return this; - } + } /** - * 璁剧疆 鏇存柊鐢ㄦ埛 - * @param updateUserId - */ + * 璁剧疆 鏇存柊鐢ㄦ埛 + * @param updateUserId + */ public DeviceQuery updateUserId(Long updateUserId){ - setUpdateUserId(updateUserId); - return this; - } - - /** - * 璁剧疆 寮€濮� 鏇存柊鐢ㄦ埛 - * @param updateUserIdStart - */ + setUpdateUserId(updateUserId); + return this; + } + + /** + * 璁剧疆 寮€濮� 鏇存柊鐢ㄦ埛 + * @param updateUserIdStart + */ public DeviceQuery updateUserIdStart(Long updateUserIdStart){ - this.updateUserIdStart = updateUserIdStart; - return this; + this.updateUserIdStart = updateUserIdStart; + return this; } /** - * 璁剧疆 缁撴潫 鏇存柊鐢ㄦ埛 - * @param updateUserIdEnd - */ + * 璁剧疆 缁撴潫 鏇存柊鐢ㄦ埛 + * @param updateUserIdEnd + */ public DeviceQuery updateUserIdEnd(Long updateUserIdEnd){ - this.updateUserIdEnd = updateUserIdEnd; - return this; + this.updateUserIdEnd = updateUserIdEnd; + return this; } /** - * 璁剧疆 澧炲姞 鏇存柊鐢ㄦ埛 - * @param updateUserIdIncrement - */ + * 璁剧疆 澧炲姞 鏇存柊鐢ㄦ埛 + * @param updateUserIdIncrement + */ public DeviceQuery updateUserIdIncrement(Long updateUserIdIncrement){ - this.updateUserIdIncrement = updateUserIdIncrement; - return this; + this.updateUserIdIncrement = updateUserIdIncrement; + return this; } /** - * 璁剧疆 鏇存柊鐢ㄦ埛 - * @param updateUserIdList - */ + * 璁剧疆 鏇存柊鐢ㄦ埛 + * @param updateUserIdList + */ public DeviceQuery updateUserIdList(List<Long> updateUserIdList){ this.updateUserIdList = updateUserIdList; - return this; - } - - /** - * 璁剧疆 鏇存柊鐢ㄦ埛 - * @param updateUserIdNotList - */ - public DeviceQuery updateUserIdNotList(List<Long> updateUserIdNotList){ + return this; + } + + /** + * 璁剧疆 鏇存柊鐢ㄦ埛 + * @param updateUserIdNotList + */ + public DeviceQuery updateUserIdNotList(List<Long> updateUserIdNotList){ this.updateUserIdNotList = updateUserIdNotList; return this; - } + } + + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmId + */ + public DeviceQuery deviceFirmId(Long deviceFirmId){ + setDeviceFirmId(deviceFirmId); + return this; + } + + /** + * 璁剧疆 寮€濮� 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdStart + */ + public DeviceQuery deviceFirmIdStart(Long deviceFirmIdStart){ + this.deviceFirmIdStart = deviceFirmIdStart; + return this; + } + + /** + * 璁剧疆 缁撴潫 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdEnd + */ + public DeviceQuery deviceFirmIdEnd(Long deviceFirmIdEnd){ + this.deviceFirmIdEnd = deviceFirmIdEnd; + return this; + } + + /** + * 璁剧疆 澧炲姞 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdIncrement + */ + public DeviceQuery deviceFirmIdIncrement(Long deviceFirmIdIncrement){ + this.deviceFirmIdIncrement = deviceFirmIdIncrement; + return this; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdList + */ + public DeviceQuery deviceFirmIdList(List<Long> deviceFirmIdList){ + this.deviceFirmIdList = deviceFirmIdList; + return this; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢ID + * @param deviceFirmIdNotList + */ + public DeviceQuery deviceFirmIdNotList(List<Long> deviceFirmIdNotList){ + this.deviceFirmIdNotList = deviceFirmIdNotList; + return this; + } + + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢鍚嶇О + * @param deviceFirmname + */ + public DeviceQuery deviceFirmname(String deviceFirmname){ + setDeviceFirmname(deviceFirmname); + return this; + } + + /** + * 璁剧疆 璁惧鐢熶骇鍘傚晢鍚嶇О + * @param deviceFirmnameList + */ + public DeviceQuery deviceFirmnameList(List<String> deviceFirmnameList){ + this.deviceFirmnameList = deviceFirmnameList; + return this; + } + + + /** + * 璁剧疆 璁惧璁块棶ip + * @param ip + */ + public DeviceQuery ip(String ip){ + setIp(ip); + return this; + } + + /** + * 璁剧疆 璁惧璁块棶ip + * @param ipList + */ + public DeviceQuery ipList(List<String> ipList){ + this.ipList = ipList; + return this; + } + + + /** + * 璁剧疆 绔彛 + * @param port + */ + public DeviceQuery port(String port){ + setPort(port); + return this; + } + + /** + * 璁剧疆 绔彛 + * @param portList + */ + public DeviceQuery portList(List<String> portList){ + this.portList = portList; + return this; + } + + /** + * 璁剧疆 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabled + */ + public DeviceQuery enabled(Integer enabled){ + setEnabled(enabled); + return this; + } + + /** + * 璁剧疆 寮€濮� 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledStart + */ + public DeviceQuery enabledStart(Integer enabledStart){ + this.enabledStart = enabledStart; + return this; + } + + /** + * 璁剧疆 缁撴潫 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledEnd + */ + public DeviceQuery enabledEnd(Integer enabledEnd){ + this.enabledEnd = enabledEnd; + return this; + } + + /** + * 璁剧疆 澧炲姞 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledIncrement + */ + public DeviceQuery enabledIncrement(Integer enabledIncrement){ + this.enabledIncrement = enabledIncrement; + return this; + } + + /** + * 璁剧疆 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledList + */ + public DeviceQuery enabledList(List<Integer> enabledList){ + this.enabledList = enabledList; + return this; + } + + /** + * 璁剧疆 鍚敤鐘舵€� (0.鍋滄锛�1.鍚敤) + * @param enabledNotList + */ + public DeviceQuery enabledNotList(List<Integer> enabledNotList){ + this.enabledNotList = enabledNotList; + return this; + } + /** - * 鑾峰彇 OR鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疧R锛岄」鍐呭涔嬮棿鏄疉ND锛屽锛�(list[0].1 and list[0].2) or (list[1].3 and list[1].4) - * @return orConditionList - */ + * 鑾峰彇 OR鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疧R锛岄」鍐呭涔嬮棿鏄疉ND锛屽锛�(list[0].1 and list[0].2) or (list[1].3 and list[1].4) + * @return orConditionList + */ public List<DeviceQuery> getOrConditionList(){ - return this.orConditionList; + return this.orConditionList; } /** - * 璁剧疆 OR鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疧R锛岄」鍐呭涔嬮棿鏄疉ND锛屽锛�(list[0].1 and list[0].2) or (list[1].3 and list[1].4) - * @param orConditionList - */ + * 璁剧疆 OR鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疧R锛岄」鍐呭涔嬮棿鏄疉ND锛屽锛�(list[0].1 and list[0].2) or (list[1].3 and list[1].4) + * @param orConditionList + */ public void setOrConditionList(List<DeviceQuery> orConditionList){ this.orConditionList = orConditionList; } /** - * 鑾峰彇 AND鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疉ND锛岄」鍐呭涔嬮棿鏄疧R锛屽锛�(list[0].1 or list[0].2) and (list[1].3 or list[1].4) - * @return andConditionList - */ + * 鑾峰彇 AND鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疉ND锛岄」鍐呭涔嬮棿鏄疧R锛屽锛�(list[0].1 or list[0].2) and (list[1].3 or list[1].4) + * @return andConditionList + */ public List<DeviceQuery> getAndConditionList(){ return this.andConditionList; } /** - * 璁剧疆 AND鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疉ND锛岄」鍐呭涔嬮棿鏄疧R锛屽锛�(list[0].1 or list[0].2) and (list[1].3 or list[1].4) - * @param andConditionList - */ + * 璁剧疆 AND鏉′欢闆嗗悎锛屽垪琛ㄩ」涔嬮棿鏄疉ND锛岄」鍐呭涔嬮棿鏄疧R锛屽锛�(list[0].1 or list[0].2) and (list[1].3 or list[1].4) + * @param andConditionList + */ public void setAndConditionList(List<DeviceQuery> andConditionList){ this.andConditionList = andConditionList; } diff --git a/fill-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceService.java b/fill-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceService.java index 4161c42402d481df14c24be1675341138c51812f..4c663b971de9d4794658c9c1e4ebfbb4fb2faad5 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceService.java +++ b/fill-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceService.java @@ -1,5 +1,7 @@ package com.mortals.xhx.module.device.service; +import com.mortals.framework.model.Context; import com.mortals.framework.service.ICRUDService; +import com.mortals.xhx.module.device.dao.DeviceDao; import com.mortals.xhx.module.device.model.DeviceEntity; /** * DeviceService @@ -10,5 +12,20 @@ import com.mortals.xhx.module.device.model.DeviceEntity; * @date 2023-02-25 */ public interface DeviceService extends ICRUDService<DeviceEntity,Long>{ + DeviceDao getDao(); + + /** + * 璁惧婵€娲� + * @param deviceCode + * @param context + */ + void active(String deviceCode, Context context); + + /** + * 璁惧鍚敤鍋滅敤 + * @param id + * @param context + */ + void deviceEnabled(Long id, Integer status, Context context); } \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java b/fill-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java index 0a7905a0063b5584902f0cc399d6bf8b2a5a6124..2d2092621b6fa5558a55d963c33be044a622c3a8 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java +++ b/fill-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java @@ -1,10 +1,28 @@ package com.mortals.xhx.module.device.service.impl; +import com.alibaba.fastjson.JSON; +import com.mortals.framework.common.Rest; +import com.mortals.framework.exception.AppException; +import com.mortals.framework.model.Context; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; +import com.mortals.xhx.common.code.DeviceMethodEnum; +import com.mortals.xhx.common.code.DeviceStatusEnum; +import com.mortals.xhx.common.code.EnabledEnum; +import com.mortals.xhx.common.pdu.LoginForm; +import com.mortals.xhx.common.pdu.device.DeviceReq; +import com.mortals.xhx.feign.device.IDeviceFeign; import com.mortals.xhx.module.device.dao.DeviceDao; import com.mortals.xhx.module.device.model.DeviceEntity; +import com.mortals.xhx.module.device.model.DeviceQuery; import com.mortals.xhx.module.device.service.DeviceService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import org.springframework.util.ObjectUtils; + +import java.util.Date; + /** * DeviceService * 璁惧 service瀹炵幇 @@ -13,6 +31,57 @@ import org.springframework.stereotype.Service; * @date 2023-02-25 */ @Service("deviceService") +@Slf4j public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, DeviceEntity, Long> implements DeviceService { + @Autowired + private IDeviceFeign deviceFeign; + @Value("${token.loginName:'admin'}") + private String loginName; + @Value("${token.password:'admin'}") + private String password; + + + @Override + public void active(String deviceCode, Context context) { + DeviceEntity deviceEntity = this.selectOne(new DeviceQuery().deviceCode(deviceCode)); + if (ObjectUtils.isEmpty(deviceEntity)) throw new AppException("褰撳墠璁惧涓嶅瓨鍦紒"); + if (deviceEntity.getDeviceStatus() > DeviceStatusEnum.鏈縺娲�.getValue()) + throw new AppException("褰撳墠璁惧宸叉縺娲伙紒"); + deviceEntity.setDeviceStatus(DeviceStatusEnum.绂荤嚎.getValue()); + deviceEntity.setEnabled(EnabledEnum.鍚敤.getValue()); + this.getDao().update(deviceEntity); + + String token = getToken(); + DeviceReq deviceReq = new DeviceReq(); + deviceReq.setReceiveMethod(DeviceMethodEnum.ACTIVE.getValue()); + deviceReq.setDeviceCode(deviceCode); + Rest<String> rest = deviceFeign.deviceCall(deviceReq, token); + log.info("婵€娲荤粨鏋滐細{}", JSON.toJSONString(rest)); + } + + @Override + public void deviceEnabled(Long id, Integer enabled, Context context) { + DeviceEntity deviceEntity = this.get(id, context); + if (ObjectUtils.isEmpty(deviceEntity)) throw new AppException("褰撳墠璁惧涓嶅瓨鍦紒"); + deviceEntity.setEnabled(enabled); + deviceEntity.setUpdateTime(new Date()); + deviceEntity.setUpdateUserId(getContextUserId(context)); + this.getDao().update(deviceEntity); + String token = getToken(); + DeviceReq deviceReq = new DeviceReq(); + deviceReq.setReceiveMethod(DeviceMethodEnum.ENABLED.getValue()); + deviceReq.setDeviceCode(deviceEntity.getDeviceCode()); + Rest<String> rest = deviceFeign.deviceCall(deviceReq, token); + log.info("鍚敤缁撴灉锛歿}", JSON.toJSONString(rest)); + } + + private String getToken() { + LoginForm loginForm = new LoginForm(); + loginForm.setLoginName(loginName); + loginForm.setPassword(password); + Rest<String> rest = deviceFeign.getToken(loginForm); + String token = rest.getData(); + return token; + } } \ No newline at end of file diff --git a/fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java b/fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java index 0e78d084d858661c76625de7f8e36e964bfb29d3..b2f4a8037f395979d2b5c624e931b0c44787a3cf 100644 --- a/fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java +++ b/fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java @@ -1,41 +1,188 @@ package com.mortals.xhx.module.device.web; -import com.mortals.framework.model.Context; +import com.alibaba.fastjson.JSON; +import com.mortals.framework.common.Rest; +import com.mortals.framework.exception.AppException; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.xhx.base.system.param.service.ParamService; -import com.mortals.xhx.module.device.model.DeviceEntity; -import com.mortals.xhx.module.device.service.DeviceService; +import com.mortals.xhx.common.code.DeviceMethodEnum; +import com.mortals.xhx.common.code.EnabledEnum; +import com.mortals.xhx.common.pdu.LoginForm; +import com.mortals.xhx.common.pdu.device.DeviceReq; +import com.mortals.xhx.feign.device.IDeviceFeign; +import com.mortals.xhx.module.device.model.DeviceQuery; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; +import com.mortals.framework.model.Context; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; +import com.mortals.xhx.module.device.model.DeviceEntity; +import com.mortals.xhx.module.device.service.DeviceService; +import org.apache.commons.lang3.ArrayUtils; +import com.mortals.framework.util.StringUtils; +import java.util.HashMap; +import java.util.List; import java.util.Map; +import java.util.stream.Collectors; + +import com.alibaba.fastjson.JSONObject; + +import java.util.Arrays; + +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import static com.mortals.framework.ap.SysConstains.*; /** -* -* 璁惧 -* -* @author zxfei -* @date 2023-02-25 -*/ + * 璁惧 + * + * @author zxfei + * @date 2023-02-25 + */ @RestController @RequestMapping("device") -public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceService,DeviceEntity,Long> { +@Slf4j +public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceService, DeviceEntity, Long> { @Autowired private ParamService paramService; - public DeviceController(){ - super.setModuleDesc( "璁惧"); + @Autowired + private IDeviceFeign deviceFeign; + @Value("${token.loginName:'admin'}") + private String loginName; + @Value("${token.password:'admin'}") + private String password; + + public DeviceController() { + super.setModuleDesc("璁惧"); } @Override protected void init(Map<String, Object> model, Context context) { - this.addDict(model, "deviceSrc", paramService.getParamBySecondOrganize("Device","deviceSrc")); - this.addDict(model, "deviceStatus", paramService.getParamBySecondOrganize("Device","deviceStatus")); - this.addDict(model, "source", paramService.getParamBySecondOrganize("Device","source")); + this.addDict(model, "deviceSrc", paramService.getParamBySecondOrganize("Device", "deviceSrc")); + this.addDict(model, "deviceStatus", paramService.getParamBySecondOrganize("Device", "deviceStatus")); + this.addDict(model, "source", paramService.getParamBySecondOrganize("Device", "source")); + this.addDict(model, "enabled", EnabledEnum.getEnumMap()); super.init(model, context); } + /** + * 璁惧婵€娲� + */ + @PostMapping(value = "active") + public Rest<Void> deviceActive(@RequestBody DeviceEntity deviceEntity) { + log.info("璁惧婵€娲伙細{}", deviceEntity.getDeviceCode()); + String busiDesc = this.getModuleDesc() + "璁惧婵€娲�"; + Rest<Void> rest = Rest.ok(busiDesc + " 銆愭垚鍔熴€�"); + try { + this.service.active(deviceEntity.getDeviceCode(), getContext()); + recordSysLog(request, busiDesc + " 銆愭垚鍔熴€�"); + } catch (Exception e) { + log.error("璁惧婵€娲绘秷鎭�", e); + rest = Rest.fail(super.convertException(e)); + } + return rest; + } + + /** + * 璁惧鍚敤鍋滅敤 + */ + @PostMapping(value = "enable") + public String deviceEnable(@RequestBody DeviceEntity deviceEntity) { + JSONObject jsonObject = new JSONObject(); + Map<String, Object> model = new HashMap<>(); + String busiDesc = this.getModuleDesc() + "璁惧"; + try { + this.service.deviceEnabled(deviceEntity.getId(), deviceEntity.getEnabled(), getContext()); + recordSysLog(request, busiDesc + EnabledEnum.getByValue(deviceEntity.getEnabled()).getDesc() + " 銆愭垚鍔熴€�"); + jsonObject.put(KEY_RESULT_DATA, model); + jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS); + } catch (Exception e) { + log.error("璁惧鍚敤鍋滅敤娑堟伅", e); + jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE); + jsonObject.put(KEY_RESULT_MSG, super.convertException(e)); + } + return jsonObject.toJSONString(); + } + + @Override + protected int saveAfter(DeviceEntity entity, Map<String, Object> model, Context context) throws AppException { + if (ObjectUtils.isEmpty(entity.getUpdateTime())) { + String token = getToken(); + DeviceReq deviceReq = new DeviceReq(); + deviceReq.setReceiveMethod(DeviceMethodEnum.ADD.getValue()); + deviceReq.setDeviceName(entity.getDeviceName()); + deviceReq.setDeviceCode(entity.getDeviceCode()); + deviceReq.setProductCode(entity.getProductCode()); + deviceReq.setIp(entity.getIp()); + deviceReq.setPort(entity.getPort()); + deviceReq.setSiteId(1L); + deviceReq.setSiteCode("511500000000-0001"); + deviceReq.setSiteName("瀹滃甯傛皯涓績"); + deviceReq.setLeadingOfficial(entity.getLeadingOfficial()); + deviceReq.setLeadingOfficialTelephone(entity.getLeadingOfficialTelephone()); + deviceReq.setSource(1); + deviceReq.setDeviceStatus(entity.getDeviceStatus()); + Rest<String> rest = deviceFeign.deviceCall(deviceReq, token); + log.info("娣诲姞缁撴灉锛歿}", JSON.toJSONString(rest)); + } else { + String token = getToken(); + DeviceReq deviceReq = new DeviceReq(); + deviceReq.setReceiveMethod(DeviceMethodEnum.UPDATE.getValue()); + deviceReq.setDeviceName(entity.getDeviceName()); + deviceReq.setDeviceCode(entity.getDeviceCode()); + deviceReq.setProductCode(entity.getProductCode()); + deviceReq.setIp(entity.getIp()); + deviceReq.setPort(entity.getPort()); + deviceReq.setSiteId(1L); + deviceReq.setSiteCode("511500000000-0001"); + deviceReq.setSiteName("瀹滃甯傛皯涓績"); + deviceReq.setLeadingOfficial(entity.getLeadingOfficial()); + deviceReq.setLeadingOfficialTelephone(entity.getLeadingOfficialTelephone()); + deviceReq.setSource(1); + deviceReq.setDeviceStatus(entity.getDeviceStatus()); + Rest<String> rest = deviceFeign.deviceCall(deviceReq, token); + log.info("鏇存柊缁撴灉锛歿}", JSON.toJSONString(rest)); + } + + return super.saveAfter(entity, model, context); + } + + @Override + protected void deleteBefore(Long[] ids, Context context) throws AppException { + super.deleteBefore(ids, context); + String token = getToken(); + DeviceQuery deviceQuery = new DeviceQuery(); + deviceQuery.setIdList(Arrays.asList(ids)); + List<DeviceEntity> deviceEntities = this.service.find(deviceQuery, context); + for (DeviceEntity entity : deviceEntities) { + DeviceReq deviceReq = new DeviceReq(); + deviceReq.setReceiveMethod(DeviceMethodEnum.DEL.getValue()); + deviceReq.setDeviceCode(entity.getDeviceCode()); + Rest<String> rest = deviceFeign.deviceCall(deviceReq, token); + log.info("鍒犻櫎缁撴灉锛歿}", JSON.toJSONString(rest)); + } + } + + private String getToken() { + LoginForm loginForm = new LoginForm(); + loginForm.setLoginName(loginName); + loginForm.setPassword(password); + Rest<String> rest = deviceFeign.getToken(loginForm); + String token = rest.getData(); + return token; + } + } \ No newline at end of file