修复水电双击设备操作记录列表接口返回时间格式错误等。
This commit is contained in:
parent
250530570a
commit
4ffee61949
@ -82,7 +82,6 @@ public class DeviceOtherMsgConsumer {
|
||||
String data1 = jsonObject.getStr("data");
|
||||
//收到定时报文
|
||||
if(JSONUtil.parseObj(data1).get("action").equals("timeMsg")){
|
||||
|
||||
pumpUsageRecords.setMessageContent(JSONUtil.toJsonStr(jsonObject));
|
||||
int i = ngWaterPumpUsageRecordsMapper.insertNgWaterPumpUsageRecords(pumpUsageRecords);
|
||||
if(i<1){
|
||||
@ -92,6 +91,7 @@ public class DeviceOtherMsgConsumer {
|
||||
//续费在线状态
|
||||
updateDeviceOnlineStatus( productId,serialNumber);
|
||||
//保存数据
|
||||
pumpUsageRecords.setMessageContent(JSONUtil.toJsonStr(jsonObject));
|
||||
int i = ngWaterPumpUsageRecordsMapper.insertNgWaterPumpUsageRecords(pumpUsageRecords);
|
||||
if(i<1){
|
||||
System.err.println("--------------------------保存使用记录失败!---------------------------");
|
||||
|
@ -26,7 +26,7 @@ private static final long serialVersionUID = 1L;
|
||||
private Long id;
|
||||
|
||||
/** 开泵时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "开泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("开泵时间")
|
||||
private Date pumpStartTime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user