Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7b08d87e
authored
Apr 09, 2021
by
wnb0128
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' of 192.168.3.233:open-source/chejia-smart-service into dev
2 parents
9c75c67f
3f3719c3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
src/main/java/com/glsx/smart/pojo/ExecuteTaskVo.java
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
src/main/resources/mapper/SmartProductMapper.xml
src/main/java/com/glsx/smart/pojo/ExecuteTaskVo.java
View file @
7b08d87
...
@@ -13,4 +13,5 @@ public class ExecuteTaskVo {
...
@@ -13,4 +13,5 @@ public class ExecuteTaskVo {
private
String
orderVal
;
private
String
orderVal
;
private
String
valType
;
private
String
valType
;
private
String
remoteId
;
private
String
remoteId
;
private
String
value
;
}
}
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java
View file @
7b08d87
...
@@ -57,14 +57,14 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct
...
@@ -57,14 +57,14 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct
}
}
@Override
@Override
public
List
<
SmartProduct
>
getList
(
SmartProduct
product
)
{
public
List
<
SmartProduct
>
getListByCondition
(
SmartProduct
product
)
{
List
<
SmartProduct
>
productList
=
productMapper
.
getList
(
product
);
return
productMapper
.
getByCondition
(
product
);
return
productList
;
}
}
@Override
@Override
public
List
<
SmartProduct
>
getListByCondition
(
SmartProduct
product
)
{
public
List
<
SmartProduct
>
getList
(
SmartProduct
product
)
{
return
productMapper
.
getByCondition
(
product
);
List
<
SmartProduct
>
productList
=
productMapper
.
getList
(
product
);
return
productList
;
}
}
@Override
@Override
...
@@ -257,7 +257,7 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct
...
@@ -257,7 +257,7 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct
//productInfo.put("id", product.getId());
//productInfo.put("id", product.getId());
productInfo
.
put
(
"name"
,
product
.
getProductName
());
productInfo
.
put
(
"name"
,
product
.
getProductName
());
productInfo
.
put
(
"icon"
,
product
.
getIconUrl
());
productInfo
.
put
(
"icon"
,
product
.
getIconUrl
());
productInfo
.
put
(
"typeId"
,
product
.
get
TypeId
());
productInfo
.
put
(
"typeId"
,
product
.
get
NetworkKey
());
productInfo
.
put
(
"shopProductId"
,
product
.
getShopProductId
());
productInfo
.
put
(
"shopProductId"
,
product
.
getShopProductId
());
productInfoArray
.
add
(
productInfo
);
productInfoArray
.
add
(
productInfo
);
}
}
...
...
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
View file @
7b08d87
...
@@ -187,7 +187,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
...
@@ -187,7 +187,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
if
(
StringUtils
.
isBlank
(
remoteId
))
{
if
(
StringUtils
.
isBlank
(
remoteId
))
{
String
valueType
=
executeTaskVo
.
getValType
();
String
valueType
=
executeTaskVo
.
getValType
();
ordermap
.
put
(
"code"
,
executeTaskVo
.
getOrder
());
ordermap
.
put
(
"code"
,
executeTaskVo
.
getOrder
());
ordermap
.
put
(
"value"
,
revertType
(
valueType
,
executeTaskVo
.
getOrderVal
()));
ordermap
.
put
(
"value"
,
revertType
(
valueType
,
executeTaskVo
.
getOrderVal
()
==
null
?
executeTaskVo
.
getValue
():
executeTaskVo
.
getOrderVal
()
));
maps
.
add
(
ordermap
);
maps
.
add
(
ordermap
);
ordermaps
.
put
(
"commands"
,
maps
);
ordermaps
.
put
(
"commands"
,
maps
);
// 下发普通指令
// 下发普通指令
...
...
src/main/resources/mapper/SmartProductMapper.xml
View file @
7b08d87
...
@@ -96,7 +96,8 @@
...
@@ -96,7 +96,8 @@
concat(ssc.parent_key, ',', spt.category_key) remark,
concat(ssc.parent_key, ',', spt.category_key) remark,
ssf.url iconUrl,
ssf.url iconUrl,
spt.category_key as categoryKey,
spt.category_key as categoryKey,
spt.type_name typeName
spt.type_name typeName,
sp.network_key networkKey
from smart_product sp
from smart_product sp
left join smart_product_type spt on spt.id = sp.type_id
left join smart_product_type spt on spt.id = sp.type_id
left join smart_sys_file ssf on ssf.id = sp.icon
left join smart_sys_file ssf on ssf.id = sp.icon
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment