master
parent
90ac37bece
commit
593f288095
@ -0,0 +1,31 @@
|
|||||||
|
package com.example.demo.Dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.example.demo.bean.ProductHistroy;
|
||||||
|
import org.apache.ibatis.annotations.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface productHistroyMapper {
|
||||||
|
@Select("select * from producthistroy where productNum = #{productNum}")
|
||||||
|
public ProductHistroy selectAudioByCheckNum(int productNum);
|
||||||
|
|
||||||
|
@Select("select * from producthistroy")
|
||||||
|
public List<ProductHistroy> select();
|
||||||
|
|
||||||
|
@Insert("insert into productHistroy(productNum, productName, category, " +
|
||||||
|
"intrate, bankNum, productDescription, uploadTime, deleteTime, alterTime)" +
|
||||||
|
" values (#{productNum},#{productName},#{category},#{intrate},#{bankNum}," +
|
||||||
|
"#{productDescription},#{uploadTime},#{deleteTime},#{alterTime})")
|
||||||
|
public void addProductHistroy(ProductHistroy productHistroys);
|
||||||
|
|
||||||
|
@Update("update producthistroy set productNum=#{productNum},productName=#{productName}" +
|
||||||
|
",category=#{category},intrate=#{intrate},bankNum=#{bankNum}," +
|
||||||
|
"productDescription=#{productDescription},uploadTime=#{uploadTime},deleteTime=#{deleteTime}," +
|
||||||
|
"alterTime=#{alterTime}where productNum=#{productNum}")
|
||||||
|
public void updateProductHistroy(ProductHistroy productHistroys);
|
||||||
|
|
||||||
|
@Delete("delete from producthistroy where productNum=#{productNum}")
|
||||||
|
public void deleteProductHistroy(int productNum);
|
||||||
|
}
|
@ -1,8 +0,0 @@
|
|||||||
package com.example.demo.Dao;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface transationMapper {
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.example.demo.Dao;
|
||||||
|
|
||||||
|
import com.example.demo.bean.UserBankIdentify;
|
||||||
|
import org.apache.ibatis.annotations.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface userBankIdentify {
|
||||||
|
@Select("select * from userbankidentify where userName = #{userName}")
|
||||||
|
public UserBankIdentify selectUsageDateByCheckNum(String userName);
|
||||||
|
|
||||||
|
@Select("select * from userBankIdentify")
|
||||||
|
public List<UserBankIdentify> select();
|
||||||
|
|
||||||
|
@Insert("insert into usagedate(userName, bankAccount, bankAccountIdentify)" +
|
||||||
|
" values (#{userName},#{bankAccount},#{bankAccountIdentify})")
|
||||||
|
public void addUserBankIdentify(UserBankIdentify userBankIdentifys);
|
||||||
|
|
||||||
|
@Update("update usagedate set userName=#{userName},bankAccount=#{bankAccount}" +
|
||||||
|
",bankAccountIdentify=#{bankAccountIdentify}")
|
||||||
|
public void updateUserBankIdentify(UserBankIdentify userBankIdentifys);
|
||||||
|
|
||||||
|
@Delete("delete from usagedate where userName=#{userName}")
|
||||||
|
public void deleteUserBankIdentify(String userName);
|
||||||
|
}
|
@ -1,104 +1,28 @@
|
|||||||
package com.example.demo.bean;
|
package com.example.demo.bean;
|
||||||
|
|
||||||
|
|
||||||
import javax.persistence.*;
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
public class Audit {
|
public class Audit {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private String checkNum;
|
private int checkNum;
|
||||||
private String userNum;
|
private int userNum;
|
||||||
private float amount;
|
private double amount;
|
||||||
private String applyTime;
|
private String applyTime;
|
||||||
private String bankAccount;
|
private String bankAccount;
|
||||||
private int checkState;
|
private int checkState;
|
||||||
private String contractNum;
|
private int contractNum;
|
||||||
private short isSignContract;
|
private short isSignContract;
|
||||||
private String productNum;
|
private int productNum;
|
||||||
private int year;
|
private int year;
|
||||||
private int equation;
|
private int equation;
|
||||||
|
|
||||||
public Audit(){};
|
public Audit(){};
|
||||||
|
|
||||||
public int getYear() {
|
|
||||||
return year;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setYear(int year) {
|
|
||||||
this.year = year;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getProductNum() {
|
|
||||||
return productNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProductNum(String productNum) {
|
|
||||||
this.productNum = productNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public short getIsSignContract() {
|
|
||||||
return isSignContract;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsSignContract(short isSignContract) {
|
|
||||||
this.isSignContract = isSignContract;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getContractNum() {
|
|
||||||
return contractNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setContractNum(String contractNum) {
|
|
||||||
this.contractNum = contractNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getCheckState() {
|
|
||||||
return checkState;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCheckState(int checkState) {
|
|
||||||
this.checkState = checkState;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCheckNum() {
|
|
||||||
return checkNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCheckNum(String checkNum) {
|
|
||||||
this.checkNum = checkNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getAmount() {
|
|
||||||
return amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAmount(float amount) {
|
|
||||||
this.amount = amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBankAccount() {
|
|
||||||
return bankAccount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBankAccount(String bankAccount) {
|
|
||||||
this.bankAccount = bankAccount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getApplyTime() {
|
|
||||||
return applyTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApplyTime(String applyTime) {
|
|
||||||
this.applyTime = applyTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUserNum() {
|
|
||||||
return userNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserNum(String userNum) {
|
|
||||||
this.userNum = userNum;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,37 +1,18 @@
|
|||||||
package com.example.demo.bean;
|
package com.example.demo.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
public class Bank {
|
public class Bank {
|
||||||
private String bankNum;
|
private int bankNum;
|
||||||
private String bankName;
|
private String bankName;
|
||||||
private String contact;//联系方式
|
private String contact;//联系方式
|
||||||
|
|
||||||
public Bank(){};
|
public Bank(){};
|
||||||
|
|
||||||
public String getBankNum() {
|
|
||||||
return bankNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBankNum(String bankNum) {
|
|
||||||
this.bankNum = bankNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getContact() {
|
|
||||||
return contact;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setContact(String contact) {
|
|
||||||
this.contact = contact;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBankName() {
|
|
||||||
return bankName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBankName(String bankName) {
|
|
||||||
this.bankName = bankName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,77 +1,26 @@
|
|||||||
package com.example.demo.bean;
|
package com.example.demo.bean;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import javax.persistence.GenerationType;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
public class Product {
|
public class Product {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private String productNum;
|
private int productNum;
|
||||||
private String productName;
|
private String productName;
|
||||||
private String category;
|
private String category;
|
||||||
private float intrate;
|
private float intrate;
|
||||||
private String bankNum;
|
private int bankNum;
|
||||||
private String productDescription;
|
private String productDescription;
|
||||||
private String pictureAddress;
|
private String pictureAddress;
|
||||||
|
|
||||||
public Product(){};
|
public Product(){};
|
||||||
|
|
||||||
public String getPictureAddress() {
|
|
||||||
return pictureAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPictureAddress(String pictureAddress) {
|
|
||||||
this.pictureAddress = pictureAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getProductDescription() {
|
|
||||||
return productDescription;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProductDescription(String productDescription) {
|
|
||||||
this.productDescription = productDescription;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBankNum() {
|
|
||||||
return bankNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBankNum(String bankNum) {
|
|
||||||
this.bankNum = bankNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getIntrate() {
|
|
||||||
return intrate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIntrate(float intrate) {
|
|
||||||
this.intrate = intrate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCategory() {
|
|
||||||
return category;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCategory(String category) {
|
|
||||||
this.category = category;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getProductName() {
|
|
||||||
return productName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProductName(String productName) {
|
|
||||||
this.productName = productName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getProductNum() {
|
|
||||||
return productNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProductNum(String productNum) {
|
|
||||||
this.productNum = productNum;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.example.demo.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class ProductHistroy {
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
private int productNum;
|
||||||
|
private int bankNum;
|
||||||
|
private String productName;
|
||||||
|
private String category;
|
||||||
|
private float intrate;
|
||||||
|
private String productDescription;
|
||||||
|
private String upLoadTime;
|
||||||
|
private String deleteTime;
|
||||||
|
private String alterTime;
|
||||||
|
|
||||||
|
public ProductHistroy(){};
|
||||||
|
|
||||||
|
public int getProductNum() {
|
||||||
|
return productNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductNum(int productNum) {
|
||||||
|
this.productNum = productNum;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue