添加新闻的分类Id查询

This commit is contained in:
kerwincui
2022-04-28 15:23:11 +08:00
parent b016b32154
commit 025c127707
2 changed files with 3 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isTop != null "> and is_top = #{isTop}</if> <if test="isTop != null "> and is_top = #{isTop}</if>
<if test="isBanner != null "> and is_banner = #{isBanner}</if> <if test="isBanner != null "> and is_banner = #{isBanner}</if>
<if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if> <if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if>
<if test="categoryId != null"> and category_Id = #{categoryId})</if>
<if test="status != null "> and status = #{status}</if> <if test="status != null "> and status = #{status}</if>
</where> </where>
order by create_time desc order by create_time desc

View File

@@ -92,7 +92,7 @@
<!---设备状态(影子模式value值不会更新)--> <!---设备状态(影子模式value值不会更新)-->
<el-descriptions :column="1" border size="mini" v-if="deviceInfo.isShadow==1 && deviceInfo.status!=3"> <el-descriptions :column="1" border size="mini" v-if="deviceInfo.isShadow==1 && deviceInfo.status!=3">
<template slot="title"> <template slot="title">
<span style="font-size:14px;color:#606266;">设备处于离线状态</span> <span style="font-size:14px;color:#606266;">设备离线状态</span>
</template> </template>
<!-- bool类型--> <!-- bool类型-->
<el-descriptions-item v-for="(item,index) in deviceInfo.boolList" :key="index"> <el-descriptions-item v-for="(item,index) in deviceInfo.boolList" :key="index">
@@ -180,7 +180,6 @@ import mqttClient from './mqtt-client.vue'
export default { export default {
name: "running-status", name: "running-status",
dicts: ['iot_yes_no'],
components: { components: {
mqttClient mqttClient
}, },
@@ -242,7 +241,7 @@ export default {
methods: { methods: {
/** 发布物模型 类型(1=属性2=功能) */ /** 发布物模型 类型(1=属性2=功能) */
publishThingsModel(device, model) { publishThingsModel(device, model) {
// 获取缓存的Json物模型 // TODO 创建的时候过去一次即可。 获取缓存的Json物模型
cacheJsonThingsModel(device.productId).then(response => { cacheJsonThingsModel(device.productId).then(response => {
let thingsModel = JSON.parse(response.data); let thingsModel = JSON.parse(response.data);
let type = 0; let type = 0;