大屏页面布局

This commit is contained in:
2026-02-26 14:00:46 +08:00
parent 8ce4adbab4
commit d5f1635ff0
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.mini.mybigscreen.Model;
import lombok.Data;
import java.io.Serializable;
@Data
public class ItemRequest implements Serializable {
private String itemCode;
private String reqParam;
}

View File

@@ -1,8 +1,17 @@
package com.mini.mybigscreen.biz.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mini.mybigscreen.Model.ItemRequest;
import com.mini.mybigscreen.biz.domain.ItemInfo;
import com.mini.mybigscreen.biz.service.ItemInfoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* <p>
* 业务项目信息表 前端控制器
@@ -15,4 +24,17 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/biz/itemInfo")
public class ItemInfoController {
@Resource
private ItemInfoService infoService;
@GetMapping("list")
public List<ItemInfo> getList(@RequestBody ItemRequest itemRequest) {
QueryWrapper<ItemInfo> query = new QueryWrapper<>();
query.eq("item_code", itemRequest.getItemCode())
.eq("req_param", itemRequest.getReqParam());
return infoService.list(query);
}
}