parent
9b136365f1
commit
696d7d5937
@ -0,0 +1,17 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import com.ssm.entity.Sbb;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("sbb")
|
||||
public class SbbController {
|
||||
@RequestMapping("tj")
|
||||
public ModelAndView SbbController(Sbb sbb){
|
||||
ModelAndView mv=new ModelAndView("showSbb");
|
||||
mv.addObject("sbbInfo",sbb);
|
||||
return mv;
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package com.ssm.entity;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Sbb {
|
||||
private String sbbid; // 设备id
|
||||
private String sbbeno; // 设备号
|
||||
private String sbbname; // 设备名称
|
||||
private String useinfo; // 设备作用
|
||||
private String productor; // 生产厂商
|
||||
private String price; // 采购金额
|
||||
private String sbbsf;//设备是否有
|
||||
@DateTimeFormat(pattern = "yyyy-mm-dd")
|
||||
private Date sbbdate; // 采购日期
|
||||
private String manager; // 负责人
|
||||
private String sbbmemo; // 备注
|
||||
private Cate cate;// 多对一映射类
|
||||
private Labx labx;// 多对一映射类
|
||||
|
||||
public String getSbbid() {
|
||||
return sbbid;
|
||||
}
|
||||
|
||||
public void setSbbid(String sbbid) {
|
||||
this.sbbid = sbbid;
|
||||
}
|
||||
|
||||
public String getSbbeno() {
|
||||
return sbbeno;
|
||||
}
|
||||
|
||||
public void setSbbeno(String sbbeno) {
|
||||
this.sbbeno = sbbeno;
|
||||
}
|
||||
|
||||
public String getSbbname() {
|
||||
return sbbname;
|
||||
}
|
||||
|
||||
public void setSbbname(String sbbname) {
|
||||
this.sbbname = sbbname;
|
||||
}
|
||||
|
||||
public String getUseinfo() {
|
||||
return useinfo;
|
||||
}
|
||||
|
||||
public void setUseinfo(String useinfo) {
|
||||
this.useinfo = useinfo;
|
||||
}
|
||||
|
||||
public String getProductor() {
|
||||
return productor;
|
||||
}
|
||||
|
||||
public void setProductor(String productor) {
|
||||
this.productor = productor;
|
||||
}
|
||||
|
||||
public String getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(String price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getSbbsf() {
|
||||
return sbbsf;
|
||||
}
|
||||
|
||||
public void setSbbsf(String sbbsf) {
|
||||
this.sbbsf = sbbsf;
|
||||
}
|
||||
|
||||
public Date getSbbdate() {
|
||||
return sbbdate;
|
||||
}
|
||||
|
||||
public void setSbbdate(Date sbbdate) {
|
||||
this.sbbdate = sbbdate;
|
||||
}
|
||||
|
||||
public String getManager() {
|
||||
return manager;
|
||||
}
|
||||
|
||||
public void setManager(String manager) {
|
||||
this.manager = manager;
|
||||
}
|
||||
|
||||
public String getSbbmemo() {
|
||||
return sbbmemo;
|
||||
}
|
||||
|
||||
public void setSbbmemo(String sbbmemo) {
|
||||
this.sbbmemo = sbbmemo;
|
||||
}
|
||||
|
||||
public Cate getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(Cate cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public Labx getLabx() {
|
||||
return labx;
|
||||
}
|
||||
|
||||
public void setLabx(Labx labx) {
|
||||
this.labx = labx;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue