diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/WxBasketballTeamController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/WxBasketballTeamController.java new file mode 100644 index 00000000..95792e63 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/WxBasketballTeamController.java @@ -0,0 +1,105 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.system.domain.WxBasketballTeam; +import com.ruoyi.system.service.IWxBasketballTeamService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 球队管理Controller + * + * @author ruoyi + * @date 2022-08-30 + */ +@RestController +@RequestMapping("/basketBallTeam") +public class WxBasketballTeamController extends BaseController +{ + @Autowired + private IWxBasketballTeamService wxBasketballTeamService; + + /** + * 查询球队管理列表 + */ + @RequiresPermissions("system:basketBallTeam:list") + @GetMapping("/list") + public TableDataInfo list(WxBasketballTeam wxBasketballTeam) + { + startPage(); + List list = wxBasketballTeamService.selectWxBasketballTeamList(wxBasketballTeam); + return getDataTable(list); + } + + /** + * 导出球队管理列表 + */ + @RequiresPermissions("system:basketBallTeam:export") + @Log(title = "球队管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, WxBasketballTeam wxBasketballTeam) + { + List list = wxBasketballTeamService.selectWxBasketballTeamList(wxBasketballTeam); + ExcelUtil util = new ExcelUtil(WxBasketballTeam.class); + util.exportExcel(response, list, "球队管理数据"); + } + + /** + * 获取球队管理详细信息 + */ + @RequiresPermissions("system:basketBallTeam:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(wxBasketballTeamService.selectWxBasketballTeamById(id)); + } + + /** + * 新增球队管理 + */ + @RequiresPermissions("system:basketBallTeam:add") + @Log(title = "球队管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody WxBasketballTeam wxBasketballTeam) + { + return toAjax(wxBasketballTeamService.insertWxBasketballTeam(wxBasketballTeam)); + } + + /** + * 修改球队管理 + */ + @RequiresPermissions("system:basketBallTeam:edit") + @Log(title = "球队管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody WxBasketballTeam wxBasketballTeam) + { + return toAjax(wxBasketballTeamService.updateWxBasketballTeam(wxBasketballTeam)); + } + + /** + * 删除球队管理 + */ + @RequiresPermissions("system:basketBallTeam:remove") + @Log(title = "球队管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(wxBasketballTeamService.deleteWxBasketballTeamByIds(ids)); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/WxBuildingInfoController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/WxBuildingInfoController.java new file mode 100644 index 00000000..9e90fafd --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/WxBuildingInfoController.java @@ -0,0 +1,105 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.system.domain.WxBuildingInfo; +import com.ruoyi.system.service.IWxBuildingInfoService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 球场管理Controller + * + * @author ruoyi + * @date 2022-08-30 + */ +@RestController +@RequestMapping("/WxBuilding") +public class WxBuildingInfoController extends BaseController +{ + @Autowired + private IWxBuildingInfoService wxBuildingInfoService; + + /** + * 查询球场管理列表 + */ + @RequiresPermissions("system:WxBuilding:list") + @GetMapping("/list") + public TableDataInfo list(WxBuildingInfo wxBuildingInfo) + { + startPage(); + List list = wxBuildingInfoService.selectWxBuildingInfoList(wxBuildingInfo); + return getDataTable(list); + } + + /** + * 导出球场管理列表 + */ + @RequiresPermissions("system:WxBuilding:export") + @Log(title = "球场管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, WxBuildingInfo wxBuildingInfo) + { + List list = wxBuildingInfoService.selectWxBuildingInfoList(wxBuildingInfo); + ExcelUtil util = new ExcelUtil(WxBuildingInfo.class); + util.exportExcel(response, list, "球场管理数据"); + } + + /** + * 获取球场管理详细信息 + */ + @RequiresPermissions("system:WxBuilding:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(wxBuildingInfoService.selectWxBuildingInfoById(id)); + } + + /** + * 新增球场管理 + */ + @RequiresPermissions("system:WxBuilding:add") + @Log(title = "球场管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody WxBuildingInfo wxBuildingInfo) + { + return toAjax(wxBuildingInfoService.insertWxBuildingInfo(wxBuildingInfo)); + } + + /** + * 修改球场管理 + */ + @RequiresPermissions("system:WxBuilding:edit") + @Log(title = "球场管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody WxBuildingInfo wxBuildingInfo) + { + return toAjax(wxBuildingInfoService.updateWxBuildingInfo(wxBuildingInfo)); + } + + /** + * 删除球场管理 + */ + @RequiresPermissions("system:WxBuilding:remove") + @Log(title = "球场管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(wxBuildingInfoService.deleteWxBuildingInfoByIds(ids)); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/WxBasketballTeam.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/WxBasketballTeam.java new file mode 100644 index 00000000..dbd0fc6c --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/WxBasketballTeam.java @@ -0,0 +1,219 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 球队管理对象 basketball_team + * + * @author ruoyi + * @date 2022-08-30 + */ +public class WxBasketballTeam extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + @Excel(name = "ID") + private Long id; + + /** 删除 */ + private String isDeleted; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date createdTime; + + /** 创建人 */ + @Excel(name = "创建人") + private String createdBy; + + /** 更新人 */ + private String modifiedBy; + + /** 更新时间 */ + private Date lastUpdatedTime; + + /** 球队名称 */ + @Excel(name = "球队名称") + private String teamName; + + /** 球队简介 */ + @Excel(name = "球队简介") + private String teamDes; + + /** 球馆id */ + @Excel(name = "球馆id") + private Long buildId; + + /** 球队图片 */ + private String defaultPicture; + + /** 球馆名称 */ + @Excel(name = "球馆名称") + private String buildingName; + + /** 创建人ID */ + @Excel(name = "创建人ID") + private Long createdId; + + /** 球队联系人电话 */ + @Excel(name = "球队联系人电话") + private String contactTel; + + /** 球队logo */ + private String teamLogo; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setIsDeleted(String isDeleted) + { + this.isDeleted = isDeleted; + } + + public String getIsDeleted() + { + return isDeleted; + } + public void setCreatedTime(Date createdTime) + { + this.createdTime = createdTime; + } + + public Date getCreatedTime() + { + return createdTime; + } + public void setCreatedBy(String createdBy) + { + this.createdBy = createdBy; + } + + public String getCreatedBy() + { + return createdBy; + } + public void setModifiedBy(String modifiedBy) + { + this.modifiedBy = modifiedBy; + } + + public String getModifiedBy() + { + return modifiedBy; + } + public void setLastUpdatedTime(Date lastUpdatedTime) + { + this.lastUpdatedTime = lastUpdatedTime; + } + + public Date getLastUpdatedTime() + { + return lastUpdatedTime; + } + public void setTeamName(String teamName) + { + this.teamName = teamName; + } + + public String getTeamName() + { + return teamName; + } + public void setTeamDes(String teamDes) + { + this.teamDes = teamDes; + } + + public String getTeamDes() + { + return teamDes; + } + public void setBuildId(Long buildId) + { + this.buildId = buildId; + } + + public Long getBuildId() + { + return buildId; + } + public void setDefaultPicture(String defaultPicture) + { + this.defaultPicture = defaultPicture; + } + + public String getDefaultPicture() + { + return defaultPicture; + } + public void setBuildingName(String buildingName) + { + this.buildingName = buildingName; + } + + public String getBuildingName() + { + return buildingName; + } + public void setCreatedId(Long createdId) + { + this.createdId = createdId; + } + + public Long getCreatedId() + { + return createdId; + } + public void setContactTel(String contactTel) + { + this.contactTel = contactTel; + } + + public String getContactTel() + { + return contactTel; + } + public void setTeamLogo(String teamLogo) + { + this.teamLogo = teamLogo; + } + + public String getTeamLogo() + { + return teamLogo; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("isDeleted", getIsDeleted()) + .append("createdTime", getCreatedTime()) + .append("createdBy", getCreatedBy()) + .append("modifiedBy", getModifiedBy()) + .append("lastUpdatedTime", getLastUpdatedTime()) + .append("teamName", getTeamName()) + .append("teamDes", getTeamDes()) + .append("remark", getRemark()) + .append("buildId", getBuildId()) + .append("defaultPicture", getDefaultPicture()) + .append("buildingName", getBuildingName()) + .append("createdId", getCreatedId()) + .append("contactTel", getContactTel()) + .append("teamLogo", getTeamLogo()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/WxBuildingInfo.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/WxBuildingInfo.java new file mode 100644 index 00000000..000f7853 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/WxBuildingInfo.java @@ -0,0 +1,351 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 球场管理对象 building_info + * + * @author ruoyi + * @date 2022-08-30 + */ +public class WxBuildingInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 删除 */ + @Excel(name = "删除") + private Long isDeleted; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date createdTime; + + /** 创建人 */ + @Excel(name = "创建人") + private String createdBy; + + /** 更新人 */ + @Excel(name = "更新人") + private String modifiedBy; + + /** 更新时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastUpdatedTime; + + /** 名称 */ + @Excel(name = "名称") + private String buildingName; + + /** 地址 */ + @Excel(name = "地址") + private String address; + + /** 经度 */ + @Excel(name = "经度") + private BigDecimal longitude; + + /** 纬度 */ + @Excel(name = "纬度") + private BigDecimal latitude; + + /** 省 */ + @Excel(name = "省") + private String provinceCode; + + /** 市 */ + @Excel(name = "市") + private String cityCode; + + /** 区县编码 */ + @Excel(name = "区县编码") + private String countyCode; + + /** 城市 */ + @Excel(name = "城市") + private String cityName; + + /** 默认图片 */ + @Excel(name = "默认图片") + private String defaultPicture; + + /** 是否支持在线 */ + @Excel(name = "是否支持在线") + private Long isSupportlive; + + /** 球馆状态 */ + @Excel(name = "球馆状态") + private Long status; + + /** 拒绝原因 */ + @Excel(name = "拒绝原因") + private String rejectReason; + + /** 是否开放 */ + @Excel(name = "是否开放") + private Long isOpen; + + /** 人均价格 */ + @Excel(name = "人均价格") + private String mittelkurs; + + /** 微信管理员二维码路径 */ + @Excel(name = "微信管理员二维码路径") + private String chatGroupUrl; + + /** 创建人ID */ + @Excel(name = "创建人ID") + private Long createdId; + + /** 描述 */ + @Excel(name = "描述") + private String desc; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setIsDeleted(Long isDeleted) + { + this.isDeleted = isDeleted; + } + + public Long getIsDeleted() + { + return isDeleted; + } + public void setCreatedTime(Date createdTime) + { + this.createdTime = createdTime; + } + + public Date getCreatedTime() + { + return createdTime; + } + public void setCreatedBy(String createdBy) + { + this.createdBy = createdBy; + } + + public String getCreatedBy() + { + return createdBy; + } + public void setModifiedBy(String modifiedBy) + { + this.modifiedBy = modifiedBy; + } + + public String getModifiedBy() + { + return modifiedBy; + } + public void setLastUpdatedTime(Date lastUpdatedTime) + { + this.lastUpdatedTime = lastUpdatedTime; + } + + public Date getLastUpdatedTime() + { + return lastUpdatedTime; + } + public void setBuildingName(String buildingName) + { + this.buildingName = buildingName; + } + + public String getBuildingName() + { + return buildingName; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + public void setLongitude(BigDecimal longitude) + { + this.longitude = longitude; + } + + public BigDecimal getLongitude() + { + return longitude; + } + public void setLatitude(BigDecimal latitude) + { + this.latitude = latitude; + } + + public BigDecimal getLatitude() + { + return latitude; + } + public void setProvinceCode(String provinceCode) + { + this.provinceCode = provinceCode; + } + + public String getProvinceCode() + { + return provinceCode; + } + public void setCityCode(String cityCode) + { + this.cityCode = cityCode; + } + + public String getCityCode() + { + return cityCode; + } + public void setCountyCode(String countyCode) + { + this.countyCode = countyCode; + } + + public String getCountyCode() + { + return countyCode; + } + public void setCityName(String cityName) + { + this.cityName = cityName; + } + + public String getCityName() + { + return cityName; + } + public void setDefaultPicture(String defaultPicture) + { + this.defaultPicture = defaultPicture; + } + + public String getDefaultPicture() + { + return defaultPicture; + } + public void setIsSupportlive(Long isSupportlive) + { + this.isSupportlive = isSupportlive; + } + + public Long getIsSupportlive() + { + return isSupportlive; + } + public void setStatus(Long status) + { + this.status = status; + } + + public Long getStatus() + { + return status; + } + public void setRejectReason(String rejectReason) + { + this.rejectReason = rejectReason; + } + + public String getRejectReason() + { + return rejectReason; + } + public void setIsOpen(Long isOpen) + { + this.isOpen = isOpen; + } + + public Long getIsOpen() + { + return isOpen; + } + public void setMittelkurs(String mittelkurs) + { + this.mittelkurs = mittelkurs; + } + + public String getMittelkurs() + { + return mittelkurs; + } + public void setChatGroupUrl(String chatGroupUrl) + { + this.chatGroupUrl = chatGroupUrl; + } + + public String getChatGroupUrl() + { + return chatGroupUrl; + } + public void setCreatedId(Long createdId) + { + this.createdId = createdId; + } + + public Long getCreatedId() + { + return createdId; + } + public void setDesc(String desc) + { + this.desc = desc; + } + + public String getDesc() + { + return desc; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("isDeleted", getIsDeleted()) + .append("createdTime", getCreatedTime()) + .append("createdBy", getCreatedBy()) + .append("modifiedBy", getModifiedBy()) + .append("lastUpdatedTime", getLastUpdatedTime()) + .append("buildingName", getBuildingName()) + .append("address", getAddress()) + .append("longitude", getLongitude()) + .append("latitude", getLatitude()) + .append("provinceCode", getProvinceCode()) + .append("cityCode", getCityCode()) + .append("countyCode", getCountyCode()) + .append("remark", getRemark()) + .append("cityName", getCityName()) + .append("defaultPicture", getDefaultPicture()) + .append("isSupportlive", getIsSupportlive()) + .append("status", getStatus()) + .append("rejectReason", getRejectReason()) + .append("isOpen", getIsOpen()) + .append("mittelkurs", getMittelkurs()) + .append("chatGroupUrl", getChatGroupUrl()) + .append("createdId", getCreatedId()) + .append("desc", getDesc()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WxBasketballTeamMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WxBasketballTeamMapper.java new file mode 100644 index 00000000..6e5fa771 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WxBasketballTeamMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WxBasketballTeam; + +/** + * 球队管理Mapper接口 + * + * @author ruoyi + * @date 2022-08-30 + */ +public interface WxBasketballTeamMapper +{ + /** + * 查询球队管理 + * + * @param id 球队管理主键 + * @return 球队管理 + */ + public WxBasketballTeam selectWxBasketballTeamById(Long id); + + /** + * 查询球队管理列表 + * + * @param wxBasketballTeam 球队管理 + * @return 球队管理集合 + */ + public List selectWxBasketballTeamList(WxBasketballTeam wxBasketballTeam); + + /** + * 新增球队管理 + * + * @param wxBasketballTeam 球队管理 + * @return 结果 + */ + public int insertWxBasketballTeam(WxBasketballTeam wxBasketballTeam); + + /** + * 修改球队管理 + * + * @param wxBasketballTeam 球队管理 + * @return 结果 + */ + public int updateWxBasketballTeam(WxBasketballTeam wxBasketballTeam); + + /** + * 删除球队管理 + * + * @param id 球队管理主键 + * @return 结果 + */ + public int deleteWxBasketballTeamById(Long id); + + /** + * 批量删除球队管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteWxBasketballTeamByIds(Long[] ids); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WxBuildingInfoMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WxBuildingInfoMapper.java new file mode 100644 index 00000000..92936604 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WxBuildingInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WxBuildingInfo; + +/** + * 球场管理Mapper接口 + * + * @author ruoyi + * @date 2022-08-30 + */ +public interface WxBuildingInfoMapper +{ + /** + * 查询球场管理 + * + * @param id 球场管理主键 + * @return 球场管理 + */ + public WxBuildingInfo selectWxBuildingInfoById(Long id); + + /** + * 查询球场管理列表 + * + * @param wxBuildingInfo 球场管理 + * @return 球场管理集合 + */ + public List selectWxBuildingInfoList(WxBuildingInfo wxBuildingInfo); + + /** + * 新增球场管理 + * + * @param wxBuildingInfo 球场管理 + * @return 结果 + */ + public int insertWxBuildingInfo(WxBuildingInfo wxBuildingInfo); + + /** + * 修改球场管理 + * + * @param wxBuildingInfo 球场管理 + * @return 结果 + */ + public int updateWxBuildingInfo(WxBuildingInfo wxBuildingInfo); + + /** + * 删除球场管理 + * + * @param id 球场管理主键 + * @return 结果 + */ + public int deleteWxBuildingInfoById(Long id); + + /** + * 批量删除球场管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteWxBuildingInfoByIds(Long[] ids); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IWxBasketballTeamService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IWxBasketballTeamService.java new file mode 100644 index 00000000..890e414c --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IWxBasketballTeamService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WxBasketballTeam; + +/** + * 球队管理Service接口 + * + * @author ruoyi + * @date 2022-08-30 + */ +public interface IWxBasketballTeamService +{ + /** + * 查询球队管理 + * + * @param id 球队管理主键 + * @return 球队管理 + */ + public WxBasketballTeam selectWxBasketballTeamById(Long id); + + /** + * 查询球队管理列表 + * + * @param wxBasketballTeam 球队管理 + * @return 球队管理集合 + */ + public List selectWxBasketballTeamList(WxBasketballTeam wxBasketballTeam); + + /** + * 新增球队管理 + * + * @param wxBasketballTeam 球队管理 + * @return 结果 + */ + public int insertWxBasketballTeam(WxBasketballTeam wxBasketballTeam); + + /** + * 修改球队管理 + * + * @param wxBasketballTeam 球队管理 + * @return 结果 + */ + public int updateWxBasketballTeam(WxBasketballTeam wxBasketballTeam); + + /** + * 批量删除球队管理 + * + * @param ids 需要删除的球队管理主键集合 + * @return 结果 + */ + public int deleteWxBasketballTeamByIds(Long[] ids); + + /** + * 删除球队管理信息 + * + * @param id 球队管理主键 + * @return 结果 + */ + public int deleteWxBasketballTeamById(Long id); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IWxBuildingInfoService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IWxBuildingInfoService.java new file mode 100644 index 00000000..8c660724 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IWxBuildingInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WxBuildingInfo; + +/** + * 球场管理Service接口 + * + * @author ruoyi + * @date 2022-08-30 + */ +public interface IWxBuildingInfoService +{ + /** + * 查询球场管理 + * + * @param id 球场管理主键 + * @return 球场管理 + */ + public WxBuildingInfo selectWxBuildingInfoById(Long id); + + /** + * 查询球场管理列表 + * + * @param wxBuildingInfo 球场管理 + * @return 球场管理集合 + */ + public List selectWxBuildingInfoList(WxBuildingInfo wxBuildingInfo); + + /** + * 新增球场管理 + * + * @param wxBuildingInfo 球场管理 + * @return 结果 + */ + public int insertWxBuildingInfo(WxBuildingInfo wxBuildingInfo); + + /** + * 修改球场管理 + * + * @param wxBuildingInfo 球场管理 + * @return 结果 + */ + public int updateWxBuildingInfo(WxBuildingInfo wxBuildingInfo); + + /** + * 批量删除球场管理 + * + * @param ids 需要删除的球场管理主键集合 + * @return 结果 + */ + public int deleteWxBuildingInfoByIds(Long[] ids); + + /** + * 删除球场管理信息 + * + * @param id 球场管理主键 + * @return 结果 + */ + public int deleteWxBuildingInfoById(Long id); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxBasketballTeamServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxBasketballTeamServiceImpl.java new file mode 100644 index 00000000..3da3db54 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxBasketballTeamServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WxBasketballTeamMapper; +import com.ruoyi.system.domain.WxBasketballTeam; +import com.ruoyi.system.service.IWxBasketballTeamService; + +/** + * 球队管理Service业务层处理 + * + * @author ruoyi + * @date 2022-08-30 + */ +@Service +public class WxBasketballTeamServiceImpl implements IWxBasketballTeamService +{ + @Autowired + private WxBasketballTeamMapper wxBasketballTeamMapper; + + /** + * 查询球队管理 + * + * @param id 球队管理主键 + * @return 球队管理 + */ + @Override + public WxBasketballTeam selectWxBasketballTeamById(Long id) + { + return wxBasketballTeamMapper.selectWxBasketballTeamById(id); + } + + /** + * 查询球队管理列表 + * + * @param wxBasketballTeam 球队管理 + * @return 球队管理 + */ + @Override + public List selectWxBasketballTeamList(WxBasketballTeam wxBasketballTeam) + { + return wxBasketballTeamMapper.selectWxBasketballTeamList(wxBasketballTeam); + } + + /** + * 新增球队管理 + * + * @param wxBasketballTeam 球队管理 + * @return 结果 + */ + @Override + public int insertWxBasketballTeam(WxBasketballTeam wxBasketballTeam) + { + return wxBasketballTeamMapper.insertWxBasketballTeam(wxBasketballTeam); + } + + /** + * 修改球队管理 + * + * @param wxBasketballTeam 球队管理 + * @return 结果 + */ + @Override + public int updateWxBasketballTeam(WxBasketballTeam wxBasketballTeam) + { + return wxBasketballTeamMapper.updateWxBasketballTeam(wxBasketballTeam); + } + + /** + * 批量删除球队管理 + * + * @param ids 需要删除的球队管理主键 + * @return 结果 + */ + @Override + public int deleteWxBasketballTeamByIds(Long[] ids) + { + return wxBasketballTeamMapper.deleteWxBasketballTeamByIds(ids); + } + + /** + * 删除球队管理信息 + * + * @param id 球队管理主键 + * @return 结果 + */ + @Override + public int deleteWxBasketballTeamById(Long id) + { + return wxBasketballTeamMapper.deleteWxBasketballTeamById(id); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxBuildingInfoServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxBuildingInfoServiceImpl.java new file mode 100644 index 00000000..465b836a --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxBuildingInfoServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WxBuildingInfoMapper; +import com.ruoyi.system.domain.WxBuildingInfo; +import com.ruoyi.system.service.IWxBuildingInfoService; + +/** + * 球场管理Service业务层处理 + * + * @author ruoyi + * @date 2022-08-30 + */ +@Service +public class WxBuildingInfoServiceImpl implements IWxBuildingInfoService +{ + @Autowired + private WxBuildingInfoMapper wxBuildingInfoMapper; + + /** + * 查询球场管理 + * + * @param id 球场管理主键 + * @return 球场管理 + */ + @Override + public WxBuildingInfo selectWxBuildingInfoById(Long id) + { + return wxBuildingInfoMapper.selectWxBuildingInfoById(id); + } + + /** + * 查询球场管理列表 + * + * @param wxBuildingInfo 球场管理 + * @return 球场管理 + */ + @Override + public List selectWxBuildingInfoList(WxBuildingInfo wxBuildingInfo) + { + return wxBuildingInfoMapper.selectWxBuildingInfoList(wxBuildingInfo); + } + + /** + * 新增球场管理 + * + * @param wxBuildingInfo 球场管理 + * @return 结果 + */ + @Override + public int insertWxBuildingInfo(WxBuildingInfo wxBuildingInfo) + { + return wxBuildingInfoMapper.insertWxBuildingInfo(wxBuildingInfo); + } + + /** + * 修改球场管理 + * + * @param wxBuildingInfo 球场管理 + * @return 结果 + */ + @Override + public int updateWxBuildingInfo(WxBuildingInfo wxBuildingInfo) + { + return wxBuildingInfoMapper.updateWxBuildingInfo(wxBuildingInfo); + } + + /** + * 批量删除球场管理 + * + * @param ids 需要删除的球场管理主键 + * @return 结果 + */ + @Override + public int deleteWxBuildingInfoByIds(Long[] ids) + { + return wxBuildingInfoMapper.deleteWxBuildingInfoByIds(ids); + } + + /** + * 删除球场管理信息 + * + * @param id 球场管理主键 + * @return 结果 + */ + @Override + public int deleteWxBuildingInfoById(Long id) + { + return wxBuildingInfoMapper.deleteWxBuildingInfoById(id); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WxBasketballTeamMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WxBasketballTeamMapper.xml new file mode 100644 index 00000000..c4de9398 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WxBasketballTeamMapper.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + select ID, IS_DELETED, CREATED_TIME, CREATED_BY, MODIFIED_BY, LAST_UPDATED_TIME, TEAM_NAME, TEAM_DES, REMARK, BUILD_ID, DEFAULT_PICTURE, BUILDING_NAME, CREATED_ID, CONTACT_TEL, team_logo from basketball_team + + + + + + + + insert into basketball_team + + IS_DELETED, + CREATED_TIME, + CREATED_BY, + MODIFIED_BY, + LAST_UPDATED_TIME, + TEAM_NAME, + TEAM_DES, + REMARK, + BUILD_ID, + DEFAULT_PICTURE, + BUILDING_NAME, + CREATED_ID, + CONTACT_TEL, + team_logo, + + + #{isDeleted}, + #{createdTime}, + #{createdBy}, + #{modifiedBy}, + #{lastUpdatedTime}, + #{teamName}, + #{teamDes}, + #{remark}, + #{buildId}, + #{defaultPicture}, + #{buildingName}, + #{createdId}, + #{contactTel}, + #{teamLogo}, + + + + + update basketball_team + + IS_DELETED = #{isDeleted}, + CREATED_TIME = #{createdTime}, + CREATED_BY = #{createdBy}, + MODIFIED_BY = #{modifiedBy}, + LAST_UPDATED_TIME = #{lastUpdatedTime}, + TEAM_NAME = #{teamName}, + TEAM_DES = #{teamDes}, + REMARK = #{remark}, + BUILD_ID = #{buildId}, + DEFAULT_PICTURE = #{defaultPicture}, + BUILDING_NAME = #{buildingName}, + CREATED_ID = #{createdId}, + CONTACT_TEL = #{contactTel}, + team_logo = #{teamLogo}, + + where ID = #{id} + + + + delete from basketball_team where ID = #{id} + + + + delete from basketball_team where ID in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WxBuildingInfoMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WxBuildingInfoMapper.xml new file mode 100644 index 00000000..ec52a449 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WxBuildingInfoMapper.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select ID, IS_DELETED, CREATED_TIME, CREATED_BY, MODIFIED_BY, LAST_UPDATED_TIME, BUILDING_NAME, ADDRESS, LONGITUDE, LATITUDE, PROVINCE_CODE, CITY_CODE, COUNTY_CODE, REMARK, CITY_NAME, DEFAULT_PICTURE, IS_SUPPORTLIVE, STATUS, REJECT_REASON, IS_OPEN, MITTELKURS, CHAT_GROUP_URL, CREATED_ID from building_info + + + + + + + + insert into building_info + + IS_DELETED, + CREATED_TIME, + CREATED_BY, + MODIFIED_BY, + LAST_UPDATED_TIME, + BUILDING_NAME, + ADDRESS, + LONGITUDE, + LATITUDE, + PROVINCE_CODE, + CITY_CODE, + COUNTY_CODE, + REMARK, + CITY_NAME, + DEFAULT_PICTURE, + IS_SUPPORTLIVE, + STATUS, + REJECT_REASON, + IS_OPEN, + MITTELKURS, + CHAT_GROUP_URL, + CREATED_ID, + desc, + + + #{isDeleted}, + #{createdTime}, + #{createdBy}, + #{modifiedBy}, + #{lastUpdatedTime}, + #{buildingName}, + #{address}, + #{longitude}, + #{latitude}, + #{provinceCode}, + #{cityCode}, + #{countyCode}, + #{remark}, + #{cityName}, + #{defaultPicture}, + #{isSupportlive}, + #{status}, + #{rejectReason}, + #{isOpen}, + #{mittelkurs}, + #{chatGroupUrl}, + #{createdId}, + #{desc}, + + + + + update building_info + + IS_DELETED = #{isDeleted}, + CREATED_TIME = #{createdTime}, + CREATED_BY = #{createdBy}, + MODIFIED_BY = #{modifiedBy}, + LAST_UPDATED_TIME = #{lastUpdatedTime}, + BUILDING_NAME = #{buildingName}, + ADDRESS = #{address}, + LONGITUDE = #{longitude}, + LATITUDE = #{latitude}, + PROVINCE_CODE = #{provinceCode}, + CITY_CODE = #{cityCode}, + COUNTY_CODE = #{countyCode}, + REMARK = #{remark}, + CITY_NAME = #{cityName}, + DEFAULT_PICTURE = #{defaultPicture}, + IS_SUPPORTLIVE = #{isSupportlive}, + STATUS = #{status}, + REJECT_REASON = #{rejectReason}, + IS_OPEN = #{isOpen}, + MITTELKURS = #{mittelkurs}, + CHAT_GROUP_URL = #{chatGroupUrl}, + CREATED_ID = #{createdId}, + desc = #{desc}, + + where ID = #{id} + + + + delete from building_info where ID = #{id} + + + + delete from building_info where ID in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-ui/src/api/system/WxBuilding.js b/ruoyi-ui/src/api/system/WxBuilding.js new file mode 100644 index 00000000..29c1e3fe --- /dev/null +++ b/ruoyi-ui/src/api/system/WxBuilding.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询球场管理列表 +export function listWxBuilding(query) { + return request({ + url: '/system/WxBuilding/list', + method: 'get', + params: query + }) +} + +// 查询球场管理详细 +export function getWxBuilding(id) { + return request({ + url: '/system/WxBuilding/' + id, + method: 'get' + }) +} + +// 新增球场管理 +export function addWxBuilding(data) { + return request({ + url: '/system/WxBuilding', + method: 'post', + data: data + }) +} + +// 修改球场管理 +export function updateWxBuilding(data) { + return request({ + url: '/system/WxBuilding', + method: 'put', + data: data + }) +} + +// 删除球场管理 +export function delWxBuilding(id) { + return request({ + url: '/system/WxBuilding/' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/api/system/basketBallTeam.js b/ruoyi-ui/src/api/system/basketBallTeam.js new file mode 100644 index 00000000..7dccfacb --- /dev/null +++ b/ruoyi-ui/src/api/system/basketBallTeam.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询球队管理列表 +export function listBasketBallTeam(query) { + return request({ + url: '/system/basketBallTeam/list', + method: 'get', + params: query + }) +} + +// 查询球队管理详细 +export function getBasketBallTeam(id) { + return request({ + url: '/system/basketBallTeam/' + id, + method: 'get' + }) +} + +// 新增球队管理 +export function addBasketBallTeam(data) { + return request({ + url: '/system/basketBallTeam', + method: 'post', + data: data + }) +} + +// 修改球队管理 +export function updateBasketBallTeam(data) { + return request({ + url: '/system/basketBallTeam', + method: 'put', + data: data + }) +} + +// 删除球队管理 +export function delBasketBallTeam(id) { + return request({ + url: '/system/basketBallTeam/' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/system/WxBuilding/index.vue b/ruoyi-ui/src/views/system/WxBuilding/index.vue new file mode 100644 index 00000000..a3d330de --- /dev/null +++ b/ruoyi-ui/src/views/system/WxBuilding/index.vue @@ -0,0 +1,472 @@ + + + diff --git a/ruoyi-ui/src/views/system/basketBallTeam/index.vue b/ruoyi-ui/src/views/system/basketBallTeam/index.vue new file mode 100644 index 00000000..89ca900e --- /dev/null +++ b/ruoyi-ui/src/views/system/basketBallTeam/index.vue @@ -0,0 +1,340 @@ + + + diff --git a/ruoyi-ui/src/views/system/wxUser/index.vue b/ruoyi-ui/src/views/system/wxUser/index.vue index bf42793e..4f4decc4 100644 --- a/ruoyi-ui/src/views/system/wxUser/index.vue +++ b/ruoyi-ui/src/views/system/wxUser/index.vue @@ -77,10 +77,10 @@ {{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }} - - + + - +