发起债权转让
parent
7a4cf5b359
commit
0d13879af4
@ -0,0 +1,111 @@
|
|||||||
|
package com.sztzjy.block_finance.entity;
|
||||||
|
|
||||||
|
public class StuTransactionDocumentsInfo {
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
private Integer uploadStatus;
|
||||||
|
|
||||||
|
private Integer informationStatus;
|
||||||
|
|
||||||
|
private Integer signatureVerificationStatus;
|
||||||
|
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
private Integer receiveStatus;
|
||||||
|
|
||||||
|
private Integer readStatus;
|
||||||
|
|
||||||
|
private Integer downloadStatus;
|
||||||
|
|
||||||
|
public StuTransactionDocumentsInfo(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public StuTransactionDocumentsInfo(String userId,String fileName){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFileName() {
|
||||||
|
return fileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFileName(String fileName) {
|
||||||
|
this.fileName = fileName == null ? null : fileName.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url == null ? null : url.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUploadStatus() {
|
||||||
|
return uploadStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUploadStatus(Integer uploadStatus) {
|
||||||
|
this.uploadStatus = uploadStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getInformationStatus() {
|
||||||
|
return informationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInformationStatus(Integer informationStatus) {
|
||||||
|
this.informationStatus = informationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSignatureVerificationStatus() {
|
||||||
|
return signatureVerificationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSignatureVerificationStatus(Integer signatureVerificationStatus) {
|
||||||
|
this.signatureVerificationStatus = signatureVerificationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(String userId) {
|
||||||
|
this.userId = userId == null ? null : userId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getReceiveStatus() {
|
||||||
|
return receiveStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReceiveStatus(Integer receiveStatus) {
|
||||||
|
this.receiveStatus = receiveStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getReadStatus() {
|
||||||
|
return readStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReadStatus(Integer readStatus) {
|
||||||
|
this.readStatus = readStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDownloadStatus() {
|
||||||
|
return downloadStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDownloadStatus(Integer downloadStatus) {
|
||||||
|
this.downloadStatus = downloadStatus;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,829 @@
|
|||||||
|
package com.sztzjy.block_finance.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class StuTransactionDocumentsInfoExample {
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
public StuTransactionDocumentsInfoExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(Integer value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Integer value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Integer value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(Integer value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<Integer> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Integer> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameIsNull() {
|
||||||
|
addCriterion("file_name is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameIsNotNull() {
|
||||||
|
addCriterion("file_name is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameEqualTo(String value) {
|
||||||
|
addCriterion("file_name =", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameNotEqualTo(String value) {
|
||||||
|
addCriterion("file_name <>", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameGreaterThan(String value) {
|
||||||
|
addCriterion("file_name >", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_name >=", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameLessThan(String value) {
|
||||||
|
addCriterion("file_name <", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_name <=", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameLike(String value) {
|
||||||
|
addCriterion("file_name like", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameNotLike(String value) {
|
||||||
|
addCriterion("file_name not like", value, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameIn(List<String> values) {
|
||||||
|
addCriterion("file_name in", values, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameNotIn(List<String> values) {
|
||||||
|
addCriterion("file_name not in", values, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_name between", value1, value2, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileNameNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_name not between", value1, value2, "fileName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlIsNull() {
|
||||||
|
addCriterion("url is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlIsNotNull() {
|
||||||
|
addCriterion("url is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlEqualTo(String value) {
|
||||||
|
addCriterion("url =", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlNotEqualTo(String value) {
|
||||||
|
addCriterion("url <>", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlGreaterThan(String value) {
|
||||||
|
addCriterion("url >", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("url >=", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlLessThan(String value) {
|
||||||
|
addCriterion("url <", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("url <=", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlLike(String value) {
|
||||||
|
addCriterion("url like", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlNotLike(String value) {
|
||||||
|
addCriterion("url not like", value, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlIn(List<String> values) {
|
||||||
|
addCriterion("url in", values, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlNotIn(List<String> values) {
|
||||||
|
addCriterion("url not in", values, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlBetween(String value1, String value2) {
|
||||||
|
addCriterion("url between", value1, value2, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("url not between", value1, value2, "url");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusIsNull() {
|
||||||
|
addCriterion("upload_status is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusIsNotNull() {
|
||||||
|
addCriterion("upload_status is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("upload_status =", value, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("upload_status <>", value, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("upload_status >", value, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("upload_status >=", value, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusLessThan(Integer value) {
|
||||||
|
addCriterion("upload_status <", value, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("upload_status <=", value, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("upload_status in", values, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("upload_status not in", values, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("upload_status between", value1, value2, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUploadStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("upload_status not between", value1, value2, "uploadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusIsNull() {
|
||||||
|
addCriterion("information_status is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusIsNotNull() {
|
||||||
|
addCriterion("information_status is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("information_status =", value, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("information_status <>", value, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("information_status >", value, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("information_status >=", value, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusLessThan(Integer value) {
|
||||||
|
addCriterion("information_status <", value, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("information_status <=", value, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("information_status in", values, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("information_status not in", values, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("information_status between", value1, value2, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInformationStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("information_status not between", value1, value2, "informationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusIsNull() {
|
||||||
|
addCriterion("signature_verification_status is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusIsNotNull() {
|
||||||
|
addCriterion("signature_verification_status is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("signature_verification_status =", value, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("signature_verification_status <>", value, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("signature_verification_status >", value, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("signature_verification_status >=", value, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusLessThan(Integer value) {
|
||||||
|
addCriterion("signature_verification_status <", value, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("signature_verification_status <=", value, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("signature_verification_status in", values, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("signature_verification_status not in", values, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("signature_verification_status between", value1, value2, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSignatureVerificationStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("signature_verification_status not between", value1, value2, "signatureVerificationStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdIsNull() {
|
||||||
|
addCriterion("user_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdIsNotNull() {
|
||||||
|
addCriterion("user_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdEqualTo(String value) {
|
||||||
|
addCriterion("user_id =", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdNotEqualTo(String value) {
|
||||||
|
addCriterion("user_id <>", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdGreaterThan(String value) {
|
||||||
|
addCriterion("user_id >", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("user_id >=", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdLessThan(String value) {
|
||||||
|
addCriterion("user_id <", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("user_id <=", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdLike(String value) {
|
||||||
|
addCriterion("user_id like", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdNotLike(String value) {
|
||||||
|
addCriterion("user_id not like", value, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdIn(List<String> values) {
|
||||||
|
addCriterion("user_id in", values, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdNotIn(List<String> values) {
|
||||||
|
addCriterion("user_id not in", values, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("user_id between", value1, value2, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUserIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("user_id not between", value1, value2, "userId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusIsNull() {
|
||||||
|
addCriterion("receive_status is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusIsNotNull() {
|
||||||
|
addCriterion("receive_status is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("receive_status =", value, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("receive_status <>", value, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("receive_status >", value, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("receive_status >=", value, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusLessThan(Integer value) {
|
||||||
|
addCriterion("receive_status <", value, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("receive_status <=", value, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("receive_status in", values, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("receive_status not in", values, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("receive_status between", value1, value2, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReceiveStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("receive_status not between", value1, value2, "receiveStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusIsNull() {
|
||||||
|
addCriterion("read_status is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusIsNotNull() {
|
||||||
|
addCriterion("read_status is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("read_status =", value, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("read_status <>", value, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("read_status >", value, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("read_status >=", value, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusLessThan(Integer value) {
|
||||||
|
addCriterion("read_status <", value, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("read_status <=", value, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("read_status in", values, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("read_status not in", values, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("read_status between", value1, value2, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("read_status not between", value1, value2, "readStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusIsNull() {
|
||||||
|
addCriterion("\"download status\" is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusIsNotNull() {
|
||||||
|
addCriterion("\"download status\" is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("\"download status\" =", value, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("\"download status\" <>", value, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("\"download status\" >", value, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("\"download status\" >=", value, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusLessThan(Integer value) {
|
||||||
|
addCriterion("\"download status\" <", value, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("\"download status\" <=", value, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("\"download status\" in", values, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("\"download status\" not in", values, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("\"download status\" between", value1, value2, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDownloadStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("\"download status\" not between", value1, value2, "downloadStatus");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.sztzjy.block_finance.entity.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author tz
|
||||||
|
* @date 2024/3/7 14:02
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class StuDebtTransferDTO {
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
private Integer uploadStatus;
|
||||||
|
|
||||||
|
private Integer readStatus;
|
||||||
|
|
||||||
|
private Integer downloadStatus;
|
||||||
|
|
||||||
|
private String userId;
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
package com.sztzjy.block_finance.mappers;
|
||||||
|
|
||||||
|
import com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo;
|
||||||
|
import com.sztzjy.block_finance.entity.StuTransactionDocumentsInfoExample;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
@Mapper
|
||||||
|
public interface StuTransactionDocumentsInfoMapper {
|
||||||
|
long countByExample(StuTransactionDocumentsInfoExample example);
|
||||||
|
|
||||||
|
int deleteByExample(StuTransactionDocumentsInfoExample example);
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
int insert(StuTransactionDocumentsInfo record);
|
||||||
|
|
||||||
|
int insertSelective(StuTransactionDocumentsInfo record);
|
||||||
|
|
||||||
|
List<StuTransactionDocumentsInfo> selectByExample(StuTransactionDocumentsInfoExample example);
|
||||||
|
|
||||||
|
StuTransactionDocumentsInfo selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
int updateByExampleSelective(@Param("record") StuTransactionDocumentsInfo record, @Param("example") StuTransactionDocumentsInfoExample example);
|
||||||
|
|
||||||
|
int updateByExample(@Param("record") StuTransactionDocumentsInfo record, @Param("example") StuTransactionDocumentsInfoExample example);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(StuTransactionDocumentsInfo record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(StuTransactionDocumentsInfo record);
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.sztzjy.block_finance.service;
|
||||||
|
|
||||||
|
import com.sztzjy.block_finance.entity.dto.StuDebtTransferDTO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author tz
|
||||||
|
* @date 2024/3/7 14:05
|
||||||
|
*/
|
||||||
|
public interface StuDebtTransferStartService {
|
||||||
|
List<StuDebtTransferDTO> debtTransferFileDisplay(String userId);
|
||||||
|
|
||||||
|
int operate(Integer id, String operateType);
|
||||||
|
|
||||||
|
void applicationForDebtTransfer(String userId);
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
package com.sztzjy.block_finance.service.impl;
|
||||||
|
|
||||||
|
import com.sztzjy.block_finance.config.exception.handler.ServiceException;
|
||||||
|
import com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo;
|
||||||
|
import com.sztzjy.block_finance.entity.StuTransactionDocumentsInfoExample;
|
||||||
|
import com.sztzjy.block_finance.entity.dto.StuDebtTransferDTO;
|
||||||
|
import com.sztzjy.block_finance.mappers.StuTransactionDocumentsInfoMapper;
|
||||||
|
import com.sztzjy.block_finance.service.StuDebtTransferStartService;
|
||||||
|
import com.sztzjy.block_finance.util.ConvertUtil;
|
||||||
|
import org.springframework.http.HttpStatus;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author tz
|
||||||
|
* @date 2024/3/7 14:05
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartService {
|
||||||
|
@Resource
|
||||||
|
ConvertUtil convertUtil;
|
||||||
|
@Resource
|
||||||
|
StuTransactionDocumentsInfoMapper stuTransactionDocumentsInfoMapper;
|
||||||
|
@Override
|
||||||
|
public List<StuDebtTransferDTO> debtTransferFileDisplay(String userId) {
|
||||||
|
|
||||||
|
StuTransactionDocumentsInfoExample stuTransactionDocumentsInfoExample=new StuTransactionDocumentsInfoExample();
|
||||||
|
stuTransactionDocumentsInfoExample.createCriteria().andUserIdEqualTo(userId);
|
||||||
|
List<StuTransactionDocumentsInfo> stuTransactionDocumentsInfoList = stuTransactionDocumentsInfoMapper.selectByExample(stuTransactionDocumentsInfoExample);
|
||||||
|
|
||||||
|
if(stuTransactionDocumentsInfoList.isEmpty()){
|
||||||
|
//查询默认数据
|
||||||
|
StuTransactionDocumentsInfoExample example = new StuTransactionDocumentsInfoExample();
|
||||||
|
example.createCriteria().andUserIdIsNull();
|
||||||
|
List<StuTransactionDocumentsInfo> stuTransactionDocumentsInfos = stuTransactionDocumentsInfoMapper.selectByExample(example);
|
||||||
|
|
||||||
|
for (int i = 0; i < stuTransactionDocumentsInfos.size(); i++) {
|
||||||
|
StuTransactionDocumentsInfo stuTransactionDocumentsInfo = stuTransactionDocumentsInfos.get(i);
|
||||||
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
||||||
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
||||||
|
stuTransactionDocumentsInfo.setId(uuid);
|
||||||
|
stuTransactionDocumentsInfo.setUserId(userId);
|
||||||
|
stuTransactionDocumentsInfoMapper.insert(stuTransactionDocumentsInfo);
|
||||||
|
stuTransactionDocumentsInfoList.add(stuTransactionDocumentsInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
List<StuDebtTransferDTO> stuDebtTransferDTOList = convertUtil.entityToDTOList(stuTransactionDocumentsInfoList, StuDebtTransferDTO.class);
|
||||||
|
return stuDebtTransferDTOList;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int operate(Integer id, String operateType) {
|
||||||
|
StuTransactionDocumentsInfo stuTransactionDocumentsInfo = stuTransactionDocumentsInfoMapper.selectByPrimaryKey(id);
|
||||||
|
if(operateType.equals("下载")){
|
||||||
|
stuTransactionDocumentsInfo.setDownloadStatus(1);
|
||||||
|
}
|
||||||
|
if(operateType.equals("上传")){
|
||||||
|
if(stuTransactionDocumentsInfo.getDownloadStatus()!=1){
|
||||||
|
throw new ServiceException(HttpStatus.ACCEPTED,"未下载文件,无法上传");
|
||||||
|
}
|
||||||
|
stuTransactionDocumentsInfo.setUploadStatus(1);
|
||||||
|
}
|
||||||
|
if(operateType.equals("读取")){
|
||||||
|
if(stuTransactionDocumentsInfo.getUploadStatus()!=1){
|
||||||
|
throw new ServiceException(HttpStatus.ACCEPTED,"未上传文件,无法读取");
|
||||||
|
}
|
||||||
|
stuTransactionDocumentsInfo.setReadStatus(1);
|
||||||
|
}
|
||||||
|
int update = stuTransactionDocumentsInfoMapper.updateByPrimaryKey(stuTransactionDocumentsInfo);
|
||||||
|
return update;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void applicationForDebtTransfer(String userId) {
|
||||||
|
StuTransactionDocumentsInfoExample stuTransactionDocumentsInfoExample=new StuTransactionDocumentsInfoExample();
|
||||||
|
stuTransactionDocumentsInfoExample.createCriteria().andUserIdEqualTo(userId);
|
||||||
|
List<StuTransactionDocumentsInfo> stuTransactionDocumentsInfos = stuTransactionDocumentsInfoMapper.selectByExample(stuTransactionDocumentsInfoExample);
|
||||||
|
for (int i = 0; i < stuTransactionDocumentsInfos.size(); i++) {
|
||||||
|
if(stuTransactionDocumentsInfos.get(i).getReadStatus()!=1){
|
||||||
|
throw new ServiceException(HttpStatus.ACCEPTED,"文件未全部读取");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,291 @@
|
|||||||
|
<?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.sztzjy.block_finance.mappers.StuTransactionDocumentsInfoMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo">
|
||||||
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
|
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||||
|
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||||
|
<result column="upload_status" jdbcType="INTEGER" property="uploadStatus" />
|
||||||
|
<result column="information_status" jdbcType="INTEGER" property="informationStatus" />
|
||||||
|
<result column="signature_verification_status" jdbcType="INTEGER" property="signatureVerificationStatus" />
|
||||||
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||||
|
<result column="receive_status" jdbcType="INTEGER" property="receiveStatus" />
|
||||||
|
<result column="read_status" jdbcType="INTEGER" property="readStatus" />
|
||||||
|
<result column="download status" jdbcType="INTEGER" property="downloadStatus" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, file_name, url, upload_status, information_status, signature_verification_status,
|
||||||
|
user_id, receive_status, read_status, "download status"
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfoExample" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from stu_transaction_documents_info
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from stu_transaction_documents_info
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||||
|
delete from stu_transaction_documents_info
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfoExample">
|
||||||
|
delete from stu_transaction_documents_info
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo">
|
||||||
|
insert into stu_transaction_documents_info (id, file_name, url,
|
||||||
|
upload_status, information_status, signature_verification_status,
|
||||||
|
user_id, receive_status, read_status,
|
||||||
|
"download status")
|
||||||
|
values (#{id,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
|
||||||
|
#{uploadStatus,jdbcType=INTEGER}, #{informationStatus,jdbcType=INTEGER}, #{signatureVerificationStatus,jdbcType=INTEGER},
|
||||||
|
#{userId,jdbcType=VARCHAR}, #{receiveStatus,jdbcType=INTEGER}, #{readStatus,jdbcType=INTEGER},
|
||||||
|
#{downloadStatus,jdbcType=INTEGER})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo">
|
||||||
|
insert into stu_transaction_documents_info
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null">
|
||||||
|
file_name,
|
||||||
|
</if>
|
||||||
|
<if test="url != null">
|
||||||
|
url,
|
||||||
|
</if>
|
||||||
|
<if test="uploadStatus != null">
|
||||||
|
upload_status,
|
||||||
|
</if>
|
||||||
|
<if test="informationStatus != null">
|
||||||
|
information_status,
|
||||||
|
</if>
|
||||||
|
<if test="signatureVerificationStatus != null">
|
||||||
|
signature_verification_status,
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
user_id,
|
||||||
|
</if>
|
||||||
|
<if test="receiveStatus != null">
|
||||||
|
receive_status,
|
||||||
|
</if>
|
||||||
|
<if test="readStatus != null">
|
||||||
|
read_status,
|
||||||
|
</if>
|
||||||
|
<if test="downloadStatus != null">
|
||||||
|
"download status",
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null">
|
||||||
|
#{fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="url != null">
|
||||||
|
#{url,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="uploadStatus != null">
|
||||||
|
#{uploadStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="informationStatus != null">
|
||||||
|
#{informationStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="signatureVerificationStatus != null">
|
||||||
|
#{signatureVerificationStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
#{userId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="receiveStatus != null">
|
||||||
|
#{receiveStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="readStatus != null">
|
||||||
|
#{readStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="downloadStatus != null">
|
||||||
|
#{downloadStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfoExample" resultType="java.lang.Long">
|
||||||
|
select count(*) from stu_transaction_documents_info
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
update stu_transaction_documents_info
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileName != null">
|
||||||
|
file_name = #{record.fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.url != null">
|
||||||
|
url = #{record.url,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.uploadStatus != null">
|
||||||
|
upload_status = #{record.uploadStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.informationStatus != null">
|
||||||
|
information_status = #{record.informationStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.signatureVerificationStatus != null">
|
||||||
|
signature_verification_status = #{record.signatureVerificationStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.userId != null">
|
||||||
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.receiveStatus != null">
|
||||||
|
receive_status = #{record.receiveStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.readStatus != null">
|
||||||
|
read_status = #{record.readStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.downloadStatus != null">
|
||||||
|
"download status" = #{record.downloadStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
update stu_transaction_documents_info
|
||||||
|
set id = #{record.id,jdbcType=INTEGER},
|
||||||
|
file_name = #{record.fileName,jdbcType=VARCHAR},
|
||||||
|
url = #{record.url,jdbcType=VARCHAR},
|
||||||
|
upload_status = #{record.uploadStatus,jdbcType=INTEGER},
|
||||||
|
information_status = #{record.informationStatus,jdbcType=INTEGER},
|
||||||
|
signature_verification_status = #{record.signatureVerificationStatus,jdbcType=INTEGER},
|
||||||
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||||
|
receive_status = #{record.receiveStatus,jdbcType=INTEGER},
|
||||||
|
read_status = #{record.readStatus,jdbcType=INTEGER},
|
||||||
|
"download status" = #{record.downloadStatus,jdbcType=INTEGER}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo">
|
||||||
|
update stu_transaction_documents_info
|
||||||
|
<set>
|
||||||
|
<if test="fileName != null">
|
||||||
|
file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="url != null">
|
||||||
|
url = #{url,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="uploadStatus != null">
|
||||||
|
upload_status = #{uploadStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="informationStatus != null">
|
||||||
|
information_status = #{informationStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="signatureVerificationStatus != null">
|
||||||
|
signature_verification_status = #{signatureVerificationStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
user_id = #{userId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="receiveStatus != null">
|
||||||
|
receive_status = #{receiveStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="readStatus != null">
|
||||||
|
read_status = #{readStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="downloadStatus != null">
|
||||||
|
"download status" = #{downloadStatus,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.StuTransactionDocumentsInfo">
|
||||||
|
update stu_transaction_documents_info
|
||||||
|
set file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
url = #{url,jdbcType=VARCHAR},
|
||||||
|
upload_status = #{uploadStatus,jdbcType=INTEGER},
|
||||||
|
information_status = #{informationStatus,jdbcType=INTEGER},
|
||||||
|
signature_verification_status = #{signatureVerificationStatus,jdbcType=INTEGER},
|
||||||
|
user_id = #{userId,jdbcType=VARCHAR},
|
||||||
|
receive_status = #{receiveStatus,jdbcType=INTEGER},
|
||||||
|
read_status = #{readStatus,jdbcType=INTEGER},
|
||||||
|
"download status" = #{downloadStatus,jdbcType=INTEGER}
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue