mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
新增查询微信球场,球队
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user