生成代码

duhanyu
吕天方 1 year ago
parent c72dfa994d
commit b59dde4904

@ -22,22 +22,22 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
* Controller
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@RequestMapping("/tcZz/yqxxltj")
@RequestMapping("/tcZz/netWorkYq/yqxxltj")
public class TcYqxxltjController extends BaseController
{
@Autowired
private ITcYqxxltjService tcYqxxltjService;
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqxxltj:list')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:list')")
@GetMapping("/list")
public TableDataInfo list(TcYqxxltj tcYqxxltj)
{
@ -47,22 +47,22 @@ public class TcYqxxltjController extends BaseController
}
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqxxltj:export')")
@Log(title = "舆情信息量统计", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:export')")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj)
{
List<TcYqxxltj> list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj);
ExcelUtil<TcYqxxltj> util = new ExcelUtil<TcYqxxltj>(TcYqxxltj.class);
util.exportExcel(response, list, "舆情信息量统计数据");
util.exportExcel(response, list, "舆情信息量统计明細数据");
}
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqxxltj:query')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -70,10 +70,10 @@ public class TcYqxxltjController extends BaseController
}
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqxxltj:add')")
@Log(title = "舆情信息量统计", businessType = BusinessType.INSERT)
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:add')")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj)
{
@ -81,10 +81,10 @@ public class TcYqxxltjController extends BaseController
}
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqxxltj:edit')")
@Log(title = "舆情信息量统计", businessType = BusinessType.UPDATE)
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:edit')")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj)
{
@ -92,10 +92,10 @@ public class TcYqxxltjController extends BaseController
}
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqxxltj:remove')")
@Log(title = "舆情信息量统计", businessType = BusinessType.DELETE)
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:remove')")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -28,7 +28,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-12
*/
@RestController
@RequestMapping("/tcZz/yqzs")
@RequestMapping("/tcZz/netWorkYq/yqzs")
public class TcYqzsController extends BaseController
{
@Autowired
@ -37,7 +37,7 @@ public class TcYqzsController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqzs:list')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:list')")
@GetMapping("/list")
public TableDataInfo list(TcYqzs tcYqzs)
{
@ -49,7 +49,7 @@ public class TcYqzsController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqzs:export')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:export')")
@Log(title = "舆情走势图", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcYqzs tcYqzs)
@ -62,7 +62,7 @@ public class TcYqzsController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqzs:query')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,7 +72,7 @@ public class TcYqzsController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqzs:add')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:add')")
@Log(title = "舆情走势图", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcYqzs tcYqzs)
@ -83,7 +83,7 @@ public class TcYqzsController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqzs:edit')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:edit')")
@Log(title = "舆情走势图", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcYqzs tcYqzs)
@ -94,7 +94,7 @@ public class TcYqzsController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz:yqzs:remove')")
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:remove')")
@Log(title = "舆情走势图", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)

@ -2,28 +2,22 @@ package com.ruoyi.tcZz.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_yqxxltj
* tc_yqxxltj
*
* @author ruoyi
* @date 2023-10-12
*/
@Data
@ApiModel("舆情信息量统计对象")
public class TcYqxxltj extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
@ApiModelProperty(value = "id")
private Long id;
/** 区域id */
@ -54,4 +48,96 @@ public class TcYqxxltj extends BaseEntity
/** 内容 */
@Excel(name = "内容")
private String content;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAreaId(String areaId)
{
this.areaId = areaId;
}
public String getAreaId()
{
return areaId;
}
public void setIsStatus(Long isStatus)
{
this.isStatus = isStatus;
}
public Long getIsStatus()
{
return isStatus;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setDateTime(Date dateTime)
{
this.dateTime = dateTime;
}
public Date getDateTime()
{
return dateTime;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("isStatus", getIsStatus())
.append("type", getType())
.append("title", getTitle())
.append("source", getSource())
.append("dateTime", getDateTime())
.append("content", getContent())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -2,9 +2,6 @@ package com.ruoyi.tcZz.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@ -16,14 +13,11 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi
* @date 2023-10-12
*/
@Data
@ApiModel("舆情走势图对象")
public class TcYqzs extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
@ApiModelProperty(value = "id")
private Long id;
/** 区域id */
@ -42,4 +36,66 @@ public class TcYqzs extends BaseEntity
/** 敏感数量 */
@Excel(name = "敏感数量")
private Long count2;
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 setDateTime(Date dateTime)
{
this.dateTime = dateTime;
}
public Date getDateTime()
{
return dateTime;
}
public void setCount1(Long count1)
{
this.count1 = count1;
}
public Long getCount1()
{
return count1;
}
public void setCount2(Long count2)
{
this.count2 = count2;
}
public Long getCount2()
{
return count2;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("dateTime", getDateTime())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("count1", getCount1())
.append("count2", getCount2())
.toString();
}
}

@ -4,7 +4,7 @@ import java.util.List;
import com.ruoyi.tcZz.domain.TcYqxxltj;
/**
* Mapper
* Mapper
*
* @author ruoyi
* @date 2023-10-12
@ -12,47 +12,47 @@ import com.ruoyi.tcZz.domain.TcYqxxltj;
public interface TcYqxxltjMapper
{
/**
*
*
*
* @param id
* @return
* @param id
* @return
*/
public TcYqxxltj selectTcYqxxltjById(Long id);
/**
*
*
*
* @param tcYqxxltj
* @return
* @param tcYqxxltj
* @return
*/
public List<TcYqxxltj> selectTcYqxxltjList(TcYqxxltj tcYqxxltj);
/**
*
*
*
* @param tcYqxxltj
* @param tcYqxxltj
* @return
*/
public int insertTcYqxxltj(TcYqxxltj tcYqxxltj);
/**
*
*
*
* @param tcYqxxltj
* @param tcYqxxltj
* @return
*/
public int updateTcYqxxltj(TcYqxxltj tcYqxxltj);
/**
*
*
*
* @param id
* @param id
* @return
*/
public int deleteTcYqxxltjById(Long id);
/**
*
*
*
* @param ids
* @return

@ -4,7 +4,7 @@ import java.util.List;
import com.ruoyi.tcZz.domain.TcYqxxltj;
/**
* Service
* Service
*
* @author ruoyi
* @date 2023-10-12
@ -12,49 +12,49 @@ import com.ruoyi.tcZz.domain.TcYqxxltj;
public interface ITcYqxxltjService
{
/**
*
*
*
* @param id
* @return
* @param id
* @return
*/
public TcYqxxltj selectTcYqxxltjById(Long id);
/**
*
*
*
* @param tcYqxxltj
* @return
* @param tcYqxxltj
* @return
*/
public List<TcYqxxltj> selectTcYqxxltjList(TcYqxxltj tcYqxxltj);
/**
*
*
*
* @param tcYqxxltj
* @param tcYqxxltj
* @return
*/
public int insertTcYqxxltj(TcYqxxltj tcYqxxltj);
/**
*
*
*
* @param tcYqxxltj
* @param tcYqxxltj
* @return
*/
public int updateTcYqxxltj(TcYqxxltj tcYqxxltj);
/**
*
*
*
* @param ids
* @param ids
* @return
*/
public int deleteTcYqxxltjByIds(Long[] ids);
/**
*
*
*
* @param id
* @param id
* @return
*/
public int deleteTcYqxxltjById(Long id);

@ -9,7 +9,7 @@ import com.ruoyi.tcZz.domain.TcYqxxltj;
import com.ruoyi.tcZz.service.ITcYqxxltjService;
/**
* Service
* Service
*
* @author ruoyi
* @date 2023-10-12
@ -21,10 +21,10 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService
private TcYqxxltjMapper tcYqxxltjMapper;
/**
*
*
*
* @param id
* @return
* @param id
* @return
*/
@Override
public TcYqxxltj selectTcYqxxltjById(Long id)
@ -33,10 +33,10 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService
}
/**
*
*
*
* @param tcYqxxltj
* @return
* @param tcYqxxltj
* @return
*/
@Override
public List<TcYqxxltj> selectTcYqxxltjList(TcYqxxltj tcYqxxltj)
@ -45,9 +45,9 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService
}
/**
*
*
*
* @param tcYqxxltj
* @param tcYqxxltj
* @return
*/
@Override
@ -58,9 +58,9 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService
}
/**
*
*
*
* @param tcYqxxltj
* @param tcYqxxltj
* @return
*/
@Override
@ -71,9 +71,9 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService
}
/**
*
*
*
* @param ids
* @param ids
* @return
*/
@Override
@ -83,9 +83,9 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService
}
/**
*
*
*
* @param id
* @param id
* @return
*/
@Override

@ -27,13 +27,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTcYqxxltjList" parameterType="TcYqxxltj" resultMap="TcYqxxltjResult">
<include refid="selectTcYqxxltjVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="areaId != null and areaId != ''"> and area_id = #{areaId}</if>
<if test="isStatus != null "> and isStatus = #{isStatus}</if>
<if test="type != null "> and type = #{type}</if>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="dateTime != null "> and date_time = #{dateTime}</if>
<if test="params.beginDateTime != null and params.beginDateTime != '' and params.endDateTime != null and params.endDateTime != ''"> and date_time between #{params.beginDateTime} and #{params.endDateTime}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if>
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
</where>
</select>

@ -24,8 +24,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTcYqzsList" parameterType="TcYqzs" resultMap="TcYqzsResult">
<include refid="selectTcYqzsVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="dateTime != null "> and date_time = #{dateTime}</if>
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if>
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
<if test="count1 != null "> and count1 = #{count1}</if>
<if test="count2 != null "> and count2 = #{count2}</if>
</where>
Loading…
Cancel
Save