|
@@ -45,6 +45,16 @@ public class NewsController extends BaseController {
|
|
|
@PostMapping(value = "/page", consumes="application/json", produces="application/json")
|
|
|
public HttpResponseResult<PageInfo<SysNewsInformationDto>> getList(@Valid @RequestBody NewsInformationQueryInfo queryInfo) {
|
|
|
|
|
|
+ // 查询app版本
|
|
|
+ if (!StringUtil.isEmpty(queryInfo.getVersion())) {
|
|
|
+ String status = sysNewsInformationService.selectAppVersionInfo(queryInfo.getPlatform(), queryInfo.getVersion());
|
|
|
+ if ("auditing".equals(status) || queryInfo.getVersion().equals("1")) {
|
|
|
+ queryInfo.setVersion("1");
|
|
|
+ } else {
|
|
|
+ queryInfo.setVersion("0");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (queryInfo.getType() == 2) {
|
|
|
queryInfo.setAttribute2(queryInfo.getSubType());
|
|
|
queryInfo.setSubType(null);
|