大屏页面布局
This commit is contained in:
13
src/main/java/com/mini/mybigscreen/Model/ItemRequest.java
Normal file
13
src/main/java/com/mini/mybigscreen/Model/ItemRequest.java
Normal 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;
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user