|
|
|
@@ -8,6 +8,7 @@ import com.iformall.common.ResultData; |
|
|
|
import com.iformall.controller.base.BaseController; |
|
|
|
import com.iformall.domain.po.WxCustomizeModule; |
|
|
|
import com.iformall.enums.EnumThemeType; |
|
|
|
import com.iformall.enums.EnumYesOrNo; |
|
|
|
import com.iformall.service.WxCustomizeModuleService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
@@ -29,6 +30,34 @@ public class WxCustomizeModuleController extends BaseController { |
|
|
|
@Autowired |
|
|
|
WxCustomizeModuleService wxCustomizeModuleService; |
|
|
|
|
|
|
|
@ApiOperation("查询CustomizeModule列表") |
|
|
|
@GetMapping(value = "/getDesc") |
|
|
|
@SystemControllerLog(description = "查询CustomizeModule列表") |
|
|
|
public ResultData getDesc() { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCustomizeModuleController::getDesc"); |
|
|
|
try { |
|
|
|
WxCustomizeModule wxCustomizeModule = new WxCustomizeModule(); |
|
|
|
wxCustomizeModule.updateTenantInfo(getTenantInfo()); |
|
|
|
if(wxCustomizeModule.getThemeType() == null){ |
|
|
|
wxCustomizeModule.setThemeType(EnumThemeType.C.getCode()); |
|
|
|
} |
|
|
|
wxCustomizeModule.setIsUsing(EnumYesOrNo.YES.getCode()); |
|
|
|
List<WxCustomizeModule> list = wxCustomizeModuleService.findList(wxCustomizeModule); |
|
|
|
String msg = ""; |
|
|
|
if(list == null || list.size() == 0){ |
|
|
|
msg = "当前配置未生效<br/>建议先同步默认配置,再进行修改!"; |
|
|
|
}else if(list.size() < 4 || list.size() > 8){ |
|
|
|
msg = "当前配置未生效<br/>为了页面效果,菜单配置数据需控制在4到8条!"; |
|
|
|
}else{ |
|
|
|
msg = "当前配置已生效<br/>ps:生效可能延时(100s)!"; |
|
|
|
} |
|
|
|
return new ResultData(msg); |
|
|
|
}catch (Exception e){ |
|
|
|
logger.error(e.getMessage(),e); |
|
|
|
return new ResultData(ErrorCode.SYS_SERVER_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查询CustomizeModule列表") |
|
|
|
@GetMapping(value = "/list") |
|
|
|
@SystemControllerLog(description = "查询CustomizeModule列表") |
|
|
|
|