parent
d7ce9bbbb8
commit
13918cf0fb
@ -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<WxBasketballTeam> 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<WxBasketballTeam> list = wxBasketballTeamService.selectWxBasketballTeamList(wxBasketballTeam);
|
||||
ExcelUtil<WxBasketballTeam> util = new ExcelUtil<WxBasketballTeam>(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));
|
||||
}
|
||||
}
|
@ -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<WxBuildingInfo> 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<WxBuildingInfo> list = wxBuildingInfoService.selectWxBuildingInfoList(wxBuildingInfo);
|
||||
ExcelUtil<WxBuildingInfo> util = new ExcelUtil<WxBuildingInfo>(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));
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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<WxBasketballTeam> 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);
|
||||
}
|
@ -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<WxBuildingInfo> 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);
|
||||
}
|
@ -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<WxBasketballTeam> 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);
|
||||
}
|
@ -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<WxBuildingInfo> 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);
|
||||
}
|
@ -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<WxBasketballTeam> 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);
|
||||
}
|
||||
}
|
@ -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<WxBuildingInfo> 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);
|
||||
}
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.WxBasketballTeamMapper">
|
||||
|
||||
<resultMap type="WxBasketballTeam" id="WxBasketballTeamResult">
|
||||
<result property="id" column="ID" />
|
||||
<result property="isDeleted" column="IS_DELETED" />
|
||||
<result property="createdTime" column="CREATED_TIME" />
|
||||
<result property="createdBy" column="CREATED_BY" />
|
||||
<result property="modifiedBy" column="MODIFIED_BY" />
|
||||
<result property="lastUpdatedTime" column="LAST_UPDATED_TIME" />
|
||||
<result property="teamName" column="TEAM_NAME" />
|
||||
<result property="teamDes" column="TEAM_DES" />
|
||||
<result property="remark" column="REMARK" />
|
||||
<result property="buildId" column="BUILD_ID" />
|
||||
<result property="defaultPicture" column="DEFAULT_PICTURE" />
|
||||
<result property="buildingName" column="BUILDING_NAME" />
|
||||
<result property="createdId" column="CREATED_ID" />
|
||||
<result property="contactTel" column="CONTACT_TEL" />
|
||||
<result property="teamLogo" column="team_logo" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWxBasketballTeamVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectWxBasketballTeamList" parameterType="WxBasketballTeam" resultMap="WxBasketballTeamResult">
|
||||
<include refid="selectWxBasketballTeamVo"/>
|
||||
<where>
|
||||
<if test="teamName != null and teamName != ''"> and TEAM_NAME like concat('%', #{teamName}, '%')</if>
|
||||
<if test="teamDes != null and teamDes != ''"> and TEAM_DES = #{teamDes}</if>
|
||||
<if test="buildId != null "> and BUILD_ID = #{buildId}</if>
|
||||
<if test="createdId != null "> and CREATED_ID = #{createdId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWxBasketballTeamById" parameterType="Long" resultMap="WxBasketballTeamResult">
|
||||
<include refid="selectWxBasketballTeamVo"/>
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWxBasketballTeam" parameterType="WxBasketballTeam" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into basketball_team
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="isDeleted != null">IS_DELETED,</if>
|
||||
<if test="createdTime != null">CREATED_TIME,</if>
|
||||
<if test="createdBy != null">CREATED_BY,</if>
|
||||
<if test="modifiedBy != null">MODIFIED_BY,</if>
|
||||
<if test="lastUpdatedTime != null">LAST_UPDATED_TIME,</if>
|
||||
<if test="teamName != null">TEAM_NAME,</if>
|
||||
<if test="teamDes != null">TEAM_DES,</if>
|
||||
<if test="remark != null">REMARK,</if>
|
||||
<if test="buildId != null">BUILD_ID,</if>
|
||||
<if test="defaultPicture != null">DEFAULT_PICTURE,</if>
|
||||
<if test="buildingName != null">BUILDING_NAME,</if>
|
||||
<if test="createdId != null">CREATED_ID,</if>
|
||||
<if test="contactTel != null">CONTACT_TEL,</if>
|
||||
<if test="teamLogo != null">team_logo,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="teamDes != null">#{teamDes},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="buildId != null">#{buildId},</if>
|
||||
<if test="defaultPicture != null">#{defaultPicture},</if>
|
||||
<if test="buildingName != null">#{buildingName},</if>
|
||||
<if test="createdId != null">#{createdId},</if>
|
||||
<if test="contactTel != null">#{contactTel},</if>
|
||||
<if test="teamLogo != null">#{teamLogo},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWxBasketballTeam" parameterType="WxBasketballTeam">
|
||||
update basketball_team
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="isDeleted != null">IS_DELETED = #{isDeleted},</if>
|
||||
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if>
|
||||
<if test="createdBy != null">CREATED_BY = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">MODIFIED_BY = #{modifiedBy},</if>
|
||||
<if test="lastUpdatedTime != null">LAST_UPDATED_TIME = #{lastUpdatedTime},</if>
|
||||
<if test="teamName != null">TEAM_NAME = #{teamName},</if>
|
||||
<if test="teamDes != null">TEAM_DES = #{teamDes},</if>
|
||||
<if test="remark != null">REMARK = #{remark},</if>
|
||||
<if test="buildId != null">BUILD_ID = #{buildId},</if>
|
||||
<if test="defaultPicture != null">DEFAULT_PICTURE = #{defaultPicture},</if>
|
||||
<if test="buildingName != null">BUILDING_NAME = #{buildingName},</if>
|
||||
<if test="createdId != null">CREATED_ID = #{createdId},</if>
|
||||
<if test="contactTel != null">CONTACT_TEL = #{contactTel},</if>
|
||||
<if test="teamLogo != null">team_logo = #{teamLogo},</if>
|
||||
</trim>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWxBasketballTeamById" parameterType="Long">
|
||||
delete from basketball_team where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWxBasketballTeamByIds" parameterType="String">
|
||||
delete from basketball_team where ID in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,158 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.WxBuildingInfoMapper">
|
||||
|
||||
<resultMap type="WxBuildingInfo" id="WxBuildingInfoResult">
|
||||
<result property="id" column="ID" />
|
||||
<result property="isDeleted" column="IS_DELETED" />
|
||||
<result property="createdTime" column="CREATED_TIME" />
|
||||
<result property="createdBy" column="CREATED_BY" />
|
||||
<result property="modifiedBy" column="MODIFIED_BY" />
|
||||
<result property="lastUpdatedTime" column="LAST_UPDATED_TIME" />
|
||||
<result property="buildingName" column="BUILDING_NAME" />
|
||||
<result property="address" column="ADDRESS" />
|
||||
<result property="longitude" column="LONGITUDE" />
|
||||
<result property="latitude" column="LATITUDE" />
|
||||
<result property="provinceCode" column="PROVINCE_CODE" />
|
||||
<result property="cityCode" column="CITY_CODE" />
|
||||
<result property="countyCode" column="COUNTY_CODE" />
|
||||
<result property="remark" column="REMARK" />
|
||||
<result property="cityName" column="CITY_NAME" />
|
||||
<result property="defaultPicture" column="DEFAULT_PICTURE" />
|
||||
<result property="isSupportlive" column="IS_SUPPORTLIVE" />
|
||||
<result property="status" column="STATUS" />
|
||||
<result property="rejectReason" column="REJECT_REASON" />
|
||||
<result property="isOpen" column="IS_OPEN" />
|
||||
<result property="mittelkurs" column="MITTELKURS" />
|
||||
<result property="chatGroupUrl" column="CHAT_GROUP_URL" />
|
||||
<result property="createdId" column="CREATED_ID" />
|
||||
<result property="desc" column="desc" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWxBuildingInfoVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectWxBuildingInfoList" parameterType="WxBuildingInfo" resultMap="WxBuildingInfoResult">
|
||||
<include refid="selectWxBuildingInfoVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and ID = #{id}</if>
|
||||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
|
||||
<if test="buildingName != null and buildingName != ''"> and BUILDING_NAME like concat('%', #{buildingName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and ADDRESS like concat('%', #{address}, '%')</if>
|
||||
<if test="longitude != null "> and LONGITUDE = #{longitude}</if>
|
||||
<if test="latitude != null "> and LATITUDE = #{latitude}</if>
|
||||
<if test="provinceCode != null and provinceCode != ''"> and PROVINCE_CODE = #{provinceCode}</if>
|
||||
<if test="cityCode != null and cityCode != ''"> and CITY_CODE = #{cityCode}</if>
|
||||
<if test="countyCode != null and countyCode != ''"> and COUNTY_CODE = #{countyCode}</if>
|
||||
<if test="remark != null and remark != ''"> and REMARK = #{remark}</if>
|
||||
<if test="cityName != null and cityName != ''"> and CITY_NAME like concat('%', #{cityName}, '%')</if>
|
||||
<if test="status != null "> and STATUS = #{status}</if>
|
||||
<if test="isOpen != null "> and IS_OPEN = #{isOpen}</if>
|
||||
<if test="createdId != null "> and CREATED_ID = #{createdId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWxBuildingInfoById" parameterType="Long" resultMap="WxBuildingInfoResult">
|
||||
<include refid="selectWxBuildingInfoVo"/>
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWxBuildingInfo" parameterType="WxBuildingInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into building_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="isDeleted != null">IS_DELETED,</if>
|
||||
<if test="createdTime != null">CREATED_TIME,</if>
|
||||
<if test="createdBy != null">CREATED_BY,</if>
|
||||
<if test="modifiedBy != null">MODIFIED_BY,</if>
|
||||
<if test="lastUpdatedTime != null">LAST_UPDATED_TIME,</if>
|
||||
<if test="buildingName != null">BUILDING_NAME,</if>
|
||||
<if test="address != null">ADDRESS,</if>
|
||||
<if test="longitude != null">LONGITUDE,</if>
|
||||
<if test="latitude != null">LATITUDE,</if>
|
||||
<if test="provinceCode != null">PROVINCE_CODE,</if>
|
||||
<if test="cityCode != null">CITY_CODE,</if>
|
||||
<if test="countyCode != null">COUNTY_CODE,</if>
|
||||
<if test="remark != null">REMARK,</if>
|
||||
<if test="cityName != null">CITY_NAME,</if>
|
||||
<if test="defaultPicture != null">DEFAULT_PICTURE,</if>
|
||||
<if test="isSupportlive != null">IS_SUPPORTLIVE,</if>
|
||||
<if test="status != null">STATUS,</if>
|
||||
<if test="rejectReason != null">REJECT_REASON,</if>
|
||||
<if test="isOpen != null">IS_OPEN,</if>
|
||||
<if test="mittelkurs != null">MITTELKURS,</if>
|
||||
<if test="chatGroupUrl != null">CHAT_GROUP_URL,</if>
|
||||
<if test="createdId != null">CREATED_ID,</if>
|
||||
<if test="desc != null">desc,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="buildingName != null">#{buildingName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="longitude != null">#{longitude},</if>
|
||||
<if test="latitude != null">#{latitude},</if>
|
||||
<if test="provinceCode != null">#{provinceCode},</if>
|
||||
<if test="cityCode != null">#{cityCode},</if>
|
||||
<if test="countyCode != null">#{countyCode},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="cityName != null">#{cityName},</if>
|
||||
<if test="defaultPicture != null">#{defaultPicture},</if>
|
||||
<if test="isSupportlive != null">#{isSupportlive},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="rejectReason != null">#{rejectReason},</if>
|
||||
<if test="isOpen != null">#{isOpen},</if>
|
||||
<if test="mittelkurs != null">#{mittelkurs},</if>
|
||||
<if test="chatGroupUrl != null">#{chatGroupUrl},</if>
|
||||
<if test="createdId != null">#{createdId},</if>
|
||||
<if test="desc != null">#{desc},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWxBuildingInfo" parameterType="WxBuildingInfo">
|
||||
update building_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="isDeleted != null">IS_DELETED = #{isDeleted},</if>
|
||||
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if>
|
||||
<if test="createdBy != null">CREATED_BY = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">MODIFIED_BY = #{modifiedBy},</if>
|
||||
<if test="lastUpdatedTime != null">LAST_UPDATED_TIME = #{lastUpdatedTime},</if>
|
||||
<if test="buildingName != null">BUILDING_NAME = #{buildingName},</if>
|
||||
<if test="address != null">ADDRESS = #{address},</if>
|
||||
<if test="longitude != null">LONGITUDE = #{longitude},</if>
|
||||
<if test="latitude != null">LATITUDE = #{latitude},</if>
|
||||
<if test="provinceCode != null">PROVINCE_CODE = #{provinceCode},</if>
|
||||
<if test="cityCode != null">CITY_CODE = #{cityCode},</if>
|
||||
<if test="countyCode != null">COUNTY_CODE = #{countyCode},</if>
|
||||
<if test="remark != null">REMARK = #{remark},</if>
|
||||
<if test="cityName != null">CITY_NAME = #{cityName},</if>
|
||||
<if test="defaultPicture != null">DEFAULT_PICTURE = #{defaultPicture},</if>
|
||||
<if test="isSupportlive != null">IS_SUPPORTLIVE = #{isSupportlive},</if>
|
||||
<if test="status != null">STATUS = #{status},</if>
|
||||
<if test="rejectReason != null">REJECT_REASON = #{rejectReason},</if>
|
||||
<if test="isOpen != null">IS_OPEN = #{isOpen},</if>
|
||||
<if test="mittelkurs != null">MITTELKURS = #{mittelkurs},</if>
|
||||
<if test="chatGroupUrl != null">CHAT_GROUP_URL = #{chatGroupUrl},</if>
|
||||
<if test="createdId != null">CREATED_ID = #{createdId},</if>
|
||||
<if test="desc != null">desc = #{desc},</if>
|
||||
</trim>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWxBuildingInfoById" parameterType="Long">
|
||||
delete from building_info where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWxBuildingInfoByIds" parameterType="String">
|
||||
delete from building_info where ID in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -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'
|
||||
})
|
||||
}
|
@ -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'
|
||||
})
|
||||
}
|
@ -0,0 +1,472 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="ID" prop="id">
|
||||
<el-input
|
||||
v-model="queryParams.id"
|
||||
placeholder="请输入ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input
|
||||
v-model="queryParams.createdBy"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="buildingName">
|
||||
<el-input
|
||||
v-model="queryParams.buildingName"
|
||||
placeholder="请输入名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="地址" prop="address">
|
||||
<el-input
|
||||
v-model="queryParams.address"
|
||||
placeholder="请输入地址"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="经度" prop="longitude">
|
||||
<el-input
|
||||
v-model="queryParams.longitude"
|
||||
placeholder="请输入经度"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="纬度" prop="latitude">
|
||||
<el-input
|
||||
v-model="queryParams.latitude"
|
||||
placeholder="请输入纬度"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="省" prop="provinceCode">
|
||||
<el-input
|
||||
v-model="queryParams.provinceCode"
|
||||
placeholder="请输入省"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="市" prop="cityCode">
|
||||
<el-input
|
||||
v-model="queryParams.cityCode"
|
||||
placeholder="请输入市"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="区县编码" prop="countyCode">
|
||||
<el-input
|
||||
v-model="queryParams.countyCode"
|
||||
placeholder="请输入区县编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="城市" prop="cityName">
|
||||
<el-input
|
||||
v-model="queryParams.cityName"
|
||||
placeholder="请输入城市"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否开放" prop="isOpen">
|
||||
<el-input
|
||||
v-model="queryParams.isOpen"
|
||||
placeholder="请输入是否开放"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人ID" prop="createdId">
|
||||
<el-input
|
||||
v-model="queryParams.createdId"
|
||||
placeholder="请输入创建人ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:WxBuilding:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:WxBuilding:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:WxBuilding:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:WxBuilding:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="WxBuildingList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="ID" align="center" prop="id" />
|
||||
<el-table-column label="创建时间" align="center" prop="createdTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" align="center" prop="createdBy" />
|
||||
<el-table-column label="名称" align="center" prop="buildingName" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="经度" align="center" prop="longitude" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="纬度" align="center" prop="latitude" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="省" align="center" prop="provinceCode" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="市" align="center" prop="cityCode" />
|
||||
<el-table-column label="区县编码" align="center" prop="countyCode" />
|
||||
<el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="城市" align="center" prop="cityName" />
|
||||
<el-table-column label="默认图片" show-overflow-tooltip="true" align="center" prop="defaultPicture" />
|
||||
<el-table-column label="是否支持在线" align="center" prop="isSupportlive" />
|
||||
<el-table-column label="球馆状态" align="center" prop="status" />
|
||||
<el-table-column label="拒绝原因" align="center" prop="rejectReason" />
|
||||
<el-table-column label="是否开放" align="center" prop="isOpen" />
|
||||
<el-table-column label="人均价格" align="center" prop="mittelkurs" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="微信管理员二维码" align="center" prop="chatGroupUrl" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="创建人ID" align="center" prop="createdId" />
|
||||
<el-table-column label="描述" align="center" prop="desc" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:WxBuilding:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:WxBuilding:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改球场管理对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="删除" prop="isDeleted">
|
||||
<el-input v-model="form.isDeleted" placeholder="请输入删除" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input v-model="form.createdBy" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="更新人" prop="modifiedBy">
|
||||
<el-input v-model="form.modifiedBy" placeholder="请输入更新人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="更新时间" prop="lastUpdatedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.lastUpdatedTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择更新时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="buildingName">
|
||||
<el-input v-model="form.buildingName" placeholder="请输入名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="地址" prop="address">
|
||||
<el-input v-model="form.address" placeholder="请输入地址" />
|
||||
</el-form-item>
|
||||
<el-form-item label="经度" prop="longitude">
|
||||
<el-input v-model="form.longitude" placeholder="请输入经度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="纬度" prop="latitude">
|
||||
<el-input v-model="form.latitude" placeholder="请输入纬度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="省" prop="provinceCode">
|
||||
<el-input v-model="form.provinceCode" placeholder="请输入省" />
|
||||
</el-form-item>
|
||||
<el-form-item label="市" prop="cityCode">
|
||||
<el-input v-model="form.cityCode" placeholder="请输入市" />
|
||||
</el-form-item>
|
||||
<el-form-item label="区县编码" prop="countyCode">
|
||||
<el-input v-model="form.countyCode" placeholder="请输入区县编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="城市" prop="cityName">
|
||||
<el-input v-model="form.cityName" placeholder="请输入城市" />
|
||||
</el-form-item>
|
||||
<el-form-item label="默认图片" prop="defaultPicture">
|
||||
<el-input v-model="form.defaultPicture" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否支持在线" prop="isSupportlive">
|
||||
<el-input v-model="form.isSupportlive" placeholder="请输入是否支持在线" />
|
||||
</el-form-item>
|
||||
<el-form-item label="拒绝原因" prop="rejectReason">
|
||||
<el-input v-model="form.rejectReason" placeholder="请输入拒绝原因" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否开放" prop="isOpen">
|
||||
<el-input v-model="form.isOpen" placeholder="请输入是否开放" />
|
||||
</el-form-item>
|
||||
<el-form-item label="人均价格" prop="mittelkurs">
|
||||
<el-input v-model="form.mittelkurs" placeholder="请输入人均价格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="微信管理员二维码路径" prop="chatGroupUrl">
|
||||
<el-input v-model="form.chatGroupUrl" placeholder="请输入微信管理员二维码路径" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人ID" prop="createdId">
|
||||
<el-input v-model="form.createdId" placeholder="请输入创建人ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="描述" prop="desc">
|
||||
<el-input v-model="form.desc" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWxBuilding, getWxBuilding, delWxBuilding, addWxBuilding, updateWxBuilding } from "@/api/system/WxBuilding";
|
||||
|
||||
export default {
|
||||
name: "WxBuilding",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 球场管理表格数据
|
||||
WxBuildingList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
id: null,
|
||||
createdTime: null,
|
||||
createdBy: null,
|
||||
buildingName: null,
|
||||
address: null,
|
||||
longitude: null,
|
||||
latitude: null,
|
||||
provinceCode: null,
|
||||
cityCode: null,
|
||||
countyCode: null,
|
||||
remark: null,
|
||||
cityName: null,
|
||||
status: null,
|
||||
isOpen: null,
|
||||
createdId: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询球场管理列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listWxBuilding(this.queryParams).then(response => {
|
||||
this.WxBuildingList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
isDeleted: null,
|
||||
createdTime: null,
|
||||
createdBy: null,
|
||||
modifiedBy: null,
|
||||
lastUpdatedTime: null,
|
||||
buildingName: null,
|
||||
address: null,
|
||||
longitude: null,
|
||||
latitude: null,
|
||||
provinceCode: null,
|
||||
cityCode: null,
|
||||
countyCode: null,
|
||||
remark: null,
|
||||
cityName: null,
|
||||
defaultPicture: null,
|
||||
isSupportlive: null,
|
||||
status: 0,
|
||||
rejectReason: null,
|
||||
isOpen: null,
|
||||
mittelkurs: null,
|
||||
chatGroupUrl: null,
|
||||
createdId: null,
|
||||
desc: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加球场管理";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getWxBuilding(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改球场管理";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateWxBuilding(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addWxBuilding(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除球场管理编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delWxBuilding(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/WxBuilding/export', {
|
||||
...this.queryParams
|
||||
}, `WxBuilding_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -0,0 +1,340 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="球队名称" prop="teamName">
|
||||
<el-input
|
||||
v-model="queryParams.teamName"
|
||||
placeholder="请输入球队名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="球馆id" prop="buildId">
|
||||
<el-input
|
||||
v-model="queryParams.buildId"
|
||||
placeholder="请输入球馆id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人ID" prop="createdId">
|
||||
<el-input
|
||||
v-model="queryParams.createdId"
|
||||
placeholder="请输入创建人ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:basketBallTeam:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:basketBallTeam:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:basketBallTeam:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:basketBallTeam:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="basketBallTeamList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="ID" align="center" prop="id" />
|
||||
<el-table-column label="创建时间" align="center" prop="createdTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" align="center" show-overflow-tooltip="true" prop="createdBy" />
|
||||
<el-table-column label="球队名称" align="center" prop="teamName" />
|
||||
<el-table-column label="球队简介" align="center" show-overflow-tooltip="true" prop="teamDes" />
|
||||
<el-table-column label="球馆id" align="center" prop="buildId" />
|
||||
<el-table-column label="球馆名称" show-overflow-tooltip="true" align="center" prop="buildingName" />
|
||||
<el-table-column label="创建人ID" align="center" prop="createdId" />
|
||||
<el-table-column label="球队联系人电话" align="center" prop="contactTel" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:basketBallTeam:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:basketBallTeam:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改球队管理对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="删除" prop="isDeleted">
|
||||
<el-input v-model="form.isDeleted" placeholder="请输入删除" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input v-model="form.createdBy" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="更新人" prop="modifiedBy">
|
||||
<el-input v-model="form.modifiedBy" placeholder="请输入更新人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="更新时间" prop="lastUpdatedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.lastUpdatedTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择更新时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="球队名称" prop="teamName">
|
||||
<el-input v-model="form.teamName" placeholder="请输入球队名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队简介" prop="teamDes">
|
||||
<el-input v-model="form.teamDes" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球馆id" prop="buildId">
|
||||
<el-input v-model="form.buildId" placeholder="请输入球馆id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队图片" prop="defaultPicture">
|
||||
<el-input v-model="form.defaultPicture" placeholder="请输入球队图片" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球馆名称" prop="buildingName">
|
||||
<el-input v-model="form.buildingName" placeholder="请输入球馆名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人ID" prop="createdId">
|
||||
<el-input v-model="form.createdId" placeholder="请输入创建人ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队联系人电话" prop="contactTel">
|
||||
<el-input v-model="form.contactTel" placeholder="请输入球队联系人电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队logo" prop="teamLogo">
|
||||
<el-input v-model="form.teamLogo" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBasketBallTeam, getBasketBallTeam, delBasketBallTeam, addBasketBallTeam, updateBasketBallTeam } from "@/api/system/basketBallTeam";
|
||||
|
||||
export default {
|
||||
name: "BasketBallTeam",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 球队管理表格数据
|
||||
basketBallTeamList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
teamName: null,
|
||||
teamDes: null,
|
||||
buildId: null,
|
||||
createdId: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
createdId: [
|
||||
{ required: true, message: "创建人ID不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询球队管理列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listBasketBallTeam(this.queryParams).then(response => {
|
||||
this.basketBallTeamList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
isDeleted: null,
|
||||
createdTime: null,
|
||||
createdBy: null,
|
||||
modifiedBy: null,
|
||||
lastUpdatedTime: null,
|
||||
teamName: null,
|
||||
teamDes: null,
|
||||
remark: null,
|
||||
buildId: null,
|
||||
defaultPicture: null,
|
||||
buildingName: null,
|
||||
createdId: null,
|
||||
contactTel: null,
|
||||
teamLogo: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加球队管理";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getBasketBallTeam(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改球队管理";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateBasketBallTeam(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addBasketBallTeam(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除球队管理编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delBasketBallTeam(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/basketBallTeam/export', {
|
||||
...this.queryParams
|
||||
}, `basketBallTeam_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue