diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuAddBussinessController.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuAddBussinessController.java index cb6f0da..42cc82e 100644 --- a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuAddBussinessController.java +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuAddBussinessController.java @@ -89,16 +89,22 @@ public class StuAddBussinessController { - map.put("信丰世嘉融资事项股东会决议预览","/supply/部分19信丰世嘉融资事项股东会决议.pdf"); - map.put("连带责任保证担保合同预览","/supply/部分18连带责任保证担保合同.pdf"); - map.put("应收账款反转让承诺书预览","/supply/部分14应收账款反转让承诺书.pdf"); - map.put("应收账款转让明细表预览","/supply/部分1应收账款转让明细表.pdf"); - - map.put("应收账款转让通知书预览","/supply/部分12应收账款转让通知书1.pdf"); - map.put("应收账款转让通知书预览 回执","/supply/部分13应收账款转让通知书2 回执.pdf"); - map.put("应收账款转让通知书预览(签章完整) 回执","/supply/应收账款质押通知书及回执(签章完整)---非案例2.pdf"); - - + map.put("信丰世嘉融资事项股东会决议","/supply/部分19 信丰世嘉融资事项股东会决议.pdf"); + map.put("连带责任保证担保合同","/supply/部分18 连带责任保证担保合同.pdf"); + map.put("应收账款反转让承诺书","/supply/部分14 应收账款反转让承诺书.pdf"); + map.put("应收账款转让明细表","/supply/部分1 应收账款转让明细表.pdf"); + + map.put("应收账款转让通知书","/supply/部分12 应收账款转让通知书1.pdf"); + map.put("应收账款转让通知书 回执","/supply/部分13 应收账款转让通知书2 回执.pdf"); + map.put("应收账款转让通知书(签章完整) 回执","/supply/应收账款质押通知书及回执(签章完整)---非案例2.pdf"); + + + map.put("应收账款账龄和账期分析","/supply/应收账款账龄和账期分析.pdf"); + map.put("退货记录分析","/supply/退货记录分析.pdf"); + map.put("坏账分析","/supply/坏账分析.pdf"); + map.put("债权明晰性分析","/supply/债权明晰性与可转让性分析.pdf"); + map.put("债权可转让性分析","/supply/债权明晰性与可转让性分析.pdf"); + map.put("基础交易真实性分析","/supply/基础交易真实性分析.pdf"); map.put("中登网转让登记","/supply/中登网--保理登记--信丰世嘉单笔.pdf"); //map.put("确认开增值税发票","/supply/部分3 采购订单1.pdf"); diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuDebtTransferStartController.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuDebtTransferStartController.java index 0a0ce85..76b207f 100644 --- a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuDebtTransferStartController.java +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuDebtTransferStartController.java @@ -58,8 +58,9 @@ public class StuDebtTransferStartController { @PostMapping("/debtInvestigationPassed") @AnonymousAccess @ApiOperation("债项调查--债项调查通过") - public ResultEntity debtInvestigationPassed(@RequestBody List stuDebtInvestigationInfo){ - stuDebtTransferStartService.debtInvestigationPassed(stuDebtInvestigationInfo); + public ResultEntity debtInvestigationPassed(@RequestParam @ApiParam("用户ID") String userId, + @ApiParam("错误次数") Integer numberOfErrors){ + stuDebtTransferStartService.debtInvestigationPassed(userId,numberOfErrors); return new ResultEntity(HttpStatus.OK,"通过"); } @@ -72,7 +73,7 @@ public class StuDebtTransferStartController { return new ResultEntity<>(HttpStatus.OK,"成功",stuDebtTransferDTOList); } - @PostMapping("/digitalSignature ") + @PostMapping("/digitalSignature") @AnonymousAccess @ApiOperation("数字签章确权(供应商/核心企业/保理公司)--数字签名:验证私钥") public ResultEntity digitalSignature(@ApiParam("私钥") String privateKey, @@ -81,7 +82,7 @@ public class StuDebtTransferStartController { return new ResultEntity<>(HttpStatus.OK,"验证成功"); } - @PostMapping("/digitalSignatureConfirmation ") + @PostMapping("/digitalSignatureConfirmation") @AnonymousAccess @ApiOperation("数字签章确权(供应商/核心企业/保理公司)--数字签章确认") public ResultEntity digitalSignatureConfirmation(@ApiParam("用户ID") String userId, @@ -103,6 +104,29 @@ public class StuDebtTransferStartController { } + + @PostMapping("/validateConfirmation") + @AnonymousAccess + @ApiOperation("验证确权") + public ResultEntity validateConfirmation(@ApiParam("用户ID") String userId, + @ApiParam("公钥") String publicKey, + @ApiParam("企业类别") String category){ + String ciphertext=stuDebtTransferStartService.validateConfirmation(userId,publicKey,category); + return new ResultEntity<>(HttpStatus.OK,"成功",ciphertext); + } + + + @PostMapping("/completeConfirmation") + @AnonymousAccess + @ApiOperation("完成确权") + public ResultEntity completeConfirmation(@ApiParam("用户ID") String userId, + @ApiParam("错误次数") Integer numberOfErrors, + @ApiParam("企业类别") String category){ + stuDebtTransferStartService.completeConfirmation(userId,numberOfErrors,category); + return new ResultEntity<>(HttpStatus.OK,"成功"); + } + + @PostMapping("/exchangeTokensConfirm") @AnonymousAccess @ApiOperation("兑换代币") @@ -117,6 +141,7 @@ public class StuDebtTransferStartController { return new ResultEntity<>(HttpStatus.OK, "成功"); } + @PostMapping("/receiveTokens") @AnonymousAccess @ApiOperation("接收代币") @@ -147,6 +172,7 @@ public class StuDebtTransferStartController { return new ResultEntity<>(HttpStatus.OK, "支付成功"); } + @PostMapping("/matureRepayment") @AnonymousAccess @ApiOperation("到期还款") diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuOperationController.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuOperationController.java index 8a1920d..7d6a735 100644 --- a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuOperationController.java +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuOperationController.java @@ -1,6 +1,5 @@ package com.sztzjy.block_finance.controller; -import cn.hutool.core.util.IdUtil; import com.sztzjy.block_finance.annotation.AnonymousAccess; import com.sztzjy.block_finance.config.Constant; import com.sztzjy.block_finance.config.exception.handler.InvoceTException; @@ -25,7 +24,8 @@ import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; import javax.validation.constraints.NotBlank; -import java.io.IOException; +import java.io.*; +import java.net.URLEncoder; import java.nio.file.Files; import java.nio.file.Paths; import java.util.Date; @@ -49,6 +49,7 @@ public class StuOperationController { @Value("${file.path}") private String filePath; + @GetMapping("/download") @AnonymousAccess @ApiOperation("操作:下载") @@ -92,7 +93,7 @@ public class StuOperationController { } - @GetMapping("/upload") + @PostMapping("/upload") @AnonymousAccess @ApiOperation("操作:上传") public ResultEntity upload(@RequestParam @RequestPart MultipartFile file, @@ -113,14 +114,15 @@ public class StuOperationController { //TODO 上传名字做校验防止出现胡乱上传问题待补充 HashMap map = new HashMap<>(); - map.put("连带责任保证担保合同预览","/supply/部分18连带责任保证担保合同.pdf"); - map.put("应收账款反转让承诺书预览","/supply/部分14应收账款反转让承诺书.pdf"); - map.put("应收账款转让明细表预览","/supply/部分1应收账款转让明细表.pdf"); + map.put("连带责任保证担保合同","/supply/部分18 连带责任保证担保合同.pdf"); + map.put("应收账款反转让承诺书","/supply/部分14 应收账款反转让承诺书.pdf"); + map.put("应收账款转让明细表","/supply/部分1 应收账款转让明细表.pdf"); + + map.put("应收账款转让通知书","/supply/部分12 应收账款转让通知书1.pdf"); + map.put("应收账款转让通知书 回执","/supply/部分13 应收账款转让通知书2 回执.pdf"); + map.put("应收账款转让通知书(签章完整) 回执","/supply/应收账款质押通知书及回执(签章完整)---非案例2.pdf"); - map.put("应收账款转让通知书预览","/supply/部分12应收账款转让通知书1.pdf"); - map.put("应收账款转让通知书预览 回执","/supply/部分13应收账款转让通知书2 回执.pdf"); - map.put("应收账款转让通知书预览(签章完整) 回执","/supply/应收账款质押通知书及回执(签章完整)---非案例2.pdf"); //用于判断文件名是否为对应的文件名 String name = map.get(fileName); @@ -136,18 +138,18 @@ public class StuOperationController { // 获取文件名 String originalFilename = file.getOriginalFilename(); - if (!name.equals(originalFilename)) - { - throw new InvoceTException(HttpStatus.ACCEPTED, "请上传正确的文件!"); - } - - - // 判断文件扩展名是否为图片格式 - - if (!StringUtils.hasLength(originalFilename) || (!originalFilename.toLowerCase().endsWith(".pdf"))) - { - throw new InvoceTException(HttpStatus.ACCEPTED, "请上传正确的文件!"); - } +// if (!name.equals(originalFilename)) +// { +// throw new InvoceTException(HttpStatus.ACCEPTED, "请上传正确的文件!"); +// } +// +// +// // 判断文件扩展名是否为图片格式 +// +// if (!StringUtils.hasLength(originalFilename) || (!originalFilename.toLowerCase().endsWith(".pdf"))) +// { +// throw new InvoceTException(HttpStatus.ACCEPTED, "请上传正确的文件!"); +// } StuTransactionDocumentsInfoExample example = new StuTransactionDocumentsInfoExample(); @@ -165,16 +167,16 @@ public class StuOperationController { StuTransactionDocumentsInfo documentsInfo = documentsInfoList.get(0); documentsInfo.setUrl(uploadPath); documentsInfo.setUpdateTime(new Date()); - if(category.isEmpty()){ + if(category==null){ documentsInfo.setUploadStatus(1); + }else { + if(category.equals(Constant.CORE_ENTERPRISES)){ + documentsInfo.setCoreEnterpriseUploadStatus(1); + } + if(category.equals(Constant.IMPORT_FACTOR)){ + documentsInfo.setFactoringUploadStatus(1); + } } - if(category.equals(Constant.CORE_ENTERPRISES)){ - documentsInfo.setCoreEnterpriseUploadStatus(1); - } - if(category.equals(Constant.IMPORT_FACTOR)){ - documentsInfo.setFactoringUploadStatus(1); - } - stuTransactionDocumentsInfoMapper.updateByPrimaryKeySelective(documentsInfo); } @@ -195,33 +197,80 @@ public class StuOperationController { @GetMapping("/viewByPurchasePPT") - @ApiOperation("交叉检验预览(PPT)") + @ApiOperation("交叉检验、印章真伪鉴别预览(PPT和doc)") @AnonymousAccess - ResponseEntity viewByPurchasePPT(String userId, String docName) throws IOException, IOException { + void viewByPurchasePPT(String userId, String docName,HttpServletResponse response) throws IOException, IOException { HashMap map = new HashMap<>(); map.put("交叉检验","/supply/交叉检验(信贷调查).pptx"); + map.put("印章真伪鉴别","/supply/信息页-印章真伪鉴别.doc"); + //map.put("确认开增值税发票","/supply/部分3 采购订单1.pdf"); + String docPath = map.get(docName); - String docPath = map.get(docName); + // 模拟加载公章图片的数据(假设在硬盘上的某个路径下) + String imagePath = filePath +docPath; + // 获取到文件 + File file=new File(imagePath); + String name = file.getName(); + // 编码文件名,以确保在浏览器中正确显示 + String encodedFileName = URLEncoder.encode(name, "UTF-8"); + // 检查文件是否存在 + if (!file.exists()) { + response.sendError(HttpServletResponse.SC_NOT_FOUND); + return; + } - // 模拟加载公章图片的数据(假设在硬盘上的某个路径下) - String imagePath = filePath +docPath; - // 替换为你的实际路径 - byte[] sealBytes = Files.readAllBytes(Paths.get(imagePath)); + if (docName.equals("交叉检验")) { + // 设置响应内容类型为PPTX文件 + response.setContentType("application/vnd.openxmlformats-officedocument.presentationml.presentation"); + } + + + if (docName.equals("印章真伪鉴别")) { + // 设置响应内容类型为doc文件 + response.setContentType("application/vnd.openxmlformats-officedocument.wordprocessingml.document"); + } + + + // 设置响应头,告诉浏览器文件名 + response.setHeader("Content-Disposition", "attachment; filename=\"" + encodedFileName + "\""); + + + + // 设置其他可能的响应头信息,如内容长度(可选) + // 如果知道文件大小,可以设置Content-Length,否则可以省略 + long fileLength = file.length(); + if (fileLength > 0) { + response.setContentLengthLong(fileLength); + } - // 构建HTTP响应,设置Content-Type为application/octet-stream - return ResponseEntity.ok().contentType(MediaType.APPLICATION_OCTET_STREAM).body(sealBytes); + // 读取文件内容并写入响应输出流 + try (InputStream inputStream = Files.newInputStream(file.toPath()); + OutputStream outputStream = response.getOutputStream()) { + + byte[] buffer = new byte[4096]; + int bytesRead = -1; + + while ((bytesRead = inputStream.read(buffer)) != -1) { + outputStream.write(buffer, 0, bytesRead); + } + + outputStream.flush(); // 确保所有数据都被发送 + } catch (IOException e) { + e.printStackTrace(); // 或者处理异常 + response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + } } } diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuReTrainingController.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuReTrainingController.java new file mode 100644 index 0000000..d055e23 --- /dev/null +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/controller/StuReTrainingController.java @@ -0,0 +1,91 @@ +package com.sztzjy.block_finance.controller; + +import com.sztzjy.block_finance.annotation.AnonymousAccess; +import com.sztzjy.block_finance.entity.*; +import com.sztzjy.block_finance.mappers.*; +import com.sztzjy.block_finance.util.ResultEntity; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; +import java.util.UUID; + +/** + * @author tz + * @date 2024/5/16 15:39 + */ +@Api(tags = "重新实训(统一接口)") +@RestController +@RequestMapping("api/stu/reTraining") +public class StuReTrainingController { + @Resource StuCoreInvestMapper stuCoreInvestMapper; + + @Resource StuDigitalDebtVoucherMapper debtVoucherMapper; + + @Resource StuDigitalSignatureInfoMapper signatureInfoMapper; + + @Resource StuFinanNeedsMapper stuFinanNeedsMapper; + + @Resource stuJoinNodeMapper stuJoinNodeMapper; + + @Resource StuSupplyOnchainMapper stuSupplyOnchainMapper; + + @Resource StuTransactionDocumentsInfoMapper documentsInfoMapper; + + @Resource StuUploadResourceInfoMapper resourceInfoMapper; + + + @PostMapping("/reTraining") + @AnonymousAccess + @ApiOperation("重新实训(统一接口)") + public ResultEntity reTraining(@RequestParam @ApiParam("用户ID") String userId){ + // + StuCoreInvestExample investExample=new StuCoreInvestExample(); + investExample.createCriteria().andUserIdEqualTo(userId); + stuCoreInvestMapper.deleteByExample(investExample); + + // + StuDigitalDebtVoucherExample debtVoucherExample=new StuDigitalDebtVoucherExample(); + debtVoucherExample.createCriteria().andUserIdEqualTo(userId); + debtVoucherMapper.deleteByExample(debtVoucherExample); + + // + StuDigitalSignatureInfoExample signatureInfoExample=new StuDigitalSignatureInfoExample(); + signatureInfoExample.createCriteria().andUserIdEqualTo(userId); + signatureInfoMapper.deleteByExample(signatureInfoExample); + + // + StuFinanNeedsExample needsExample=new StuFinanNeedsExample(); + needsExample.createCriteria().andUserIdEqualTo(userId); + stuFinanNeedsMapper.deleteByExample(needsExample); + + // + stuJoinNodeExample joinNodeExample=new stuJoinNodeExample(); + joinNodeExample.createCriteria().andUserIdEqualTo(userId); + stuJoinNodeMapper.deleteByExample(joinNodeExample); + + // + StuSupplyOnchainExample onchainExample=new StuSupplyOnchainExample(); + onchainExample.createCriteria().andUserIdEqualTo(userId); + stuSupplyOnchainMapper.deleteByExample(onchainExample); + + // + StuTransactionDocumentsInfoExample documentsInfoExample=new StuTransactionDocumentsInfoExample(); + documentsInfoExample.createCriteria().andUserIdEqualTo(userId); + documentsInfoMapper.deleteByExample(documentsInfoExample); + + // + StuUploadResourceInfoExample resourceInfoExample=new StuUploadResourceInfoExample(); + resourceInfoExample.createCriteria().andUserIdEqualTo(userId); + resourceInfoMapper.deleteByExample(resourceInfoExample); + + return new ResultEntity<>(HttpStatus.OK,"重新实训成功"); + } +} diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/entity/StuOperationRecords.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/entity/StuOperationRecords.java new file mode 100644 index 0000000..42f4035 --- /dev/null +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/entity/StuOperationRecords.java @@ -0,0 +1,266 @@ +package com.sztzjy.block_finance.entity; + +import java.lang.reflect.Method; + +public class StuOperationRecords { + private Integer id; + + private Integer stepOne; + + private Integer stepTwo; + + private Integer stepThree; + + private Integer stepFour; + + private Integer stepFive; + + private Integer stepSix; + + private Integer stepSeven; + + private Integer stepEight; + + private Integer stepNine; + + private Integer stepTen; + + private Integer stepEleven; + + private Integer stepTwelve; + + private Integer stepThirteen; + + private Integer stepFourteen; + + private Integer stepFifteen; + + private Integer stepSixteen; + + private Integer stepSeventeen; + + private Integer stepEighteen; + + private Integer stepNineteen; + + private Integer stepTwenty; + + private Integer stepTwentyOne; + + private Integer stepTwentyTwo; + + private String userId; + + public void set(String methodName, Object value) { + try { + Method method = getClass().getMethod("set" + Character.toUpperCase(methodName.charAt(0)) + methodName.substring(1),value.getClass()); + method.invoke(this, value); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public Object get(String methodName) { + Object result = null; + try { + Method method = getClass().getMethod("get" + Character.toUpperCase(methodName.charAt(0)) + methodName.substring(1)); + result = method.invoke(this); + } catch (Exception e) { + e.printStackTrace(); + } + return result; + } + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getStepOne() { + return stepOne; + } + + public void setStepOne(Integer stepOne) { + this.stepOne = stepOne; + } + + public Integer getStepTwo() { + return stepTwo; + } + + public void setStepTwo(Integer stepTwo) { + this.stepTwo = stepTwo; + } + + public Integer getStepThree() { + return stepThree; + } + + public void setStepThree(Integer stepThree) { + this.stepThree = stepThree; + } + + public Integer getStepFour() { + return stepFour; + } + + public void setStepFour(Integer stepFour) { + this.stepFour = stepFour; + } + + public Integer getStepFive() { + return stepFive; + } + + public void setStepFive(Integer stepFive) { + this.stepFive = stepFive; + } + + public Integer getStepSix() { + return stepSix; + } + + public void setStepSix(Integer stepSix) { + this.stepSix = stepSix; + } + + public Integer getStepSeven() { + return stepSeven; + } + + public void setStepSeven(Integer stepSeven) { + this.stepSeven = stepSeven; + } + + public Integer getStepEight() { + return stepEight; + } + + public void setStepEight(Integer stepEight) { + this.stepEight = stepEight; + } + + public Integer getStepNine() { + return stepNine; + } + + public void setStepNine(Integer stepNine) { + this.stepNine = stepNine; + } + + public Integer getStepTen() { + return stepTen; + } + + public void setStepTen(Integer stepTen) { + this.stepTen = stepTen; + } + + public Integer getStepEleven() { + return stepEleven; + } + + public void setStepEleven(Integer stepEleven) { + this.stepEleven = stepEleven; + } + + public Integer getStepTwelve() { + return stepTwelve; + } + + public void setStepTwelve(Integer stepTwelve) { + this.stepTwelve = stepTwelve; + } + + public Integer getStepThirteen() { + return stepThirteen; + } + + public void setStepThirteen(Integer stepThirteen) { + this.stepThirteen = stepThirteen; + } + + public Integer getStepFourteen() { + return stepFourteen; + } + + public void setStepFourteen(Integer stepFourteen) { + this.stepFourteen = stepFourteen; + } + + public Integer getStepFifteen() { + return stepFifteen; + } + + public void setStepFifteen(Integer stepFifteen) { + this.stepFifteen = stepFifteen; + } + + public Integer getStepSixteen() { + return stepSixteen; + } + + public void setStepSixteen(Integer stepSixteen) { + this.stepSixteen = stepSixteen; + } + + public Integer getStepSeventeen() { + return stepSeventeen; + } + + public void setStepSeventeen(Integer stepSeventeen) { + this.stepSeventeen = stepSeventeen; + } + + public Integer getStepEighteen() { + return stepEighteen; + } + + public void setStepEighteen(Integer stepEighteen) { + this.stepEighteen = stepEighteen; + } + + public Integer getStepNineteen() { + return stepNineteen; + } + + public void setStepNineteen(Integer stepNineteen) { + this.stepNineteen = stepNineteen; + } + + public Integer getStepTwenty() { + return stepTwenty; + } + + public void setStepTwenty(Integer stepTwenty) { + this.stepTwenty = stepTwenty; + } + + public Integer getStepTwentyOne() { + return stepTwentyOne; + } + + public void setStepTwentyOne(Integer stepTwentyOne) { + this.stepTwentyOne = stepTwentyOne; + } + + public Integer getStepTwentyTwo() { + return stepTwentyTwo; + } + + public void setStepTwentyTwo(Integer stepTwentyTwo) { + this.stepTwentyTwo = stepTwentyTwo; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } +} \ No newline at end of file diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/entity/StuOperationRecordsExample.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/entity/StuOperationRecordsExample.java new file mode 100644 index 0000000..1154653 --- /dev/null +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/entity/StuOperationRecordsExample.java @@ -0,0 +1,1649 @@ +package com.sztzjy.block_finance.entity; + +import java.util.ArrayList; +import java.util.List; + +public class StuOperationRecordsExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public StuOperationRecordsExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andStepOneIsNull() { + addCriterion("step_one is null"); + return (Criteria) this; + } + + public Criteria andStepOneIsNotNull() { + addCriterion("step_one is not null"); + return (Criteria) this; + } + + public Criteria andStepOneEqualTo(Integer value) { + addCriterion("step_one =", value, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneNotEqualTo(Integer value) { + addCriterion("step_one <>", value, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneGreaterThan(Integer value) { + addCriterion("step_one >", value, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneGreaterThanOrEqualTo(Integer value) { + addCriterion("step_one >=", value, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneLessThan(Integer value) { + addCriterion("step_one <", value, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneLessThanOrEqualTo(Integer value) { + addCriterion("step_one <=", value, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneIn(List values) { + addCriterion("step_one in", values, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneNotIn(List values) { + addCriterion("step_one not in", values, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneBetween(Integer value1, Integer value2) { + addCriterion("step_one between", value1, value2, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepOneNotBetween(Integer value1, Integer value2) { + addCriterion("step_one not between", value1, value2, "stepOne"); + return (Criteria) this; + } + + public Criteria andStepTwoIsNull() { + addCriterion("step_two is null"); + return (Criteria) this; + } + + public Criteria andStepTwoIsNotNull() { + addCriterion("step_two is not null"); + return (Criteria) this; + } + + public Criteria andStepTwoEqualTo(Integer value) { + addCriterion("step_two =", value, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoNotEqualTo(Integer value) { + addCriterion("step_two <>", value, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoGreaterThan(Integer value) { + addCriterion("step_two >", value, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoGreaterThanOrEqualTo(Integer value) { + addCriterion("step_two >=", value, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoLessThan(Integer value) { + addCriterion("step_two <", value, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoLessThanOrEqualTo(Integer value) { + addCriterion("step_two <=", value, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoIn(List values) { + addCriterion("step_two in", values, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoNotIn(List values) { + addCriterion("step_two not in", values, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoBetween(Integer value1, Integer value2) { + addCriterion("step_two between", value1, value2, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepTwoNotBetween(Integer value1, Integer value2) { + addCriterion("step_two not between", value1, value2, "stepTwo"); + return (Criteria) this; + } + + public Criteria andStepThreeIsNull() { + addCriterion("step_three is null"); + return (Criteria) this; + } + + public Criteria andStepThreeIsNotNull() { + addCriterion("step_three is not null"); + return (Criteria) this; + } + + public Criteria andStepThreeEqualTo(Integer value) { + addCriterion("step_three =", value, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeNotEqualTo(Integer value) { + addCriterion("step_three <>", value, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeGreaterThan(Integer value) { + addCriterion("step_three >", value, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeGreaterThanOrEqualTo(Integer value) { + addCriterion("step_three >=", value, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeLessThan(Integer value) { + addCriterion("step_three <", value, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeLessThanOrEqualTo(Integer value) { + addCriterion("step_three <=", value, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeIn(List values) { + addCriterion("step_three in", values, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeNotIn(List values) { + addCriterion("step_three not in", values, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeBetween(Integer value1, Integer value2) { + addCriterion("step_three between", value1, value2, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepThreeNotBetween(Integer value1, Integer value2) { + addCriterion("step_three not between", value1, value2, "stepThree"); + return (Criteria) this; + } + + public Criteria andStepFourIsNull() { + addCriterion("step_four is null"); + return (Criteria) this; + } + + public Criteria andStepFourIsNotNull() { + addCriterion("step_four is not null"); + return (Criteria) this; + } + + public Criteria andStepFourEqualTo(Integer value) { + addCriterion("step_four =", value, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourNotEqualTo(Integer value) { + addCriterion("step_four <>", value, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourGreaterThan(Integer value) { + addCriterion("step_four >", value, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourGreaterThanOrEqualTo(Integer value) { + addCriterion("step_four >=", value, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourLessThan(Integer value) { + addCriterion("step_four <", value, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourLessThanOrEqualTo(Integer value) { + addCriterion("step_four <=", value, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourIn(List values) { + addCriterion("step_four in", values, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourNotIn(List values) { + addCriterion("step_four not in", values, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourBetween(Integer value1, Integer value2) { + addCriterion("step_four between", value1, value2, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFourNotBetween(Integer value1, Integer value2) { + addCriterion("step_four not between", value1, value2, "stepFour"); + return (Criteria) this; + } + + public Criteria andStepFiveIsNull() { + addCriterion("step_five is null"); + return (Criteria) this; + } + + public Criteria andStepFiveIsNotNull() { + addCriterion("step_five is not null"); + return (Criteria) this; + } + + public Criteria andStepFiveEqualTo(Integer value) { + addCriterion("step_five =", value, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveNotEqualTo(Integer value) { + addCriterion("step_five <>", value, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveGreaterThan(Integer value) { + addCriterion("step_five >", value, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveGreaterThanOrEqualTo(Integer value) { + addCriterion("step_five >=", value, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveLessThan(Integer value) { + addCriterion("step_five <", value, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveLessThanOrEqualTo(Integer value) { + addCriterion("step_five <=", value, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveIn(List values) { + addCriterion("step_five in", values, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveNotIn(List values) { + addCriterion("step_five not in", values, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveBetween(Integer value1, Integer value2) { + addCriterion("step_five between", value1, value2, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepFiveNotBetween(Integer value1, Integer value2) { + addCriterion("step_five not between", value1, value2, "stepFive"); + return (Criteria) this; + } + + public Criteria andStepSixIsNull() { + addCriterion("step_six is null"); + return (Criteria) this; + } + + public Criteria andStepSixIsNotNull() { + addCriterion("step_six is not null"); + return (Criteria) this; + } + + public Criteria andStepSixEqualTo(Integer value) { + addCriterion("step_six =", value, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixNotEqualTo(Integer value) { + addCriterion("step_six <>", value, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixGreaterThan(Integer value) { + addCriterion("step_six >", value, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixGreaterThanOrEqualTo(Integer value) { + addCriterion("step_six >=", value, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixLessThan(Integer value) { + addCriterion("step_six <", value, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixLessThanOrEqualTo(Integer value) { + addCriterion("step_six <=", value, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixIn(List values) { + addCriterion("step_six in", values, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixNotIn(List values) { + addCriterion("step_six not in", values, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixBetween(Integer value1, Integer value2) { + addCriterion("step_six between", value1, value2, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSixNotBetween(Integer value1, Integer value2) { + addCriterion("step_six not between", value1, value2, "stepSix"); + return (Criteria) this; + } + + public Criteria andStepSevenIsNull() { + addCriterion("step_seven is null"); + return (Criteria) this; + } + + public Criteria andStepSevenIsNotNull() { + addCriterion("step_seven is not null"); + return (Criteria) this; + } + + public Criteria andStepSevenEqualTo(Integer value) { + addCriterion("step_seven =", value, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenNotEqualTo(Integer value) { + addCriterion("step_seven <>", value, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenGreaterThan(Integer value) { + addCriterion("step_seven >", value, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_seven >=", value, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenLessThan(Integer value) { + addCriterion("step_seven <", value, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenLessThanOrEqualTo(Integer value) { + addCriterion("step_seven <=", value, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenIn(List values) { + addCriterion("step_seven in", values, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenNotIn(List values) { + addCriterion("step_seven not in", values, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenBetween(Integer value1, Integer value2) { + addCriterion("step_seven between", value1, value2, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepSevenNotBetween(Integer value1, Integer value2) { + addCriterion("step_seven not between", value1, value2, "stepSeven"); + return (Criteria) this; + } + + public Criteria andStepEightIsNull() { + addCriterion("step_eight is null"); + return (Criteria) this; + } + + public Criteria andStepEightIsNotNull() { + addCriterion("step_eight is not null"); + return (Criteria) this; + } + + public Criteria andStepEightEqualTo(Integer value) { + addCriterion("step_eight =", value, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightNotEqualTo(Integer value) { + addCriterion("step_eight <>", value, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightGreaterThan(Integer value) { + addCriterion("step_eight >", value, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightGreaterThanOrEqualTo(Integer value) { + addCriterion("step_eight >=", value, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightLessThan(Integer value) { + addCriterion("step_eight <", value, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightLessThanOrEqualTo(Integer value) { + addCriterion("step_eight <=", value, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightIn(List values) { + addCriterion("step_eight in", values, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightNotIn(List values) { + addCriterion("step_eight not in", values, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightBetween(Integer value1, Integer value2) { + addCriterion("step_eight between", value1, value2, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepEightNotBetween(Integer value1, Integer value2) { + addCriterion("step_eight not between", value1, value2, "stepEight"); + return (Criteria) this; + } + + public Criteria andStepNineIsNull() { + addCriterion("step_nine is null"); + return (Criteria) this; + } + + public Criteria andStepNineIsNotNull() { + addCriterion("step_nine is not null"); + return (Criteria) this; + } + + public Criteria andStepNineEqualTo(Integer value) { + addCriterion("step_nine =", value, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineNotEqualTo(Integer value) { + addCriterion("step_nine <>", value, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineGreaterThan(Integer value) { + addCriterion("step_nine >", value, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineGreaterThanOrEqualTo(Integer value) { + addCriterion("step_nine >=", value, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineLessThan(Integer value) { + addCriterion("step_nine <", value, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineLessThanOrEqualTo(Integer value) { + addCriterion("step_nine <=", value, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineIn(List values) { + addCriterion("step_nine in", values, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineNotIn(List values) { + addCriterion("step_nine not in", values, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineBetween(Integer value1, Integer value2) { + addCriterion("step_nine between", value1, value2, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepNineNotBetween(Integer value1, Integer value2) { + addCriterion("step_nine not between", value1, value2, "stepNine"); + return (Criteria) this; + } + + public Criteria andStepTenIsNull() { + addCriterion("step_ten is null"); + return (Criteria) this; + } + + public Criteria andStepTenIsNotNull() { + addCriterion("step_ten is not null"); + return (Criteria) this; + } + + public Criteria andStepTenEqualTo(Integer value) { + addCriterion("step_ten =", value, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenNotEqualTo(Integer value) { + addCriterion("step_ten <>", value, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenGreaterThan(Integer value) { + addCriterion("step_ten >", value, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_ten >=", value, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenLessThan(Integer value) { + addCriterion("step_ten <", value, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenLessThanOrEqualTo(Integer value) { + addCriterion("step_ten <=", value, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenIn(List values) { + addCriterion("step_ten in", values, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenNotIn(List values) { + addCriterion("step_ten not in", values, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenBetween(Integer value1, Integer value2) { + addCriterion("step_ten between", value1, value2, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepTenNotBetween(Integer value1, Integer value2) { + addCriterion("step_ten not between", value1, value2, "stepTen"); + return (Criteria) this; + } + + public Criteria andStepElevenIsNull() { + addCriterion("step_eleven is null"); + return (Criteria) this; + } + + public Criteria andStepElevenIsNotNull() { + addCriterion("step_eleven is not null"); + return (Criteria) this; + } + + public Criteria andStepElevenEqualTo(Integer value) { + addCriterion("step_eleven =", value, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenNotEqualTo(Integer value) { + addCriterion("step_eleven <>", value, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenGreaterThan(Integer value) { + addCriterion("step_eleven >", value, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_eleven >=", value, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenLessThan(Integer value) { + addCriterion("step_eleven <", value, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenLessThanOrEqualTo(Integer value) { + addCriterion("step_eleven <=", value, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenIn(List values) { + addCriterion("step_eleven in", values, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenNotIn(List values) { + addCriterion("step_eleven not in", values, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenBetween(Integer value1, Integer value2) { + addCriterion("step_eleven between", value1, value2, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepElevenNotBetween(Integer value1, Integer value2) { + addCriterion("step_eleven not between", value1, value2, "stepEleven"); + return (Criteria) this; + } + + public Criteria andStepTwelveIsNull() { + addCriterion("step_twelve is null"); + return (Criteria) this; + } + + public Criteria andStepTwelveIsNotNull() { + addCriterion("step_twelve is not null"); + return (Criteria) this; + } + + public Criteria andStepTwelveEqualTo(Integer value) { + addCriterion("step_twelve =", value, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveNotEqualTo(Integer value) { + addCriterion("step_twelve <>", value, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveGreaterThan(Integer value) { + addCriterion("step_twelve >", value, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveGreaterThanOrEqualTo(Integer value) { + addCriterion("step_twelve >=", value, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveLessThan(Integer value) { + addCriterion("step_twelve <", value, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveLessThanOrEqualTo(Integer value) { + addCriterion("step_twelve <=", value, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveIn(List values) { + addCriterion("step_twelve in", values, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveNotIn(List values) { + addCriterion("step_twelve not in", values, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveBetween(Integer value1, Integer value2) { + addCriterion("step_twelve between", value1, value2, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepTwelveNotBetween(Integer value1, Integer value2) { + addCriterion("step_twelve not between", value1, value2, "stepTwelve"); + return (Criteria) this; + } + + public Criteria andStepThirteenIsNull() { + addCriterion("step_thirteen is null"); + return (Criteria) this; + } + + public Criteria andStepThirteenIsNotNull() { + addCriterion("step_thirteen is not null"); + return (Criteria) this; + } + + public Criteria andStepThirteenEqualTo(Integer value) { + addCriterion("step_thirteen =", value, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenNotEqualTo(Integer value) { + addCriterion("step_thirteen <>", value, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenGreaterThan(Integer value) { + addCriterion("step_thirteen >", value, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_thirteen >=", value, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenLessThan(Integer value) { + addCriterion("step_thirteen <", value, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenLessThanOrEqualTo(Integer value) { + addCriterion("step_thirteen <=", value, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenIn(List values) { + addCriterion("step_thirteen in", values, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenNotIn(List values) { + addCriterion("step_thirteen not in", values, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenBetween(Integer value1, Integer value2) { + addCriterion("step_thirteen between", value1, value2, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepThirteenNotBetween(Integer value1, Integer value2) { + addCriterion("step_thirteen not between", value1, value2, "stepThirteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenIsNull() { + addCriterion("step_fourteen is null"); + return (Criteria) this; + } + + public Criteria andStepFourteenIsNotNull() { + addCriterion("step_fourteen is not null"); + return (Criteria) this; + } + + public Criteria andStepFourteenEqualTo(Integer value) { + addCriterion("step_fourteen =", value, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenNotEqualTo(Integer value) { + addCriterion("step_fourteen <>", value, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenGreaterThan(Integer value) { + addCriterion("step_fourteen >", value, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_fourteen >=", value, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenLessThan(Integer value) { + addCriterion("step_fourteen <", value, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenLessThanOrEqualTo(Integer value) { + addCriterion("step_fourteen <=", value, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenIn(List values) { + addCriterion("step_fourteen in", values, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenNotIn(List values) { + addCriterion("step_fourteen not in", values, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenBetween(Integer value1, Integer value2) { + addCriterion("step_fourteen between", value1, value2, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFourteenNotBetween(Integer value1, Integer value2) { + addCriterion("step_fourteen not between", value1, value2, "stepFourteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenIsNull() { + addCriterion("step_fifteen is null"); + return (Criteria) this; + } + + public Criteria andStepFifteenIsNotNull() { + addCriterion("step_fifteen is not null"); + return (Criteria) this; + } + + public Criteria andStepFifteenEqualTo(Integer value) { + addCriterion("step_fifteen =", value, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenNotEqualTo(Integer value) { + addCriterion("step_fifteen <>", value, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenGreaterThan(Integer value) { + addCriterion("step_fifteen >", value, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_fifteen >=", value, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenLessThan(Integer value) { + addCriterion("step_fifteen <", value, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenLessThanOrEqualTo(Integer value) { + addCriterion("step_fifteen <=", value, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenIn(List values) { + addCriterion("step_fifteen in", values, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenNotIn(List values) { + addCriterion("step_fifteen not in", values, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenBetween(Integer value1, Integer value2) { + addCriterion("step_fifteen between", value1, value2, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepFifteenNotBetween(Integer value1, Integer value2) { + addCriterion("step_fifteen not between", value1, value2, "stepFifteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenIsNull() { + addCriterion("step_sixteen is null"); + return (Criteria) this; + } + + public Criteria andStepSixteenIsNotNull() { + addCriterion("step_sixteen is not null"); + return (Criteria) this; + } + + public Criteria andStepSixteenEqualTo(Integer value) { + addCriterion("step_sixteen =", value, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenNotEqualTo(Integer value) { + addCriterion("step_sixteen <>", value, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenGreaterThan(Integer value) { + addCriterion("step_sixteen >", value, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_sixteen >=", value, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenLessThan(Integer value) { + addCriterion("step_sixteen <", value, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenLessThanOrEqualTo(Integer value) { + addCriterion("step_sixteen <=", value, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenIn(List values) { + addCriterion("step_sixteen in", values, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenNotIn(List values) { + addCriterion("step_sixteen not in", values, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenBetween(Integer value1, Integer value2) { + addCriterion("step_sixteen between", value1, value2, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSixteenNotBetween(Integer value1, Integer value2) { + addCriterion("step_sixteen not between", value1, value2, "stepSixteen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenIsNull() { + addCriterion("step_seventeen is null"); + return (Criteria) this; + } + + public Criteria andStepSeventeenIsNotNull() { + addCriterion("step_seventeen is not null"); + return (Criteria) this; + } + + public Criteria andStepSeventeenEqualTo(Integer value) { + addCriterion("step_seventeen =", value, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenNotEqualTo(Integer value) { + addCriterion("step_seventeen <>", value, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenGreaterThan(Integer value) { + addCriterion("step_seventeen >", value, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_seventeen >=", value, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenLessThan(Integer value) { + addCriterion("step_seventeen <", value, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenLessThanOrEqualTo(Integer value) { + addCriterion("step_seventeen <=", value, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenIn(List values) { + addCriterion("step_seventeen in", values, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenNotIn(List values) { + addCriterion("step_seventeen not in", values, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenBetween(Integer value1, Integer value2) { + addCriterion("step_seventeen between", value1, value2, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepSeventeenNotBetween(Integer value1, Integer value2) { + addCriterion("step_seventeen not between", value1, value2, "stepSeventeen"); + return (Criteria) this; + } + + public Criteria andStepEighteenIsNull() { + addCriterion("step_eighteen is null"); + return (Criteria) this; + } + + public Criteria andStepEighteenIsNotNull() { + addCriterion("step_eighteen is not null"); + return (Criteria) this; + } + + public Criteria andStepEighteenEqualTo(Integer value) { + addCriterion("step_eighteen =", value, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenNotEqualTo(Integer value) { + addCriterion("step_eighteen <>", value, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenGreaterThan(Integer value) { + addCriterion("step_eighteen >", value, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_eighteen >=", value, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenLessThan(Integer value) { + addCriterion("step_eighteen <", value, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenLessThanOrEqualTo(Integer value) { + addCriterion("step_eighteen <=", value, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenIn(List values) { + addCriterion("step_eighteen in", values, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenNotIn(List values) { + addCriterion("step_eighteen not in", values, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenBetween(Integer value1, Integer value2) { + addCriterion("step_eighteen between", value1, value2, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepEighteenNotBetween(Integer value1, Integer value2) { + addCriterion("step_eighteen not between", value1, value2, "stepEighteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenIsNull() { + addCriterion("step_nineteen is null"); + return (Criteria) this; + } + + public Criteria andStepNineteenIsNotNull() { + addCriterion("step_nineteen is not null"); + return (Criteria) this; + } + + public Criteria andStepNineteenEqualTo(Integer value) { + addCriterion("step_nineteen =", value, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenNotEqualTo(Integer value) { + addCriterion("step_nineteen <>", value, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenGreaterThan(Integer value) { + addCriterion("step_nineteen >", value, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenGreaterThanOrEqualTo(Integer value) { + addCriterion("step_nineteen >=", value, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenLessThan(Integer value) { + addCriterion("step_nineteen <", value, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenLessThanOrEqualTo(Integer value) { + addCriterion("step_nineteen <=", value, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenIn(List values) { + addCriterion("step_nineteen in", values, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenNotIn(List values) { + addCriterion("step_nineteen not in", values, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenBetween(Integer value1, Integer value2) { + addCriterion("step_nineteen between", value1, value2, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepNineteenNotBetween(Integer value1, Integer value2) { + addCriterion("step_nineteen not between", value1, value2, "stepNineteen"); + return (Criteria) this; + } + + public Criteria andStepTwentyIsNull() { + addCriterion("step_twenty is null"); + return (Criteria) this; + } + + public Criteria andStepTwentyIsNotNull() { + addCriterion("step_twenty is not null"); + return (Criteria) this; + } + + public Criteria andStepTwentyEqualTo(Integer value) { + addCriterion("step_twenty =", value, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyNotEqualTo(Integer value) { + addCriterion("step_twenty <>", value, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyGreaterThan(Integer value) { + addCriterion("step_twenty >", value, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyGreaterThanOrEqualTo(Integer value) { + addCriterion("step_twenty >=", value, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyLessThan(Integer value) { + addCriterion("step_twenty <", value, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyLessThanOrEqualTo(Integer value) { + addCriterion("step_twenty <=", value, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyIn(List values) { + addCriterion("step_twenty in", values, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyNotIn(List values) { + addCriterion("step_twenty not in", values, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyBetween(Integer value1, Integer value2) { + addCriterion("step_twenty between", value1, value2, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyNotBetween(Integer value1, Integer value2) { + addCriterion("step_twenty not between", value1, value2, "stepTwenty"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneIsNull() { + addCriterion("step_twenty_one is null"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneIsNotNull() { + addCriterion("step_twenty_one is not null"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneEqualTo(Integer value) { + addCriterion("step_twenty_one =", value, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneNotEqualTo(Integer value) { + addCriterion("step_twenty_one <>", value, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneGreaterThan(Integer value) { + addCriterion("step_twenty_one >", value, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneGreaterThanOrEqualTo(Integer value) { + addCriterion("step_twenty_one >=", value, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneLessThan(Integer value) { + addCriterion("step_twenty_one <", value, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneLessThanOrEqualTo(Integer value) { + addCriterion("step_twenty_one <=", value, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneIn(List values) { + addCriterion("step_twenty_one in", values, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneNotIn(List values) { + addCriterion("step_twenty_one not in", values, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneBetween(Integer value1, Integer value2) { + addCriterion("step_twenty_one between", value1, value2, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyOneNotBetween(Integer value1, Integer value2) { + addCriterion("step_twenty_one not between", value1, value2, "stepTwentyOne"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoIsNull() { + addCriterion("step_twenty_two is null"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoIsNotNull() { + addCriterion("step_twenty_two is not null"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoEqualTo(Integer value) { + addCriterion("step_twenty_two =", value, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoNotEqualTo(Integer value) { + addCriterion("step_twenty_two <>", value, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoGreaterThan(Integer value) { + addCriterion("step_twenty_two >", value, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoGreaterThanOrEqualTo(Integer value) { + addCriterion("step_twenty_two >=", value, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoLessThan(Integer value) { + addCriterion("step_twenty_two <", value, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoLessThanOrEqualTo(Integer value) { + addCriterion("step_twenty_two <=", value, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoIn(List values) { + addCriterion("step_twenty_two in", values, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoNotIn(List values) { + addCriterion("step_twenty_two not in", values, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoBetween(Integer value1, Integer value2) { + addCriterion("step_twenty_two between", value1, value2, "stepTwentyTwo"); + return (Criteria) this; + } + + public Criteria andStepTwentyTwoNotBetween(Integer value1, Integer value2) { + addCriterion("step_twenty_two not between", value1, value2, "stepTwentyTwo"); + 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/mappers/StuOperationRecordsMapper.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/mappers/StuOperationRecordsMapper.java new file mode 100644 index 0000000..adf7262 --- /dev/null +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/mappers/StuOperationRecordsMapper.java @@ -0,0 +1,32 @@ +package com.sztzjy.block_finance.mappers; + +import com.sztzjy.block_finance.entity.StuOperationRecords; +import com.sztzjy.block_finance.entity.StuOperationRecordsExample; +import java.util.List; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +@Mapper +public interface StuOperationRecordsMapper { + long countByExample(StuOperationRecordsExample example); + + int deleteByExample(StuOperationRecordsExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(StuOperationRecords record); + + int insertSelective(StuOperationRecords record); + + List selectByExample(StuOperationRecordsExample example); + + StuOperationRecords selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") StuOperationRecords record, @Param("example") StuOperationRecordsExample example); + + int updateByExample(@Param("record") StuOperationRecords record, @Param("example") StuOperationRecordsExample example); + + int updateByPrimaryKeySelective(StuOperationRecords record); + + int updateByPrimaryKey(StuOperationRecords record); +} \ No newline at end of file diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuDebtTransferStartService.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuDebtTransferStartService.java index 6197da9..a945f52 100644 --- a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuDebtTransferStartService.java +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuDebtTransferStartService.java @@ -21,7 +21,7 @@ public interface StuDebtTransferStartService { List debtInvestigationFileDisplay(String userId); - void debtInvestigationPassed(List stuDebtInvestigationInfo); + void debtInvestigationPassed(String userId,Integer numberOfErrors); List supplierFileDisplay(String userId,String category); @@ -39,11 +39,15 @@ public interface StuDebtTransferStartService { void paymentTokens(String userId, BigDecimal money, String nodeAddress); - void matureRepayment(String userId, String repaymentParty, String repaymentAccount, String paymentRecipient, String openingBank, String bankAccountNumber, BigDecimal paymentAmount); + void matureRepayment(String userId, String repaymentParty, String repaymentAccount, String paymentRecipient, String openingBank, String bankAccountNumber, BigDecimal paymentAmountInteger); void smartContracts(String userId); void exchangeTokensConfirm(String userId, BigDecimal totalAmount, BigDecimal financingAmount, BigDecimal financingInterest, String deadline, BigDecimal tokenAmount, String nodeAddress); StuDigitalDebtVoucher previewVoucher(String userId); + + String validateConfirmation(String userId, String publicKey, String category); + + void completeConfirmation(String userId, Integer numberOfErrors,String category); } diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuReTrainingService.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuReTrainingService.java new file mode 100644 index 0000000..153b4f8 --- /dev/null +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/StuReTrainingService.java @@ -0,0 +1,11 @@ +package com.sztzjy.block_finance.service; + +import io.swagger.annotations.ApiParam; + +/** + * @author tz + * @date 2024/5/16 17:26 + */ +public interface StuReTrainingService { + void operationRecords(String userId, Integer numberOfErrors, Integer number); +} diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuDebtTransferStartServiceImpl.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuDebtTransferStartServiceImpl.java index 3ede12a..2b05cbd 100644 --- a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuDebtTransferStartServiceImpl.java +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuDebtTransferStartServiceImpl.java @@ -6,8 +6,8 @@ import com.sztzjy.block_finance.entity.*; import com.sztzjy.block_finance.entity.dto.StuDebtTransferDTO; import com.sztzjy.block_finance.mappers.*; import com.sztzjy.block_finance.service.StuDebtTransferStartService; - -import com.sztzjy.block_finance.service.StuSupplyPublicService; +import com.sztzjy.block_finance.service.StuPublicService; +import com.sztzjy.block_finance.service.StuReTrainingService; import com.sztzjy.block_finance.util.BigDecimalUtils; import com.sztzjy.block_finance.util.ConvertUtil; import com.sztzjy.block_finance.util.RsaUtil; @@ -39,11 +39,13 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ @Resource StuDigitalDebtVoucherMapper stuDigitalDebtVoucherMapper; @Resource - StuJoinNodeBySupplyMapper StuJoinNodeBySupplyMapper; + stuJoinNodeMapper stuJoinNodeMapper; @Resource StuFinanNeedsMapper stuFinanNeedsMapper; @Resource - StuSupplyPublicService stuPublicService; + StuPublicService stuPublicService; + @Resource + StuReTrainingService service; @Override public List debtTransferFileDisplay(String userId) { @@ -77,7 +79,7 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ @Override public void applicationForDebtTransfer(String userId) { StuTransactionDocumentsInfoExample stuTransactionDocumentsInfoExample=new StuTransactionDocumentsInfoExample(); - stuTransactionDocumentsInfoExample.createCriteria().andUserIdEqualTo(userId); + stuTransactionDocumentsInfoExample.createCriteria().andUserIdEqualTo(userId).andReadStatusIsNotNull(); List stuTransactionDocumentsInfos = stuTransactionDocumentsInfoMapper.selectByExample(stuTransactionDocumentsInfoExample); for (int i = 0; i < stuTransactionDocumentsInfos.size(); i++) { if(stuTransactionDocumentsInfos.get(i).getReadStatus()!=1){ @@ -93,20 +95,8 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ } @Override - public void debtInvestigationPassed(List stuDebtInvestigationInfo) { - //查询内置数据 - List stuDebtInvestigationInfos = stuDebtInvestigationInfoMapper.selectByExample(null); - //进行比较 - for (int i = 0; i < stuDebtInvestigationInfo.size(); i++) { - for (int j = 0; j < stuDebtInvestigationInfos.size(); j++) { - if(stuDebtInvestigationInfo.get(i).getId()==stuDebtInvestigationInfos.get(j).getId()){ //是否是同一文件 - if(!stuDebtInvestigationInfo.get(i).getOnAnalysis().equals(stuDebtInvestigationInfos.get(j).getOnAnalysis())){ - throw new ServiceException(HttpStatus.ACCEPTED,"分析结果选择错误"); - } - break; - } - } - } + public void debtInvestigationPassed(String userId,Integer numberOfErrors) { + service.operationRecords(userId,numberOfErrors,12); } @Override @@ -277,6 +267,9 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ if(i<10){ //仅发起债权转让贴现展示 stuTransactionDocumentsInfo.setDiscountDisplay(1); stuTransactionDocumentsInfo.setSequence(i+1); + stuTransactionDocumentsInfo.setUploadStatus(1); + stuTransactionDocumentsInfo.setDownloadStatus(1); + stuTransactionDocumentsInfo.setReadStatus(0); } if(strings[i].equals("应收账款转让通知书 回执")){ //核心企业和保理公司展示 stuTransactionDocumentsInfo.setFactoringCompanyDisplay(1); @@ -289,6 +282,7 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ stuTransactionDocumentsInfo.setDiscountDisplay(0); stuTransactionDocumentsInfo.setCoreEnterpriseDisplay(0); stuTransactionDocumentsInfo.setSupplierDisplay(0); + stuTransactionDocumentsInfo.setDownloadStatus(1); } stuTransactionDocumentsInfo.setCreateTime(new Date()); @@ -317,18 +311,18 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ BigDecimal exchangeTokenAmount = stuDigitalDebtVoucher.getExchangeTokenAmount(); //查询一级供应商账户,并将兑换代币额加入资产中 - StuJoinNodeBySupplyExample example=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample example=new stuJoinNodeExample(); example.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(2); - List stuJoinNodes = StuJoinNodeBySupplyMapper.selectByExample(example); + List stuJoinNodes = stuJoinNodeMapper.selectByExample(example); if(stuJoinNodes.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"供应商未加入节点"); } - StuJoinNodeBySupply StuJoinNodeBySupply = stuJoinNodes.get(0); - StuJoinNodeBySupply.setTokenAsset(exchangeTokenAmount.toString()); + stuJoinNode stuJoinNode = stuJoinNodes.get(0); + stuJoinNode.setTokenAsset(exchangeTokenAmount.toString()); //将应收账款变为0 - StuJoinNodeBySupply.setAccountReceive(String.valueOf(0)); + stuJoinNode.setAccountReceive(String.valueOf(0)); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(StuJoinNodeBySupply); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode); } /** @@ -364,30 +358,31 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ */ @Override public void paymentTokens(String userId, BigDecimal money, String nodeAddress) { - if(!money.equals("100000")){ + String moneyString = money.stripTrailingZeros().toPlainString(); + if(!moneyString.equals("100000")){ throw new ServiceException(HttpStatus.ACCEPTED,"金额填写信息错误"); } BigDecimalUtils bigDecimalUtils=new BigDecimalUtils(); // TODO: 2024/4/3 1、将代币加入保理商对应账户 - StuJoinNodeBySupplyExample joinNodeExample=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample joinNodeExample=new stuJoinNodeExample(); joinNodeExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(3); - List stuJoinNodes = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample); + List stuJoinNodes = stuJoinNodeMapper.selectByExample(joinNodeExample); if(stuJoinNodes.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"二级供应商未加入节点"); } - StuJoinNodeBySupply StuJoinNodeBySupply = stuJoinNodes.get(0); + stuJoinNode stuJoinNode = stuJoinNodes.get(0); - if(!nodeAddress.equals(StuJoinNodeBySupply.getNodeAddress())){ + if(!nodeAddress.equals(stuJoinNode.getNodeAddress())){ throw new ServiceException(HttpStatus.ACCEPTED,"节点地址填写信息错误"); } //取出代币资产并相加 - String tokenAsset = StuJoinNodeBySupply.getTokenAsset(); + String tokenAsset = stuJoinNode.getTokenAsset(); BigDecimal add = bigDecimalUtils.add(tokenAsset, money.toString()); - StuJoinNodeBySupply.setTokenAsset(add.toString()); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(StuJoinNodeBySupply); + stuJoinNode.setTokenAsset(add.toString()); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode); StuDigitalDebtVoucherExample example=new StuDigitalDebtVoucherExample(); example.createCriteria().andUserIdEqualTo(userId); @@ -413,21 +408,21 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ @Override public void matureRepayment(String userId, String repaymentParty, String repaymentAccount, String paymentRecipient, String openingBank, String bankAccountNumber, BigDecimal paymentAmount) { //查询保理公司信息 - StuJoinNodeBySupplyExample joinNodeExample=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample joinNodeExample=new stuJoinNodeExample(); joinNodeExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(4); - List stuJoinNodes = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample); + List stuJoinNodes = stuJoinNodeMapper.selectByExample(joinNodeExample); if(stuJoinNodes.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"保理商未加入节点"); } //查询核心企业信息 - StuJoinNodeBySupplyExample example=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample example=new stuJoinNodeExample(); example.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(1); - List stuJoinNodeList = StuJoinNodeBySupplyMapper.selectByExample(example); + List stuJoinNodeList = stuJoinNodeMapper.selectByExample(example); if(stuJoinNodeList.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"核心企业未加入节点"); } - StuJoinNodeBySupply StuJoinNodeBySupply = stuJoinNodes.get(0); - StuJoinNodeBySupply stuJoinNode1 = stuJoinNodeList.get(0); + stuJoinNode stuJoinNode = stuJoinNodes.get(0); + stuJoinNode stuJoinNode1 = stuJoinNodeList.get(0); //判断用户是否输入正确 if(!repaymentParty.equals(Constant.KUNMING)){ throw new ServiceException(HttpStatus.ACCEPTED,"还款方信息填写错误"); @@ -438,10 +433,10 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ if(!paymentRecipient.equals(Constant.SHENZHEN)){ throw new ServiceException(HttpStatus.ACCEPTED,"支付对象信息填写错误"); } - if(!openingBank.equals(StuJoinNodeBySupply.getBankOfDeposit())){ + if(!openingBank.equals(stuJoinNode.getBankOfDeposit())){ throw new ServiceException(HttpStatus.ACCEPTED,"开户行信息填写错误"); } - if(!bankAccountNumber.equals(StuJoinNodeBySupply.getBaseAccount())){ + if(!bankAccountNumber.equals(stuJoinNode.getBaseAccount())){ throw new ServiceException(HttpStatus.ACCEPTED,"还款方信息填写错误"); } String plainString = paymentAmount.stripTrailingZeros().toPlainString(); @@ -452,7 +447,7 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ //案例数据相应资金账户更新,数字债权凭证保理融资额变为0 // TODO: 2024/4/7 1、核心企业应付账款变为0 stuJoinNode1.setAccountPay(String.valueOf(0)); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(stuJoinNode1); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode1); // TODO: 2024/4/7 2、数字债权凭证保理融资额变为0 StuDigitalDebtVoucherExample debtVoucherExample=new StuDigitalDebtVoucherExample(); @@ -483,42 +478,42 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ // TODO: 2024/4/7 2、一级供应商、二级供应商的,所有相关账户数字都是0 //查询一级供应商 - StuJoinNodeBySupplyExample joinNodeExample1=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample joinNodeExample1=new stuJoinNodeExample(); joinNodeExample1.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(2); - List stuJoinNodes1 = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample1); + List stuJoinNodes1 = stuJoinNodeMapper.selectByExample(joinNodeExample1); if(stuJoinNodes1.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"一级供应商未加入节点"); } - StuJoinNodeBySupply stuJoinNode1 = stuJoinNodes1.get(0); + stuJoinNode stuJoinNode1 = stuJoinNodes1.get(0); stuJoinNode1.setAccountReceive(String.valueOf(0)); stuJoinNode1.setAccountPay(String.valueOf(0)); stuJoinNode1.setTokenAsset(String.valueOf(0)); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(stuJoinNode1); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode1); //查询二级供应商 - StuJoinNodeBySupplyExample joinNodeExample2=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample joinNodeExample2=new stuJoinNodeExample(); joinNodeExample2.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(3); - List stuJoinNodes2 = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample2); + List stuJoinNodes2 = stuJoinNodeMapper.selectByExample(joinNodeExample2); if(stuJoinNodes2.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"二级供应商未加入节点"); } - StuJoinNodeBySupply stuJoinNode2 = stuJoinNodes2.get(0); + stuJoinNode stuJoinNode2 = stuJoinNodes2.get(0); stuJoinNode2.setAccountReceive(String.valueOf(0)); stuJoinNode2.setAccountPay(String.valueOf(0)); stuJoinNode2.setTokenAsset(String.valueOf(0)); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(stuJoinNode2); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode2); // TODO: 2024/4/7 3、保理商代币资产是0 //查询保理商 - StuJoinNodeBySupplyExample joinNodeExample=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample joinNodeExample=new stuJoinNodeExample(); joinNodeExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(4); - List stuJoinNodes = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample); + List stuJoinNodes = stuJoinNodeMapper.selectByExample(joinNodeExample); if(stuJoinNodes.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"保理商未加入节点"); } - StuJoinNodeBySupply StuJoinNodeBySupply = stuJoinNodes.get(0); - StuJoinNodeBySupply.setTokenAsset(String.valueOf(0)); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(StuJoinNodeBySupply); + stuJoinNode stuJoinNode = stuJoinNodes.get(0); + stuJoinNode.setTokenAsset(String.valueOf(0)); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode); //修改提交状态 stuPublicService.updateState(userId); @@ -532,33 +527,25 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ if(!stuFinanNeedsList.isEmpty()){ StuFinanNeeds stuFinanNeeds = stuFinanNeedsList.get(0); String totalString = totalAmount.stripTrailingZeros().toPlainString(); - if(!totalString.equals(String.valueOf(stuFinanNeeds.getAccountReceiveAnount()))){ + if(!totalString.equals("406262.72")){ throw new ServiceException(HttpStatus.ACCEPTED,"应收账款总额信息填写错误"); } String fAString = financingAmount.stripTrailingZeros().toPlainString(); - if(!fAString.equals("390012.00")){ + if(!fAString.equals("390012")){ throw new ServiceException(HttpStatus.ACCEPTED,"保理融资额信息填写错误"); } String fIString = financingInterest.stripTrailingZeros().toPlainString(); if(!fIString.equals("16250.72")){ throw new ServiceException(HttpStatus.ACCEPTED,"融资利息信息填写错误"); } - if(!deadline.equals(String.valueOf(stuFinanNeeds.getPayDate()))){ + if(!deadline.equals("2021.08.31")){ throw new ServiceException(HttpStatus.ACCEPTED,"保理融资截止日信息填写错误"); } String tokenString = tokenAmount.stripTrailingZeros().toPlainString(); - if(tokenString.equals("390012.00")){ + if(!tokenString.equals("390012")){ throw new ServiceException(HttpStatus.ACCEPTED,"兑换代币额信息填写错误"); } - //查询信丰世嘉的节点地址 - StuJoinNodeBySupplyExample joinNodeExample=new StuJoinNodeBySupplyExample(); - joinNodeExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(2); - List stuJoinNodes = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample); - if(stuJoinNodes.isEmpty()){ - throw new ServiceException(HttpStatus.ACCEPTED,"一级供应商未加入节点"); - } - StuJoinNodeBySupply StuJoinNodeBySupply = stuJoinNodes.get(0); - if(!nodeAddress.equals(StuJoinNodeBySupply.getNodeAddress())){ + if(!nodeAddress.equals(Constant.XINFENGADDRESS)){ throw new ServiceException(HttpStatus.ACCEPTED,"代币转入地址信息填写错误"); } @@ -577,17 +564,17 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ stuDigitalDebtVoucherMapper.updateByPrimaryKey(stuDigitalDebtVoucher); //保理融资额及代币资产写入保理商对应账户 - StuJoinNodeBySupplyExample joinNodeExample1=new StuJoinNodeBySupplyExample(); + stuJoinNodeExample joinNodeExample1=new stuJoinNodeExample(); joinNodeExample1.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(4); - List stuJoinNodes1 = StuJoinNodeBySupplyMapper.selectByExample(joinNodeExample1); + List stuJoinNodes1 = stuJoinNodeMapper.selectByExample(joinNodeExample1); if(stuJoinNodes1.isEmpty()){ throw new ServiceException(HttpStatus.ACCEPTED,"保理商未加入节点"); } - StuJoinNodeBySupply stuJoinNode1 = stuJoinNodes1.get(0); + stuJoinNode stuJoinNode1 = stuJoinNodes1.get(0); stuJoinNode1.setFactorFinanceAmount(String.valueOf(financingAmount)); stuJoinNode1.setTokenAsset(String.valueOf(tokenAmount)); - StuJoinNodeBySupplyMapper.updateByPrimaryKey(stuJoinNode1); + stuJoinNodeMapper.updateByPrimaryKey(stuJoinNode1); } } @@ -602,4 +589,49 @@ public class StuDebtTransferStartServiceImpl implements StuDebtTransferStartServ } return stuDigitalDebtVouchers.get(0); } + + @Override + public String validateConfirmation(String userId, String publicKey, String category) { + StuDigitalDebtVoucherExample example=new StuDigitalDebtVoucherExample(); + example.createCriteria().andUserIdEqualTo(userId); + List stuDigitalDebtVouchers = stuDigitalDebtVoucherMapper.selectByExample(example); + if(stuDigitalDebtVouchers.isEmpty()){ + throw new ServiceException(HttpStatus.ACCEPTED,"未生成债权凭证"); + }else { + StuDigitalDebtVoucher stuDigitalDebtVoucher = stuDigitalDebtVouchers.get(0); + + if (publicKey.equals(Constant.XINFENGPUBLICKEY)) { + if (category.equals(Constant.SUPPLIER)) { + if (stuDigitalDebtVoucher.getSupplierDigitalSignature() == null) { + throw new ServiceException(HttpStatus.ACCEPTED, "数字凭证未更新"); + } + return stuDigitalDebtVoucher.getSupplierDigitalSignature(); + } + } + + if (publicKey.equals(Constant.KUNMINGPUBLICKEY)) { + if (category.equals(Constant.CORE_ENTERPRISES)) { + if (stuDigitalDebtVoucher.getImportFactorDigitalSignature() == null) { + throw new ServiceException(HttpStatus.ACCEPTED, "数字凭证未更新"); + } + return stuDigitalDebtVoucher.getImportFactorDigitalSignature(); + } + } + throw new ServiceException(HttpStatus.ACCEPTED, "公钥选择错误"); + } + } + + @Override + public void completeConfirmation(String userId, Integer numberOfErrors,String category) { + if(category.equals(Constant.SUPPLIER)){ + service.operationRecords(userId,numberOfErrors,13); + } + if(category.equals(Constant.CORE_ENTERPRISES)){ + service.operationRecords(userId,numberOfErrors,14); + } + if(category.equals(Constant.IMPORT_FACTOR)){ + service.operationRecords(userId,numberOfErrors,15); + } + } + } diff --git a/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuReTrainingServiceImpl.java b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuReTrainingServiceImpl.java new file mode 100644 index 0000000..289ad88 --- /dev/null +++ b/BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuReTrainingServiceImpl.java @@ -0,0 +1,130 @@ +package com.sztzjy.block_finance.service.impl; + +import com.sztzjy.block_finance.entity.StuOperationRecords; +import com.sztzjy.block_finance.entity.StuOperationRecordsExample; +import com.sztzjy.block_finance.mappers.StuOperationRecordsMapper; +import com.sztzjy.block_finance.service.StuReTrainingService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; +import java.util.UUID; + +/** + * @author tz + * @date 2024/5/16 17:26 + */ +@Service +public class StuReTrainingServiceImpl implements StuReTrainingService { + + @Resource + StuOperationRecordsMapper recordsMapper; + + + /** + * 记录每个步骤错误次数 + * @param userId 用户ID + * @param numberOfErrors 错误次数 + * @param number 步骤序号(1-20) + */ + @Override + public void operationRecords(String userId, Integer numberOfErrors, Integer number) { + StuOperationRecordsExample recordsExample=new StuOperationRecordsExample(); + recordsExample.createCriteria().andUserIdEqualTo(userId); + List stuOperationRecordsList = recordsMapper.selectByExample(recordsExample); + + //转换成实体类字段名 + String result = conversion(number); + if(stuOperationRecordsList.isEmpty()){ + StuOperationRecords stuOperationRecords=new StuOperationRecords(); + Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode(); + uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空 + stuOperationRecords.setId(uuid); + stuOperationRecords.setUserId(userId); + + + stuOperationRecords.set(result,numberOfErrors); + + recordsMapper.insert(stuOperationRecords); + }else { + StuOperationRecords stuOperationRecords = stuOperationRecordsList.get(0); + + Object object = stuOperationRecords.get(result); + if(object==null){ + stuOperationRecords.set(result,numberOfErrors); + } + recordsMapper.updateByPrimaryKey(stuOperationRecords); + } + } + + + /** + * 将序号转为实体类属性名 + * @param number + * @return + */ + public String conversion(Integer number){ + + if(number==1){ + return "stepOne"; + } + if(number==2){ + return "stepTwo"; + } + if(number==3){ + return "stepThree"; + } + if(number==4){ + return "stepFour"; + } + if(number==5){ + return "stepFive"; + } + if(number==6){ + return "stepSix"; + } + if(number==7){ + return "stepSeven"; + } + if(number==8){ + return "stepEight"; + } + if(number==9){ + return "stepNine"; + } + if(number==10){ + return "stepTen"; + } + if(number==11){ + return "stepEleven"; + } + if(number==12){ + return "stepTwelve"; + } + if(number==13){ + return "stepThirteen"; + } + if(number==14){ + return "stepFourteen"; + } + if(number==15){ + return "stepFifteen"; + } + if(number==16){ + return "stepSixteen"; + } + if(number==17){ + return "stepSeventeen"; + } + if(number==18){ + return "stepEighteen"; + } + if(number==19){ + return "stepNineteen"; + } + if(number==20){ + return "stepTwenty"; + } + return null; + } +} diff --git a/BlockFinanceCentral/src/main/resources/mappers/StuOperationRecordsMapper.xml b/BlockFinanceCentral/src/main/resources/mappers/StuOperationRecordsMapper.xml new file mode 100644 index 0000000..52f42a6 --- /dev/null +++ b/BlockFinanceCentral/src/main/resources/mappers/StuOperationRecordsMapper.xml @@ -0,0 +1,513 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, step_one, step_two, step_three, step_four, step_five, step_six, step_seven, step_eight, + step_nine, step_ten, step_eleven, step_twelve, step_thirteen, step_fourteen, step_fifteen, + step_sixteen, step_seventeen, step_eighteen, step_nineteen, step_twenty, step_twenty_one, + step_twenty_two, user_id + + + + + delete from stu_operation_records + where id = #{id,jdbcType=INTEGER} + + + delete from stu_operation_records + + + + + + insert into stu_operation_records (id, step_one, step_two, + step_three, step_four, step_five, + step_six, step_seven, step_eight, + step_nine, step_ten, step_eleven, + step_twelve, step_thirteen, step_fourteen, + step_fifteen, step_sixteen, step_seventeen, + step_eighteen, step_nineteen, step_twenty, + step_twenty_one, step_twenty_two, user_id + ) + values (#{id,jdbcType=INTEGER}, #{stepOne,jdbcType=INTEGER}, #{stepTwo,jdbcType=INTEGER}, + #{stepThree,jdbcType=INTEGER}, #{stepFour,jdbcType=INTEGER}, #{stepFive,jdbcType=INTEGER}, + #{stepSix,jdbcType=INTEGER}, #{stepSeven,jdbcType=INTEGER}, #{stepEight,jdbcType=INTEGER}, + #{stepNine,jdbcType=INTEGER}, #{stepTen,jdbcType=INTEGER}, #{stepEleven,jdbcType=INTEGER}, + #{stepTwelve,jdbcType=INTEGER}, #{stepThirteen,jdbcType=INTEGER}, #{stepFourteen,jdbcType=INTEGER}, + #{stepFifteen,jdbcType=INTEGER}, #{stepSixteen,jdbcType=INTEGER}, #{stepSeventeen,jdbcType=INTEGER}, + #{stepEighteen,jdbcType=INTEGER}, #{stepNineteen,jdbcType=INTEGER}, #{stepTwenty,jdbcType=INTEGER}, + #{stepTwentyOne,jdbcType=INTEGER}, #{stepTwentyTwo,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR} + ) + + + insert into stu_operation_records + + + id, + + + step_one, + + + step_two, + + + step_three, + + + step_four, + + + step_five, + + + step_six, + + + step_seven, + + + step_eight, + + + step_nine, + + + step_ten, + + + step_eleven, + + + step_twelve, + + + step_thirteen, + + + step_fourteen, + + + step_fifteen, + + + step_sixteen, + + + step_seventeen, + + + step_eighteen, + + + step_nineteen, + + + step_twenty, + + + step_twenty_one, + + + step_twenty_two, + + + user_id, + + + + + #{id,jdbcType=INTEGER}, + + + #{stepOne,jdbcType=INTEGER}, + + + #{stepTwo,jdbcType=INTEGER}, + + + #{stepThree,jdbcType=INTEGER}, + + + #{stepFour,jdbcType=INTEGER}, + + + #{stepFive,jdbcType=INTEGER}, + + + #{stepSix,jdbcType=INTEGER}, + + + #{stepSeven,jdbcType=INTEGER}, + + + #{stepEight,jdbcType=INTEGER}, + + + #{stepNine,jdbcType=INTEGER}, + + + #{stepTen,jdbcType=INTEGER}, + + + #{stepEleven,jdbcType=INTEGER}, + + + #{stepTwelve,jdbcType=INTEGER}, + + + #{stepThirteen,jdbcType=INTEGER}, + + + #{stepFourteen,jdbcType=INTEGER}, + + + #{stepFifteen,jdbcType=INTEGER}, + + + #{stepSixteen,jdbcType=INTEGER}, + + + #{stepSeventeen,jdbcType=INTEGER}, + + + #{stepEighteen,jdbcType=INTEGER}, + + + #{stepNineteen,jdbcType=INTEGER}, + + + #{stepTwenty,jdbcType=INTEGER}, + + + #{stepTwentyOne,jdbcType=INTEGER}, + + + #{stepTwentyTwo,jdbcType=INTEGER}, + + + #{userId,jdbcType=VARCHAR}, + + + + + + update stu_operation_records + + + id = #{record.id,jdbcType=INTEGER}, + + + step_one = #{record.stepOne,jdbcType=INTEGER}, + + + step_two = #{record.stepTwo,jdbcType=INTEGER}, + + + step_three = #{record.stepThree,jdbcType=INTEGER}, + + + step_four = #{record.stepFour,jdbcType=INTEGER}, + + + step_five = #{record.stepFive,jdbcType=INTEGER}, + + + step_six = #{record.stepSix,jdbcType=INTEGER}, + + + step_seven = #{record.stepSeven,jdbcType=INTEGER}, + + + step_eight = #{record.stepEight,jdbcType=INTEGER}, + + + step_nine = #{record.stepNine,jdbcType=INTEGER}, + + + step_ten = #{record.stepTen,jdbcType=INTEGER}, + + + step_eleven = #{record.stepEleven,jdbcType=INTEGER}, + + + step_twelve = #{record.stepTwelve,jdbcType=INTEGER}, + + + step_thirteen = #{record.stepThirteen,jdbcType=INTEGER}, + + + step_fourteen = #{record.stepFourteen,jdbcType=INTEGER}, + + + step_fifteen = #{record.stepFifteen,jdbcType=INTEGER}, + + + step_sixteen = #{record.stepSixteen,jdbcType=INTEGER}, + + + step_seventeen = #{record.stepSeventeen,jdbcType=INTEGER}, + + + step_eighteen = #{record.stepEighteen,jdbcType=INTEGER}, + + + step_nineteen = #{record.stepNineteen,jdbcType=INTEGER}, + + + step_twenty = #{record.stepTwenty,jdbcType=INTEGER}, + + + step_twenty_one = #{record.stepTwentyOne,jdbcType=INTEGER}, + + + step_twenty_two = #{record.stepTwentyTwo,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + + + + + + update stu_operation_records + set id = #{record.id,jdbcType=INTEGER}, + step_one = #{record.stepOne,jdbcType=INTEGER}, + step_two = #{record.stepTwo,jdbcType=INTEGER}, + step_three = #{record.stepThree,jdbcType=INTEGER}, + step_four = #{record.stepFour,jdbcType=INTEGER}, + step_five = #{record.stepFive,jdbcType=INTEGER}, + step_six = #{record.stepSix,jdbcType=INTEGER}, + step_seven = #{record.stepSeven,jdbcType=INTEGER}, + step_eight = #{record.stepEight,jdbcType=INTEGER}, + step_nine = #{record.stepNine,jdbcType=INTEGER}, + step_ten = #{record.stepTen,jdbcType=INTEGER}, + step_eleven = #{record.stepEleven,jdbcType=INTEGER}, + step_twelve = #{record.stepTwelve,jdbcType=INTEGER}, + step_thirteen = #{record.stepThirteen,jdbcType=INTEGER}, + step_fourteen = #{record.stepFourteen,jdbcType=INTEGER}, + step_fifteen = #{record.stepFifteen,jdbcType=INTEGER}, + step_sixteen = #{record.stepSixteen,jdbcType=INTEGER}, + step_seventeen = #{record.stepSeventeen,jdbcType=INTEGER}, + step_eighteen = #{record.stepEighteen,jdbcType=INTEGER}, + step_nineteen = #{record.stepNineteen,jdbcType=INTEGER}, + step_twenty = #{record.stepTwenty,jdbcType=INTEGER}, + step_twenty_one = #{record.stepTwentyOne,jdbcType=INTEGER}, + step_twenty_two = #{record.stepTwentyTwo,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=VARCHAR} + + + + + + update stu_operation_records + + + step_one = #{stepOne,jdbcType=INTEGER}, + + + step_two = #{stepTwo,jdbcType=INTEGER}, + + + step_three = #{stepThree,jdbcType=INTEGER}, + + + step_four = #{stepFour,jdbcType=INTEGER}, + + + step_five = #{stepFive,jdbcType=INTEGER}, + + + step_six = #{stepSix,jdbcType=INTEGER}, + + + step_seven = #{stepSeven,jdbcType=INTEGER}, + + + step_eight = #{stepEight,jdbcType=INTEGER}, + + + step_nine = #{stepNine,jdbcType=INTEGER}, + + + step_ten = #{stepTen,jdbcType=INTEGER}, + + + step_eleven = #{stepEleven,jdbcType=INTEGER}, + + + step_twelve = #{stepTwelve,jdbcType=INTEGER}, + + + step_thirteen = #{stepThirteen,jdbcType=INTEGER}, + + + step_fourteen = #{stepFourteen,jdbcType=INTEGER}, + + + step_fifteen = #{stepFifteen,jdbcType=INTEGER}, + + + step_sixteen = #{stepSixteen,jdbcType=INTEGER}, + + + step_seventeen = #{stepSeventeen,jdbcType=INTEGER}, + + + step_eighteen = #{stepEighteen,jdbcType=INTEGER}, + + + step_nineteen = #{stepNineteen,jdbcType=INTEGER}, + + + step_twenty = #{stepTwenty,jdbcType=INTEGER}, + + + step_twenty_one = #{stepTwentyOne,jdbcType=INTEGER}, + + + step_twenty_two = #{stepTwentyTwo,jdbcType=INTEGER}, + + + user_id = #{userId,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update stu_operation_records + set step_one = #{stepOne,jdbcType=INTEGER}, + step_two = #{stepTwo,jdbcType=INTEGER}, + step_three = #{stepThree,jdbcType=INTEGER}, + step_four = #{stepFour,jdbcType=INTEGER}, + step_five = #{stepFive,jdbcType=INTEGER}, + step_six = #{stepSix,jdbcType=INTEGER}, + step_seven = #{stepSeven,jdbcType=INTEGER}, + step_eight = #{stepEight,jdbcType=INTEGER}, + step_nine = #{stepNine,jdbcType=INTEGER}, + step_ten = #{stepTen,jdbcType=INTEGER}, + step_eleven = #{stepEleven,jdbcType=INTEGER}, + step_twelve = #{stepTwelve,jdbcType=INTEGER}, + step_thirteen = #{stepThirteen,jdbcType=INTEGER}, + step_fourteen = #{stepFourteen,jdbcType=INTEGER}, + step_fifteen = #{stepFifteen,jdbcType=INTEGER}, + step_sixteen = #{stepSixteen,jdbcType=INTEGER}, + step_seventeen = #{stepSeventeen,jdbcType=INTEGER}, + step_eighteen = #{stepEighteen,jdbcType=INTEGER}, + step_nineteen = #{stepNineteen,jdbcType=INTEGER}, + step_twenty = #{stepTwenty,jdbcType=INTEGER}, + step_twenty_one = #{stepTwentyOne,jdbcType=INTEGER}, + step_twenty_two = #{stepTwentyTwo,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file