| @@ -16,7 +16,9 @@ import org.slf4j.LoggerFactory; | |||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||
| import java.util.HashMap; | |||||
| import java.util.List; | import java.util.List; | ||||
| import java.util.Map; | |||||
| @RestController | @RestController | ||||
| @Api(description = "/api/MiniappTheme相关接口") | @Api(description = "/api/MiniappTheme相关接口") | ||||
| @@ -48,7 +50,11 @@ public class WxMiniappThemeController extends BaseController { | |||||
| WxMiniappTheme wxMiniappTheme1 = list.get(0); | WxMiniappTheme wxMiniappTheme1 = list.get(0); | ||||
| List<WxMiniappThemeValue> childList = wxMiniappThemeService.findChildList(wxMiniappTheme1.getId()); | List<WxMiniappThemeValue> childList = wxMiniappThemeService.findChildList(wxMiniappTheme1.getId()); | ||||
| wxMiniappTheme1.setWxMiniappThemeValue(childList); | wxMiniappTheme1.setWxMiniappThemeValue(childList); | ||||
| return new ResultData(childList); | |||||
| Map<String,WxMiniappThemeValue> map = new HashMap<String,WxMiniappThemeValue>(); | |||||
| for (WxMiniappThemeValue v:childList) { | |||||
| map.put(v.getName(),v); | |||||
| } | |||||
| return new ResultData(map); | |||||
| }catch (Exception e){ | }catch (Exception e){ | ||||
| logger.error(e.getMessage(),e); | logger.error(e.getMessage(),e); | ||||
| return new ResultData(ErrorCode.SYS_SERVER_ERROR); | return new ResultData(ErrorCode.SYS_SERVER_ERROR); | ||||