52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
package com.mini.mybigscreen.biz.controller;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.mini.mybigscreen.Model.Message;
|
|
import com.mini.mybigscreen.Model.Result;
|
|
import com.mini.mybigscreen.biz.domain.ItemInfo;
|
|
import com.mini.mybigscreen.biz.service.ItemInfoService;
|
|
import com.mini.mybigscreen.utils.DateUtils;
|
|
import jakarta.annotation.Resource;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* <p>
|
|
* 业务项目信息表 前端控制器
|
|
* </p>
|
|
*
|
|
* @author gaoxq
|
|
* @since 2026-02-24
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/biz/itemInfo")
|
|
public class ItemInfoController {
|
|
|
|
|
|
@Resource
|
|
private ItemInfoService infoService;
|
|
|
|
|
|
@GetMapping("list")
|
|
public Result<List<ItemInfo>> getList(String itemCode, String reqParam) {
|
|
LambdaQueryWrapper<ItemInfo> query = new LambdaQueryWrapper<ItemInfo>()
|
|
.eq(ItemInfo::getItemCode, itemCode)
|
|
.eq(StrUtil.isNotBlank(reqParam), ItemInfo::getReqParam, reqParam)
|
|
.eq(ItemInfo::getYm, DateUtils.dsValue());
|
|
return Result.success(infoService.list(query));
|
|
}
|
|
|
|
public Result<Message> save() {
|
|
return Result.success(new Message("数据新增成功", "200"));
|
|
}
|
|
public Result<Message> delete() {
|
|
return Result.success(new Message("数据删除成功", "200"));
|
|
}
|
|
|
|
}
|