Files
my-bigScreen/src/main/java/com/mini/mybigscreen/biz/controller/ItemInfoController.java

41 lines
1.1 KiB
Java
Raw Normal View History

2026-02-24 23:26:41 +08:00
package com.mini.mybigscreen.biz.controller;
2026-02-26 14:00:46 +08:00
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;
2026-02-24 23:26:41 +08:00
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
2026-02-26 14:00:46 +08:00
import java.util.List;
2026-02-24 23:26:41 +08:00
/**
* <p>
* 业务项目信息表 前端控制器
* </p>
*
* @author gaoxq
* @since 2026-02-24
*/
@RestController
@RequestMapping("/biz/itemInfo")
public class ItemInfoController {
2026-02-26 14:00:46 +08:00
@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);
}
2026-02-24 23:26:41 +08:00
}