diff --git a/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageClubApiController.java b/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageClubApiController.java index 511701e..693aeb3 100644 --- a/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageClubApiController.java +++ b/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageClubApiController.java @@ -1,9 +1,15 @@ package com.mls.web.controller.bmb.massage.api; +import com.github.pagehelper.PageInfo; +import com.mls.bmb.club.domain.BusClubInfo; +import com.mls.bmb.club.vomain.ClubVO; +import com.mls.bmb.massage.domain.BusMassageClub; import com.mls.bmb.massage.service.IBusMassageClubService; import com.mls.bmb.massage.vomain.MassageClubDetailVO; import com.mls.common.core.controller.BaseMobileController; import com.mls.common.core.domain.MobileResult; +import com.mls.common.core.page.TableDataInfo; +import com.mls.common.utils.CollectionCopyUtils; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; @@ -40,4 +46,27 @@ public class BusMassageClubApiController extends BaseMobileController { return MobileResult.success(data); } + /** + * 查询俱乐部消息列表 + */ + @ApiOperation("查询俱乐部消息列表【查询俱乐部消息用-分页】") + @ApiImplicitParam(name = "clubId", value = "俱乐部id", required = true, dataType = "String") + @PostMapping("/pages") + public TableDataInfo listPage(String clubId) + { + startPage(); + BusMassageClub busMassageClub = new BusMassageClub(); + busMassageClub.setClubId(clubId); + busMassageClub.setUserId(getUserId()); + List data = busMassageClubService.selectBusMassageClubList(busMassageClub); + + PageInfo pageInfo = new PageInfo<>(data); + List sl = CollectionCopyUtils.copyList(pageInfo.getList(), MassageClubDetailVO.class); + TableDataInfo result = new TableDataInfo<>(); + result.setCode(0); + result.setTotal(pageInfo.getTotal()); + result.setRows(sl); + return result; + } + } diff --git a/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageSystemApiController.java b/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageSystemApiController.java index b9ec11b..259ce61 100644 --- a/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageSystemApiController.java +++ b/mls-admin/src/main/java/com/mls/web/controller/bmb/massage/api/BusMassageSystemApiController.java @@ -1,11 +1,18 @@ package com.mls.web.controller.bmb.massage.api; +import com.github.pagehelper.PageInfo; +import com.mls.bmb.massage.domain.BusMassageClub; +import com.mls.bmb.massage.domain.BusMassageSystem; import com.mls.bmb.massage.service.IBusMassageSystemService; +import com.mls.bmb.massage.vomain.MassageClubDetailVO; import com.mls.bmb.massage.vomain.MassageSystemDetailVO; import com.mls.common.core.controller.BaseMobileController; import com.mls.common.core.domain.MobileResult; +import com.mls.common.core.page.TableDataInfo; +import com.mls.common.utils.CollectionCopyUtils; import com.mls.common.utils.StringUtils; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; @@ -43,4 +50,25 @@ public class BusMassageSystemApiController extends BaseMobileController { return MobileResult.success(data); } + /** + * 查询系统消息列表 + */ + @ApiOperation("查询系统消息列表【查询系统消息用-分页】") + @PostMapping("/pages") + public TableDataInfo listPage() + { + startPage(); + BusMassageSystem busMassageSystem = new BusMassageSystem(); + busMassageSystem.setUserId(getUserId()); + List data = busMassageSystemService.selectBusMassageSystemList(busMassageSystem); + + PageInfo pageInfo = new PageInfo<>(data); + List sl = CollectionCopyUtils.copyList(pageInfo.getList(), MassageSystemDetailVO.class); + TableDataInfo result = new TableDataInfo<>(); + result.setCode(0); + result.setTotal(pageInfo.getTotal()); + result.setRows(sl); + return result; + } + } diff --git a/mls-admin/src/main/resources/templates/activity/busClassIcon/add.html b/mls-admin/src/main/resources/templates/activity/busClassIcon/add.html index 8e0a664..ca26d35 100644 --- a/mls-admin/src/main/resources/templates/activity/busClassIcon/add.html +++ b/mls-admin/src/main/resources/templates/activity/busClassIcon/add.html @@ -47,7 +47,7 @@ fileIcon = new $TMap.FileInput({ el:'#icon-file', - suf:['jpg','png','gif','jpeg','icon','ico'], + suf:['jpg','png','bmp','gif','jpeg','icon','ico'], maxCount:1, url:ctx + 'common/minio/upload', name:'file', diff --git a/mls-admin/src/main/resources/templates/activity/busClassIcon/edit.html b/mls-admin/src/main/resources/templates/activity/busClassIcon/edit.html index fa96c27..6fa6349 100644 --- a/mls-admin/src/main/resources/templates/activity/busClassIcon/edit.html +++ b/mls-admin/src/main/resources/templates/activity/busClassIcon/edit.html @@ -34,21 +34,19 @@ var prefix = ctx + "activity/busClassIcon"; $("#form-busClassIcon-edit").validate({focusCleanup: true}); - var fileIcon = null; $(function (){ //限制数组中ID的输入框只能输入0位小数的数字 $TMap.textInputFormatNumber(['sort'],0); fileIcon = new $TMap.FileInput({ el:'#icon-file', - suf:['jpg','png','gif','jpeg','icon'], + suf:['jpg','png','bmp','gif','jpeg','icon','ico'], maxCount:1, - url:ctx + 'common/upload', + url:ctx + 'common/minio/upload', name:'file', - initData:[{url:$('#typeImg').val()}], uploadCallback:function (data) { var rdata = function (item){ - return item.url || ''; + return item || ''; }; $('#typeImg').val(data.map(rdata).join(',')); } diff --git a/mls-bmb/src/main/java/com/mls/bmb/activity/service/impl/BusClubActivityServiceImpl.java b/mls-bmb/src/main/java/com/mls/bmb/activity/service/impl/BusClubActivityServiceImpl.java index 6e379a8..dc9bb38 100644 --- a/mls-bmb/src/main/java/com/mls/bmb/activity/service/impl/BusClubActivityServiceImpl.java +++ b/mls-bmb/src/main/java/com/mls/bmb/activity/service/impl/BusClubActivityServiceImpl.java @@ -192,10 +192,10 @@ public class BusClubActivityServiceImpl implements IBusClubActivityService // 判断俱乐部是否审核通过 BusClubInfo clubInfo = busClubInfoMapper.selectBusClubInfoById(clubId.get()); if("0".equals(clubInfo.getIsVerify())){ - returnStr.set("俱乐部未审核通过,不能发布活动"); + returnStr.set("俱乐部未审核通过,不能操作"); } }else{ - returnStr.set("不是会长,副会长,管理员不能发布活动"); + returnStr.set("不是会长,副会长,管理员不能操作"); } return returnStr.get(); } diff --git a/mls-bmb/src/main/java/com/mls/bmb/massage/service/impl/BusMassageSystemServiceImpl.java b/mls-bmb/src/main/java/com/mls/bmb/massage/service/impl/BusMassageSystemServiceImpl.java index 773786d..4478b31 100644 --- a/mls-bmb/src/main/java/com/mls/bmb/massage/service/impl/BusMassageSystemServiceImpl.java +++ b/mls-bmb/src/main/java/com/mls/bmb/massage/service/impl/BusMassageSystemServiceImpl.java @@ -52,7 +52,7 @@ public class BusMassageSystemServiceImpl implements IBusMassageSystemService @Override public List selectBusMassageSystemList(BusMassageSystem busMassageSystem) { - busMassageSystem.setRecordStatus("1"); +// busMassageSystem.setRecordStatus("1"); return busMassageSystemMapper.selectBusMassageSystemList(busMassageSystem); } diff --git a/mls-bmb/src/main/resources/mapper/massage/BusMassageClubMapper.xml b/mls-bmb/src/main/resources/mapper/massage/BusMassageClubMapper.xml index 4c4c661..afb2035 100644 --- a/mls-bmb/src/main/resources/mapper/massage/BusMassageClubMapper.xml +++ b/mls-bmb/src/main/resources/mapper/massage/BusMassageClubMapper.xml @@ -29,24 +29,43 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/mls-bmb/src/main/resources/mapper/massage/BusMassageSystemMapper.xml b/mls-bmb/src/main/resources/mapper/massage/BusMassageSystemMapper.xml index 660f1a4..749ae06 100644 --- a/mls-bmb/src/main/resources/mapper/massage/BusMassageSystemMapper.xml +++ b/mls-bmb/src/main/resources/mapper/massage/BusMassageSystemMapper.xml @@ -26,21 +26,39 @@