From 59e18cfbe1c440f3d0f7ffaa675c127bf82f2414 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期三, 01 三月 2023 17:38:02 +0800 Subject: [PATCH] 油烟接口 --- ycl-smoke/src/main/java/com/ycl/smoke/entity/OdsLocale.java | 97 ++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 77 insertions(+), 20 deletions(-) diff --git a/ycl-smoke/src/main/java/com/ycl/smoke/entity/OdsLocale.java b/ycl-smoke/src/main/java/com/ycl/smoke/entity/OdsLocale.java index f7ea472..e885681 100644 --- a/ycl-smoke/src/main/java/com/ycl/smoke/entity/OdsLocale.java +++ b/ycl-smoke/src/main/java/com/ycl/smoke/entity/OdsLocale.java @@ -2,11 +2,12 @@ import java.math.BigDecimal; import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.Version; import com.baomidou.mybatisplus.annotation.TableId; import java.time.LocalDateTime; import com.baomidou.mybatisplus.annotation.TableField; import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; @@ -29,346 +30,402 @@ * Id */ @TableId("id") + @JsonProperty("Id") private String id; /** * 鐑熼亾鍚嶇О */ @TableField("n_name") + @JsonProperty("Name") private String nName; /** * 鍗曚綅[绾ц仈] */ @TableField("owner") + @JsonProperty("Owner") private String owner; /** * 鑿滅郴 */ @TableField("cuisine") + @JsonProperty("Cuisine") private Integer cuisine; /** * 缁勭粐ID */ @TableField("customer_id") + @JsonProperty("CustomerId") private String customerId; - - /** - * 鎵�灞炲崟浣嶄俊鎭� - */ - @TableField("customer") - private String customer; /** * 椋庨�� */ @TableField("fan_speed") + @JsonProperty("FanSpeed") private BigDecimal fanSpeed; /** * 椋庨噺 */ @TableField("fan_quantity") + @JsonProperty("FanQuantity") private BigDecimal fanQuantity; /** * 绠¢亾鎴潰闈㈢Н */ @TableField("pipe_area") + @JsonProperty("PipeArea") private BigDecimal pipeArea; /** * 鐏跺ご鏁伴噺 */ @TableField("stove_num") + @JsonProperty("StoveNum") private Integer stoveNum; /** * 绂荤嚎鍒ゅ畾[灏忔椂] */ @TableField("offline_judge") + @JsonProperty("OfflineJudge") private Integer offlineJudge; /** * 椋庢満鐘舵�� */ @TableField("fan_status") + @JsonProperty("FanStatus") private Integer fanStatus; /** * 鍑�鍖栧櫒淇℃伅 */ @TableField("filter_info") + @JsonProperty("FilterInfo") private String filterInfo; /** * 鍑�鍖栧櫒鐘舵�� */ @TableField("filter_status") + @JsonProperty("FilterStatus") private Integer filterStatus; /** * 鎶芥牱娆℃暟 */ @TableField("samplings") + @JsonProperty("Samplings") private Integer samplings; /** * 鏄惁鑱斿姩 */ @TableField("link_status") + @JsonProperty("LinkStatus") private Boolean linkStatus; /** * 瓒呮爣闃堝�� */ @TableField("emissions_sill") + @JsonProperty("EmissionsSill") private BigDecimal emissionsSill; /** * 闆嗘皵鐏堕潰绉痆璋冪爺] */ @TableField("stove_area") + @JsonProperty("StoveArea") private BigDecimal stoveArea; /** * 鏃ュ潎鎺掔儫鏃堕棿[璋冪爺] */ @TableField("exhaust_time") + @JsonProperty("ExhaustTime") private String exhaustTime; /** * 澶囨敞[璋冪爺] */ @TableField("remark") + @JsonProperty("Remark") private String remark; /** * 鍦板潃 */ @TableField("addr") + @JsonProperty("Addr") private String addr; /** * 鍦板尯[绾ц仈] */ @TableField("area_id") + @JsonProperty("AreaId") private String areaId; /** * 缁忓害 */ @TableField("lng") + @JsonProperty("Lng") private String lng; /** * 绾害 */ @TableField("lat") + @JsonProperty("Lat") private String lat; /** * 鍒涘缓鑰� */ @TableField("creator") + @JsonProperty("Creator") private String creator; /** * 鍒涘缓鏃ユ湡 */ @TableField("create_at") + @JsonProperty("CreateAt") private Long createAt; /** * 鐘舵�乕1:涓�鑸洃娴嬬偣,2:鐗规畩鐩戞祴鐐�,99:搴熷純鐩戞祴鐐筣 */ @TableField("status") + @JsonProperty("Status") private Integer status; /** * 棰楃矑鐗╁惈閲忚秴鏍囬槇鍊� */ @TableField("granule_sill") + @JsonProperty("GranuleSill") private BigDecimal granuleSill; /** * 闈炵敳鐑锋�荤儍瓒呮爣闃堝�� */ @TableField("hydrocarbon_sill") + @JsonProperty("HydrocarbonSill") private BigDecimal hydrocarbonSill; /** * 鍋ュ悍鐮侀鑹� */ @TableField("health_code_color") + @JsonProperty("HealthCodeColor") private String healthCodeColor; /** * 鏈�鍚庣粦瀹氳澶噈n */ @TableField("mn_last") + @JsonProperty("MnLast") private String mnLast; /** * 鐩戞祴鐐瑰浘鐗� */ @TableField("locale_pics") + @JsonProperty("LocalePics") private String localePics; /** * 璁惧绫诲瀷 鏈�鍚庝竴娆$粦瀹� */ @TableField("mn_typ_last") + @JsonProperty("MnTypLast") private Integer mnTypLast; /** * 椋庢満淇℃伅 */ @TableField("fan_info") + @JsonProperty("FanInfo") private String fanInfo; /** * 鍙栫數鏂瑰紡 */ @TableField("power_supply_mode") + @JsonProperty("PowerSupplyMode") private String powerSupplyMode; /** * 鍑�鍖栧櫒椋庢満鑱斿姩姣旈槇鍊� */ @TableField("link_ratio_sill") + @JsonProperty("LinkRatioSill") private BigDecimal linkRatioSill; /** * 杩愮淮浜哄憳ID */ @TableField("maintainer_id") + @JsonProperty("MaintainerId") private String maintainerId; /** * 缁跨爜锛氭渶杩慩澶╁唴锛岃搴楀瓒呮爣娆℃暟灏忕瓑浜嶸alue1锛堥粯璁�3锛夋鐨勶紝涓斿噣鍖栧櫒涓嶆甯镐娇鐢ㄥぉ鏁板皬绛変簬Value2锛堥粯璁�3锛夊ぉ鐨勶紝涓旂绾垮ぉ鏁皗闈炴瓏涓氥�侀潪鐩戞祴浠晠闅溿�愭暟鎹潵婧愯繍缁翠汉鍛樺~鍐欑殑鈥濆紓甯稿鐞嗏�溿�憓灏忕瓑浜嶸alue3锛堥粯璁�3锛夈�� */ @TableField("health_code_x") + @JsonProperty("HealthCodeX") private Integer healthCodeX; @TableField("health_code_value1") + @JsonProperty("HealthCodeValue1") private Integer healthCodeValue1; @TableField("health_code_value2") + @JsonProperty("HealthCodeValue2") private Integer healthCodeValue2; @TableField("health_code_value3") + @JsonProperty("HealthCodeValue3") private Integer healthCodeValue3; /** * 绾㈢爜锛氭渶杩慩澶╁唴锛岃搴楀瓒呮爣娆℃暟澶т簬Value4锛堥粯璁�5锛夋鐨勶紝鎴栬�呭噣鍖栧櫒涓嶆甯镐娇鐢ㄥぉ鏁板ぇ浜嶸alue5锛堥粯璁�5锛夊ぉ鐨勶紝涓旂绾垮ぉ鏁板皬浜嶸alue6锛堥粯璁�5锛夈�� */ @TableField("health_code_value4") + @JsonProperty("HealthCodeValue4") private Integer healthCodeValue4; @TableField("health_code_value5") + @JsonProperty("HealthCodeValue5") private Integer healthCodeValue5; - @TableField("health_code_valuee6") - private Integer healthCodeValuee6; + @TableField("health_code_value6") + @JsonProperty("HealthCodeValue6") + private Integer healthCodeValue6; /** * 0~24鐐归棿娌圭儫娴撳害锛堥绮掔墿銆侀潪鐢茬兎鎬荤儍锛変笁涓�间腑鐨勪竴椤瑰�间竴鐩村皬浜嶸alue7(榛樿0.05锛塵g/M3鐨勶紝瑙嗕负鏁版嵁寮傚父鍋忓皬锛� */ @TableField("abnormal_value7") + @JsonProperty("AbnormalValue7") private BigDecimal abnormalValue7; /** * 0~24鐐归棿娌圭儫娴撳害锛堥绮掔墿銆侀潪鐢茬兎鎬荤儍锛変笁涓�间腑鐨勪竴椤瑰�间竴鐩村ぇ浜嶸alue8(榛樿30锛塵g/M3鐨勶紝瑙嗕负鏁版嵁寮傚父鍋忓ぇ锛� */ - @TableField("abnormal_value78") - private BigDecimal abnormalValue78; + @TableField("abnormal_value8") + @JsonProperty("AbnormalValue8") + private BigDecimal abnormalValue8; /** * 0~24鐐归棿娌圭儫娴撳害锛堥绮掔墿銆侀潪鐢茬兎鎬荤儍锛変笁涓�间腑鐨勪竴椤瑰�间竴鐩撮潪Value9(榛樿0锛塵g/M3鐨勶紝瑙嗕负鏁版嵁婕傜Щ寮傚父 */ - @TableField("abnormal_value79") - private BigDecimal abnormalValue79; + @TableField("abnormal_value9") + @JsonProperty("AbnormalValue9") + private BigDecimal abnormalValue9; /** * 0~24鐐归棿涓婄嚎鏃堕棿灏忎簬Value10(榛樿60锛夊垎閽熺殑锛岃涓轰笂绾挎椂闂磋繃鐭紓甯革紱 */ - @TableField("abnormal_value710") - private BigDecimal abnormalValue710; + @TableField("abnormal_value10") + @JsonProperty("AbnormalValue10") + private BigDecimal abnormalValue10; /** * Ali璁惧鍚嶇О */ - @TableField("aliIot_device_name") - private String aliiotDeviceName; + @TableField("ali_iot_device_name") + @JsonProperty("AliIotDeviceName") + private String aliIotDeviceName; /** * Ali璁惧 */ - @TableField("aliIot") + @TableField("ali_iot") + @JsonProperty("AliIot") private String aliIot; /** * 鍒涘缓鏃堕棿 */ @TableField("created_at") + @JsonProperty("CreatedAt") private LocalDateTime createdAt; /** * 鏇存柊鏃堕棿 */ @TableField("updated_at") + @JsonProperty("UpdatedAt") private LocalDateTime updatedAt; @TableField("health_code_value11") + @JsonProperty("HealthCodeValue11") private Integer healthCodeValue11; @TableField("health_code_value12") + @JsonProperty("HealthCodeValue12") private Integer healthCodeValue12; /** * 鐩戞祴鏂瑰紡銆�1:鍚堝苟浼犺緭 2:鐙珛浼犺緭銆� */ @TableField("send_mode") + @JsonProperty("SendMode") private Integer sendMode; /** * 瓒呮爣璁$畻鏂瑰紡銆�1锛氭娊鏍疯绠� 2锛氭粦鍔ㄨ绠椼�� */ @TableField("surpass_calc_method") + @JsonProperty("SurpassCalcMethod") private Integer surpassCalcMethod; /** * 椋庢満姝e父鐢垫祦鍊� */ - @TableField("fan_standardurrent") - private Integer fanStandardurrent; + @TableField("fan_standard_current") + @JsonProperty("FanStandardCurrent") + private Integer fanStandardCurrent; /** * 鍑�鍖栧櫒姝e父鐢垫祦鍊� */ @TableField("filter_standard_current") + @JsonProperty("FilterStandardCurrent") private Integer filterStandardCurrent; /** * 璁惧鐘舵�乕姝e父NORMAL銆佷笅绾縊FFLINE銆佸簾寮傾BANDON] */ @TableField("status_of_record") + @JsonProperty("StatusOfRecord") private String statusOfRecord; /** * 瀹℃牳澶囨敞 */ @TableField("remark_of_record") + @JsonProperty("RemarkOfRecord") private String remarkOfRecord; /** * 瀹℃牳鍘熷洜 */ @TableField("cause") + @JsonProperty("Cause") private String cause; + @JsonProperty("Customer") + private OdsLocaleCustomer customer; } -- Gitblit v1.8.0