Commit a68484f3 by tyfanchz
2 parents 5c17a9f5 3ec7c508
...@@ -57,7 +57,7 @@ public class SceneTemplateController extends BaseController { ...@@ -57,7 +57,7 @@ public class SceneTemplateController extends BaseController {
UserEventTrackAmountRequest userEventTrackAmountRequest = new UserEventTrackAmountRequest(); UserEventTrackAmountRequest userEventTrackAmountRequest = new UserEventTrackAmountRequest();
userEventTrackAmountRequest.setFunctionType(4); userEventTrackAmountRequest.setFunctionType(4);
List<UserEventTrackAmount> eventTrackByUserFunctionList = userEventTrackAmountService.getEventTrackByFunctionList(userEventTrackAmountRequest); List<UserEventTrackAmount> eventTrackByUserFunctionList = userEventTrackAmountService.getEventTrackByFunctionList(userEventTrackAmountRequest);
log.info("返回的结果list{}",eventTrackByUserFunctionList.toString()); log.info("返回的结果list{}",eventTrackByUserFunctionList);
list.forEach(index -> { list.forEach(index -> {
if (CollectionUtils.isNotEmpty(eventTrackByUserFunctionList)) { if (CollectionUtils.isNotEmpty(eventTrackByUserFunctionList)) {
List<UserEventTrackAmount> collect = eventTrackByUserFunctionList.stream().filter(ind -> ind.getFunctionId().equals(index.getId()+"")).collect(Collectors.toList()); List<UserEventTrackAmount> collect = eventTrackByUserFunctionList.stream().filter(ind -> ind.getFunctionId().equals(index.getId()+"")).collect(Collectors.toList());
......
...@@ -56,6 +56,17 @@ public class SceneTemplateReq extends BaseDTO { ...@@ -56,6 +56,17 @@ public class SceneTemplateReq extends BaseDTO {
private Long backPic; private Long backPic;
/** /**
* 列表页面图ID 关联smart_sys_file中id
*/
@NotNull(message = "pagePic不能为空", groups = {GroupA.class})
private Long pagePic;
/**
* 常驻首页 0否 1是
*/
private Byte isTop;
/**
* 查看次数 * 查看次数
*/ */
private Long viewTimes; private Long viewTimes;
......
package com.glsx.admin.pojo.request;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 车家智能用户场景数据表
*/
@Data
@Table(name = "smart_scene_data")
public class SmartSceneDataReq {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 场景ID 关联smart_scene中id
*/
private Long sceneId;
/**
* 类型 1触发条件 2执行内容
*/
private Byte type;
/**
* 排序
*/
private Byte sort;
/**
* 参数key
*/
private String paramKey;
/**
* 参数值 数组对象
*/
private String paramValue;
}
package com.glsx.admin.pojo.request;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import lombok.Data;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能用户场景表
*/
@Data
@Table(name = "smart_scene")
public class SmartSceneReq {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 用户ID 关联smart_user_relation中id
*/
private Long userId;
/**
* 场景名称
*/
private String scenesName;
/**
* 场景类型key 关联smart_sys_code中dict_key
*/
private String typeKey;
/**
* 场景图标ID 关联smart_sys_file中id
*/
private Long icon;
/**
* 场景背景图ID 关联smart_sys_file中id
*/
private Long backPic;
/**
* 查看次数
*/
private Long viewTimes;
/**
* 场景描述
*/
private String description;
/**
* 条件规则 1任一条件 2全部条件
*/
private Byte conditionRule;
/**
* 执行周期 1每天 2工作日 3法定节假日
*/
private Byte executeCycle;
/**
* 状态:0下线 1上线
*/
private Byte status;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
}
...@@ -51,14 +51,29 @@ public class SceneTemplateResp { ...@@ -51,14 +51,29 @@ public class SceneTemplateResp {
private Long backPic; private Long backPic;
/** /**
* 列表页面图ID 关联smart_sys_file中id
*/
private Long pagePic;
/**
* 常驻首页 0否 1是
*/
private Byte isTop;
/**
* 场景背景图 * 场景背景图
*/ */
private String backPicUrl; private String backPicUrl;
/** /**
* 列表页面图
*/
private String pagePicUrl;
/**
* 查看次数 * 查看次数
*/ */
private Long viewTimes=0L; private Long viewTimes = 0L;
/** /**
* 场景描述 * 场景描述
...@@ -110,5 +125,4 @@ public class SceneTemplateResp { ...@@ -110,5 +125,4 @@ public class SceneTemplateResp {
*/ */
private List<TemplateParamResp> templateList; private List<TemplateParamResp> templateList;
private int useCount;
} }
...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
public interface SceneTemplateFeignClient { public interface SceneTemplateFeignClient {
@ResponseBody @ResponseBody
@RequestMapping(value = "/sceneTemplate/getPageList", method = {RequestMethod.GET}) @RequestMapping(value = "/sceneTemplate/getPageList", method = {RequestMethod.POST})
PageInfo<SceneTemplateResp> getPageList(@RequestBody SceneTemplateReq req); PageInfo<SceneTemplateResp> getPageList(@RequestBody SceneTemplateReq req);
@ResponseBody @ResponseBody
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!