Merge branch 'master' of http://118.31.7.2:3000/wanghaobo/tz_finance_supply
# Conflicts: # BlockFinanceCentral/src/main/java/com/sztzjy/block_finance/service/impl/StuDebtTransferStartServiceImpl.javamaster
commit
2dc885ffeb
@ -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,"重新实训成功");
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -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<StuOperationRecords> 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);
|
||||
}
|
@ -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);
|
||||
}
|
@ -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<StuOperationRecords> 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;
|
||||
}
|
||||
}
|
@ -0,0 +1,513 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.block_finance.mappers.StuOperationRecordsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.StuOperationRecords">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="step_one" jdbcType="INTEGER" property="stepOne" />
|
||||
<result column="step_two" jdbcType="INTEGER" property="stepTwo" />
|
||||
<result column="step_three" jdbcType="INTEGER" property="stepThree" />
|
||||
<result column="step_four" jdbcType="INTEGER" property="stepFour" />
|
||||
<result column="step_five" jdbcType="INTEGER" property="stepFive" />
|
||||
<result column="step_six" jdbcType="INTEGER" property="stepSix" />
|
||||
<result column="step_seven" jdbcType="INTEGER" property="stepSeven" />
|
||||
<result column="step_eight" jdbcType="INTEGER" property="stepEight" />
|
||||
<result column="step_nine" jdbcType="INTEGER" property="stepNine" />
|
||||
<result column="step_ten" jdbcType="INTEGER" property="stepTen" />
|
||||
<result column="step_eleven" jdbcType="INTEGER" property="stepEleven" />
|
||||
<result column="step_twelve" jdbcType="INTEGER" property="stepTwelve" />
|
||||
<result column="step_thirteen" jdbcType="INTEGER" property="stepThirteen" />
|
||||
<result column="step_fourteen" jdbcType="INTEGER" property="stepFourteen" />
|
||||
<result column="step_fifteen" jdbcType="INTEGER" property="stepFifteen" />
|
||||
<result column="step_sixteen" jdbcType="INTEGER" property="stepSixteen" />
|
||||
<result column="step_seventeen" jdbcType="INTEGER" property="stepSeventeen" />
|
||||
<result column="step_eighteen" jdbcType="INTEGER" property="stepEighteen" />
|
||||
<result column="step_nineteen" jdbcType="INTEGER" property="stepNineteen" />
|
||||
<result column="step_twenty" jdbcType="INTEGER" property="stepTwenty" />
|
||||
<result column="step_twenty_one" jdbcType="INTEGER" property="stepTwentyOne" />
|
||||
<result column="step_twenty_two" jdbcType="INTEGER" property="stepTwentyTwo" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, 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
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.StuOperationRecordsExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_operation_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_operation_records
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_operation_records
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.StuOperationRecordsExample">
|
||||
delete from stu_operation_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.StuOperationRecords">
|
||||
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>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.StuOperationRecords">
|
||||
insert into stu_operation_records
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="stepOne != null">
|
||||
step_one,
|
||||
</if>
|
||||
<if test="stepTwo != null">
|
||||
step_two,
|
||||
</if>
|
||||
<if test="stepThree != null">
|
||||
step_three,
|
||||
</if>
|
||||
<if test="stepFour != null">
|
||||
step_four,
|
||||
</if>
|
||||
<if test="stepFive != null">
|
||||
step_five,
|
||||
</if>
|
||||
<if test="stepSix != null">
|
||||
step_six,
|
||||
</if>
|
||||
<if test="stepSeven != null">
|
||||
step_seven,
|
||||
</if>
|
||||
<if test="stepEight != null">
|
||||
step_eight,
|
||||
</if>
|
||||
<if test="stepNine != null">
|
||||
step_nine,
|
||||
</if>
|
||||
<if test="stepTen != null">
|
||||
step_ten,
|
||||
</if>
|
||||
<if test="stepEleven != null">
|
||||
step_eleven,
|
||||
</if>
|
||||
<if test="stepTwelve != null">
|
||||
step_twelve,
|
||||
</if>
|
||||
<if test="stepThirteen != null">
|
||||
step_thirteen,
|
||||
</if>
|
||||
<if test="stepFourteen != null">
|
||||
step_fourteen,
|
||||
</if>
|
||||
<if test="stepFifteen != null">
|
||||
step_fifteen,
|
||||
</if>
|
||||
<if test="stepSixteen != null">
|
||||
step_sixteen,
|
||||
</if>
|
||||
<if test="stepSeventeen != null">
|
||||
step_seventeen,
|
||||
</if>
|
||||
<if test="stepEighteen != null">
|
||||
step_eighteen,
|
||||
</if>
|
||||
<if test="stepNineteen != null">
|
||||
step_nineteen,
|
||||
</if>
|
||||
<if test="stepTwenty != null">
|
||||
step_twenty,
|
||||
</if>
|
||||
<if test="stepTwentyOne != null">
|
||||
step_twenty_one,
|
||||
</if>
|
||||
<if test="stepTwentyTwo != null">
|
||||
step_twenty_two,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepOne != null">
|
||||
#{stepOne,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwo != null">
|
||||
#{stepTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepThree != null">
|
||||
#{stepThree,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFour != null">
|
||||
#{stepFour,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFive != null">
|
||||
#{stepFive,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSix != null">
|
||||
#{stepSix,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSeven != null">
|
||||
#{stepSeven,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepEight != null">
|
||||
#{stepEight,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepNine != null">
|
||||
#{stepNine,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTen != null">
|
||||
#{stepTen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepEleven != null">
|
||||
#{stepEleven,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwelve != null">
|
||||
#{stepTwelve,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepThirteen != null">
|
||||
#{stepThirteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFourteen != null">
|
||||
#{stepFourteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFifteen != null">
|
||||
#{stepFifteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSixteen != null">
|
||||
#{stepSixteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSeventeen != null">
|
||||
#{stepSeventeen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepEighteen != null">
|
||||
#{stepEighteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepNineteen != null">
|
||||
#{stepNineteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwenty != null">
|
||||
#{stepTwenty,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwentyOne != null">
|
||||
#{stepTwentyOne,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwentyTwo != null">
|
||||
#{stepTwentyTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.StuOperationRecordsExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_operation_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_operation_records
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepOne != null">
|
||||
step_one = #{record.stepOne,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepTwo != null">
|
||||
step_two = #{record.stepTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepThree != null">
|
||||
step_three = #{record.stepThree,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepFour != null">
|
||||
step_four = #{record.stepFour,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepFive != null">
|
||||
step_five = #{record.stepFive,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepSix != null">
|
||||
step_six = #{record.stepSix,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepSeven != null">
|
||||
step_seven = #{record.stepSeven,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepEight != null">
|
||||
step_eight = #{record.stepEight,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepNine != null">
|
||||
step_nine = #{record.stepNine,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepTen != null">
|
||||
step_ten = #{record.stepTen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepEleven != null">
|
||||
step_eleven = #{record.stepEleven,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepTwelve != null">
|
||||
step_twelve = #{record.stepTwelve,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepThirteen != null">
|
||||
step_thirteen = #{record.stepThirteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepFourteen != null">
|
||||
step_fourteen = #{record.stepFourteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepFifteen != null">
|
||||
step_fifteen = #{record.stepFifteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepSixteen != null">
|
||||
step_sixteen = #{record.stepSixteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepSeventeen != null">
|
||||
step_seventeen = #{record.stepSeventeen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepEighteen != null">
|
||||
step_eighteen = #{record.stepEighteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepNineteen != null">
|
||||
step_nineteen = #{record.stepNineteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepTwenty != null">
|
||||
step_twenty = #{record.stepTwenty,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepTwentyOne != null">
|
||||
step_twenty_one = #{record.stepTwentyOne,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.stepTwentyTwo != null">
|
||||
step_twenty_two = #{record.stepTwentyTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
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}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.StuOperationRecords">
|
||||
update stu_operation_records
|
||||
<set>
|
||||
<if test="stepOne != null">
|
||||
step_one = #{stepOne,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwo != null">
|
||||
step_two = #{stepTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepThree != null">
|
||||
step_three = #{stepThree,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFour != null">
|
||||
step_four = #{stepFour,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFive != null">
|
||||
step_five = #{stepFive,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSix != null">
|
||||
step_six = #{stepSix,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSeven != null">
|
||||
step_seven = #{stepSeven,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepEight != null">
|
||||
step_eight = #{stepEight,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepNine != null">
|
||||
step_nine = #{stepNine,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTen != null">
|
||||
step_ten = #{stepTen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepEleven != null">
|
||||
step_eleven = #{stepEleven,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwelve != null">
|
||||
step_twelve = #{stepTwelve,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepThirteen != null">
|
||||
step_thirteen = #{stepThirteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFourteen != null">
|
||||
step_fourteen = #{stepFourteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepFifteen != null">
|
||||
step_fifteen = #{stepFifteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSixteen != null">
|
||||
step_sixteen = #{stepSixteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepSeventeen != null">
|
||||
step_seventeen = #{stepSeventeen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepEighteen != null">
|
||||
step_eighteen = #{stepEighteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepNineteen != null">
|
||||
step_nineteen = #{stepNineteen,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwenty != null">
|
||||
step_twenty = #{stepTwenty,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwentyOne != null">
|
||||
step_twenty_one = #{stepTwentyOne,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stepTwentyTwo != null">
|
||||
step_twenty_two = #{stepTwentyTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.StuOperationRecords">
|
||||
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}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue