| @@ -50,6 +50,28 @@ public class WxCustomizeModuleController extends BaseController { | |||||
| } | } | ||||
| } | } | ||||
| @ApiOperation("查询CustomizeModule列表") | |||||
| @GetMapping(value = "/findDefault") | |||||
| @SystemControllerLog(description = "查询CustomizeModule列表") | |||||
| public ResultData findDefault(@ModelAttribute WxCustomizeModule wxCustomizeModule) { | |||||
| logger.debug("[" + getIpAddr() + "] WxCustomizeModuleController::getList"); | |||||
| try { | |||||
| if(wxCustomizeModule == null){ | |||||
| wxCustomizeModule = new WxCustomizeModule(); | |||||
| } | |||||
| wxCustomizeModule.updateTenantInfo(ifParentUpdateAloneTenantInfo()); | |||||
| if(wxCustomizeModule.getThemeType() == null){ | |||||
| wxCustomizeModule.setThemeType(EnumThemeType.C.getCode()); | |||||
| } | |||||
| List<WxCustomizeModule> aDefault = wxCustomizeModuleService.findDefault(wxCustomizeModule); | |||||
| PageInfo<WxCustomizeModule> page = new PageInfo(aDefault); | |||||
| return new ResultData(page); | |||||
| }catch (Exception e){ | |||||
| logger.error(e.getMessage(),e); | |||||
| return new ResultData(ErrorCode.SYS_SERVER_ERROR); | |||||
| } | |||||
| } | |||||
| @ApiOperation("恢复主题默认") | @ApiOperation("恢复主题默认") | ||||
| @PostMapping("/updateDefault") | @PostMapping("/updateDefault") | ||||
| @ApiImplicitParam(name = "themeId", value = "themeId", dataType = "Long", paramType = "query", required = true) | @ApiImplicitParam(name = "themeId", value = "themeId", dataType = "Long", paramType = "query", required = true) | ||||