正在显示
2 个修改的文件
包含
46 行增加
和
1 行删除
| @@ -82,7 +82,6 @@ public class SysConfig extends BaseEntity | @@ -82,7 +82,6 @@ public class SysConfig extends BaseEntity | ||
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | @NotBlank(message = "参数键值不能为空") | 84 | @NotBlank(message = "参数键值不能为空") |
| 85 | - @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") | ||
| 86 | public String getConfigValue() | 85 | public String getConfigValue() |
| 87 | { | 86 | { |
| 88 | return configValue; | 87 | return configValue; |
lh-modules/lh-api/src/main/java/com/zhonglai/luhui/api/controller/test/FishAquaticController.java
0 → 100644
| 1 | +package com.zhonglai.luhui.api.controller.test; | ||
| 2 | + | ||
| 3 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 4 | +import com.ruoyi.common.utils.StringUtils; | ||
| 5 | +import com.zhonglai.luhui.action.BaseController; | ||
| 6 | +import com.zhonglai.luhui.dao.service.PublicService; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiImplicitParam; | ||
| 9 | +import io.swagger.annotations.ApiImplicitParams; | ||
| 10 | +import io.swagger.annotations.ApiOperation; | ||
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 12 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RestController; | ||
| 15 | + | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.Map; | ||
| 18 | + | ||
| 19 | +@Api(tags = "水产舆情") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/fishAquatic") | ||
| 22 | +public class FishAquaticController extends BaseController { | ||
| 23 | + @Autowired | ||
| 24 | + private PublicService publicService; | ||
| 25 | + @ApiOperation("水产舆情列表") | ||
| 26 | + @ApiImplicitParams({ | ||
| 27 | + @ApiImplicitParam(value = "发布时间(格式:yy-mm-dd)",name = "day"), | ||
| 28 | + @ApiImplicitParam(value = "舆情类型(1官方公告,2公众号文章,3疑似鱼价,4确认鱼价)",name = "type") | ||
| 29 | + }) | ||
| 30 | + @GetMapping("/getFishAquaticPublicOpinionList") | ||
| 31 | + public TableDataInfo getFishAquaticPublicOpinionList(String day, Integer type) | ||
| 32 | + { | ||
| 33 | + startPage(); | ||
| 34 | + String where = " where 1=1 "; | ||
| 35 | + if(StringUtils.isNotEmpty(day)) | ||
| 36 | + { | ||
| 37 | + where += " and release_time LIKE '"+day+"%'"; | ||
| 38 | + } | ||
| 39 | + if(null != type) | ||
| 40 | + { | ||
| 41 | + where += " AND aquatic_type="+type; | ||
| 42 | + } | ||
| 43 | + List<Map<String,Object>> list = publicService.getObjectListBySQL("SELECT * FROM `fish_aquatic_public_opinion` "+where+" order by release_time desc"); | ||
| 44 | + return getDataTable(list); | ||
| 45 | + } | ||
| 46 | +} |
-
请 注册 或 登录 后发表评论