You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.4 KiB

package com.zky.bjca.cert.controller;
import java.util.List;
import com.zky.bjca.cert.service.ITdBjcaService;
import com.zky.pojo.TdBjca;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* 文件管理Controller
*
* @author itzky
* @date 2023-12-22
*/
@Controller
@RequestMapping("/login")
public class TdBjcaController
{
private String prefix = "login";
@Autowired
private ITdBjcaService tdBjcaService;
@GetMapping()
public String bjca()
{
return prefix + "/bjca";
}
/**
* 查询文件管理列表
*/
@PostMapping("/certid")
@ResponseBody
public TdBjca CertById(Long id) {
TdBjca tdBjca = tdBjcaService.selectTdBjcaById(id);
return tdBjca;
}
/**
* 新增文件管理
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存文件管理
*/
@PostMapping("/login")
@ResponseBody
public int addSave(TdBjca tdBjca)
{
return tdBjcaService.insertTdBjca(tdBjca);
}
}