太仓综治接口新增

dongdingding
董丁丁 2 years ago
parent 82e896825a
commit 693ddc30f1

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
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.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.zongzhi.domain.TcBjsj;
import com.ruoyi.zongzhi.service.ITcBjsjService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* ()Controller
*
* @author ruoyi
* @date 2023-08-28
*/
@RestController
@RequestMapping("/zongzhi/bjsj")
@Api(tags = " 本级上级网评指令比列 (月)")
public class TcBjsjController extends BaseController
{
@Autowired
private ITcBjsjService tcBjsjService;
/**
* ()
*/
@PreAuthorize("@ss.hasPermi('zongzhi:bjsj:list')")
@GetMapping("/list")
public TableDataInfo list(TcBjsj tcBjsj)
{
startPage();
List<TcBjsj> list = tcBjsjService.selectTcBjsjList(tcBjsj);
return getDataTable(list);
}
/**
* ()
*/
@PreAuthorize("@ss.hasPermi('zongzhi:bjsj:export')")
@Log(title = "本级上级网评指令比列 (月)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcBjsj tcBjsj)
{
List<TcBjsj> list = tcBjsjService.selectTcBjsjList(tcBjsj);
ExcelUtil<TcBjsj> util = new ExcelUtil<TcBjsj>(TcBjsj.class);
util.exportExcel(response, list, "本级上级网评指令比列 (月)数据");
}
/**
* ()
*/
@PreAuthorize("@ss.hasPermi('zongzhi:bjsj:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcBjsjService.selectTcBjsjById(id));
}
/**
* ()
*/
@PreAuthorize("@ss.hasPermi('zongzhi:bjsj:add')")
@Log(title = "本级上级网评指令比列 (月)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcBjsj tcBjsj)
{
return toAjax(tcBjsjService.insertTcBjsj(tcBjsj));
}
/**
* ()
*/
@PreAuthorize("@ss.hasPermi('zongzhi:bjsj:edit')")
@Log(title = "本级上级网评指令比列 (月)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcBjsj tcBjsj)
{
return toAjax(tcBjsjService.updateTcBjsj(tcBjsj));
}
/**
* ()
*/
@PreAuthorize("@ss.hasPermi('zongzhi:bjsj:remove')")
@Log(title = "本级上级网评指令比列 (月)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcBjsjService.deleteTcBjsjByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
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.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.zongzhi.domain.TcDtSx;
import com.ruoyi.zongzhi.service.ITcDtSxService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-28
*/
@RestController
@RequestMapping("/zongzhi/sx")
@Api(tags = " 动态筛选")
public class TcDtSxController extends BaseController
{
@Autowired
private ITcDtSxService tcDtSxService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sx:list')")
@GetMapping("/list")
public TableDataInfo list(TcDtSx tcDtSx)
{
startPage();
List<TcDtSx> list = tcDtSxService.selectTcDtSxList(tcDtSx);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sx:export')")
@Log(title = "动态筛选", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcDtSx tcDtSx)
{
List<TcDtSx> list = tcDtSxService.selectTcDtSxList(tcDtSx);
ExcelUtil<TcDtSx> util = new ExcelUtil<TcDtSx>(TcDtSx.class);
util.exportExcel(response, list, "动态筛选数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sx:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcDtSxService.selectTcDtSxById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sx:add')")
@Log(title = "动态筛选", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcDtSx tcDtSx)
{
return toAjax(tcDtSxService.insertTcDtSx(tcDtSx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sx:edit')")
@Log(title = "动态筛选", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcDtSx tcDtSx)
{
return toAjax(tcDtSxService.updateTcDtSx(tcDtSx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sx:remove')")
@Log(title = "动态筛选", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcDtSxService.deleteTcDtSxByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
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.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.zongzhi.domain.TcQlzxxdsj;
import com.ruoyi.zongzhi.service.ITcQlzxxdsjService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-28
*/
@RestController
@RequestMapping("/zongzhi/qlzxxdsj")
@Api(tags = " 清郎专项行动数据统计")
public class TcQlzxxdsjController extends BaseController
{
@Autowired
private ITcQlzxxdsjService tcQlzxxdsjService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:qlzxxdsj:list')")
@GetMapping("/list")
public TableDataInfo list(TcQlzxxdsj tcQlzxxdsj)
{
startPage();
List<TcQlzxxdsj> list = tcQlzxxdsjService.selectTcQlzxxdsjList(tcQlzxxdsj);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:qlzxxdsj:export')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcQlzxxdsj tcQlzxxdsj)
{
List<TcQlzxxdsj> list = tcQlzxxdsjService.selectTcQlzxxdsjList(tcQlzxxdsj);
ExcelUtil<TcQlzxxdsj> util = new ExcelUtil<TcQlzxxdsj>(TcQlzxxdsj.class);
util.exportExcel(response, list, "清郎专项行动数据统计数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:qlzxxdsj:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcQlzxxdsjService.selectTcQlzxxdsjById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:qlzxxdsj:add')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcQlzxxdsj tcQlzxxdsj)
{
return toAjax(tcQlzxxdsjService.insertTcQlzxxdsj(tcQlzxxdsj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:qlzxxdsj:edit')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcQlzxxdsj tcQlzxxdsj)
{
return toAjax(tcQlzxxdsjService.updateTcQlzxxdsj(tcQlzxxdsj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:qlzxxdsj:remove')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcQlzxxdsjService.deleteTcQlzxxdsjByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
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.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.zongzhi.domain.TcWpyrwwcl;
import com.ruoyi.zongzhi.service.ITcWpyrwwclService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-28
*/
@RestController
@RequestMapping("/zongzhi/wpyrwwcl")
@Api(tags = " 网评员任务完成率心")
public class TcWpyrwwclController extends BaseController
{
@Autowired
private ITcWpyrwwclService tcWpyrwwclService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:list')")
@GetMapping("/list")
public TableDataInfo list(TcWpyrwwcl tcWpyrwwcl)
{
startPage();
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(tcWpyrwwcl);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:export')")
@Log(title = "网评员任务完成率心", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcWpyrwwcl tcWpyrwwcl)
{
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(tcWpyrwwcl);
ExcelUtil<TcWpyrwwcl> util = new ExcelUtil<TcWpyrwwcl>(TcWpyrwwcl.class);
util.exportExcel(response, list, "网评员任务完成率心数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcWpyrwwclService.selectTcWpyrwwclById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:add')")
@Log(title = "网评员任务完成率心", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcWpyrwwcl tcWpyrwwcl)
{
return toAjax(tcWpyrwwclService.insertTcWpyrwwcl(tcWpyrwwcl));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:edit')")
@Log(title = "网评员任务完成率心", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcWpyrwwcl tcWpyrwwcl)
{
return toAjax(tcWpyrwwclService.updateTcWpyrwwcl(tcWpyrwwcl));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:remove')")
@Log(title = "网评员任务完成率心", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcWpyrwwclService.deleteTcWpyrwwclByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
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.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.zongzhi.domain.TcYqFl;
import com.ruoyi.zongzhi.service.ITcYqFlService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-28
*/
@RestController
@RequestMapping("/zongzhi/fl")
@Api(tags = " 舆情分类")
public class TcYqFlController extends BaseController
{
@Autowired
private ITcYqFlService tcYqFlService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:fl:list')")
@GetMapping("/list")
public TableDataInfo list(TcYqFl tcYqFl)
{
startPage();
List<TcYqFl> list = tcYqFlService.selectTcYqFlList(tcYqFl);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:fl:export')")
@Log(title = "舆情分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcYqFl tcYqFl)
{
List<TcYqFl> list = tcYqFlService.selectTcYqFlList(tcYqFl);
ExcelUtil<TcYqFl> util = new ExcelUtil<TcYqFl>(TcYqFl.class);
util.exportExcel(response, list, "舆情分类数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:fl:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcYqFlService.selectTcYqFlById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:fl:add')")
@Log(title = "舆情分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcYqFl tcYqFl)
{
return toAjax(tcYqFlService.insertTcYqFl(tcYqFl));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:fl:edit')")
@Log(title = "舆情分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcYqFl tcYqFl)
{
return toAjax(tcYqFlService.updateTcYqFl(tcYqFl));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:fl:remove')")
@Log(title = "舆情分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcYqFlService.deleteTcYqFlByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
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.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.zongzhi.domain.TcYqZs;
import com.ruoyi.zongzhi.service.ITcYqZsService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-28
*/
@RestController
@RequestMapping("/zongzhi/zs")
@Api(tags = " 舆情走势图")
public class TcYqZsController extends BaseController
{
@Autowired
private ITcYqZsService tcYqZsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zs:list')")
@GetMapping("/list")
public TableDataInfo list(TcYqZs tcYqZs)
{
startPage();
List<TcYqZs> list = tcYqZsService.selectTcYqZsList(tcYqZs);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zs:export')")
@Log(title = "舆情走势图", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcYqZs tcYqZs)
{
List<TcYqZs> list = tcYqZsService.selectTcYqZsList(tcYqZs);
ExcelUtil<TcYqZs> util = new ExcelUtil<TcYqZs>(TcYqZs.class);
util.exportExcel(response, list, "舆情走势图数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zs:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcYqZsService.selectTcYqZsById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zs:add')")
@Log(title = "舆情走势图", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcYqZs tcYqZs)
{
return toAjax(tcYqZsService.insertTcYqZs(tcYqZs));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zs:edit')")
@Log(title = "舆情走势图", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcYqZs tcYqZs)
{
return toAjax(tcYqZsService.updateTcYqZs(tcYqZs));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zs:remove')")
@Log(title = "舆情走势图", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcYqZsService.deleteTcYqZsByIds(ids));
}
}

@ -0,0 +1,83 @@
package com.ruoyi.zongzhi.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* () tc_bjsj
*
* @author ruoyi
* @date 2023-08-28
*/
public class TcBjsj extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域Id */
@Excel(name = "区域Id")
@ApiModelProperty(value = "区域Id")
private Long areaId;
/** 占比名称 */
@Excel(name = "占比名称")
@ApiModelProperty(value = "占比名称")
private String name;
/** 所占百分比 */
@Excel(name = "所占百分比")
@ApiModelProperty(value = "所占百分比")
private String percent;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(Long areaId)
{
this.areaId = areaId;
}
public Long getAreaId()
{
return areaId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setPercent(String percent)
{
this.percent = percent;
}
public String getPercent()
{
return percent;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("name", getName())
.append("percent", getPercent())
.toString();
}
}

@ -0,0 +1,113 @@
package com.ruoyi.zongzhi.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_dt_sx
*
* @author ruoyi
* @date 2023-08-28
*/
public class TcDtSx extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域id */
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/** 监测信息总数 */
@Excel(name = "监测信息总数")
@ApiModelProperty(value = "监测信息总数")
private Long jcxxCount;
/** 排除信息总数 */
@Excel(name = "排除信息总数")
@ApiModelProperty(value = "排除信息总数")
private Long pcxxCount;
/** 舆情预警总数 */
@Excel(name = "舆情预警总数")
@ApiModelProperty(value = "舆情预警总数")
private Long yqyjCount;
/** 舆情预警占比 */
@Excel(name = "舆情预警占比")
@ApiModelProperty(value = "舆情预警占比")
private Long yqyjZb;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(Long areaId)
{
this.areaId = areaId;
}
public Long getAreaId()
{
return areaId;
}
public void setJcxxCount(Long jcxxCount)
{
this.jcxxCount = jcxxCount;
}
public Long getJcxxCount()
{
return jcxxCount;
}
public void setPcxxCount(Long pcxxCount)
{
this.pcxxCount = pcxxCount;
}
public Long getPcxxCount()
{
return pcxxCount;
}
public void setYqyjCount(Long yqyjCount)
{
this.yqyjCount = yqyjCount;
}
public Long getYqyjCount()
{
return yqyjCount;
}
public void setYqyjZb(Long yqyjZb)
{
this.yqyjZb = yqyjZb;
}
public Long getYqyjZb()
{
return yqyjZb;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("jcxxCount", getJcxxCount())
.append("pcxxCount", getPcxxCount())
.append("yqyjCount", getYqyjCount())
.append("yqyjZb", getYqyjZb())
.toString();
}
}

@ -0,0 +1,100 @@
package com.ruoyi.zongzhi.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.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_qlzxxdsj
*
* @author ruoyi
* @date 2023-08-28
*/
public class TcQlzxxdsj extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域id */
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/** 类型 */
@Excel(name = "类型")
@ApiModelProperty(value = "类型")
private Long type;
/** 年月 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "年月", width = 30, dateFormat = "yyyy-MM-dd")
private Date yearMonth;
/** 数量 */
@Excel(name = "数量")
@ApiModelProperty(value = "数量")
private Long count;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(Long areaId)
{
this.areaId = areaId;
}
public Long getAreaId()
{
return areaId;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setYearMonth(Date yearMonth)
{
this.yearMonth = yearMonth;
}
public Date getYearMonth()
{
return yearMonth;
}
public void setCount(Long count)
{
this.count = count;
}
public Long getCount()
{
return count;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("type", getType())
.append("yearMonth", getYearMonth())
.append("count", getCount())
.toString();
}
}

@ -0,0 +1,68 @@
package com.ruoyi.zongzhi.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_wpyrwwcl
*
* @author ruoyi
* @date 2023-08-28
*/
public class TcWpyrwwcl extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** $column.columnComment */
@ApiModelProperty(value = "${comment}")
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long areaId;
/** $column.columnComment */
@ApiModelProperty(value = "${comment}")
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long finish;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(Long areaId)
{
this.areaId = areaId;
}
public Long getAreaId()
{
return areaId;
}
public void setFinish(Long finish)
{
this.finish = finish;
}
public Long getFinish()
{
return finish;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("finish", getFinish())
.toString();
}
}

@ -0,0 +1,113 @@
package com.ruoyi.zongzhi.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_yq_fl
*
* @author ruoyi
* @date 2023-08-28
*/
public class TcYqFl extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域id */
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/** 媒体类型 */
@Excel(name = "媒体类型")
@ApiModelProperty(value = "媒体类型")
private Long mediaType;
/** 涉事类型 */
@Excel(name = "涉事类型")
@ApiModelProperty(value = "涉事类型")
private Long eventType;
/** 媒体数据 */
@Excel(name = "媒体数据")
@ApiModelProperty(value = "媒体数据")
private String mediaCount;
/** 涉事数量 */
@Excel(name = "涉事数量")
@ApiModelProperty(value = "涉事数量")
private String eventCount;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(Long areaId)
{
this.areaId = areaId;
}
public Long getAreaId()
{
return areaId;
}
public void setMediaType(Long mediaType)
{
this.mediaType = mediaType;
}
public Long getMediaType()
{
return mediaType;
}
public void setEventType(Long eventType)
{
this.eventType = eventType;
}
public Long getEventType()
{
return eventType;
}
public void setMediaCount(String mediaCount)
{
this.mediaCount = mediaCount;
}
public String getMediaCount()
{
return mediaCount;
}
public void setEventCount(String eventCount)
{
this.eventCount = eventCount;
}
public String getEventCount()
{
return eventCount;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("mediaType", getMediaType())
.append("eventType", getEventType())
.append("mediaCount", getMediaCount())
.append("eventCount", getEventCount())
.toString();
}
}

@ -0,0 +1,100 @@
package com.ruoyi.zongzhi.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.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_yq_zs
*
* @author ruoyi
* @date 2023-08-28
*/
public class TcYqZs extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域id */
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/** 类型 */
@Excel(name = "类型")
@ApiModelProperty(value = "类型")
private Long type;
/** 日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date dateTime;
/** 数量 */
@Excel(name = "数量")
@ApiModelProperty(value = "数量")
private Long count;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(Long areaId)
{
this.areaId = areaId;
}
public Long getAreaId()
{
return areaId;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDateTime(Date dateTime)
{
this.dateTime = dateTime;
}
public Date getDateTime()
{
return dateTime;
}
public void setCount(Long count)
{
this.count = count;
}
public Long getCount()
{
return count;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("type", getType())
.append("dateTime", getDateTime())
.append("count", getCount())
.toString();
}
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcBjsj;
/**
* ()Mapper
*
* @author ruoyi
* @date 2023-08-28
*/
public interface TcBjsjMapper
{
/**
* ()
*
* @param id ()
* @return ()
*/
public TcBjsj selectTcBjsjById(Long id);
/**
* ()
*
* @param tcBjsj ()
* @return ()
*/
public List<TcBjsj> selectTcBjsjList(TcBjsj tcBjsj);
/**
* ()
*
* @param tcBjsj ()
* @return
*/
public int insertTcBjsj(TcBjsj tcBjsj);
/**
* ()
*
* @param tcBjsj ()
* @return
*/
public int updateTcBjsj(TcBjsj tcBjsj);
/**
* ()
*
* @param id ()
* @return
*/
public int deleteTcBjsjById(Long id);
/**
* ()
*
* @param ids
* @return
*/
public int deleteTcBjsjByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDtSx;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-28
*/
public interface TcDtSxMapper
{
/**
*
*
* @param id
* @return
*/
public TcDtSx selectTcDtSxById(Long id);
/**
*
*
* @param tcDtSx
* @return
*/
public List<TcDtSx> selectTcDtSxList(TcDtSx tcDtSx);
/**
*
*
* @param tcDtSx
* @return
*/
public int insertTcDtSx(TcDtSx tcDtSx);
/**
*
*
* @param tcDtSx
* @return
*/
public int updateTcDtSx(TcDtSx tcDtSx);
/**
*
*
* @param id
* @return
*/
public int deleteTcDtSxById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDtSxByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcQlzxxdsj;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-28
*/
public interface TcQlzxxdsjMapper
{
/**
*
*
* @param id
* @return
*/
public TcQlzxxdsj selectTcQlzxxdsjById(Long id);
/**
*
*
* @param tcQlzxxdsj
* @return
*/
public List<TcQlzxxdsj> selectTcQlzxxdsjList(TcQlzxxdsj tcQlzxxdsj);
/**
*
*
* @param tcQlzxxdsj
* @return
*/
public int insertTcQlzxxdsj(TcQlzxxdsj tcQlzxxdsj);
/**
*
*
* @param tcQlzxxdsj
* @return
*/
public int updateTcQlzxxdsj(TcQlzxxdsj tcQlzxxdsj);
/**
*
*
* @param id
* @return
*/
public int deleteTcQlzxxdsjById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcQlzxxdsjByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcWpyrwwcl;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-28
*/
public interface TcWpyrwwclMapper
{
/**
*
*
* @param id
* @return
*/
public TcWpyrwwcl selectTcWpyrwwclById(Long id);
/**
*
*
* @param tcWpyrwwcl
* @return
*/
public List<TcWpyrwwcl> selectTcWpyrwwclList(TcWpyrwwcl tcWpyrwwcl);
/**
*
*
* @param tcWpyrwwcl
* @return
*/
public int insertTcWpyrwwcl(TcWpyrwwcl tcWpyrwwcl);
/**
*
*
* @param tcWpyrwwcl
* @return
*/
public int updateTcWpyrwwcl(TcWpyrwwcl tcWpyrwwcl);
/**
*
*
* @param id
* @return
*/
public int deleteTcWpyrwwclById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcWpyrwwclByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcYqFl;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-28
*/
public interface TcYqFlMapper
{
/**
*
*
* @param id
* @return
*/
public TcYqFl selectTcYqFlById(Long id);
/**
*
*
* @param tcYqFl
* @return
*/
public List<TcYqFl> selectTcYqFlList(TcYqFl tcYqFl);
/**
*
*
* @param tcYqFl
* @return
*/
public int insertTcYqFl(TcYqFl tcYqFl);
/**
*
*
* @param tcYqFl
* @return
*/
public int updateTcYqFl(TcYqFl tcYqFl);
/**
*
*
* @param id
* @return
*/
public int deleteTcYqFlById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcYqFlByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcYqZs;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-28
*/
public interface TcYqZsMapper
{
/**
*
*
* @param id
* @return
*/
public TcYqZs selectTcYqZsById(Long id);
/**
*
*
* @param tcYqZs
* @return
*/
public List<TcYqZs> selectTcYqZsList(TcYqZs tcYqZs);
/**
*
*
* @param tcYqZs
* @return
*/
public int insertTcYqZs(TcYqZs tcYqZs);
/**
*
*
* @param tcYqZs
* @return
*/
public int updateTcYqZs(TcYqZs tcYqZs);
/**
*
*
* @param id
* @return
*/
public int deleteTcYqZsById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcYqZsByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcBjsj;
/**
* ()Service
*
* @author ruoyi
* @date 2023-08-28
*/
public interface ITcBjsjService
{
/**
* ()
*
* @param id ()
* @return ()
*/
public TcBjsj selectTcBjsjById(Long id);
/**
* ()
*
* @param tcBjsj ()
* @return ()
*/
public List<TcBjsj> selectTcBjsjList(TcBjsj tcBjsj);
/**
* ()
*
* @param tcBjsj ()
* @return
*/
public int insertTcBjsj(TcBjsj tcBjsj);
/**
* ()
*
* @param tcBjsj ()
* @return
*/
public int updateTcBjsj(TcBjsj tcBjsj);
/**
* ()
*
* @param ids ()
* @return
*/
public int deleteTcBjsjByIds(Long[] ids);
/**
* ()
*
* @param id ()
* @return
*/
public int deleteTcBjsjById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDtSx;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
public interface ITcDtSxService
{
/**
*
*
* @param id
* @return
*/
public TcDtSx selectTcDtSxById(Long id);
/**
*
*
* @param tcDtSx
* @return
*/
public List<TcDtSx> selectTcDtSxList(TcDtSx tcDtSx);
/**
*
*
* @param tcDtSx
* @return
*/
public int insertTcDtSx(TcDtSx tcDtSx);
/**
*
*
* @param tcDtSx
* @return
*/
public int updateTcDtSx(TcDtSx tcDtSx);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDtSxByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcDtSxById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcQlzxxdsj;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
public interface ITcQlzxxdsjService
{
/**
*
*
* @param id
* @return
*/
public TcQlzxxdsj selectTcQlzxxdsjById(Long id);
/**
*
*
* @param tcQlzxxdsj
* @return
*/
public List<TcQlzxxdsj> selectTcQlzxxdsjList(TcQlzxxdsj tcQlzxxdsj);
/**
*
*
* @param tcQlzxxdsj
* @return
*/
public int insertTcQlzxxdsj(TcQlzxxdsj tcQlzxxdsj);
/**
*
*
* @param tcQlzxxdsj
* @return
*/
public int updateTcQlzxxdsj(TcQlzxxdsj tcQlzxxdsj);
/**
*
*
* @param ids
* @return
*/
public int deleteTcQlzxxdsjByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcQlzxxdsjById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcWpyrwwcl;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
public interface ITcWpyrwwclService
{
/**
*
*
* @param id
* @return
*/
public TcWpyrwwcl selectTcWpyrwwclById(Long id);
/**
*
*
* @param tcWpyrwwcl
* @return
*/
public List<TcWpyrwwcl> selectTcWpyrwwclList(TcWpyrwwcl tcWpyrwwcl);
/**
*
*
* @param tcWpyrwwcl
* @return
*/
public int insertTcWpyrwwcl(TcWpyrwwcl tcWpyrwwcl);
/**
*
*
* @param tcWpyrwwcl
* @return
*/
public int updateTcWpyrwwcl(TcWpyrwwcl tcWpyrwwcl);
/**
*
*
* @param ids
* @return
*/
public int deleteTcWpyrwwclByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcWpyrwwclById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcYqFl;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
public interface ITcYqFlService
{
/**
*
*
* @param id
* @return
*/
public TcYqFl selectTcYqFlById(Long id);
/**
*
*
* @param tcYqFl
* @return
*/
public List<TcYqFl> selectTcYqFlList(TcYqFl tcYqFl);
/**
*
*
* @param tcYqFl
* @return
*/
public int insertTcYqFl(TcYqFl tcYqFl);
/**
*
*
* @param tcYqFl
* @return
*/
public int updateTcYqFl(TcYqFl tcYqFl);
/**
*
*
* @param ids
* @return
*/
public int deleteTcYqFlByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcYqFlById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcYqZs;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
public interface ITcYqZsService
{
/**
*
*
* @param id
* @return
*/
public TcYqZs selectTcYqZsById(Long id);
/**
*
*
* @param tcYqZs
* @return
*/
public List<TcYqZs> selectTcYqZsList(TcYqZs tcYqZs);
/**
*
*
* @param tcYqZs
* @return
*/
public int insertTcYqZs(TcYqZs tcYqZs);
/**
*
*
* @param tcYqZs
* @return
*/
public int updateTcYqZs(TcYqZs tcYqZs);
/**
*
*
* @param ids
* @return
*/
public int deleteTcYqZsByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcYqZsById(Long id);
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongzhi.mapper.TcBjsjMapper;
import com.ruoyi.zongzhi.domain.TcBjsj;
import com.ruoyi.zongzhi.service.ITcBjsjService;
/**
* ()Service
*
* @author ruoyi
* @date 2023-08-28
*/
@Service
public class TcBjsjServiceImpl implements ITcBjsjService
{
@Autowired
private TcBjsjMapper tcBjsjMapper;
/**
* ()
*
* @param id ()
* @return ()
*/
@Override
public TcBjsj selectTcBjsjById(Long id)
{
return tcBjsjMapper.selectTcBjsjById(id);
}
/**
* ()
*
* @param tcBjsj ()
* @return ()
*/
@Override
public List<TcBjsj> selectTcBjsjList(TcBjsj tcBjsj)
{
return tcBjsjMapper.selectTcBjsjList(tcBjsj);
}
/**
* ()
*
* @param tcBjsj ()
* @return
*/
@Override
public int insertTcBjsj(TcBjsj tcBjsj)
{
return tcBjsjMapper.insertTcBjsj(tcBjsj);
}
/**
* ()
*
* @param tcBjsj ()
* @return
*/
@Override
public int updateTcBjsj(TcBjsj tcBjsj)
{
return tcBjsjMapper.updateTcBjsj(tcBjsj);
}
/**
* ()
*
* @param ids ()
* @return
*/
@Override
public int deleteTcBjsjByIds(Long[] ids)
{
return tcBjsjMapper.deleteTcBjsjByIds(ids);
}
/**
* ()
*
* @param id ()
* @return
*/
@Override
public int deleteTcBjsjById(Long id)
{
return tcBjsjMapper.deleteTcBjsjById(id);
}
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongzhi.mapper.TcDtSxMapper;
import com.ruoyi.zongzhi.domain.TcDtSx;
import com.ruoyi.zongzhi.service.ITcDtSxService;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
@Service
public class TcDtSxServiceImpl implements ITcDtSxService
{
@Autowired
private TcDtSxMapper tcDtSxMapper;
/**
*
*
* @param id
* @return
*/
@Override
public TcDtSx selectTcDtSxById(Long id)
{
return tcDtSxMapper.selectTcDtSxById(id);
}
/**
*
*
* @param tcDtSx
* @return
*/
@Override
public List<TcDtSx> selectTcDtSxList(TcDtSx tcDtSx)
{
return tcDtSxMapper.selectTcDtSxList(tcDtSx);
}
/**
*
*
* @param tcDtSx
* @return
*/
@Override
public int insertTcDtSx(TcDtSx tcDtSx)
{
return tcDtSxMapper.insertTcDtSx(tcDtSx);
}
/**
*
*
* @param tcDtSx
* @return
*/
@Override
public int updateTcDtSx(TcDtSx tcDtSx)
{
return tcDtSxMapper.updateTcDtSx(tcDtSx);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteTcDtSxByIds(Long[] ids)
{
return tcDtSxMapper.deleteTcDtSxByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteTcDtSxById(Long id)
{
return tcDtSxMapper.deleteTcDtSxById(id);
}
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongzhi.mapper.TcQlzxxdsjMapper;
import com.ruoyi.zongzhi.domain.TcQlzxxdsj;
import com.ruoyi.zongzhi.service.ITcQlzxxdsjService;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
@Service
public class TcQlzxxdsjServiceImpl implements ITcQlzxxdsjService
{
@Autowired
private TcQlzxxdsjMapper tcQlzxxdsjMapper;
/**
*
*
* @param id
* @return
*/
@Override
public TcQlzxxdsj selectTcQlzxxdsjById(Long id)
{
return tcQlzxxdsjMapper.selectTcQlzxxdsjById(id);
}
/**
*
*
* @param tcQlzxxdsj
* @return
*/
@Override
public List<TcQlzxxdsj> selectTcQlzxxdsjList(TcQlzxxdsj tcQlzxxdsj)
{
return tcQlzxxdsjMapper.selectTcQlzxxdsjList(tcQlzxxdsj);
}
/**
*
*
* @param tcQlzxxdsj
* @return
*/
@Override
public int insertTcQlzxxdsj(TcQlzxxdsj tcQlzxxdsj)
{
return tcQlzxxdsjMapper.insertTcQlzxxdsj(tcQlzxxdsj);
}
/**
*
*
* @param tcQlzxxdsj
* @return
*/
@Override
public int updateTcQlzxxdsj(TcQlzxxdsj tcQlzxxdsj)
{
return tcQlzxxdsjMapper.updateTcQlzxxdsj(tcQlzxxdsj);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteTcQlzxxdsjByIds(Long[] ids)
{
return tcQlzxxdsjMapper.deleteTcQlzxxdsjByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteTcQlzxxdsjById(Long id)
{
return tcQlzxxdsjMapper.deleteTcQlzxxdsjById(id);
}
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongzhi.mapper.TcWpyrwwclMapper;
import com.ruoyi.zongzhi.domain.TcWpyrwwcl;
import com.ruoyi.zongzhi.service.ITcWpyrwwclService;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
@Service
public class TcWpyrwwclServiceImpl implements ITcWpyrwwclService
{
@Autowired
private TcWpyrwwclMapper tcWpyrwwclMapper;
/**
*
*
* @param id
* @return
*/
@Override
public TcWpyrwwcl selectTcWpyrwwclById(Long id)
{
return tcWpyrwwclMapper.selectTcWpyrwwclById(id);
}
/**
*
*
* @param tcWpyrwwcl
* @return
*/
@Override
public List<TcWpyrwwcl> selectTcWpyrwwclList(TcWpyrwwcl tcWpyrwwcl)
{
return tcWpyrwwclMapper.selectTcWpyrwwclList(tcWpyrwwcl);
}
/**
*
*
* @param tcWpyrwwcl
* @return
*/
@Override
public int insertTcWpyrwwcl(TcWpyrwwcl tcWpyrwwcl)
{
return tcWpyrwwclMapper.insertTcWpyrwwcl(tcWpyrwwcl);
}
/**
*
*
* @param tcWpyrwwcl
* @return
*/
@Override
public int updateTcWpyrwwcl(TcWpyrwwcl tcWpyrwwcl)
{
return tcWpyrwwclMapper.updateTcWpyrwwcl(tcWpyrwwcl);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteTcWpyrwwclByIds(Long[] ids)
{
return tcWpyrwwclMapper.deleteTcWpyrwwclByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteTcWpyrwwclById(Long id)
{
return tcWpyrwwclMapper.deleteTcWpyrwwclById(id);
}
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongzhi.mapper.TcYqFlMapper;
import com.ruoyi.zongzhi.domain.TcYqFl;
import com.ruoyi.zongzhi.service.ITcYqFlService;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
@Service
public class TcYqFlServiceImpl implements ITcYqFlService
{
@Autowired
private TcYqFlMapper tcYqFlMapper;
/**
*
*
* @param id
* @return
*/
@Override
public TcYqFl selectTcYqFlById(Long id)
{
return tcYqFlMapper.selectTcYqFlById(id);
}
/**
*
*
* @param tcYqFl
* @return
*/
@Override
public List<TcYqFl> selectTcYqFlList(TcYqFl tcYqFl)
{
return tcYqFlMapper.selectTcYqFlList(tcYqFl);
}
/**
*
*
* @param tcYqFl
* @return
*/
@Override
public int insertTcYqFl(TcYqFl tcYqFl)
{
return tcYqFlMapper.insertTcYqFl(tcYqFl);
}
/**
*
*
* @param tcYqFl
* @return
*/
@Override
public int updateTcYqFl(TcYqFl tcYqFl)
{
return tcYqFlMapper.updateTcYqFl(tcYqFl);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteTcYqFlByIds(Long[] ids)
{
return tcYqFlMapper.deleteTcYqFlByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteTcYqFlById(Long id)
{
return tcYqFlMapper.deleteTcYqFlById(id);
}
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongzhi.mapper.TcYqZsMapper;
import com.ruoyi.zongzhi.domain.TcYqZs;
import com.ruoyi.zongzhi.service.ITcYqZsService;
/**
* Service
*
* @author ruoyi
* @date 2023-08-28
*/
@Service
public class TcYqZsServiceImpl implements ITcYqZsService
{
@Autowired
private TcYqZsMapper tcYqZsMapper;
/**
*
*
* @param id
* @return
*/
@Override
public TcYqZs selectTcYqZsById(Long id)
{
return tcYqZsMapper.selectTcYqZsById(id);
}
/**
*
*
* @param tcYqZs
* @return
*/
@Override
public List<TcYqZs> selectTcYqZsList(TcYqZs tcYqZs)
{
return tcYqZsMapper.selectTcYqZsList(tcYqZs);
}
/**
*
*
* @param tcYqZs
* @return
*/
@Override
public int insertTcYqZs(TcYqZs tcYqZs)
{
return tcYqZsMapper.insertTcYqZs(tcYqZs);
}
/**
*
*
* @param tcYqZs
* @return
*/
@Override
public int updateTcYqZs(TcYqZs tcYqZs)
{
return tcYqZsMapper.updateTcYqZs(tcYqZs);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteTcYqZsByIds(Long[] ids)
{
return tcYqZsMapper.deleteTcYqZsByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteTcYqZsById(Long id)
{
return tcYqZsMapper.deleteTcYqZsById(id);
}
}

@ -0,0 +1,66 @@
<?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.zongzhi.mapper.TcBjsjMapper">
<resultMap type="TcBjsj" id="TcBjsjResult">
<result property="id" column="id" />
<result property="areaId" column="area_id" />
<result property="name" column="name" />
<result property="percent" column="percent" />
</resultMap>
<sql id="selectTcBjsjVo">
select id, area_id, name, percent from tc_bjsj
</sql>
<select id="selectTcBjsjList" parameterType="TcBjsj" resultMap="TcBjsjResult">
<include refid="selectTcBjsjVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="percent != null and percent != ''"> and percent = #{percent}</if>
</where>
</select>
<select id="selectTcBjsjById" parameterType="Long" resultMap="TcBjsjResult">
<include refid="selectTcBjsjVo"/>
where id = #{id}
</select>
<insert id="insertTcBjsj" parameterType="TcBjsj" useGeneratedKeys="true" keyProperty="id">
insert into tc_bjsj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="name != null">name,</if>
<if test="percent != null">percent,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="name != null">#{name},</if>
<if test="percent != null">#{percent},</if>
</trim>
</insert>
<update id="updateTcBjsj" parameterType="TcBjsj">
update tc_bjsj
<trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if>
<if test="name != null">name = #{name},</if>
<if test="percent != null">percent = #{percent},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTcBjsjById" parameterType="Long">
delete from tc_bjsj where id = #{id}
</delete>
<delete id="deleteTcBjsjByIds" parameterType="String">
delete from tc_bjsj where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,78 @@
<?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.zongzhi.mapper.TcDtSxMapper">
<resultMap type="TcDtSx" id="TcDtSxResult">
<result property="id" column="id" />
<result property="areaId" column="area_id" />
<result property="jcxxCount" column="jcxx_count" />
<result property="pcxxCount" column="pcxx_count" />
<result property="yqyjCount" column="yqyj_count" />
<result property="yqyjZb" column="yqyj_zb" />
</resultMap>
<sql id="selectTcDtSxVo">
select id, area_id, jcxx_count, pcxx_count, yqyj_count, yqyj_zb from tc_dt_sx
</sql>
<select id="selectTcDtSxList" parameterType="TcDtSx" resultMap="TcDtSxResult">
<include refid="selectTcDtSxVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="jcxxCount != null "> and jcxx_count = #{jcxxCount}</if>
<if test="pcxxCount != null "> and pcxx_count = #{pcxxCount}</if>
<if test="yqyjCount != null "> and yqyj_count = #{yqyjCount}</if>
<if test="yqyjZb != null "> and yqyj_zb = #{yqyjZb}</if>
</where>
</select>
<select id="selectTcDtSxById" parameterType="Long" resultMap="TcDtSxResult">
<include refid="selectTcDtSxVo"/>
where id = #{id}
</select>
<insert id="insertTcDtSx" parameterType="TcDtSx">
insert into tc_dt_sx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="areaId != null">area_id,</if>
<if test="jcxxCount != null">jcxx_count,</if>
<if test="pcxxCount != null">pcxx_count,</if>
<if test="yqyjCount != null">yqyj_count,</if>
<if test="yqyjZb != null">yqyj_zb,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="areaId != null">#{areaId},</if>
<if test="jcxxCount != null">#{jcxxCount},</if>
<if test="pcxxCount != null">#{pcxxCount},</if>
<if test="yqyjCount != null">#{yqyjCount},</if>
<if test="yqyjZb != null">#{yqyjZb},</if>
</trim>
</insert>
<update id="updateTcDtSx" parameterType="TcDtSx">
update tc_dt_sx
<trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if>
<if test="jcxxCount != null">jcxx_count = #{jcxxCount},</if>
<if test="pcxxCount != null">pcxx_count = #{pcxxCount},</if>
<if test="yqyjCount != null">yqyj_count = #{yqyjCount},</if>
<if test="yqyjZb != null">yqyj_zb = #{yqyjZb},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTcDtSxById" parameterType="Long">
delete from tc_dt_sx where id = #{id}
</delete>
<delete id="deleteTcDtSxByIds" parameterType="String">
delete from tc_dt_sx where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,71 @@
<?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.zongzhi.mapper.TcQlzxxdsjMapper">
<resultMap type="TcQlzxxdsj" id="TcQlzxxdsjResult">
<result property="id" column="id" />
<result property="areaId" column="area_id" />
<result property="type" column="type" />
<result property="yearMonth" column="year_month" />
<result property="count" column="count" />
</resultMap>
<sql id="selectTcQlzxxdsjVo">
select id, area_id, type, year_month, count from tc_qlzxxdsj
</sql>
<select id="selectTcQlzxxdsjList" parameterType="TcQlzxxdsj" resultMap="TcQlzxxdsjResult">
<include refid="selectTcQlzxxdsjVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="type != null "> and type = #{type}</if>
<if test="yearMonth != null "> and year_month = #{yearMonth}</if>
<if test="count != null "> and count = #{count}</if>
</where>
</select>
<select id="selectTcQlzxxdsjById" parameterType="Long" resultMap="TcQlzxxdsjResult">
<include refid="selectTcQlzxxdsjVo"/>
where id = #{id}
</select>
<insert id="insertTcQlzxxdsj" parameterType="TcQlzxxdsj" useGeneratedKeys="true" keyProperty="id">
insert into tc_qlzxxdsj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="type != null">type,</if>
<if test="yearMonth != null">year_month,</if>
<if test="count != null">count,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="type != null">#{type},</if>
<if test="yearMonth != null">#{yearMonth},</if>
<if test="count != null">#{count},</if>
</trim>
</insert>
<update id="updateTcQlzxxdsj" parameterType="TcQlzxxdsj">
update tc_qlzxxdsj
<trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if>
<if test="type != null">type = #{type},</if>
<if test="yearMonth != null">year_month = #{yearMonth},</if>
<if test="count != null">count = #{count},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTcQlzxxdsjById" parameterType="Long">
delete from tc_qlzxxdsj where id = #{id}
</delete>
<delete id="deleteTcQlzxxdsjByIds" parameterType="String">
delete from tc_qlzxxdsj where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,61 @@
<?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.zongzhi.mapper.TcWpyrwwclMapper">
<resultMap type="TcWpyrwwcl" id="TcWpyrwwclResult">
<result property="id" column="id" />
<result property="areaId" column="area_id" />
<result property="finish" column="finish" />
</resultMap>
<sql id="selectTcWpyrwwclVo">
select id, area_id, finish from tc_wpyrwwcl
</sql>
<select id="selectTcWpyrwwclList" parameterType="TcWpyrwwcl" resultMap="TcWpyrwwclResult">
<include refid="selectTcWpyrwwclVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="finish != null "> and finish = #{finish}</if>
</where>
</select>
<select id="selectTcWpyrwwclById" parameterType="Long" resultMap="TcWpyrwwclResult">
<include refid="selectTcWpyrwwclVo"/>
where id = #{id}
</select>
<insert id="insertTcWpyrwwcl" parameterType="TcWpyrwwcl" useGeneratedKeys="true" keyProperty="id">
insert into tc_wpyrwwcl
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="finish != null">finish,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="finish != null">#{finish},</if>
</trim>
</insert>
<update id="updateTcWpyrwwcl" parameterType="TcWpyrwwcl">
update tc_wpyrwwcl
<trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if>
<if test="finish != null">finish = #{finish},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTcWpyrwwclById" parameterType="Long">
delete from tc_wpyrwwcl where id = #{id}
</delete>
<delete id="deleteTcWpyrwwclByIds" parameterType="String">
delete from tc_wpyrwwcl where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,76 @@
<?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.zongzhi.mapper.TcYqFlMapper">
<resultMap type="TcYqFl" id="TcYqFlResult">
<result property="id" column="id" />
<result property="areaId" column="area_id" />
<result property="mediaType" column="media_type" />
<result property="eventType" column="event_type" />
<result property="mediaCount" column="media_count" />
<result property="eventCount" column="event_count" />
</resultMap>
<sql id="selectTcYqFlVo">
select id, area_id, media_type, event_type, media_count, event_count from tc_yq_fl
</sql>
<select id="selectTcYqFlList" parameterType="TcYqFl" resultMap="TcYqFlResult">
<include refid="selectTcYqFlVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="mediaType != null "> and media_type = #{mediaType}</if>
<if test="eventType != null "> and event_type = #{eventType}</if>
<if test="mediaCount != null and mediaCount != ''"> and media_count = #{mediaCount}</if>
<if test="eventCount != null and eventCount != ''"> and event_count = #{eventCount}</if>
</where>
</select>
<select id="selectTcYqFlById" parameterType="Long" resultMap="TcYqFlResult">
<include refid="selectTcYqFlVo"/>
where id = #{id}
</select>
<insert id="insertTcYqFl" parameterType="TcYqFl" useGeneratedKeys="true" keyProperty="id">
insert into tc_yq_fl
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="mediaType != null">media_type,</if>
<if test="eventType != null">event_type,</if>
<if test="mediaCount != null">media_count,</if>
<if test="eventCount != null">event_count,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="mediaType != null">#{mediaType},</if>
<if test="eventType != null">#{eventType},</if>
<if test="mediaCount != null">#{mediaCount},</if>
<if test="eventCount != null">#{eventCount},</if>
</trim>
</insert>
<update id="updateTcYqFl" parameterType="TcYqFl">
update tc_yq_fl
<trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if>
<if test="mediaType != null">media_type = #{mediaType},</if>
<if test="eventType != null">event_type = #{eventType},</if>
<if test="mediaCount != null">media_count = #{mediaCount},</if>
<if test="eventCount != null">event_count = #{eventCount},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTcYqFlById" parameterType="Long">
delete from tc_yq_fl where id = #{id}
</delete>
<delete id="deleteTcYqFlByIds" parameterType="String">
delete from tc_yq_fl where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,71 @@
<?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.zongzhi.mapper.TcYqZsMapper">
<resultMap type="TcYqZs" id="TcYqZsResult">
<result property="id" column="id" />
<result property="areaId" column="area_id" />
<result property="type" column="type" />
<result property="dateTime" column="date_time" />
<result property="count" column="count" />
</resultMap>
<sql id="selectTcYqZsVo">
select id, area_id, type, date_time, count from tc_yq_zs
</sql>
<select id="selectTcYqZsList" parameterType="TcYqZs" resultMap="TcYqZsResult">
<include refid="selectTcYqZsVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="type != null "> and type = #{type}</if>
<if test="dateTime != null "> and date_time = #{dateTime}</if>
<if test="count != null "> and count = #{count}</if>
</where>
</select>
<select id="selectTcYqZsById" parameterType="Long" resultMap="TcYqZsResult">
<include refid="selectTcYqZsVo"/>
where id = #{id}
</select>
<insert id="insertTcYqZs" parameterType="TcYqZs" useGeneratedKeys="true" keyProperty="id">
insert into tc_yq_zs
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="type != null">type,</if>
<if test="dateTime != null">date_time,</if>
<if test="count != null">count,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="type != null">#{type},</if>
<if test="dateTime != null">#{dateTime},</if>
<if test="count != null">#{count},</if>
</trim>
</insert>
<update id="updateTcYqZs" parameterType="TcYqZs">
update tc_yq_zs
<trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if>
<if test="type != null">type = #{type},</if>
<if test="dateTime != null">date_time = #{dateTime},</if>
<if test="count != null">count = #{count},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTcYqZsById" parameterType="Long">
delete from tc_yq_zs where id = #{id}
</delete>
<delete id="deleteTcYqZsByIds" parameterType="String">
delete from tc_yq_zs where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save