Merge branch 'test-training2' of https://git.code.tencent.com/lian-cbtc/rtss-server into test-training2
# Conflicts: # src/main/java/club/joylink/rtss/controller/training2/TrainingV2Controller.java # src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java
This commit is contained in:
commit
f4457f737b
17
pom.xml
17
pom.xml
@ -172,23 +172,6 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin><!-- 执行命令mvn -Dfile.encoding=UTF-8 -Dmybatis.generator.overwrite=true mybatis-generator:generate -->
|
|
||||||
<groupId>org.mybatis.generator</groupId>
|
|
||||||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
||||||
<version>1.4.0</version>
|
|
||||||
<configuration>
|
|
||||||
<verbose>true</verbose>
|
|
||||||
<overwrite>true</overwrite>
|
|
||||||
</configuration>
|
|
||||||
<dependencies>
|
|
||||||
<!-- 指定MySQL驱动 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>mysql</groupId>
|
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
|
||||||
<version>8.0.27</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@ -1,21 +1,30 @@
|
|||||||
package club.joylink.rtss.controller.training2;
|
package club.joylink.rtss.controller.training2;
|
||||||
|
|
||||||
import club.joylink.rtss.services.training2.Training2DraftService;
|
import club.joylink.rtss.services.training2.Training2DraftService;
|
||||||
|
import club.joylink.rtss.vo.AccountVO;
|
||||||
import club.joylink.rtss.vo.client.training2.Step2VO;
|
import club.joylink.rtss.vo.client.training2.Step2VO;
|
||||||
|
import club.joylink.rtss.vo.training2.draft.CreateTraining2ReqVo;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实训数据管理接口
|
* 实训草稿管理接口
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v2/training")
|
@RequestMapping("/api/v2/draft/training")
|
||||||
public class TrainingV2Controller {
|
public class TrainingDraftV2Controller {
|
||||||
@Autowired
|
@Autowired
|
||||||
private Training2DraftService training2DraftService;
|
private Training2DraftService training2DraftService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建实训草稿
|
||||||
|
*/
|
||||||
|
@PostMapping("/create")
|
||||||
|
public void create(@RequestBody CreateTraining2ReqVo req, @RequestAttribute AccountVO user) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询步骤列表
|
* 查询步骤列表
|
||||||
@ -29,12 +38,15 @@ public class TrainingV2Controller {
|
|||||||
* 修改实训所有步骤
|
* 修改实训所有步骤
|
||||||
*/
|
*/
|
||||||
@PutMapping("/{trainingId}/step/update")
|
@PutMapping("/{trainingId}/step/update")
|
||||||
public void updateSteps(@PathVariable("trainingId") String trainingId, @RequestBody List<Step2VO> step2VOList) {
|
public void updateSteps(@PathVariable("trainingId") Long trainingId, @RequestBody List<Step2VO> step2VOList) {
|
||||||
training2DraftService.updateSteps(trainingId, step2VOList);
|
training2DraftService.updateSteps(trainingId, step2VOList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清空步骤
|
||||||
|
*/
|
||||||
@DeleteMapping("/{trainingId}/step/clear")
|
@DeleteMapping("/{trainingId}/step/clear")
|
||||||
public void clearStep(@PathVariable("trainingId") String trainingId) {
|
public void clearStep(@PathVariable("trainingId") Long trainingId) {
|
||||||
|
training2DraftService.clearStep(trainingId);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,11 +3,12 @@ package club.joylink.rtss.dao;
|
|||||||
import club.joylink.rtss.entity.training2.DraftTraining2;
|
import club.joylink.rtss.entity.training2.DraftTraining2;
|
||||||
import club.joylink.rtss.entity.training2.DraftTraining2Example;
|
import club.joylink.rtss.entity.training2.DraftTraining2Example;
|
||||||
import club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs;
|
import club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs;
|
||||||
import java.util.List;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
@Repository
|
@Repository
|
||||||
public interface DraftTraining2DAO {
|
public interface DraftTraining2DAO {
|
||||||
@ -38,4 +39,6 @@ public interface DraftTraining2DAO {
|
|||||||
int updateByPrimaryKeyWithBLOBs(DraftTraining2WithBLOBs record);
|
int updateByPrimaryKeyWithBLOBs(DraftTraining2WithBLOBs record);
|
||||||
|
|
||||||
int updateByPrimaryKey(DraftTraining2 record);
|
int updateByPrimaryKey(DraftTraining2 record);
|
||||||
|
|
||||||
|
int updateStepJson(@Param("id") Long id, @Param("StepJson") String stepJson);
|
||||||
}
|
}
|
@ -1,125 +0,0 @@
|
|||||||
package club.joylink.rtss.dao.training2;
|
|
||||||
|
|
||||||
import club.joylink.rtss.entity.training2.DraftTraining2;
|
|
||||||
import club.joylink.rtss.entity.training2.DraftTraining2Example;
|
|
||||||
import club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
@Mapper
|
|
||||||
@Repository
|
|
||||||
public interface DraftTraining2Mapper {
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
long countByExample(DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int deleteByExample(DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int deleteByPrimaryKey(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int insert(DraftTraining2WithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int insertSelective(DraftTraining2WithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
List<DraftTraining2WithBLOBs> selectByExampleWithBLOBs(DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
List<DraftTraining2> selectByExample(DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
DraftTraining2WithBLOBs selectByPrimaryKey(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int updateByExampleSelective(@Param("record") DraftTraining2WithBLOBs record, @Param("example") DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int updateByExampleWithBLOBs(@Param("record") DraftTraining2WithBLOBs record, @Param("example") DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int updateByExample(@Param("record") DraftTraining2 record, @Param("example") DraftTraining2Example example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKeySelective(DraftTraining2WithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKeyWithBLOBs(DraftTraining2WithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKey(DraftTraining2 record);
|
|
||||||
}
|
|
@ -1,401 +1,59 @@
|
|||||||
package club.joylink.rtss.entity.training2;
|
package club.joylink.rtss.entity.training2;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
public class DraftTraining2 {
|
|
||||||
/**
|
/**
|
||||||
|
* @author
|
||||||
*
|
*
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
public class DraftTraining2 implements Serializable {
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.map_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
private Long mapId;
|
private Long mapId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 实训名称
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.name
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 描述
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.description
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 实训类型(单操、场景)
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.type
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 标签,用于检索
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.label_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String labelJson;
|
private String labelJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 地图定位json
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.map_location_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String mapLocationJson;
|
private String mapLocationJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 运行图id
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.run_plan_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private Long runPlanId;
|
private Long runPlanId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 实训失败判定条件
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.failure_condition_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String failureConditionJson;
|
private String failureConditionJson;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.creator_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
private Long creatorId;
|
private Long creatorId;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.create_time
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.update_time
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
private LocalDateTime updateTime;
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
/**
|
private static final long serialVersionUID = 1L;
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.id
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.id
|
|
||||||
*
|
|
||||||
* @param id the value for draft_training2.id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.map_id
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.map_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public Long getMapId() {
|
|
||||||
return mapId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.map_id
|
|
||||||
*
|
|
||||||
* @param mapId the value for draft_training2.map_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setMapId(Long mapId) {
|
|
||||||
this.mapId = mapId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.name
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.name
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.name
|
|
||||||
*
|
|
||||||
* @param name the value for draft_training2.name
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name == null ? null : name.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.description
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.description
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.description
|
|
||||||
*
|
|
||||||
* @param description the value for draft_training2.description
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setDescription(String description) {
|
|
||||||
this.description = description == null ? null : description.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.type
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.type
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.type
|
|
||||||
*
|
|
||||||
* @param type the value for draft_training2.type
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type == null ? null : type.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.label_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.label_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getLabelJson() {
|
|
||||||
return labelJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.label_json
|
|
||||||
*
|
|
||||||
* @param labelJson the value for draft_training2.label_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setLabelJson(String labelJson) {
|
|
||||||
this.labelJson = labelJson == null ? null : labelJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.map_location_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.map_location_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getMapLocationJson() {
|
|
||||||
return mapLocationJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.map_location_json
|
|
||||||
*
|
|
||||||
* @param mapLocationJson the value for draft_training2.map_location_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setMapLocationJson(String mapLocationJson) {
|
|
||||||
this.mapLocationJson = mapLocationJson == null ? null : mapLocationJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.run_plan_id
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.run_plan_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public Long getRunPlanId() {
|
|
||||||
return runPlanId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.run_plan_id
|
|
||||||
*
|
|
||||||
* @param runPlanId the value for draft_training2.run_plan_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setRunPlanId(Long runPlanId) {
|
|
||||||
this.runPlanId = runPlanId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.failure_condition_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.failure_condition_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getFailureConditionJson() {
|
|
||||||
return failureConditionJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.failure_condition_json
|
|
||||||
*
|
|
||||||
* @param failureConditionJson the value for draft_training2.failure_condition_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setFailureConditionJson(String failureConditionJson) {
|
|
||||||
this.failureConditionJson = failureConditionJson == null ? null : failureConditionJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.creator_id
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.creator_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public Long getCreatorId() {
|
|
||||||
return creatorId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.creator_id
|
|
||||||
*
|
|
||||||
* @param creatorId the value for draft_training2.creator_id
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setCreatorId(Long creatorId) {
|
|
||||||
this.creatorId = creatorId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.create_time
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.create_time
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public LocalDateTime getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.create_time
|
|
||||||
*
|
|
||||||
* @param createTime the value for draft_training2.create_time
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setCreateTime(LocalDateTime createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.update_time
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.update_time
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public LocalDateTime getUpdateTime() {
|
|
||||||
return updateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.update_time
|
|
||||||
*
|
|
||||||
* @param updateTime the value for draft_training2.update_time
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setUpdateTime(LocalDateTime updateTime) {
|
|
||||||
this.updateTime = updateTime;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -5,118 +5,50 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class DraftTraining2Example {
|
public class DraftTraining2Example {
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
protected String orderByClause;
|
protected String orderByClause;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
protected boolean distinct;
|
protected boolean distinct;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
protected List<Criteria> oredCriteria;
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
/**
|
private Integer limit;
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
private Long offset;
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public DraftTraining2Example() {
|
public DraftTraining2Example() {
|
||||||
oredCriteria = new ArrayList<>();
|
oredCriteria = new ArrayList<Criteria>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setOrderByClause(String orderByClause) {
|
public void setOrderByClause(String orderByClause) {
|
||||||
this.orderByClause = orderByClause;
|
this.orderByClause = orderByClause;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getOrderByClause() {
|
public String getOrderByClause() {
|
||||||
return orderByClause;
|
return orderByClause;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setDistinct(boolean distinct) {
|
public void setDistinct(boolean distinct) {
|
||||||
this.distinct = distinct;
|
this.distinct = distinct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public boolean isDistinct() {
|
public boolean isDistinct() {
|
||||||
return distinct;
|
return distinct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public List<Criteria> getOredCriteria() {
|
public List<Criteria> getOredCriteria() {
|
||||||
return oredCriteria;
|
return oredCriteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void or(Criteria criteria) {
|
public void or(Criteria criteria) {
|
||||||
oredCriteria.add(criteria);
|
oredCriteria.add(criteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public Criteria or() {
|
public Criteria or() {
|
||||||
Criteria criteria = createCriteriaInternal();
|
Criteria criteria = createCriteriaInternal();
|
||||||
oredCriteria.add(criteria);
|
oredCriteria.add(criteria);
|
||||||
return criteria;
|
return criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public Criteria createCriteria() {
|
public Criteria createCriteria() {
|
||||||
Criteria criteria = createCriteriaInternal();
|
Criteria criteria = createCriteriaInternal();
|
||||||
if (oredCriteria.size() == 0) {
|
if (oredCriteria.size() == 0) {
|
||||||
@ -125,41 +57,39 @@ public class DraftTraining2Example {
|
|||||||
return criteria;
|
return criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
protected Criteria createCriteriaInternal() {
|
protected Criteria createCriteriaInternal() {
|
||||||
Criteria criteria = new Criteria();
|
Criteria criteria = new Criteria();
|
||||||
return criteria;
|
return criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void clear() {
|
public void clear() {
|
||||||
oredCriteria.clear();
|
oredCriteria.clear();
|
||||||
orderByClause = null;
|
orderByClause = null;
|
||||||
distinct = false;
|
distinct = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public void setLimit(Integer limit) {
|
||||||
* This class was generated by MyBatis Generator.
|
this.limit = limit;
|
||||||
* This class corresponds to the database table draft_training2
|
}
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
public Integer getLimit() {
|
||||||
*/
|
return limit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOffset(Long offset) {
|
||||||
|
this.offset = offset;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getOffset() {
|
||||||
|
return offset;
|
||||||
|
}
|
||||||
|
|
||||||
protected abstract static class GeneratedCriteria {
|
protected abstract static class GeneratedCriteria {
|
||||||
protected List<Criterion> criteria;
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
protected GeneratedCriteria() {
|
protected GeneratedCriteria() {
|
||||||
super();
|
super();
|
||||||
criteria = new ArrayList<>();
|
criteria = new ArrayList<Criterion>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
@ -316,72 +246,72 @@ public class DraftTraining2Example {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameIsNull() {
|
public Criteria andNameIsNull() {
|
||||||
addCriterion("name is null");
|
addCriterion("`name` is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameIsNotNull() {
|
public Criteria andNameIsNotNull() {
|
||||||
addCriterion("name is not null");
|
addCriterion("`name` is not null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameEqualTo(String value) {
|
public Criteria andNameEqualTo(String value) {
|
||||||
addCriterion("name =", value, "name");
|
addCriterion("`name` =", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameNotEqualTo(String value) {
|
public Criteria andNameNotEqualTo(String value) {
|
||||||
addCriterion("name <>", value, "name");
|
addCriterion("`name` <>", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameGreaterThan(String value) {
|
public Criteria andNameGreaterThan(String value) {
|
||||||
addCriterion("name >", value, "name");
|
addCriterion("`name` >", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||||
addCriterion("name >=", value, "name");
|
addCriterion("`name` >=", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameLessThan(String value) {
|
public Criteria andNameLessThan(String value) {
|
||||||
addCriterion("name <", value, "name");
|
addCriterion("`name` <", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||||
addCriterion("name <=", value, "name");
|
addCriterion("`name` <=", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameLike(String value) {
|
public Criteria andNameLike(String value) {
|
||||||
addCriterion("name like", value, "name");
|
addCriterion("`name` like", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameNotLike(String value) {
|
public Criteria andNameNotLike(String value) {
|
||||||
addCriterion("name not like", value, "name");
|
addCriterion("`name` not like", value, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameIn(List<String> values) {
|
public Criteria andNameIn(List<String> values) {
|
||||||
addCriterion("name in", values, "name");
|
addCriterion("`name` in", values, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameNotIn(List<String> values) {
|
public Criteria andNameNotIn(List<String> values) {
|
||||||
addCriterion("name not in", values, "name");
|
addCriterion("`name` not in", values, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameBetween(String value1, String value2) {
|
public Criteria andNameBetween(String value1, String value2) {
|
||||||
addCriterion("name between", value1, value2, "name");
|
addCriterion("`name` between", value1, value2, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andNameNotBetween(String value1, String value2) {
|
public Criteria andNameNotBetween(String value1, String value2) {
|
||||||
addCriterion("name not between", value1, value2, "name");
|
addCriterion("`name` not between", value1, value2, "name");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -456,72 +386,72 @@ public class DraftTraining2Example {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeIsNull() {
|
public Criteria andTypeIsNull() {
|
||||||
addCriterion("type is null");
|
addCriterion("`type` is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeIsNotNull() {
|
public Criteria andTypeIsNotNull() {
|
||||||
addCriterion("type is not null");
|
addCriterion("`type` is not null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeEqualTo(String value) {
|
public Criteria andTypeEqualTo(String value) {
|
||||||
addCriterion("type =", value, "type");
|
addCriterion("`type` =", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeNotEqualTo(String value) {
|
public Criteria andTypeNotEqualTo(String value) {
|
||||||
addCriterion("type <>", value, "type");
|
addCriterion("`type` <>", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeGreaterThan(String value) {
|
public Criteria andTypeGreaterThan(String value) {
|
||||||
addCriterion("type >", value, "type");
|
addCriterion("`type` >", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||||
addCriterion("type >=", value, "type");
|
addCriterion("`type` >=", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeLessThan(String value) {
|
public Criteria andTypeLessThan(String value) {
|
||||||
addCriterion("type <", value, "type");
|
addCriterion("`type` <", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||||
addCriterion("type <=", value, "type");
|
addCriterion("`type` <=", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeLike(String value) {
|
public Criteria andTypeLike(String value) {
|
||||||
addCriterion("type like", value, "type");
|
addCriterion("`type` like", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeNotLike(String value) {
|
public Criteria andTypeNotLike(String value) {
|
||||||
addCriterion("type not like", value, "type");
|
addCriterion("`type` not like", value, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeIn(List<String> values) {
|
public Criteria andTypeIn(List<String> values) {
|
||||||
addCriterion("type in", values, "type");
|
addCriterion("`type` in", values, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeNotIn(List<String> values) {
|
public Criteria andTypeNotIn(List<String> values) {
|
||||||
addCriterion("type not in", values, "type");
|
addCriterion("`type` not in", values, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeBetween(String value1, String value2) {
|
public Criteria andTypeBetween(String value1, String value2) {
|
||||||
addCriterion("type between", value1, value2, "type");
|
addCriterion("`type` between", value1, value2, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||||
addCriterion("type not between", value1, value2, "type");
|
addCriterion("`type` not between", value1, value2, "type");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -977,23 +907,14 @@ public class DraftTraining2Example {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class was generated by MyBatis Generator.
|
|
||||||
* This class corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated do_not_delete_during_merge Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
public static class Criteria extends GeneratedCriteria {
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
|
||||||
protected Criteria() {
|
protected Criteria() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This class was generated by MyBatis Generator.
|
|
||||||
* This class corresponds to the database table draft_training2
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public static class Criterion {
|
public static class Criterion {
|
||||||
private String condition;
|
private String condition;
|
||||||
|
|
||||||
|
@ -1,201 +1,43 @@
|
|||||||
package club.joylink.rtss.entity.training2;
|
package club.joylink.rtss.entity.training2;
|
||||||
|
|
||||||
public class DraftTraining2WithBLOBs extends DraftTraining2 {
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @author
|
||||||
*
|
*
|
||||||
* This field was generated by MyBatis Generator.
|
*/
|
||||||
* This field corresponds to the database column draft_training2.bg_scene_json
|
@Data
|
||||||
*
|
public class DraftTraining2WithBLOBs extends DraftTraining2 implements Serializable {
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
/**
|
||||||
|
* 初始背景
|
||||||
*/
|
*/
|
||||||
private String bgSceneJson;
|
private String bgSceneJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 操作列表json(List<Operation2VO>)
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.opera_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String operaJson;
|
private String operaJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 步骤列表json(List<Step2VO>的json)
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.step_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String stepJson;
|
private String stepJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 打分规则列表json(List<ScoringRuleVO>的json)
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.scoring_rule_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String scoringRuleJson;
|
private String scoringRuleJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 仿真内所有成员
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.member_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String memberJson;
|
private String memberJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 参演的仿真成员id列表Json
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column draft_training2.player_id_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
*/
|
||||||
private String playerIdJson;
|
private String playerIdJson;
|
||||||
|
|
||||||
/**
|
private static final long serialVersionUID = 1L;
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.bg_scene_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.bg_scene_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getBgSceneJson() {
|
|
||||||
return bgSceneJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.bg_scene_json
|
|
||||||
*
|
|
||||||
* @param bgSceneJson the value for draft_training2.bg_scene_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setBgSceneJson(String bgSceneJson) {
|
|
||||||
this.bgSceneJson = bgSceneJson == null ? null : bgSceneJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.opera_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.opera_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getOperaJson() {
|
|
||||||
return operaJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.opera_json
|
|
||||||
*
|
|
||||||
* @param operaJson the value for draft_training2.opera_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setOperaJson(String operaJson) {
|
|
||||||
this.operaJson = operaJson == null ? null : operaJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.step_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.step_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getStepJson() {
|
|
||||||
return stepJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.step_json
|
|
||||||
*
|
|
||||||
* @param stepJson the value for draft_training2.step_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setStepJson(String stepJson) {
|
|
||||||
this.stepJson = stepJson == null ? null : stepJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.scoring_rule_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.scoring_rule_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getScoringRuleJson() {
|
|
||||||
return scoringRuleJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.scoring_rule_json
|
|
||||||
*
|
|
||||||
* @param scoringRuleJson the value for draft_training2.scoring_rule_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setScoringRuleJson(String scoringRuleJson) {
|
|
||||||
this.scoringRuleJson = scoringRuleJson == null ? null : scoringRuleJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.member_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.member_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getMemberJson() {
|
|
||||||
return memberJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.member_json
|
|
||||||
*
|
|
||||||
* @param memberJson the value for draft_training2.member_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setMemberJson(String memberJson) {
|
|
||||||
this.memberJson = memberJson == null ? null : memberJson.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column draft_training2.player_id_json
|
|
||||||
*
|
|
||||||
* @return the value of draft_training2.player_id_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public String getPlayerIdJson() {
|
|
||||||
return playerIdJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column draft_training2.player_id_json
|
|
||||||
*
|
|
||||||
* @param playerIdJson the value for draft_training2.player_id_json
|
|
||||||
*
|
|
||||||
* @mbg.generated Tue Aug 16 14:29:01 CST 2022
|
|
||||||
*/
|
|
||||||
public void setPlayerIdJson(String playerIdJson) {
|
|
||||||
this.playerIdJson = playerIdJson == null ? null : playerIdJson.trim();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,19 +1,26 @@
|
|||||||
package club.joylink.rtss.services.training2;
|
package club.joylink.rtss.services.training2;
|
||||||
|
|
||||||
import club.joylink.rtss.dao.training2.DraftTraining2Mapper;
|
import club.joylink.rtss.dao.DraftTraining2DAO;
|
||||||
|
import club.joylink.rtss.entity.training2.DraftTraining2;
|
||||||
|
import club.joylink.rtss.entity.training2.DraftTraining2Example;
|
||||||
import club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs;
|
import club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs;
|
||||||
|
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
|
||||||
import club.joylink.rtss.simulation.cbtc.exception.SimulationException;
|
import club.joylink.rtss.simulation.cbtc.exception.SimulationException;
|
||||||
import club.joylink.rtss.simulation.cbtc.exception.SimulationExceptionType;
|
import club.joylink.rtss.simulation.cbtc.exception.SimulationExceptionType;
|
||||||
import club.joylink.rtss.util.JsonUtils;
|
import club.joylink.rtss.util.JsonUtils;
|
||||||
|
import club.joylink.rtss.vo.AccountVO;
|
||||||
import club.joylink.rtss.vo.client.training2.Step2VO;
|
import club.joylink.rtss.vo.client.training2.Step2VO;
|
||||||
|
import club.joylink.rtss.vo.training2.draft.CreateTraining2ReqVo;
|
||||||
|
import io.netty.util.internal.StringUtil;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Comparator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -21,14 +28,34 @@ import java.util.List;
|
|||||||
public class Training2DraftService {
|
public class Training2DraftService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DraftTraining2Mapper trainingDao;
|
private DraftTraining2DAO trainingDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建实训
|
* 根据基本信息创建实训
|
||||||
|
*
|
||||||
|
* @return 返回创建的实训的id
|
||||||
*/
|
*/
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void createTraining(Long mapId, String name, String description) {
|
public Long createTraining(CreateTraining2ReqVo req, AccountVO user) {
|
||||||
|
//校验是否已经有同名的实训
|
||||||
|
DraftTraining2Example example = new DraftTraining2Example();
|
||||||
|
example.createCriteria().andNameEqualTo(req.getName());
|
||||||
|
List<DraftTraining2> check = this.trainingDao.selectByExample(example);
|
||||||
|
BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.assertCollectionEmpty(check, "实训已经存在");
|
||||||
|
//
|
||||||
|
DraftTraining2WithBLOBs dt = new DraftTraining2WithBLOBs();
|
||||||
|
dt.setMapId(req.getMapId());
|
||||||
|
dt.setName(req.getName());
|
||||||
|
dt.setCreatorId(user.getId());
|
||||||
|
dt.setDescription(req.getDescription());
|
||||||
|
dt.setType(req.getType());
|
||||||
|
dt.setCreateTime(LocalDateTime.now());
|
||||||
|
dt.setUpdateTime(LocalDateTime.now());
|
||||||
|
this.trainingDao.insertSelective(dt);
|
||||||
|
//
|
||||||
|
List<DraftTraining2> created = this.trainingDao.selectByExample(example);
|
||||||
|
BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.assertTrue(null != created && created.size() == 1, "创建实训异常");
|
||||||
|
return created.get(0).getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -49,11 +76,28 @@ public class Training2DraftService {
|
|||||||
/**
|
/**
|
||||||
* 修改实训所有步骤
|
* 修改实训所有步骤
|
||||||
*/
|
*/
|
||||||
public void updateSteps(String trainingId, List<Step2VO> step2VOList) {
|
public void updateSteps(Long trainingId, List<Step2VO> step2VOList) {
|
||||||
Step2VO step2VO = step2VOList.stream().filter(s -> s.getId() != null)
|
DraftTraining2WithBLOBs draftTraining2 = trainingDao.selectByPrimaryKey(trainingId);
|
||||||
.max(Comparator.comparingInt(Step2VO::getId)).orElse(null);
|
if (draftTraining2 == null) {
|
||||||
|
throw new SimulationException(SimulationExceptionType.Data_Not_Exist, "实训不存在");
|
||||||
|
}
|
||||||
|
String stepJson;
|
||||||
|
if (CollectionUtils.isEmpty(step2VOList)) {
|
||||||
|
stepJson = StringUtil.EMPTY_STRING;
|
||||||
|
} else {
|
||||||
|
stepJson = JsonUtils.writeValueAsString(step2VOList);
|
||||||
|
}
|
||||||
|
trainingDao.updateStepJson(trainingId, stepJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清空步骤
|
||||||
|
*/
|
||||||
|
public void clearStep(Long trainingId) {
|
||||||
|
DraftTraining2WithBLOBs draftTraining2 = trainingDao.selectByPrimaryKey(trainingId);
|
||||||
|
if (draftTraining2 == null) {
|
||||||
|
throw new SimulationException(SimulationExceptionType.Data_Not_Exist, "实训不存在");
|
||||||
|
}
|
||||||
|
trainingDao.updateStepJson(trainingId, StringUtil.EMPTY_STRING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,37 @@
|
|||||||
package club.joylink.rtss.vo.training2.draft;
|
package club.joylink.rtss.vo.training2.draft;
|
||||||
|
|
||||||
public class CreateTraining2ReqVo {
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class CreateTraining2ReqVo {
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long mapId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
@NotBlank(message = "名称不能为空")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实训类型(单操、场景)
|
||||||
|
*/
|
||||||
|
@NotBlank(message = "实训类型不能为空")
|
||||||
|
private String type;
|
||||||
}
|
}
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE generatorConfiguration
|
|
||||||
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
|
|
||||||
<generatorConfiguration>
|
|
||||||
<!-- 这里填个数据库连接器的jar包位置,可以在pom中plugin中指定 -->
|
|
||||||
<!--classPathEntry
|
|
||||||
location="E:/xzb_work/env/maven_m2/mysql/mysql-connector-java/8.0.27/mysql-connector-java-8.0.27.jar" /-->
|
|
||||||
|
|
||||||
<context id="DB2Tables" targetRuntime="MyBatis3">
|
|
||||||
<!-- 对DefaultCommentGenerator进行配置 -->
|
|
||||||
<commentGenerator>
|
|
||||||
<property name="suppressDate" value="false" /><!-- 是否不注释生成时间 -->
|
|
||||||
<property name="addRemarkComments" value="false" /><!-- 获取数据库字段注释 -->
|
|
||||||
</commentGenerator>
|
|
||||||
|
|
||||||
<jdbcConnection
|
|
||||||
driverClass="com.mysql.cj.jdbc.Driver"
|
|
||||||
connectionURL="jdbc:mysql://192.168.3.233:3306/joylink?useUnicode=true&characterEncoding=UTF-8"
|
|
||||||
userId="root"
|
|
||||||
password="joylink0503">
|
|
||||||
</jdbcConnection>
|
|
||||||
|
|
||||||
<javaTypeResolver>
|
|
||||||
<property name="forceBigDecimals" value="false" />
|
|
||||||
<!-- true则日期时间使用java.time.LocalDateTime,否则使用java.util.Date -->
|
|
||||||
<property name="useJSR310Types" value="true"/>
|
|
||||||
</javaTypeResolver>
|
|
||||||
|
|
||||||
<javaModelGenerator targetPackage="club.joylink.rtss.entity.training2" targetProject="./src/main/java">
|
|
||||||
<property name="enableSubPackages" value="true" />
|
|
||||||
<property name="trimStrings" value="true" />
|
|
||||||
</javaModelGenerator>
|
|
||||||
|
|
||||||
<sqlMapGenerator targetPackage="mybatis.mapper" targetProject="./src/main/resources">
|
|
||||||
<property name="enableSubPackages" value="true" />
|
|
||||||
</sqlMapGenerator>
|
|
||||||
|
|
||||||
<javaClientGenerator type="XMLMAPPER" targetPackage="club.joylink.rtss.dao.training2" targetProject="./src/main/java">
|
|
||||||
<property name="enableSubPackages" value="true" />
|
|
||||||
</javaClientGenerator>
|
|
||||||
|
|
||||||
<table tableName="draft_training2" domainObjectName="DraftTraining2"/>
|
|
||||||
|
|
||||||
</context>
|
|
||||||
</generatorConfiguration>
|
|
500
src/main/resources/mybatis/mapper/DraftTraining2DAO.xml
Normal file
500
src/main/resources/mybatis/mapper/DraftTraining2DAO.xml
Normal file
@ -0,0 +1,500 @@
|
|||||||
|
<?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="club.joylink.rtss.dao.DraftTraining2DAO">
|
||||||
|
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.DraftTraining2">
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||||
|
<result column="map_id" jdbcType="BIGINT" property="mapId"/>
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||||
|
<result column="description" jdbcType="VARCHAR" property="description"/>
|
||||||
|
<result column="type" jdbcType="VARCHAR" property="type"/>
|
||||||
|
<result column="label_json" jdbcType="VARCHAR" property="labelJson"/>
|
||||||
|
<result column="map_location_json" jdbcType="VARCHAR" property="mapLocationJson"/>
|
||||||
|
<result column="run_plan_id" jdbcType="BIGINT" property="runPlanId"/>
|
||||||
|
<result column="failure_condition_json" jdbcType="VARCHAR" property="failureConditionJson"/>
|
||||||
|
<result column="creator_id" jdbcType="BIGINT" property="creatorId"/>
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||||
|
</resultMap>
|
||||||
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
|
||||||
|
type="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
||||||
|
<result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson"/>
|
||||||
|
<result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson"/>
|
||||||
|
<result column="step_json" jdbcType="LONGVARCHAR" property="stepJson"/>
|
||||||
|
<result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson"/>
|
||||||
|
<result column="member_json" jdbcType="LONGVARCHAR" property="memberJson"/>
|
||||||
|
<result column="player_id_json" jdbcType="LONGVARCHAR" property="playerIdJson"/>
|
||||||
|
</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, map_id, `name`, description, `type`, label_json, map_location_json, run_plan_id,
|
||||||
|
failure_condition_json, creator_id, create_time, update_time
|
||||||
|
</sql>
|
||||||
|
<sql id="Blob_Column_List">
|
||||||
|
bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example"
|
||||||
|
resultMap="ResultMapWithBLOBs">
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List"/>
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List"/>
|
||||||
|
from draft_training2
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
<if test="limit != null">
|
||||||
|
<if test="offset != null">
|
||||||
|
limit ${offset}, ${limit}
|
||||||
|
</if>
|
||||||
|
<if test="offset == null">
|
||||||
|
limit ${limit}
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByExample" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example"
|
||||||
|
resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List"/>
|
||||||
|
from draft_training2
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
<if test="limit != null">
|
||||||
|
<if test="offset != null">
|
||||||
|
limit ${offset}, ${limit}
|
||||||
|
</if>
|
||||||
|
<if test="offset == null">
|
||||||
|
limit ${limit}
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List"/>
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List"/>
|
||||||
|
from draft_training2
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from draft_training2
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example">
|
||||||
|
delete from draft_training2
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
||||||
|
insert into draft_training2 (id, map_id, `name`,
|
||||||
|
description, `type`, label_json,
|
||||||
|
map_location_json, run_plan_id, failure_condition_json,
|
||||||
|
creator_id, create_time, update_time,
|
||||||
|
bg_scene_json, opera_json, step_json,
|
||||||
|
scoring_rule_json, member_json, player_id_json
|
||||||
|
)
|
||||||
|
values (#{id,jdbcType=BIGINT}, #{mapId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
|
||||||
|
#{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR},
|
||||||
|
#{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR}, #{stepJson,jdbcType=LONGVARCHAR},
|
||||||
|
#{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR},
|
||||||
|
#{playerIdJson,jdbcType=LONGVARCHAR}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
||||||
|
insert into draft_training2
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="mapId != null">
|
||||||
|
map_id,
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
`name`,
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description,
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
`type`,
|
||||||
|
</if>
|
||||||
|
<if test="labelJson != null">
|
||||||
|
label_json,
|
||||||
|
</if>
|
||||||
|
<if test="mapLocationJson != null">
|
||||||
|
map_location_json,
|
||||||
|
</if>
|
||||||
|
<if test="runPlanId != null">
|
||||||
|
run_plan_id,
|
||||||
|
</if>
|
||||||
|
<if test="failureConditionJson != null">
|
||||||
|
failure_condition_json,
|
||||||
|
</if>
|
||||||
|
<if test="creatorId != null">
|
||||||
|
creator_id,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="bgSceneJson != null">
|
||||||
|
bg_scene_json,
|
||||||
|
</if>
|
||||||
|
<if test="operaJson != null">
|
||||||
|
opera_json,
|
||||||
|
</if>
|
||||||
|
<if test="stepJson != null">
|
||||||
|
step_json,
|
||||||
|
</if>
|
||||||
|
<if test="scoringRuleJson != null">
|
||||||
|
scoring_rule_json,
|
||||||
|
</if>
|
||||||
|
<if test="memberJson != null">
|
||||||
|
member_json,
|
||||||
|
</if>
|
||||||
|
<if test="playerIdJson != null">
|
||||||
|
player_id_json,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="mapId != null">
|
||||||
|
#{mapId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
#{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
#{type,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="labelJson != null">
|
||||||
|
#{labelJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="mapLocationJson != null">
|
||||||
|
#{mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="runPlanId != null">
|
||||||
|
#{runPlanId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="failureConditionJson != null">
|
||||||
|
#{failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="creatorId != null">
|
||||||
|
#{creatorId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="bgSceneJson != null">
|
||||||
|
#{bgSceneJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operaJson != null">
|
||||||
|
#{operaJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="stepJson != null">
|
||||||
|
#{stepJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="scoringRuleJson != null">
|
||||||
|
#{scoringRuleJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="memberJson != null">
|
||||||
|
#{memberJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="playerIdJson != null">
|
||||||
|
#{playerIdJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example"
|
||||||
|
resultType="java.lang.Long">
|
||||||
|
select count(*) from draft_training2
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
update draft_training2
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.mapId != null">
|
||||||
|
map_id = #{record.mapId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.name != null">
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.description != null">
|
||||||
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.type != null">
|
||||||
|
`type` = #{record.type,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.labelJson != null">
|
||||||
|
label_json = #{record.labelJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.mapLocationJson != null">
|
||||||
|
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.runPlanId != null">
|
||||||
|
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.failureConditionJson != null">
|
||||||
|
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.creatorId != null">
|
||||||
|
creator_id = #{record.creatorId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.bgSceneJson != null">
|
||||||
|
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.operaJson != null">
|
||||||
|
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.stepJson != null">
|
||||||
|
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.scoringRuleJson != null">
|
||||||
|
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.memberJson != null">
|
||||||
|
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.playerIdJson != null">
|
||||||
|
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||||
|
update draft_training2
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
map_id = #{record.mapId,jdbcType=BIGINT},
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
|
`type` = #{record.type,jdbcType=VARCHAR},
|
||||||
|
label_json = #{record.labelJson,jdbcType=VARCHAR},
|
||||||
|
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
|
||||||
|
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
creator_id = #{record.creatorId,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
|
||||||
|
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
|
||||||
|
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
|
||||||
|
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
|
||||||
|
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
|
||||||
|
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
update draft_training2
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
map_id = #{record.mapId,jdbcType=BIGINT},
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
|
`type` = #{record.type,jdbcType=VARCHAR},
|
||||||
|
label_json = #{record.labelJson,jdbcType=VARCHAR},
|
||||||
|
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
|
||||||
|
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
creator_id = #{record.creatorId,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause"/>
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
||||||
|
update draft_training2
|
||||||
|
<set>
|
||||||
|
<if test="mapId != null">
|
||||||
|
map_id = #{mapId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
`type` = #{type,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="labelJson != null">
|
||||||
|
label_json = #{labelJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="mapLocationJson != null">
|
||||||
|
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="runPlanId != null">
|
||||||
|
run_plan_id = #{runPlanId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="failureConditionJson != null">
|
||||||
|
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="creatorId != null">
|
||||||
|
creator_id = #{creatorId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="bgSceneJson != null">
|
||||||
|
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operaJson != null">
|
||||||
|
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="stepJson != null">
|
||||||
|
step_json = #{stepJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="scoringRuleJson != null">
|
||||||
|
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="memberJson != null">
|
||||||
|
member_json = #{memberJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="playerIdJson != null">
|
||||||
|
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
||||||
|
update draft_training2
|
||||||
|
set map_id = #{mapId,jdbcType=BIGINT},
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
`type` = #{type,jdbcType=VARCHAR},
|
||||||
|
label_json = #{labelJson,jdbcType=VARCHAR},
|
||||||
|
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
run_plan_id = #{runPlanId,jdbcType=BIGINT},
|
||||||
|
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
creator_id = #{creatorId,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
|
||||||
|
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
|
||||||
|
step_json = #{stepJson,jdbcType=LONGVARCHAR},
|
||||||
|
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
|
||||||
|
member_json = #{memberJson,jdbcType=LONGVARCHAR},
|
||||||
|
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.DraftTraining2">
|
||||||
|
update draft_training2
|
||||||
|
set map_id = #{mapId,jdbcType=BIGINT},
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
`type` = #{type,jdbcType=VARCHAR},
|
||||||
|
label_json = #{labelJson,jdbcType=VARCHAR},
|
||||||
|
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
|
||||||
|
run_plan_id = #{runPlanId,jdbcType=BIGINT},
|
||||||
|
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
|
||||||
|
creator_id = #{creatorId,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="updateStepJson" parameterType="map">
|
||||||
|
update draft_training2 set step_json = #{stepJson,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -1,573 +0,0 @@
|
|||||||
<?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="club.joylink.rtss.dao.training2.DraftTraining2Mapper">
|
|
||||||
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.DraftTraining2">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
|
||||||
<result column="map_id" jdbcType="BIGINT" property="mapId" />
|
|
||||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
||||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
|
||||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
||||||
<result column="label_json" jdbcType="VARCHAR" property="labelJson" />
|
|
||||||
<result column="map_location_json" jdbcType="VARCHAR" property="mapLocationJson" />
|
|
||||||
<result column="run_plan_id" jdbcType="BIGINT" property="runPlanId" />
|
|
||||||
<result column="failure_condition_json" jdbcType="VARCHAR" property="failureConditionJson" />
|
|
||||||
<result column="creator_id" jdbcType="BIGINT" property="creatorId" />
|
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
||||||
</resultMap>
|
|
||||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
<result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson" />
|
|
||||||
<result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson" />
|
|
||||||
<result column="step_json" jdbcType="LONGVARCHAR" property="stepJson" />
|
|
||||||
<result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson" />
|
|
||||||
<result column="member_json" jdbcType="LONGVARCHAR" property="memberJson" />
|
|
||||||
<result column="player_id_json" jdbcType="LONGVARCHAR" property="playerIdJson" />
|
|
||||||
</resultMap>
|
|
||||||
<sql id="Example_Where_Clause">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
<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">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
<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">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
id, map_id, name, description, type, label_json, map_location_json, run_plan_id,
|
|
||||||
failure_condition_json, creator_id, create_time, update_time
|
|
||||||
</sql>
|
|
||||||
<sql id="Blob_Column_List">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example" resultMap="ResultMapWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
,
|
|
||||||
<include refid="Blob_Column_List" />
|
|
||||||
from draft_training2
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
<if test="orderByClause != null">
|
|
||||||
order by ${orderByClause}
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
<select id="selectByExample" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from draft_training2
|
|
||||||
<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.Long" resultMap="ResultMapWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
,
|
|
||||||
<include refid="Blob_Column_List" />
|
|
||||||
from draft_training2
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</select>
|
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
delete from draft_training2
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</delete>
|
|
||||||
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
delete from draft_training2
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
insert into draft_training2 (id, map_id, name,
|
|
||||||
description, type, label_json,
|
|
||||||
map_location_json, run_plan_id, failure_condition_json,
|
|
||||||
creator_id, create_time, update_time,
|
|
||||||
bg_scene_json, opera_json, step_json,
|
|
||||||
scoring_rule_json, member_json, player_id_json
|
|
||||||
)
|
|
||||||
values (#{id,jdbcType=BIGINT}, #{mapId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
|
|
||||||
#{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR},
|
|
||||||
#{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
||||||
#{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR}, #{stepJson,jdbcType=LONGVARCHAR},
|
|
||||||
#{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR}, #{playerIdJson,jdbcType=LONGVARCHAR}
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
insert into draft_training2
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="id != null">
|
|
||||||
id,
|
|
||||||
</if>
|
|
||||||
<if test="mapId != null">
|
|
||||||
map_id,
|
|
||||||
</if>
|
|
||||||
<if test="name != null">
|
|
||||||
name,
|
|
||||||
</if>
|
|
||||||
<if test="description != null">
|
|
||||||
description,
|
|
||||||
</if>
|
|
||||||
<if test="type != null">
|
|
||||||
type,
|
|
||||||
</if>
|
|
||||||
<if test="labelJson != null">
|
|
||||||
label_json,
|
|
||||||
</if>
|
|
||||||
<if test="mapLocationJson != null">
|
|
||||||
map_location_json,
|
|
||||||
</if>
|
|
||||||
<if test="runPlanId != null">
|
|
||||||
run_plan_id,
|
|
||||||
</if>
|
|
||||||
<if test="failureConditionJson != null">
|
|
||||||
failure_condition_json,
|
|
||||||
</if>
|
|
||||||
<if test="creatorId != null">
|
|
||||||
creator_id,
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
create_time,
|
|
||||||
</if>
|
|
||||||
<if test="updateTime != null">
|
|
||||||
update_time,
|
|
||||||
</if>
|
|
||||||
<if test="bgSceneJson != null">
|
|
||||||
bg_scene_json,
|
|
||||||
</if>
|
|
||||||
<if test="operaJson != null">
|
|
||||||
opera_json,
|
|
||||||
</if>
|
|
||||||
<if test="stepJson != null">
|
|
||||||
step_json,
|
|
||||||
</if>
|
|
||||||
<if test="scoringRuleJson != null">
|
|
||||||
scoring_rule_json,
|
|
||||||
</if>
|
|
||||||
<if test="memberJson != null">
|
|
||||||
member_json,
|
|
||||||
</if>
|
|
||||||
<if test="playerIdJson != null">
|
|
||||||
player_id_json,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="id != null">
|
|
||||||
#{id,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="mapId != null">
|
|
||||||
#{mapId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="name != null">
|
|
||||||
#{name,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="description != null">
|
|
||||||
#{description,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="type != null">
|
|
||||||
#{type,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="labelJson != null">
|
|
||||||
#{labelJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="mapLocationJson != null">
|
|
||||||
#{mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="runPlanId != null">
|
|
||||||
#{runPlanId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="failureConditionJson != null">
|
|
||||||
#{failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="creatorId != null">
|
|
||||||
#{creatorId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="updateTime != null">
|
|
||||||
#{updateTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="bgSceneJson != null">
|
|
||||||
#{bgSceneJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="operaJson != null">
|
|
||||||
#{operaJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="stepJson != null">
|
|
||||||
#{stepJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="scoringRuleJson != null">
|
|
||||||
#{scoringRuleJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="memberJson != null">
|
|
||||||
#{memberJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="playerIdJson != null">
|
|
||||||
#{playerIdJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example" resultType="java.lang.Long">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
select count(*) from draft_training2
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
<update id="updateByExampleSelective" parameterType="map">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
update draft_training2
|
|
||||||
<set>
|
|
||||||
<if test="record.id != null">
|
|
||||||
id = #{record.id,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="record.mapId != null">
|
|
||||||
map_id = #{record.mapId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="record.name != null">
|
|
||||||
name = #{record.name,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.description != null">
|
|
||||||
description = #{record.description,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.type != null">
|
|
||||||
type = #{record.type,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.labelJson != null">
|
|
||||||
label_json = #{record.labelJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.mapLocationJson != null">
|
|
||||||
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.runPlanId != null">
|
|
||||||
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="record.failureConditionJson != null">
|
|
||||||
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.creatorId != null">
|
|
||||||
creator_id = #{record.creatorId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="record.createTime != null">
|
|
||||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="record.updateTime != null">
|
|
||||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="record.bgSceneJson != null">
|
|
||||||
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.operaJson != null">
|
|
||||||
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.stepJson != null">
|
|
||||||
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.scoringRuleJson != null">
|
|
||||||
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.memberJson != null">
|
|
||||||
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.playerIdJson != null">
|
|
||||||
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</update>
|
|
||||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
update draft_training2
|
|
||||||
set id = #{record.id,jdbcType=BIGINT},
|
|
||||||
map_id = #{record.mapId,jdbcType=BIGINT},
|
|
||||||
name = #{record.name,jdbcType=VARCHAR},
|
|
||||||
description = #{record.description,jdbcType=VARCHAR},
|
|
||||||
type = #{record.type,jdbcType=VARCHAR},
|
|
||||||
label_json = #{record.labelJson,jdbcType=VARCHAR},
|
|
||||||
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
|
|
||||||
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
creator_id = #{record.creatorId,jdbcType=BIGINT},
|
|
||||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
||||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
||||||
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
|
|
||||||
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
|
|
||||||
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
|
|
||||||
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
|
|
||||||
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
|
|
||||||
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR}
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</update>
|
|
||||||
<update id="updateByExample" parameterType="map">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
update draft_training2
|
|
||||||
set id = #{record.id,jdbcType=BIGINT},
|
|
||||||
map_id = #{record.mapId,jdbcType=BIGINT},
|
|
||||||
name = #{record.name,jdbcType=VARCHAR},
|
|
||||||
description = #{record.description,jdbcType=VARCHAR},
|
|
||||||
type = #{record.type,jdbcType=VARCHAR},
|
|
||||||
label_json = #{record.labelJson,jdbcType=VARCHAR},
|
|
||||||
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
|
|
||||||
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
creator_id = #{record.creatorId,jdbcType=BIGINT},
|
|
||||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
||||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
update draft_training2
|
|
||||||
<set>
|
|
||||||
<if test="mapId != null">
|
|
||||||
map_id = #{mapId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="name != null">
|
|
||||||
name = #{name,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="description != null">
|
|
||||||
description = #{description,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="type != null">
|
|
||||||
type = #{type,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="labelJson != null">
|
|
||||||
label_json = #{labelJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="mapLocationJson != null">
|
|
||||||
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="runPlanId != null">
|
|
||||||
run_plan_id = #{runPlanId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="failureConditionJson != null">
|
|
||||||
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="creatorId != null">
|
|
||||||
creator_id = #{creatorId,jdbcType=BIGINT},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="updateTime != null">
|
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="bgSceneJson != null">
|
|
||||||
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="operaJson != null">
|
|
||||||
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="stepJson != null">
|
|
||||||
step_json = #{stepJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="scoringRuleJson != null">
|
|
||||||
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="memberJson != null">
|
|
||||||
member_json = #{memberJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="playerIdJson != null">
|
|
||||||
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
update draft_training2
|
|
||||||
set map_id = #{mapId,jdbcType=BIGINT},
|
|
||||||
name = #{name,jdbcType=VARCHAR},
|
|
||||||
description = #{description,jdbcType=VARCHAR},
|
|
||||||
type = #{type,jdbcType=VARCHAR},
|
|
||||||
label_json = #{labelJson,jdbcType=VARCHAR},
|
|
||||||
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
run_plan_id = #{runPlanId,jdbcType=BIGINT},
|
|
||||||
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
creator_id = #{creatorId,jdbcType=BIGINT},
|
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
||||||
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
|
|
||||||
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
|
|
||||||
step_json = #{stepJson,jdbcType=LONGVARCHAR},
|
|
||||||
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
|
|
||||||
member_json = #{memberJson,jdbcType=LONGVARCHAR},
|
|
||||||
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR}
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.DraftTraining2">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbg.generated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Aug 16 14:29:01 CST 2022.
|
|
||||||
-->
|
|
||||||
update draft_training2
|
|
||||||
set map_id = #{mapId,jdbcType=BIGINT},
|
|
||||||
name = #{name,jdbcType=VARCHAR},
|
|
||||||
description = #{description,jdbcType=VARCHAR},
|
|
||||||
type = #{type,jdbcType=VARCHAR},
|
|
||||||
label_json = #{labelJson,jdbcType=VARCHAR},
|
|
||||||
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
|
|
||||||
run_plan_id = #{runPlanId,jdbcType=BIGINT},
|
|
||||||
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
|
|
||||||
creator_id = #{creatorId,jdbcType=BIGINT},
|
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
||||||
where id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
Loading…
Reference in New Issue
Block a user