|
@@ -0,0 +1,394 @@
|
|
|
+package com.welampiot.controller;
|
|
|
+
|
|
|
+import com.welampiot.common.BaseResult;
|
|
|
+import com.welampiot.common.InterfaceResultEnum;
|
|
|
+import com.welampiot.dto.*;
|
|
|
+import com.welampiot.service.LightStripGroupService;
|
|
|
+import com.welampiot.service.LightStripPolicyCmdService;
|
|
|
+import com.welampiot.service.LightStripPolicyService;
|
|
|
+import com.welampiot.service.UserService;
|
|
|
+import com.welampiot.utils.ToolUtils;
|
|
|
+import com.welampiot.vo.LightStripPolicyVO;
|
|
|
+import com.welampiot.vo.PolicyVO;
|
|
|
+import org.json.JSONArray;
|
|
|
+import org.json.JSONObject;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.lang.reflect.Field;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * ClassName: LightStripPolicyController
|
|
|
+ * Package: com.welampiot.controller
|
|
|
+ * Description:
|
|
|
+ *
|
|
|
+ * @Author: zhj_Start
|
|
|
+ * @Create: 2023/8/3 - 18:48
|
|
|
+ * @Version: v1.0
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@CrossOrigin
|
|
|
+@RequestMapping("/lightStripPolicy")
|
|
|
+public class LightStripPolicyController {
|
|
|
+ @Autowired
|
|
|
+ private ToolUtils toolUtils;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private LightStripPolicyService lightStripPolicyService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private LightStripPolicyCmdService policyCmdService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UserService userService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private LightStripGroupService lightStripGroupService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 策略列表
|
|
|
+ * @param request 设备id
|
|
|
+ * @return 策略列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getList", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> getList(HttpServletRequest request) throws NoSuchFieldException, IllegalAccessException {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer page = (Integer) toolUtils.getRequestContent(request,"page",1);
|
|
|
+ Integer count = (Integer) toolUtils.getRequestContent(request,"count",1);
|
|
|
+ String keyword = (String) toolUtils.getRequestContent(request,"keyword",2);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (username.length() == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ if (page == 0) page = 1;
|
|
|
+ if (count == 0) count = 16;
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ if (userDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ LightStripPolicyVO lightStripPolicyVO = new LightStripPolicyVO();
|
|
|
+ lightStripPolicyVO.setPage(count * (page - 1));
|
|
|
+ lightStripPolicyVO.setCount(count);
|
|
|
+ lightStripPolicyVO.setKeyword(keyword);
|
|
|
+ lightStripPolicyVO.setUserid(userDTO.getId());
|
|
|
+ List<LightStripPolicyDTO> list;
|
|
|
+ List<String> ids = new ArrayList<>();
|
|
|
+ if (userDTO.getRole() == 1) {
|
|
|
+ list = lightStripPolicyService.getAllLightStripPolicyList(lightStripPolicyVO);
|
|
|
+ } else {
|
|
|
+ list = lightStripPolicyService.getLightStripPolicyList(lightStripPolicyVO);
|
|
|
+ if (list.isEmpty()) {
|
|
|
+ LightStripPolicyVO vo = new LightStripPolicyVO();
|
|
|
+ vo.setList(list);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,vo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ list.forEach(dto -> ids.add(String.valueOf(dto.getId())));
|
|
|
+ List<LightStripPolicyCmdDTO> cmdList = policyCmdService.getLightStripPolicyCmdList(ids);
|
|
|
+ for (LightStripPolicyDTO dto : list) {
|
|
|
+ List<StripPolicyContentDTO> contentList = new ArrayList<>();
|
|
|
+ for (LightStripPolicyCmdDTO l : cmdList) {
|
|
|
+ StripPolicyContentDTO contentDTO = new StripPolicyContentDTO();
|
|
|
+ List<StripPolicyValueDTO> timeList = new ArrayList<>();
|
|
|
+ if (l.getStripPolicyId().equals(dto.getId())) {
|
|
|
+ contentDTO.setValue(l.getValue());
|
|
|
+ for (int i = 1; i <= 12; i ++) {
|
|
|
+ StripPolicyValueDTO valueDTO = new StripPolicyValueDTO();
|
|
|
+ Field fieldType = l.getClass().getDeclaredField("policyType" + i);
|
|
|
+ fieldType.setAccessible(true);
|
|
|
+ String type = (String) fieldType.get(l);
|
|
|
+ if (type != null && !type.equals("")) {
|
|
|
+ Field fieldTime = l.getClass().getDeclaredField("startTime" + i);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ String time = (String) fieldTime.get(l);
|
|
|
+ Field fieldCmd = l.getClass().getDeclaredField("typeCmd" + i);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ String cmd = (String) fieldCmd.get(l);
|
|
|
+ valueDTO.setPolicyType(type);
|
|
|
+ valueDTO.setStartTime(time);
|
|
|
+ valueDTO.setTypeCmd(cmd);
|
|
|
+ timeList.add(valueDTO);
|
|
|
+ } else {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ contentDTO.setTimeList(timeList);
|
|
|
+ contentList.add(contentDTO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dto.setContentList(contentList);
|
|
|
+ }
|
|
|
+ LightStripPolicyVO vo = new LightStripPolicyVO();
|
|
|
+ vo.setList(list);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,vo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加编辑策略
|
|
|
+ * @param request 策略属性
|
|
|
+ * @return 添加编辑策略
|
|
|
+ */
|
|
|
+ @PostMapping("/save")
|
|
|
+ private BaseResult<?> save(HttpServletRequest request) throws IllegalAccessException, NoSuchFieldException {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer id = (Integer) toolUtils.getRequestContent(request,"id",1);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ Integer type = (Integer) toolUtils.getRequestContent(request,"type",1);
|
|
|
+ String name = (String) toolUtils.getRequestContent(request,"name",2);
|
|
|
+ String dataList = (String) toolUtils.getRequestContent(request,"dataList",2);
|
|
|
+ if (username.length() == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ if (name.length() == 0 || dataList.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_NEED_PARAM,version);
|
|
|
+ JSONArray jsonArray = new JSONArray(dataList);
|
|
|
+ LightStripPolicyDTO policyDTO = new LightStripPolicyDTO();
|
|
|
+ policyDTO.setType(type);
|
|
|
+ policyDTO.setName(name);
|
|
|
+ PolicyVO policyVO = new PolicyVO();
|
|
|
+ if (id == 0) { // 添加
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ policyDTO.setUserId(userDTO.getId());
|
|
|
+ long l = System.currentTimeMillis();
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String format = simpleDateFormat.format(l);
|
|
|
+ policyDTO.setCreateTime(format);
|
|
|
+ lightStripPolicyService.addLightStripPolicyData(policyDTO);
|
|
|
+ Integer policyId = policyDTO.getId();
|
|
|
+ policyVO.setId(policyId);
|
|
|
+ for (int i = 0; i < jsonArray.length(); i ++) {
|
|
|
+ JSONObject dataObject = jsonArray.getJSONObject(i);
|
|
|
+ String value = dataObject.getString("value");
|
|
|
+ JSONArray contentArray = dataObject.getJSONArray("contentList");
|
|
|
+ LightStripPolicyCmdDTO cmdDTO = new LightStripPolicyCmdDTO();
|
|
|
+ cmdDTO.setValue(value);
|
|
|
+ cmdDTO.setStripPolicyId(policyId);
|
|
|
+ cmdDTO.setType(type);
|
|
|
+ for (int j = 0; j < contentArray.length(); j ++) {
|
|
|
+ JSONObject jsonObject = contentArray.getJSONObject(j);
|
|
|
+ String policyType = jsonObject.getString("policyType");
|
|
|
+ String time = jsonObject.getString("time");
|
|
|
+ String typeCmd = jsonObject.getString("typeCmd");
|
|
|
+ String typeName = "policyType" + (j + 1);
|
|
|
+ String timeName = "startTime" + (j + 1);
|
|
|
+ String cmdName = "typeCmd" + (j + 1);
|
|
|
+ Field fieldType = cmdDTO.getClass().getDeclaredField(typeName);
|
|
|
+ Field fieldTime = cmdDTO.getClass().getDeclaredField(timeName);
|
|
|
+ Field fieldCmd = cmdDTO.getClass().getDeclaredField(cmdName);
|
|
|
+ fieldType.setAccessible(true);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ fieldType.set(cmdDTO,policyType);
|
|
|
+ fieldTime.set(cmdDTO,time);
|
|
|
+ fieldCmd.set(cmdDTO,typeCmd);
|
|
|
+ }
|
|
|
+ policyCmdService.addLightStripPolicyCmdData(cmdDTO);
|
|
|
+ }
|
|
|
+ } else { // 编辑
|
|
|
+ policyVO.setId(id);
|
|
|
+ policyDTO.setId(id);
|
|
|
+ lightStripPolicyService.updateLightStripPolicyData(policyDTO);
|
|
|
+ // 删除之前绑定的策略内容
|
|
|
+ policyCmdService.deleteLightStripPolicyCmdByPolicyId(id);
|
|
|
+ for (int i = 0; i < jsonArray.length(); i ++) {
|
|
|
+ JSONObject dataObject = jsonArray.getJSONObject(i);
|
|
|
+ String value = dataObject.getString("value");
|
|
|
+ JSONArray contentArray = dataObject.getJSONArray("contentList");
|
|
|
+ LightStripPolicyCmdDTO cmdDTO = new LightStripPolicyCmdDTO();
|
|
|
+ cmdDTO.setValue(value);
|
|
|
+ cmdDTO.setStripPolicyId(id);
|
|
|
+ cmdDTO.setType(type);
|
|
|
+ for (int j = 0; j < contentArray.length(); j ++) {
|
|
|
+ JSONObject jsonObject = contentArray.getJSONObject(j);
|
|
|
+ String policyType = jsonObject.getString("policyType");
|
|
|
+ String time = jsonObject.getString("time");
|
|
|
+ String typeCmd = jsonObject.getString("typeCmd");
|
|
|
+ String typeName = "policyType" + (j + 1);
|
|
|
+ String timeName = "startTime" + (j + 1);
|
|
|
+ String cmdName = "typeCmd" + (j + 1);
|
|
|
+ Field fieldType = cmdDTO.getClass().getDeclaredField(typeName);
|
|
|
+ Field fieldTime = cmdDTO.getClass().getDeclaredField(timeName);
|
|
|
+ Field fieldCmd = cmdDTO.getClass().getDeclaredField(cmdName);
|
|
|
+ fieldType.setAccessible(true);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ fieldType.set(cmdDTO,policyType);
|
|
|
+ fieldTime.set(cmdDTO,time);
|
|
|
+ fieldCmd.set(cmdDTO,typeCmd);
|
|
|
+ }
|
|
|
+ policyCmdService.addLightStripPolicyCmdData(cmdDTO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,policyVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 策略详情
|
|
|
+ * @param request 设备id
|
|
|
+ * @return 策略详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/details", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> details(HttpServletRequest request) throws NoSuchFieldException, IllegalAccessException {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer policyId = (Integer) toolUtils.getRequestContent(request,"policyId",1);
|
|
|
+ if (policyId == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ LightStripPolicyDTO policyDTO = lightStripPolicyService.getLightStripPolicyDTOById(policyId);
|
|
|
+ if (policyDTO == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ List<LightStripPolicyCmdDTO> cmdList = policyCmdService.getStripPolicyCmdByPolicyId(policyId);
|
|
|
+ List<StripPolicyContentDTO> contentList = new ArrayList<>();
|
|
|
+ for (LightStripPolicyCmdDTO l : cmdList) {
|
|
|
+ StripPolicyContentDTO contentDTO = new StripPolicyContentDTO();
|
|
|
+ contentDTO.setValue(l.getValue());
|
|
|
+ List<StripPolicyValueDTO> timeList = new ArrayList<>();
|
|
|
+ for (int i = 1; i <= 12; i ++) {
|
|
|
+ StripPolicyValueDTO valueDTO = new StripPolicyValueDTO();
|
|
|
+ Field fieldType = l.getClass().getDeclaredField("policyType" + i);
|
|
|
+ fieldType.setAccessible(true);
|
|
|
+ String policyType = (String) fieldType.get(l);
|
|
|
+ if (policyType == null || policyType.equals("")) break;
|
|
|
+ Field fieldTime = l.getClass().getDeclaredField("startTime" + i);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ String startTime = (String) fieldTime.get(l);
|
|
|
+ Field fieldCmd = l.getClass().getDeclaredField("typeCmd" + i);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ String cmd = (String) fieldCmd.get(l);
|
|
|
+ valueDTO.setPolicyType(policyType);
|
|
|
+ valueDTO.setStartTime(startTime);
|
|
|
+ valueDTO.setTypeCmd(cmd);
|
|
|
+ String content = ToolUtils.getLightStripContent(policyType, cmd);
|
|
|
+ valueDTO.setContent(content);
|
|
|
+ timeList.add(valueDTO);
|
|
|
+ }
|
|
|
+ contentDTO.setTimeList(timeList);
|
|
|
+ contentList.add(contentDTO);
|
|
|
+ }
|
|
|
+ policyDTO.setContentList(contentList);
|
|
|
+ LightStripPolicyVO lightStripPolicyVO = new LightStripPolicyVO();
|
|
|
+ BeanUtils.copyProperties(policyDTO,lightStripPolicyVO);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,lightStripPolicyVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置策略获取列表
|
|
|
+ * @param request username,分组id
|
|
|
+ * @return list
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/stripSetList", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> stripSetList(HttpServletRequest request) throws NoSuchFieldException, IllegalAccessException {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer groupId = (Integer) toolUtils.getRequestContent(request,"groupId",1);
|
|
|
+ String username = (String) toolUtils.getRequestContent(request,"username",2);
|
|
|
+ if (groupId == 0 || username.length() == 0)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ UserDTO userDTO = userService.queryUserIdByUsername(username);
|
|
|
+ LightStripGroupDTO groupDTO = lightStripGroupService.getLightStripGroupById(groupId);
|
|
|
+ if (userDTO == null || groupDTO == null)
|
|
|
+ return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
|
|
|
+ LightStripPolicyVO lightStripPolicyVO = new LightStripPolicyVO();
|
|
|
+ lightStripPolicyVO.setUserid(userDTO.getId());
|
|
|
+ List<LightStripPolicyDTO> list;
|
|
|
+ List<String> ids = new ArrayList<>();
|
|
|
+ if (userDTO.getRole() == 1) {
|
|
|
+ list = lightStripPolicyService.getAllLightStripPolicyList(lightStripPolicyVO);
|
|
|
+ } else {
|
|
|
+ list = lightStripPolicyService.getLightStripPolicyList(lightStripPolicyVO);
|
|
|
+ if (list.isEmpty()) {
|
|
|
+ LightStripPolicyVO vo = new LightStripPolicyVO();
|
|
|
+ vo.setList(list);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,vo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ list.forEach(dto -> ids.add(String.valueOf(dto.getId())));
|
|
|
+ List<LightStripPolicyCmdDTO> cmdList = policyCmdService.getLightStripPolicyCmdList(ids);
|
|
|
+ for (LightStripPolicyDTO dto : list) {
|
|
|
+ if (groupDTO.getType() == 1) {
|
|
|
+ if (groupDTO.getValue().equals(dto.getId())) {
|
|
|
+ dto.setSelect(1);
|
|
|
+ } else {
|
|
|
+ dto.setSelect(0);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ dto.setSelect(0);
|
|
|
+ }
|
|
|
+ List<StripPolicyContentDTO> contentList = new ArrayList<>();
|
|
|
+ for (LightStripPolicyCmdDTO cmdDTO : cmdList) {
|
|
|
+ if (cmdDTO.getStripPolicyId().equals(dto.getId())) {
|
|
|
+ StripPolicyContentDTO contentDTO = new StripPolicyContentDTO();
|
|
|
+ contentDTO.setValue(cmdDTO.getValue());
|
|
|
+ List<String> value = new ArrayList<>();
|
|
|
+ for (int i = 1; i <= 12; i++) {
|
|
|
+ // 策略类型1
|
|
|
+ Field fieldType = cmdDTO.getClass().getDeclaredField("policyType" + i);
|
|
|
+ if (i < 12) {
|
|
|
+ // 策略类型2
|
|
|
+ Field fieldType1 = cmdDTO.getClass().getDeclaredField("policyType" + (i + 1));
|
|
|
+ fieldType.setAccessible(true);
|
|
|
+ fieldType1.setAccessible(true);
|
|
|
+ String type = (String) fieldType.get(cmdDTO);
|
|
|
+ String type1 = (String) fieldType1.get(cmdDTO);
|
|
|
+ if (type != null && !type.equals("") && type1 != null && !type1.equals("")) {
|
|
|
+ // 策略时间1
|
|
|
+ Field fieldTime = cmdDTO.getClass().getDeclaredField("startTime" + i);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ String time = (String) fieldTime.get(cmdDTO);
|
|
|
+ // 策略时间2
|
|
|
+ Field fieldTime1 = cmdDTO.getClass().getDeclaredField("startTime" + (i + 1));
|
|
|
+ fieldTime1.setAccessible(true);
|
|
|
+ String time1 = (String) fieldTime1.get(cmdDTO);
|
|
|
+ // 策略指令1
|
|
|
+ Field fieldCmd = cmdDTO.getClass().getDeclaredField("typeCmd" + i);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ String cmd = (String) fieldCmd.get(cmdDTO);
|
|
|
+ // 获取策略描述
|
|
|
+ String content = ToolUtils.getLightStripContent(type, cmd);
|
|
|
+ String newString = time + " - " + time1 + " " + content;
|
|
|
+ value.add(newString);
|
|
|
+ } else if (type != null && !type.equals("")) {
|
|
|
+ // 策略时间1
|
|
|
+ Field fieldTime = cmdDTO.getClass().getDeclaredField("startTime" + i);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ String time = (String) fieldTime.get(cmdDTO);
|
|
|
+ // 策略指令1
|
|
|
+ Field fieldCmd = cmdDTO.getClass().getDeclaredField("typeCmd" + i);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ String cmd = (String) fieldCmd.get(cmdDTO);
|
|
|
+ // 获取策略描述
|
|
|
+ String content = ToolUtils.getLightStripContent(type, cmd);
|
|
|
+ String newString = time + " - " + content;
|
|
|
+ value.add(newString);
|
|
|
+ break;
|
|
|
+ } else {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ fieldType.setAccessible(true);
|
|
|
+ String type = (String) fieldType.get(cmdDTO);
|
|
|
+ if (type != null && !type.equals("")) {
|
|
|
+ // 策略时间1
|
|
|
+ Field fieldTime = cmdDTO.getClass().getDeclaredField("startTime" + i);
|
|
|
+ fieldTime.setAccessible(true);
|
|
|
+ String time = (String) fieldTime.get(cmdDTO);
|
|
|
+ // 策略指令1
|
|
|
+ Field fieldCmd = cmdDTO.getClass().getDeclaredField("typeCmd" + i);
|
|
|
+ fieldCmd.setAccessible(true);
|
|
|
+ String cmd = (String) fieldCmd.get(cmdDTO);
|
|
|
+ // 获取策略描述
|
|
|
+ String content = ToolUtils.getLightStripContent(type, cmd);
|
|
|
+ String newString = time + " - " + content;
|
|
|
+ value.add(newString);
|
|
|
+ break;
|
|
|
+ } else {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ contentDTO.setPolicy(value);
|
|
|
+ contentList.add(contentDTO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dto.setContentList(contentList);
|
|
|
+ }
|
|
|
+ LightStripPolicyVO policyVO = new LightStripPolicyVO();
|
|
|
+ policyVO.setList(list);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,policyVO);
|
|
|
+ }
|
|
|
+}
|