大赛管理功能

This commit is contained in:
tiger_zhou 2024-02-27 15:35:49 +08:00
parent 161e8ec469
commit e647d54762
9 changed files with 448 additions and 255 deletions

@ -1 +1 @@
Subproject commit 79c926c676db362c034112a1a94c4507028c51fe
Subproject commit c11e2cdff56d76f466ab41356c078d55563a4140

View File

@ -75,4 +75,9 @@ public class RacePaperController {
BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertNotNull(id);
racePaperService.delete(id);
}
@GetMapping("/{paperId}/module/{moduleId}/task")
public void paperModuleTask(@PathVariable("paperId") Long id, @PathVariable("moduleId") Integer moduleId) {
}
}

View File

@ -68,4 +68,5 @@ public class RaceTaskController {
public RaceTaskDetailVO detail(@PathVariable("id") Long id) {
return this.taskService.detail(id);
}
}

View File

@ -19,7 +19,7 @@ import org.springframework.stereotype.Repository;
public interface RacetrPaperDAO extends MyBatisBaseDao<RacetrPaper, Long, RacetrPaperExample> {
@Select("<script>"
+ " select A.id,A.name,A.`desc`,A.season_id as seasonId ,B.code as seasonName,A.support_copy ,B.group"
+ " select A.id,A.name,A.`desc`,A.season_id as seasonId ,B.code as seasonName,B.group"
+ " ,A.creator_id,A.create_time,A.updater_id,A.update_time,C.nickname as creatorName,D.nickname as updaterName "
+ " from racetr_paper A left join racetr_season B on A.season_id = B.id "
+ " left join sys_account C on A.creator_id = C.id "
@ -42,7 +42,7 @@ public interface RacetrPaperDAO extends MyBatisBaseDao<RacetrPaper, Long, Racetr
List<RacePaperPageVO> pages(@Param("vo") RacePaperQueryVO vo);
@Select("<script>"
+ " select A.id,A.name,A.`desc`,A.season_id as seasonId ,B.code as seasonName,A.support_copy "
+ " select A.id,A.name,A.`desc`,A.season_id as seasonId ,B.code as seasonName "
+ " ,A.configs,A.creator_id,A.create_time,A.updater_id,A.update_time,C.nickname as creatorName,D.nickname as updaterName "
+ " from racetr_paper A left join racetr_season B on A.season_id = B.id "
+ " left join sys_account C on A.creator_id = C.id "

View File

@ -23,11 +23,6 @@ public class RacetrPaper implements Serializable {
*/
private String desc;
/**
* 0=不支持;1=支持
*/
private Boolean supportCopy;
/**
* 赛季ID
*/

View File

@ -325,66 +325,6 @@ public class RacetrPaperExample {
return (Criteria) this;
}
public Criteria andSupportCopyIsNull() {
addCriterion("support_copy is null");
return (Criteria) this;
}
public Criteria andSupportCopyIsNotNull() {
addCriterion("support_copy is not null");
return (Criteria) this;
}
public Criteria andSupportCopyEqualTo(Boolean value) {
addCriterion("support_copy =", value, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyNotEqualTo(Boolean value) {
addCriterion("support_copy <>", value, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyGreaterThan(Boolean value) {
addCriterion("support_copy >", value, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyGreaterThanOrEqualTo(Boolean value) {
addCriterion("support_copy >=", value, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyLessThan(Boolean value) {
addCriterion("support_copy <", value, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyLessThanOrEqualTo(Boolean value) {
addCriterion("support_copy <=", value, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyIn(List<Boolean> values) {
addCriterion("support_copy in", values, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyNotIn(List<Boolean> values) {
addCriterion("support_copy not in", values, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyBetween(Boolean value1, Boolean value2) {
addCriterion("support_copy between", value1, value2, "supportCopy");
return (Criteria) this;
}
public Criteria andSupportCopyNotBetween(Boolean value1, Boolean value2) {
addCriterion("support_copy not between", value1, value2, "supportCopy");
return (Criteria) this;
}
public Criteria andSeasonIdIsNull() {
addCriterion("season_id is null");
return (Criteria) this;

View File

@ -52,7 +52,7 @@ public class RacePaperService {
rp.setUpdateTime(now);
rp.setCreatorId(user.getId());
rp.setUpdaterId(user.getId());
rp.setSupportCopy(createVO.getSupportCopy());
// rp.setSupportCopy(createVO.getSupportCopy());
this.paperDAO.insertSelective(rp);
}
@ -63,7 +63,7 @@ public class RacePaperService {
rp.setSeasonId(updateVO.getSeasonId());
rp.setUpdateTime(LocalDateTime.now());
rp.setUpdaterId(user.getId());
rp.setSupportCopy(updateVO.getSupportCopy());
// rp.setSupportCopy(updateVO.getSupportCopy());
this.paperDAO.updateByPrimaryKey(rp);
}
@ -90,7 +90,7 @@ public class RacePaperService {
builder.setModifyInfo(modifyInfoVO);
builder.setSeasonId(rp.getSeasonId());
builder.setSeasonName(Objects.isNull(rp.getSeasonName()) ? "" : rp.getSeasonName());
builder.setSupportCopy(!Objects.isNull(rp.getSupportCopy()) && rp.getSupportCopy());
// builder.setSupportCopy(!Objects.isNull(rp.getSupportCopy()) && rp.getSupportCopy());
builder.setGroup(Group.Unknown);
if (Objects.nonNull(rp.getGroup())) {
builder.setGroup(Group.valueOf(rp.getGroup()));
@ -162,15 +162,27 @@ public class RacePaperService {
public void copy(Long id, AccountVO user) {
RacetrPaper paper = this.findId(id);
BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertTrue(paper.getSupportCopy(), "此试卷不支持拷贝");
// BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertTrue(paper.getSupportCopy(), "此试卷不支持拷贝");
LocalDateTime now = LocalDateTime.now();
paper.setId(null);
paper.setName(String.format("%s_copy", paper.getName()));
paper.setSupportCopy(!Objects.isNull(paper.getSupportCopy()) && paper.getSupportCopy());
// paper.setSupportCopy(!Objects.isNull(paper.getSupportCopy()) && paper.getSupportCopy());
paper.setCreatorId(user.getId());
paper.setUpdaterId(user.getId());
paper.setCreateTime(now);
paper.setUpdateTime(now);
this.paperDAO.insert(paper);
}
public void paperModuleTask(Long paperId, Integer moduleId) {
BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertTrue(Objects.nonNull(moduleId), "请选择对应的模型");
RacePaperDetailVO detailVO = this.detail(paperId);
RacePaperModuleVO moduleVO = detailVO.getModuleVo();
BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertTrue(CollectionUtils.isEmpty(moduleVO.getModulesList()), "此试卷没有模块数据");
PaperModule pm = moduleVO.getModulesList().stream().filter(d -> d.getCustomModuleId() == moduleId).findFirst().orElse(null);
BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertTrue(Objects.nonNull(pm), "没有找到对应的模块");
for (RacePaperModuleVO.Group moduleGroup : pm.getGroupList()) {
}
}
}

View File

@ -59,23 +59,25 @@ public final class RacePaper {
long getSeasonId();
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return The seasonName.
*/
java.lang.String getSeasonName();
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return The bytes for seasonName.
*/
com.google.protobuf.ByteString
getSeasonNameBytes();
/**
* <code>bool support_copy = 7;</code>
* @return The supportCopy.
*/
boolean getSupportCopy();
/**
* <code>.common.ModifyInfoVO modify_info = 8;</code>
* @return Whether the modifyInfo field is set.
@ -249,6 +251,10 @@ public final class RacePaper {
@SuppressWarnings("serial")
private volatile java.lang.Object seasonName_ = "";
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return The seasonName.
*/
@ -266,6 +272,10 @@ public final class RacePaper {
}
}
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return The bytes for seasonName.
*/
@ -284,17 +294,6 @@ public final class RacePaper {
}
}
public static final int SUPPORT_COPY_FIELD_NUMBER = 7;
private boolean supportCopy_ = false;
/**
* <code>bool support_copy = 7;</code>
* @return The supportCopy.
*/
@java.lang.Override
public boolean getSupportCopy() {
return supportCopy_;
}
public static final int MODIFY_INFO_FIELD_NUMBER = 8;
private club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO modifyInfo_;
/**
@ -368,9 +367,6 @@ public final class RacePaper {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, seasonName_);
}
if (supportCopy_ != false) {
output.writeBool(7, supportCopy_);
}
if (modifyInfo_ != null) {
output.writeMessage(8, getModifyInfo());
}
@ -403,10 +399,6 @@ public final class RacePaper {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, seasonName_);
}
if (supportCopy_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, supportCopy_);
}
if (modifyInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getModifyInfo());
@ -440,8 +432,6 @@ public final class RacePaper {
!= other.getSeasonId()) return false;
if (!getSeasonName()
.equals(other.getSeasonName())) return false;
if (getSupportCopy()
!= other.getSupportCopy()) return false;
if (hasModifyInfo() != other.hasModifyInfo()) return false;
if (hasModifyInfo()) {
if (!getModifyInfo()
@ -471,9 +461,6 @@ public final class RacePaper {
getSeasonId());
hash = (37 * hash) + SEASON_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSeasonName().hashCode();
hash = (37 * hash) + SUPPORT_COPY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSupportCopy());
if (hasModifyInfo()) {
hash = (37 * hash) + MODIFY_INFO_FIELD_NUMBER;
hash = (53 * hash) + getModifyInfo().hashCode();
@ -616,7 +603,6 @@ public final class RacePaper {
desc_ = "";
seasonId_ = 0L;
seasonName_ = "";
supportCopy_ = false;
modifyInfo_ = null;
if (modifyInfoBuilder_ != null) {
modifyInfoBuilder_.dispose();
@ -672,14 +658,11 @@ public final class RacePaper {
result.seasonName_ = seasonName_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.supportCopy_ = supportCopy_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.modifyInfo_ = modifyInfoBuilder_ == null
? modifyInfo_
: modifyInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
if (((from_bitField0_ & 0x00000040) != 0)) {
result.group_ = group_;
}
}
@ -717,9 +700,6 @@ public final class RacePaper {
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getSupportCopy() != false) {
setSupportCopy(other.getSupportCopy());
}
if (other.hasModifyInfo()) {
mergeModifyInfo(other.getModifyInfo());
}
@ -777,21 +757,16 @@ public final class RacePaper {
bitField0_ |= 0x00000010;
break;
} // case 50
case 56: {
supportCopy_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 56
case 66: {
input.readMessage(
getModifyInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
bitField0_ |= 0x00000020;
break;
} // case 66
case 72: {
group_ = input.readEnum();
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000040;
break;
} // case 72
default: {
@ -1033,6 +1008,10 @@ public final class RacePaper {
private java.lang.Object seasonName_ = "";
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return The seasonName.
*/
@ -1049,6 +1028,10 @@ public final class RacePaper {
}
}
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return The bytes for seasonName.
*/
@ -1066,6 +1049,10 @@ public final class RacePaper {
}
}
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @param value The seasonName to set.
* @return This builder for chaining.
@ -1079,6 +1066,10 @@ public final class RacePaper {
return this;
}
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @return This builder for chaining.
*/
@ -1089,6 +1080,10 @@ public final class RacePaper {
return this;
}
/**
* <pre>
* bool support_copy = 7;
* </pre>
*
* <code>string season_name = 6;</code>
* @param value The bytes for seasonName to set.
* @return This builder for chaining.
@ -1103,38 +1098,6 @@ public final class RacePaper {
return this;
}
private boolean supportCopy_ ;
/**
* <code>bool support_copy = 7;</code>
* @return The supportCopy.
*/
@java.lang.Override
public boolean getSupportCopy() {
return supportCopy_;
}
/**
* <code>bool support_copy = 7;</code>
* @param value The supportCopy to set.
* @return This builder for chaining.
*/
public Builder setSupportCopy(boolean value) {
supportCopy_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>bool support_copy = 7;</code>
* @return This builder for chaining.
*/
public Builder clearSupportCopy() {
bitField0_ = (bitField0_ & ~0x00000020);
supportCopy_ = false;
onChanged();
return this;
}
private club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO modifyInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder> modifyInfoBuilder_;
@ -1143,7 +1106,7 @@ public final class RacePaper {
* @return Whether the modifyInfo field is set.
*/
public boolean hasModifyInfo() {
return ((bitField0_ & 0x00000040) != 0);
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <code>.common.ModifyInfoVO modify_info = 8;</code>
@ -1168,7 +1131,7 @@ public final class RacePaper {
} else {
modifyInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@ -1182,7 +1145,7 @@ public final class RacePaper {
} else {
modifyInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@ -1191,7 +1154,7 @@ public final class RacePaper {
*/
public Builder mergeModifyInfo(club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO value) {
if (modifyInfoBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
if (((bitField0_ & 0x00000020) != 0) &&
modifyInfo_ != null &&
modifyInfo_ != club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance()) {
getModifyInfoBuilder().mergeFrom(value);
@ -1201,7 +1164,7 @@ public final class RacePaper {
} else {
modifyInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@ -1209,7 +1172,7 @@ public final class RacePaper {
* <code>.common.ModifyInfoVO modify_info = 8;</code>
*/
public Builder clearModifyInfo() {
bitField0_ = (bitField0_ & ~0x00000040);
bitField0_ = (bitField0_ & ~0x00000020);
modifyInfo_ = null;
if (modifyInfoBuilder_ != null) {
modifyInfoBuilder_.dispose();
@ -1222,7 +1185,7 @@ public final class RacePaper {
* <code>.common.ModifyInfoVO modify_info = 8;</code>
*/
public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder getModifyInfoBuilder() {
bitField0_ |= 0x00000040;
bitField0_ |= 0x00000020;
onChanged();
return getModifyInfoFieldBuilder().getBuilder();
}
@ -1269,7 +1232,7 @@ public final class RacePaper {
*/
public Builder setGroupValue(int value) {
group_ = value;
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
@ -1291,7 +1254,7 @@ public final class RacePaper {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000040;
group_ = value.getNumber();
onChanged();
return this;
@ -1301,7 +1264,7 @@ public final class RacePaper {
* @return This builder for chaining.
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000080);
bitField0_ = (bitField0_ & ~0x00000040);
group_ = 0;
onChanged();
return this;
@ -2834,16 +2797,14 @@ public final class RacePaper {
getDescBytes();
/**
* <pre>
* bool support_copy = 4;
* </pre>
*
* <code>int64 season_id = 3;</code>
* @return The seasonId.
*/
long getSeasonId();
/**
* <code>bool support_copy = 4;</code>
* @return The supportCopy.
*/
boolean getSupportCopy();
}
/**
* Protobuf type {@code race.RacePaperCreateVO}
@ -2971,6 +2932,10 @@ public final class RacePaper {
public static final int SEASON_ID_FIELD_NUMBER = 3;
private long seasonId_ = 0L;
/**
* <pre>
* bool support_copy = 4;
* </pre>
*
* <code>int64 season_id = 3;</code>
* @return The seasonId.
*/
@ -2979,17 +2944,6 @@ public final class RacePaper {
return seasonId_;
}
public static final int SUPPORT_COPY_FIELD_NUMBER = 4;
private boolean supportCopy_ = false;
/**
* <code>bool support_copy = 4;</code>
* @return The supportCopy.
*/
@java.lang.Override
public boolean getSupportCopy() {
return supportCopy_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@ -3013,9 +2967,6 @@ public final class RacePaper {
if (seasonId_ != 0L) {
output.writeInt64(3, seasonId_);
}
if (supportCopy_ != false) {
output.writeBool(4, supportCopy_);
}
getUnknownFields().writeTo(output);
}
@ -3035,10 +2986,6 @@ public final class RacePaper {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, seasonId_);
}
if (supportCopy_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, supportCopy_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@ -3060,8 +3007,6 @@ public final class RacePaper {
.equals(other.getDesc())) return false;
if (getSeasonId()
!= other.getSeasonId()) return false;
if (getSupportCopy()
!= other.getSupportCopy()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@ -3080,9 +3025,6 @@ public final class RacePaper {
hash = (37 * hash) + SEASON_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSeasonId());
hash = (37 * hash) + SUPPORT_COPY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSupportCopy());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@ -3217,7 +3159,6 @@ public final class RacePaper {
name_ = "";
desc_ = "";
seasonId_ = 0L;
supportCopy_ = false;
return this;
}
@ -3260,9 +3201,6 @@ public final class RacePaper {
if (((from_bitField0_ & 0x00000004) != 0)) {
result.seasonId_ = seasonId_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.supportCopy_ = supportCopy_;
}
}
@java.lang.Override
@ -3290,9 +3228,6 @@ public final class RacePaper {
if (other.getSeasonId() != 0L) {
setSeasonId(other.getSeasonId());
}
if (other.getSupportCopy() != false) {
setSupportCopy(other.getSupportCopy());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@ -3334,11 +3269,6 @@ public final class RacePaper {
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
supportCopy_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -3522,6 +3452,10 @@ public final class RacePaper {
private long seasonId_ ;
/**
* <pre>
* bool support_copy = 4;
* </pre>
*
* <code>int64 season_id = 3;</code>
* @return The seasonId.
*/
@ -3530,6 +3464,10 @@ public final class RacePaper {
return seasonId_;
}
/**
* <pre>
* bool support_copy = 4;
* </pre>
*
* <code>int64 season_id = 3;</code>
* @param value The seasonId to set.
* @return This builder for chaining.
@ -3542,6 +3480,10 @@ public final class RacePaper {
return this;
}
/**
* <pre>
* bool support_copy = 4;
* </pre>
*
* <code>int64 season_id = 3;</code>
* @return This builder for chaining.
*/
@ -3551,38 +3493,6 @@ public final class RacePaper {
onChanged();
return this;
}
private boolean supportCopy_ ;
/**
* <code>bool support_copy = 4;</code>
* @return The supportCopy.
*/
@java.lang.Override
public boolean getSupportCopy() {
return supportCopy_;
}
/**
* <code>bool support_copy = 4;</code>
* @param value The supportCopy to set.
* @return This builder for chaining.
*/
public Builder setSupportCopy(boolean value) {
supportCopy_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>bool support_copy = 4;</code>
* @return This builder for chaining.
*/
public Builder clearSupportCopy() {
bitField0_ = (bitField0_ & ~0x00000008);
supportCopy_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@ -6966,29 +6876,28 @@ public final class RacePaper {
static {
java.lang.String[] descriptorData = {
"\n\020race_paper.proto\022\004race\032\030common/modify_" +
"info.proto\032\026race/race_season.proto\"\305\001\n\013R" +
"info.proto\032\026race/race_season.proto\"\257\001\n\013R" +
"acePaperVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004" +
"desc\030\003 \001(\t\022\021\n\tseason_id\030\005 \001(\003\022\023\n\013season_" +
"name\030\006 \001(\t\022\024\n\014support_copy\030\007 \001(\010\022)\n\013modi" +
"fy_info\030\010 \001(\0132\024.common.ModifyInfoVO\022%\n\005g" +
"roup\030\t \001(\0162\026.race.RaceSeason.Group\"\320\001\n\021R" +
"acePaperDetailVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001" +
"(\t\022\014\n\004desc\030\003 \001(\t\022*\n\tmodule_vo\030\004 \001(\0132\027.ra" +
"ce.RacePaperModuleVO\022\021\n\tseason_id\030\005 \001(\003\022" +
"\023\n\013season_name\030\006 \001(\t\022\024\n\014support_copy\030\007 \001" +
"(\010\022)\n\013modify_info\030\010 \001(\0132\024.common.ModifyI" +
"nfoVO\"X\n\021RacePaperCreateVO\022\014\n\004name\030\001 \001(\t" +
"\022\014\n\004desc\030\002 \001(\t\022\021\n\tseason_id\030\003 \001(\003\022\024\n\014sup" +
"port_copy\030\004 \001(\010\"\275\002\n\021RacePaperModuleVO\0224\n" +
"\007modules\030\001 \003(\0132#.race.RacePaperModuleVO." +
"PaperModule\032\232\001\n\013PaperModule\022\023\n\013module_na" +
"me\030\001 \001(\t\022\020\n\010duration\030\002 \001(\005\022,\n\005group\030\003 \003(" +
"\0132\035.race.RacePaperModuleVO.Group\022\034\n\024modu" +
"le_score_rule_id\030\004 \001(\003\022\030\n\020custom_module_" +
"id\030\005 \001(\005\032U\n\005Group\022\020\n\010task_ids\030\001 \003(\003\022,\n\005g" +
"roup\030\002 \003(\0132\035.race.RacePaperModuleVO.Grou" +
"p\022\014\n\004name\030\003 \001(\tB\033\n\031club.joylink.rtss.vo." +
"raceb\006proto3"
"name\030\006 \001(\t\022)\n\013modify_info\030\010 \001(\0132\024.common" +
".ModifyInfoVO\022%\n\005group\030\t \001(\0162\026.race.Race" +
"Season.Group\"\320\001\n\021RacePaperDetailVO\022\n\n\002id" +
"\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004desc\030\003 \001(\t\022*\n\tmo" +
"dule_vo\030\004 \001(\0132\027.race.RacePaperModuleVO\022\021" +
"\n\tseason_id\030\005 \001(\003\022\023\n\013season_name\030\006 \001(\t\022\024" +
"\n\014support_copy\030\007 \001(\010\022)\n\013modify_info\030\010 \001(" +
"\0132\024.common.ModifyInfoVO\"B\n\021RacePaperCrea" +
"teVO\022\014\n\004name\030\001 \001(\t\022\014\n\004desc\030\002 \001(\t\022\021\n\tseas" +
"on_id\030\003 \001(\003\"\275\002\n\021RacePaperModuleVO\0224\n\007mod" +
"ules\030\001 \003(\0132#.race.RacePaperModuleVO.Pape" +
"rModule\032\232\001\n\013PaperModule\022\023\n\013module_name\030\001" +
" \001(\t\022\020\n\010duration\030\002 \001(\005\022,\n\005group\030\003 \003(\0132\035." +
"race.RacePaperModuleVO.Group\022\034\n\024module_s" +
"core_rule_id\030\004 \001(\003\022\030\n\020custom_module_id\030\005" +
" \001(\005\032U\n\005Group\022\020\n\010task_ids\030\001 \003(\003\022,\n\005group" +
"\030\002 \003(\0132\035.race.RacePaperModuleVO.Group\022\014\n" +
"\004name\030\003 \001(\tB\033\n\031club.joylink.rtss.vo.race" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@ -7001,7 +6910,7 @@ public final class RacePaper {
internal_static_race_RacePaperVO_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_race_RacePaperVO_descriptor,
new java.lang.String[] { "Id", "Name", "Desc", "SeasonId", "SeasonName", "SupportCopy", "ModifyInfo", "Group", });
new java.lang.String[] { "Id", "Name", "Desc", "SeasonId", "SeasonName", "ModifyInfo", "Group", });
internal_static_race_RacePaperDetailVO_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_race_RacePaperDetailVO_fieldAccessorTable = new
@ -7013,7 +6922,7 @@ public final class RacePaper {
internal_static_race_RacePaperCreateVO_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_race_RacePaperCreateVO_descriptor,
new java.lang.String[] { "Name", "Desc", "SeasonId", "SupportCopy", });
new java.lang.String[] { "Name", "Desc", "SeasonId", });
internal_static_race_RacePaperModuleVO_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_race_RacePaperModuleVO_fieldAccessorTable = new

View File

@ -0,0 +1,331 @@
<?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.racetr.RacetrPaperDAO">
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.racetr.RacetrPaper">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="desc" jdbcType="VARCHAR" property="desc" />
<result column="season_id" jdbcType="BIGINT" property="seasonId" />
<result column="creator_id" jdbcType="BIGINT" property="creatorId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="updater_id" jdbcType="BIGINT" property="updaterId" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="club.joylink.rtss.entity.racetr.RacetrPaper">
<result column="configs" jdbcType="LONGVARBINARY" property="configs" />
</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, `name`, `desc`, season_id, creator_id, create_time, updater_id, update_time
</sql>
<sql id="Blob_Column_List">
configs
</sql>
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.racetr.RacetrPaperExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from racetr_paper
<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.racetr.RacetrPaperExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from racetr_paper
<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 racetr_paper
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from racetr_paper
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.racetr.RacetrPaperExample">
delete from racetr_paper
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="club.joylink.rtss.entity.racetr.RacetrPaper" useGeneratedKeys="true">
insert into racetr_paper (`name`, `desc`, season_id,
creator_id, create_time, updater_id,
update_time, configs)
values (#{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{seasonId,jdbcType=BIGINT},
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP}, #{configs,jdbcType=LONGVARBINARY})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="club.joylink.rtss.entity.racetr.RacetrPaper" useGeneratedKeys="true">
insert into racetr_paper
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
`name`,
</if>
<if test="desc != null">
`desc`,
</if>
<if test="seasonId != null">
season_id,
</if>
<if test="creatorId != null">
creator_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updaterId != null">
updater_id,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="configs != null">
configs,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="desc != null">
#{desc,jdbcType=VARCHAR},
</if>
<if test="seasonId != null">
#{seasonId,jdbcType=BIGINT},
</if>
<if test="creatorId != null">
#{creatorId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updaterId != null">
#{updaterId,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="configs != null">
#{configs,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.racetr.RacetrPaperExample" resultType="java.lang.Long">
select count(*) from racetr_paper
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update racetr_paper
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.desc != null">
`desc` = #{record.desc,jdbcType=VARCHAR},
</if>
<if test="record.seasonId != null">
season_id = #{record.seasonId,jdbcType=BIGINT},
</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.updaterId != null">
updater_id = #{record.updaterId,jdbcType=BIGINT},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.configs != null">
configs = #{record.configs,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update racetr_paper
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
`desc` = #{record.desc,jdbcType=VARCHAR},
season_id = #{record.seasonId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
updater_id = #{record.updaterId,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
configs = #{record.configs,jdbcType=LONGVARBINARY}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update racetr_paper
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
`desc` = #{record.desc,jdbcType=VARCHAR},
season_id = #{record.seasonId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
updater_id = #{record.updaterId,jdbcType=BIGINT},
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.racetr.RacetrPaper">
update racetr_paper
<set>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="desc != null">
`desc` = #{desc,jdbcType=VARCHAR},
</if>
<if test="seasonId != null">
season_id = #{seasonId,jdbcType=BIGINT},
</if>
<if test="creatorId != null">
creator_id = #{creatorId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updaterId != null">
updater_id = #{updaterId,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="configs != null">
configs = #{configs,jdbcType=LONGVARBINARY},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="club.joylink.rtss.entity.racetr.RacetrPaper">
update racetr_paper
set `name` = #{name,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
season_id = #{seasonId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
updater_id = #{updaterId,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
configs = #{configs,jdbcType=LONGVARBINARY}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.racetr.RacetrPaper">
update racetr_paper
set `name` = #{name,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
season_id = #{seasonId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
updater_id = #{updaterId,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>