Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-admin
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 3b1ee499
authored
Apr 14, 2021
by
wnb0128
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车家智能后台 触发条件、执行内容指令筛选--think.wang
1 parent
6378c78a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
7 deletions
src/main/java/com/glsx/admin/controller/ProductTypeController.java
src/main/java/com/glsx/admin/pojo/request/DeviceOrderReq.java
src/main/java/com/glsx/admin/pojo/request/ScenceSupstatusReq.java
src/main/java/com/glsx/admin/controller/ProductTypeController.java
View file @
3b1ee49
package
com
.
glsx
.
admin
.
controller
;
package
com
.
glsx
.
admin
.
controller
;
import
javax.validation.groups.Default
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.platform.shopmall.model.PlatformMallGoodLabel
;
import
cn.com.glsx.platform.shopmall.model.PlatformMallGoodLabel
;
import
cn.com.glsx.platform.shopmall.remote.ShopMallLGoodLabelRemote
;
import
cn.com.glsx.platform.shopmall.remote.ShopMallLGoodLabelRemote
;
...
@@ -30,6 +25,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -30,6 +25,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.groups.Default
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
/**
/**
* <p>Description:
* <p>Description:
* <p>Project: chejia-smart
* <p>Project: chejia-smart
...
@@ -132,7 +133,9 @@ public class ProductTypeController {
...
@@ -132,7 +133,9 @@ public class ProductTypeController {
*/
*/
@RequestMapping
(
value
=
"/getConditionList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/getConditionList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
R
getConditionList
()
{
public
R
getConditionList
()
{
List
<
ScenceSupstatusResp
>
respList
=
conditionFeignClient
.
getList
(
new
ScenceSupstatusReq
());
ScenceSupstatusReq
supstatusReq
=
new
ScenceSupstatusReq
();
supstatusReq
.
setStatus
((
byte
)
1
);
List
<
ScenceSupstatusResp
>
respList
=
conditionFeignClient
.
getList
(
supstatusReq
);
Set
<
Long
>
idList
=
new
HashSet
<>();
Set
<
Long
>
idList
=
new
HashSet
<>();
for
(
ScenceSupstatusResp
resp
:
respList
)
{
for
(
ScenceSupstatusResp
resp
:
respList
)
{
idList
.
add
(
Long
.
valueOf
(
resp
.
getProductId
()));
idList
.
add
(
Long
.
valueOf
(
resp
.
getProductId
()));
...
@@ -147,7 +150,9 @@ public class ProductTypeController {
...
@@ -147,7 +150,9 @@ public class ProductTypeController {
*/
*/
@RequestMapping
(
value
=
"/getContentList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/getContentList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
R
getContentList
()
{
public
R
getContentList
()
{
List
<
DeviceOrderResp
>
respList
=
contentFeignClient
.
getList
(
new
DeviceOrderReq
());
DeviceOrderReq
orderReq
=
new
DeviceOrderReq
();
orderReq
.
setStatus
((
byte
)
1
);
List
<
DeviceOrderResp
>
respList
=
contentFeignClient
.
getList
(
orderReq
);
Set
<
Long
>
idList
=
new
HashSet
<>();
Set
<
Long
>
idList
=
new
HashSet
<>();
for
(
DeviceOrderResp
resp
:
respList
)
{
for
(
DeviceOrderResp
resp
:
respList
)
{
idList
.
add
(
Long
.
valueOf
(
resp
.
getProductId
()));
idList
.
add
(
Long
.
valueOf
(
resp
.
getProductId
()));
...
...
src/main/java/com/glsx/admin/pojo/request/DeviceOrderReq.java
View file @
3b1ee49
...
@@ -2,6 +2,8 @@ package com.glsx.admin.pojo.request;
...
@@ -2,6 +2,8 @@ package com.glsx.admin.pojo.request;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.Column
;
/**
/**
* <p>Description:
* <p>Description:
* <p>Project: chejia-smart
* <p>Project: chejia-smart
...
@@ -34,4 +36,9 @@ public class DeviceOrderReq {
...
@@ -34,4 +36,9 @@ public class DeviceOrderReq {
*/
*/
private
String
orderValueType
;
private
String
orderValueType
;
/**
* 状态 1上线 0下线
*/
private
Byte
status
;
}
}
src/main/java/com/glsx/admin/pojo/request/ScenceSupstatusReq.java
View file @
3b1ee49
...
@@ -45,4 +45,9 @@ public class ScenceSupstatusReq {
...
@@ -45,4 +45,9 @@ public class ScenceSupstatusReq {
* 1.等于 2.大于 3.小于
* 1.等于 2.大于 3.小于
*/
*/
private
String
type
;
private
String
type
;
/**
* 状态 1上线 0下线
*/
private
Byte
status
;
}
}
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