Commit bed28007 by Suvalue

添加文件

parent f083aaec
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerProjValueHistory;
import java.util.List;
public interface SerProjValueHistoryMapper {
int insert(SerProjValueHistory record);
List<SerProjValueHistory> selectAll();
int copyValue();
}
\ No newline at end of file
package com.bsoft.api.model;
import java.math.BigDecimal;
import java.util.Date;
public class SerProjValueHistory {
private BigDecimal id;
private Date createDate;
private BigDecimal createUserid;
private BigDecimal state;
private BigDecimal projId;
private BigDecimal qnz;
private BigDecimal wqqs;
private Long ls;
private BigDecimal mb;
private BigDecimal csysz;
private BigDecimal csyszTb;
private BigDecimal ysz;
private BigDecimal yszTb;
private BigDecimal sz;
private BigDecimal zxpl;
private BigDecimal date;
private String deptCode;
private BigDecimal sort;
private String version;
private String qnzUnit;
private String csyszUnit;
private String yszUnit;
private String szUnit;
private Long wqqsZypzJs;
private String deptName;
public BigDecimal getId() {
return id;
}
public void setId(BigDecimal id) {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public BigDecimal getCreateUserid() {
return createUserid;
}
public void setCreateUserid(BigDecimal createUserid) {
this.createUserid = createUserid;
}
public BigDecimal getState() {
return state;
}
public void setState(BigDecimal state) {
this.state = state;
}
public BigDecimal getProjId() {
return projId;
}
public void setProjId(BigDecimal projId) {
this.projId = projId;
}
public BigDecimal getQnz() {
return qnz;
}
public void setQnz(BigDecimal qnz) {
this.qnz = qnz;
}
public BigDecimal getWqqs() {
return wqqs;
}
public void setWqqs(BigDecimal wqqs) {
this.wqqs = wqqs;
}
public Long getLs() {
return ls;
}
public void setLs(Long ls) {
this.ls = ls;
}
public BigDecimal getMb() {
return mb;
}
public void setMb(BigDecimal mb) {
this.mb = mb;
}
public BigDecimal getCsysz() {
return csysz;
}
public void setCsysz(BigDecimal csysz) {
this.csysz = csysz;
}
public BigDecimal getCsyszTb() {
return csyszTb;
}
public void setCsyszTb(BigDecimal csyszTb) {
this.csyszTb = csyszTb;
}
public BigDecimal getYsz() {
return ysz;
}
public void setYsz(BigDecimal ysz) {
this.ysz = ysz;
}
public BigDecimal getYszTb() {
return yszTb;
}
public void setYszTb(BigDecimal yszTb) {
this.yszTb = yszTb;
}
public BigDecimal getSz() {
return sz;
}
public void setSz(BigDecimal sz) {
this.sz = sz;
}
public BigDecimal getZxpl() {
return zxpl;
}
public void setZxpl(BigDecimal zxpl) {
this.zxpl = zxpl;
}
public BigDecimal getDate() {
return date;
}
public void setDate(BigDecimal date) {
this.date = date;
}
public String getDeptCode() {
return deptCode;
}
public void setDeptCode(String deptCode) {
this.deptCode = deptCode;
}
public BigDecimal getSort() {
return sort;
}
public void setSort(BigDecimal sort) {
this.sort = sort;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getQnzUnit() {
return qnzUnit;
}
public void setQnzUnit(String qnzUnit) {
this.qnzUnit = qnzUnit;
}
public String getCsyszUnit() {
return csyszUnit;
}
public void setCsyszUnit(String csyszUnit) {
this.csyszUnit = csyszUnit;
}
public String getYszUnit() {
return yszUnit;
}
public void setYszUnit(String yszUnit) {
this.yszUnit = yszUnit;
}
public String getSzUnit() {
return szUnit;
}
public void setSzUnit(String szUnit) {
this.szUnit = szUnit;
}
public Long getWqqsZypzJs() {
return wqqsZypzJs;
}
public void setWqqsZypzJs(Long wqqsZypzJs) {
this.wqqsZypzJs = wqqsZypzJs;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerProjValueHistoryMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerProjValueHistory">
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="PROJ_ID" jdbcType="DECIMAL" property="projId" />
<result column="QNZ" jdbcType="DECIMAL" property="qnz" />
<result column="WQQS" jdbcType="DECIMAL" property="wqqs" />
<result column="LS" jdbcType="DECIMAL" property="ls" />
<result column="MB" jdbcType="DECIMAL" property="mb" />
<result column="CSYSZ" jdbcType="DECIMAL" property="csysz" />
<result column="CSYSZ_TB" jdbcType="DECIMAL" property="csyszTb" />
<result column="YSZ" jdbcType="DECIMAL" property="ysz" />
<result column="YSZ_TB" jdbcType="DECIMAL" property="yszTb" />
<result column="SZ" jdbcType="DECIMAL" property="sz" />
<result column="ZXPL" jdbcType="DECIMAL" property="zxpl" />
<result column="DATE" jdbcType="DECIMAL" property="date" />
<result column="DEPT_CODE" jdbcType="VARCHAR" property="deptCode" />
<result column="SORT" jdbcType="DECIMAL" property="sort" />
<result column="VERSION" jdbcType="VARCHAR" property="version" />
<result column="QNZ_UNIT" jdbcType="VARCHAR" property="qnzUnit" />
<result column="CSYSZ_UNIT" jdbcType="VARCHAR" property="csyszUnit" />
<result column="YSZ_UNIT" jdbcType="VARCHAR" property="yszUnit" />
<result column="SZ_UNIT" jdbcType="VARCHAR" property="szUnit" />
<result column="WQQS_ZYPZ_JS" jdbcType="DECIMAL" property="wqqsZypzJs" />
<result column="DEPT_NAME" jdbcType="VARCHAR" property="deptName" />
</resultMap>
<insert id="insert" parameterType="com.bsoft.api.model.SerProjValueHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PROJ_VALUE_HISTORY_ID.nextval from dual
</selectKey>
insert into SER_PROJ_VALUE_HISTORY (CREATE_DATE, CREATE_USERID, "STATE",
PROJ_ID, QNZ, WQQS,
LS, MB, CSYSZ, CSYSZ_TB,
YSZ, YSZ_TB, SZ, ZXPL,
"DATE", DEPT_CODE, SORT,
VERSION, QNZ_UNIT, CSYSZ_UNIT,
YSZ_UNIT, SZ_UNIT, WQQS_ZYPZ_JS,
DEPT_NAME)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{projId,jdbcType=DECIMAL}, #{qnz,jdbcType=DECIMAL}, #{wqqs,jdbcType=DECIMAL},
#{ls,jdbcType=DECIMAL}, #{mb,jdbcType=DECIMAL}, #{csysz,jdbcType=DECIMAL}, #{csyszTb,jdbcType=DECIMAL},
#{ysz,jdbcType=DECIMAL}, #{yszTb,jdbcType=DECIMAL}, #{sz,jdbcType=DECIMAL}, #{zxpl,jdbcType=DECIMAL},
#{date,jdbcType=DECIMAL}, #{deptCode,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL},
#{version,jdbcType=VARCHAR}, #{qnzUnit,jdbcType=VARCHAR}, #{csyszUnit,jdbcType=VARCHAR},
#{yszUnit,jdbcType=VARCHAR}, #{szUnit,jdbcType=VARCHAR}, #{wqqsZypzJs,jdbcType=DECIMAL},
#{deptName,jdbcType=VARCHAR})
</insert>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_ID, QNZ, WQQS, LS, MB, CSYSZ,
CSYSZ_TB, YSZ, YSZ_TB, SZ, ZXPL, "DATE", DEPT_CODE, SORT, VERSION, QNZ_UNIT, CSYSZ_UNIT,
YSZ_UNIT, SZ_UNIT, WQQS_ZYPZ_JS, DEPT_NAME
from SER_PROJ_VALUE_HISTORY
</select>
<update id="copyValue">
insert into SER_PROJ_VALUE_HISTORY("ID","STATE", "PROJ_ID", "QNZ", "WQQS", "LS", "MB", "CSYSZ", "CSYSZ_TB", "YSZ",
"YSZ_TB", "SZ", "ZXPL", "DATE", "DEPT_CODE", "SORT", "VERSION", "QNZ_UNIT", "CSYSZ_UNIT", "YSZ_UNIT", "SZ_UNIT",
"WQQS_ZYPZ_JS", "DEPT_NAME")
select SEQ_SER_PROJ_VALUE_HISTORY_ID.NEXTVAL,"STATE", "PROJ_ID", "QNZ", "WQQS", "LS", "MB", "CSYSZ", "CSYSZ_TB",
"YSZ", "YSZ_TB", "SZ", "ZXPL", "DATE", "DEPT_CODE", "SORT", "VERSION", "QNZ_UNIT", "CSYSZ_UNIT", "YSZ_UNIT",
"SZ_UNIT", "WQQS_ZYPZ_JS", "DEPT_NAME"
from SER_PROJ_VALUE;
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment