Просмотр исходного кода

Merge remote-tracking branch 'origin/develop' into develop

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
e3adcac607
3 измененных файлов: 19 добавлений и 2 удалений
  1. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxDevice.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java
  3. +6
    -1
      mallinkService/src/main/resources/mapper/WxDeviceMapper.xml

+ 12
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxDevice.java Просмотреть файл

@@ -92,6 +92,10 @@ public class WxDevice implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="最后一次在线时间",name="hbCmd")
private Integer hbCmd;

/**设备名**/
@io.swagger.annotations.ApiModelProperty(value="设备配置",name="config")
private String config;

public String getTenantId() {
return tenantId;
}
@@ -195,6 +199,14 @@ public class WxDevice implements Serializable {
this.hbCmd = hbCmd;
}

public String getConfig() {
return config;
}

public void setConfig(String config) {
this.config = config;
}

public static enum Field
{
Id_ASC("`id` ASC"),Id_DESC("`id` DESC")


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java Просмотреть файл

@@ -1640,9 +1640,9 @@ public class WxChartServiceImpl implements WxChartDataService {
if (StringUtils.isEmpty(paramsMap.get("enddate"))) {
params.put("enddate", endTime);
} else {
endTime = DateUtils.stringToDate(paramsMap.get("enddate") + " 23:59:59", "yyyy-MM-dd HH:mm:ss");
params.put("enddate", paramsMap.get("enddate") + " 23:59:59");
}

List<Map<String, Object>> successlist = wxOrderGroupMapper.queryOrderGroupSuccessCountAndTime(params);
List<Map<String, Object>> verifyList = wxOrderGroupMapper.queryOrderGroupVerifyCountAndTime(params);



+ 6
- 1
mallinkService/src/main/resources/mapper/WxDeviceMapper.xml Просмотреть файл

@@ -16,10 +16,11 @@
<result column="first_hb_time" jdbcType="TIMESTAMP" property="firstHbTime"/>
<result column="last_hb_time" jdbcType="TIMESTAMP" property="lastHbTime"/>
<result column="hb_cmd" jdbcType="INTEGER" property="hbCmd"/>
<result column="config" jdbcType="VARCHAR" property="config"/>
</resultMap>

<sql id="allColumns">
`id`, `tenant_id`, `device_id`, `type`, `status`, `location`, `name`, `version`, `create_date`, `update_date`, `online_status`, `first_hb_time`, `last_hb_time`, `hb_cmd`
`id`, `tenant_id`, `device_id`, `type`, `status`, `location`, `name`, `version`, `create_date`, `update_date`, `online_status`, `first_hb_time`, `last_hb_time`, `hb_cmd`, `config`
</sql>

<sql id="dynamicWhereConditions">
@@ -82,6 +83,10 @@
and `hb_cmd` = #{hbCmd}
</if>

<if test=" null != config ">
and `config` = #{config}
</if>


<if test=" null != ids ">
and id in


Загрузка…
Отмена
Сохранить