作者 钟来

水产舆情采集海报生成背景图修改

... ... @@ -82,7 +82,6 @@ public class SysConfig extends BaseEntity
}
@NotBlank(message = "参数键值不能为空")
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
public String getConfigValue()
{
return configValue;
... ...
package com.zhonglai.luhui.api.controller.test;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.StringUtils;
import com.zhonglai.luhui.action.BaseController;
import com.zhonglai.luhui.dao.service.PublicService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
@Api(tags = "水产舆情")
@RestController
@RequestMapping("/fishAquatic")
public class FishAquaticController extends BaseController {
@Autowired
private PublicService publicService;
@ApiOperation("水产舆情列表")
@ApiImplicitParams({
@ApiImplicitParam(value = "发布时间(格式:yy-mm-dd)",name = "day"),
@ApiImplicitParam(value = "舆情类型(1官方公告,2公众号文章,3疑似鱼价,4确认鱼价)",name = "type")
})
@GetMapping("/getFishAquaticPublicOpinionList")
public TableDataInfo getFishAquaticPublicOpinionList(String day, Integer type)
{
startPage();
String where = " where 1=1 ";
if(StringUtils.isNotEmpty(day))
{
where += " and release_time LIKE '"+day+"%'";
}
if(null != type)
{
where += " AND aquatic_type="+type;
}
List<Map<String,Object>> list = publicService.getObjectListBySQL("SELECT * FROM `fish_aquatic_public_opinion` "+where+" order by release_time desc");
return getDataTable(list);
}
}
... ...