实训案例内置写死一些资料,所有学校都可见

master
wanghb 1 year ago
parent d5bcd16d64
commit fe704bc0e5

@ -8,7 +8,7 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.id * This field corresponds to the database column sys_training_lesson_plan.id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private String id; private String id;
@ -17,7 +17,7 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.name * This field corresponds to the database column sys_training_lesson_plan.name
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private String name; private String name;
@ -26,7 +26,7 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.file_path * This field corresponds to the database column sys_training_lesson_plan.file_path
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private String filePath; private String filePath;
@ -35,7 +35,7 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.school_id * This field corresponds to the database column sys_training_lesson_plan.school_id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private Integer schoolId; private Integer schoolId;
@ -44,7 +44,7 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.creator_id * This field corresponds to the database column sys_training_lesson_plan.creator_id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private Integer creatorId; private Integer creatorId;
@ -53,7 +53,7 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.creator_name * This field corresponds to the database column sys_training_lesson_plan.creator_name
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private String creatorName; private String creatorName;
@ -62,17 +62,26 @@ public class TrainingLessonPlan {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.create_time * This field corresponds to the database column sys_training_lesson_plan.create_time
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
private Date createTime; private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_training_lesson_plan.built_data
*
* @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/
private Integer builtData;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_training_lesson_plan.id * This method returns the value of the database column sys_training_lesson_plan.id
* *
* @return the value of sys_training_lesson_plan.id * @return the value of sys_training_lesson_plan.id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public String getId() { public String getId() {
return id; return id;
@ -84,7 +93,7 @@ public class TrainingLessonPlan {
* *
* @param id the value for sys_training_lesson_plan.id * @param id the value for sys_training_lesson_plan.id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setId(String id) { public void setId(String id) {
this.id = id == null ? null : id.trim(); this.id = id == null ? null : id.trim();
@ -96,7 +105,7 @@ public class TrainingLessonPlan {
* *
* @return the value of sys_training_lesson_plan.name * @return the value of sys_training_lesson_plan.name
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public String getName() { public String getName() {
return name; return name;
@ -108,7 +117,7 @@ public class TrainingLessonPlan {
* *
* @param name the value for sys_training_lesson_plan.name * @param name the value for sys_training_lesson_plan.name
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name == null ? null : name.trim(); this.name = name == null ? null : name.trim();
@ -120,7 +129,7 @@ public class TrainingLessonPlan {
* *
* @return the value of sys_training_lesson_plan.file_path * @return the value of sys_training_lesson_plan.file_path
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public String getFilePath() { public String getFilePath() {
return filePath; return filePath;
@ -132,7 +141,7 @@ public class TrainingLessonPlan {
* *
* @param filePath the value for sys_training_lesson_plan.file_path * @param filePath the value for sys_training_lesson_plan.file_path
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setFilePath(String filePath) { public void setFilePath(String filePath) {
this.filePath = filePath == null ? null : filePath.trim(); this.filePath = filePath == null ? null : filePath.trim();
@ -144,7 +153,7 @@ public class TrainingLessonPlan {
* *
* @return the value of sys_training_lesson_plan.school_id * @return the value of sys_training_lesson_plan.school_id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public Integer getSchoolId() { public Integer getSchoolId() {
return schoolId; return schoolId;
@ -156,7 +165,7 @@ public class TrainingLessonPlan {
* *
* @param schoolId the value for sys_training_lesson_plan.school_id * @param schoolId the value for sys_training_lesson_plan.school_id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setSchoolId(Integer schoolId) { public void setSchoolId(Integer schoolId) {
this.schoolId = schoolId; this.schoolId = schoolId;
@ -168,7 +177,7 @@ public class TrainingLessonPlan {
* *
* @return the value of sys_training_lesson_plan.creator_id * @return the value of sys_training_lesson_plan.creator_id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public Integer getCreatorId() { public Integer getCreatorId() {
return creatorId; return creatorId;
@ -180,7 +189,7 @@ public class TrainingLessonPlan {
* *
* @param creatorId the value for sys_training_lesson_plan.creator_id * @param creatorId the value for sys_training_lesson_plan.creator_id
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setCreatorId(Integer creatorId) { public void setCreatorId(Integer creatorId) {
this.creatorId = creatorId; this.creatorId = creatorId;
@ -192,7 +201,7 @@ public class TrainingLessonPlan {
* *
* @return the value of sys_training_lesson_plan.creator_name * @return the value of sys_training_lesson_plan.creator_name
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public String getCreatorName() { public String getCreatorName() {
return creatorName; return creatorName;
@ -204,7 +213,7 @@ public class TrainingLessonPlan {
* *
* @param creatorName the value for sys_training_lesson_plan.creator_name * @param creatorName the value for sys_training_lesson_plan.creator_name
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setCreatorName(String creatorName) { public void setCreatorName(String creatorName) {
this.creatorName = creatorName == null ? null : creatorName.trim(); this.creatorName = creatorName == null ? null : creatorName.trim();
@ -216,7 +225,7 @@ public class TrainingLessonPlan {
* *
* @return the value of sys_training_lesson_plan.create_time * @return the value of sys_training_lesson_plan.create_time
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public Date getCreateTime() { public Date getCreateTime() {
return createTime; return createTime;
@ -228,9 +237,33 @@ public class TrainingLessonPlan {
* *
* @param createTime the value for sys_training_lesson_plan.create_time * @param createTime the value for sys_training_lesson_plan.create_time
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setCreateTime(Date createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_training_lesson_plan.built_data
*
* @return the value of sys_training_lesson_plan.built_data
*
* @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/
public Integer getBuiltData() {
return builtData;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_training_lesson_plan.built_data
*
* @param builtData the value for sys_training_lesson_plan.built_data
*
* @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/
public void setBuiltData(Integer builtData) {
this.builtData = builtData;
}
} }

@ -9,7 +9,7 @@ public class TrainingLessonPlanExample {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database table sys_training_lesson_plan * This field corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
protected String orderByClause; protected String orderByClause;
@ -17,7 +17,7 @@ public class TrainingLessonPlanExample {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database table sys_training_lesson_plan * This field corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
protected boolean distinct; protected boolean distinct;
@ -25,7 +25,7 @@ public class TrainingLessonPlanExample {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database table sys_training_lesson_plan * This field corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
@ -33,7 +33,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public TrainingLessonPlanExample() { public TrainingLessonPlanExample() {
oredCriteria = new ArrayList<>(); oredCriteria = new ArrayList<>();
@ -43,7 +43,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setOrderByClause(String orderByClause) { public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause; this.orderByClause = orderByClause;
@ -53,7 +53,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public String getOrderByClause() { public String getOrderByClause() {
return orderByClause; return orderByClause;
@ -63,7 +63,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void setDistinct(boolean distinct) { public void setDistinct(boolean distinct) {
this.distinct = distinct; this.distinct = distinct;
@ -73,7 +73,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public boolean isDistinct() { public boolean isDistinct() {
return distinct; return distinct;
@ -83,7 +83,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public List<Criteria> getOredCriteria() { public List<Criteria> getOredCriteria() {
return oredCriteria; return oredCriteria;
@ -93,7 +93,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void or(Criteria criteria) { public void or(Criteria criteria) {
oredCriteria.add(criteria); oredCriteria.add(criteria);
@ -103,7 +103,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public Criteria or() { public Criteria or() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
@ -115,7 +115,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public Criteria createCriteria() { public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
@ -129,7 +129,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
protected Criteria createCriteriaInternal() { protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(); Criteria criteria = new Criteria();
@ -140,7 +140,7 @@ public class TrainingLessonPlanExample {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public void clear() { public void clear() {
oredCriteria.clear(); oredCriteria.clear();
@ -152,7 +152,7 @@ public class TrainingLessonPlanExample {
* This class was generated by MyBatis Generator. * This class was generated by MyBatis Generator.
* This class corresponds to the database table sys_training_lesson_plan * This class corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
protected abstract static class GeneratedCriteria { protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria; protected List<Criterion> criteria;
@ -654,13 +654,73 @@ public class TrainingLessonPlanExample {
addCriterion("create_time not between", value1, value2, "createTime"); addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBuiltDataIsNull() {
addCriterion("built_data is null");
return (Criteria) this;
}
public Criteria andBuiltDataIsNotNull() {
addCriterion("built_data is not null");
return (Criteria) this;
}
public Criteria andBuiltDataEqualTo(Integer value) {
addCriterion("built_data =", value, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataNotEqualTo(Integer value) {
addCriterion("built_data <>", value, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataGreaterThan(Integer value) {
addCriterion("built_data >", value, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataGreaterThanOrEqualTo(Integer value) {
addCriterion("built_data >=", value, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataLessThan(Integer value) {
addCriterion("built_data <", value, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataLessThanOrEqualTo(Integer value) {
addCriterion("built_data <=", value, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataIn(List<Integer> values) {
addCriterion("built_data in", values, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataNotIn(List<Integer> values) {
addCriterion("built_data not in", values, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataBetween(Integer value1, Integer value2) {
addCriterion("built_data between", value1, value2, "builtData");
return (Criteria) this;
}
public Criteria andBuiltDataNotBetween(Integer value1, Integer value2) {
addCriterion("built_data not between", value1, value2, "builtData");
return (Criteria) this;
}
} }
/** /**
* This class was generated by MyBatis Generator. * This class was generated by MyBatis Generator.
* This class corresponds to the database table sys_training_lesson_plan * This class corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated do_not_delete_during_merge Thu Jul 06 16:31:12 CST 2023 * @mbg.generated do_not_delete_during_merge Thu Mar 07 15:03:26 CST 2024
*/ */
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {
protected Criteria() { protected Criteria() {
@ -672,7 +732,7 @@ public class TrainingLessonPlanExample {
* This class was generated by MyBatis Generator. * This class was generated by MyBatis Generator.
* This class corresponds to the database table sys_training_lesson_plan * This class corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
public static class Criterion { public static class Criterion {
private String condition; private String condition;

@ -6,14 +6,13 @@ 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;
@Mapper @Mapper
public interface TrainingLessonPlanMapper { public interface TrainingLessonPlanMapper {
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
long countByExample(TrainingLessonPlanExample example); long countByExample(TrainingLessonPlanExample example);
@ -21,7 +20,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int deleteByExample(TrainingLessonPlanExample example); int deleteByExample(TrainingLessonPlanExample example);
@ -29,7 +28,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int deleteByPrimaryKey(String id); int deleteByPrimaryKey(String id);
@ -37,7 +36,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int insert(TrainingLessonPlan record); int insert(TrainingLessonPlan record);
@ -45,7 +44,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int insertSelective(TrainingLessonPlan record); int insertSelective(TrainingLessonPlan record);
@ -53,7 +52,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
List<TrainingLessonPlan> selectByExample(TrainingLessonPlanExample example); List<TrainingLessonPlan> selectByExample(TrainingLessonPlanExample example);
@ -61,7 +60,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
TrainingLessonPlan selectByPrimaryKey(String id); TrainingLessonPlan selectByPrimaryKey(String id);
@ -69,7 +68,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int updateByExampleSelective(@Param("record") TrainingLessonPlan record, @Param("example") TrainingLessonPlanExample example); int updateByExampleSelective(@Param("record") TrainingLessonPlan record, @Param("example") TrainingLessonPlanExample example);
@ -77,7 +76,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int updateByExample(@Param("record") TrainingLessonPlan record, @Param("example") TrainingLessonPlanExample example); int updateByExample(@Param("record") TrainingLessonPlan record, @Param("example") TrainingLessonPlanExample example);
@ -85,7 +84,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int updateByPrimaryKeySelective(TrainingLessonPlan record); int updateByPrimaryKeySelective(TrainingLessonPlan record);
@ -93,7 +92,7 @@ public interface TrainingLessonPlanMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_training_lesson_plan * This method corresponds to the database table sys_training_lesson_plan
* *
* @mbg.generated Thu Jul 06 16:31:12 CST 2023 * @mbg.generated Thu Mar 07 15:03:26 CST 2024
*/ */
int updateByPrimaryKey(TrainingLessonPlan record); int updateByPrimaryKey(TrainingLessonPlan record);
} }

@ -8,8 +8,10 @@ import com.sztzjy.forex.trading_trading.config.security.JwtUser;
import com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan; import com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan;
import com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample; import com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample;
import com.sztzjy.forex.trading_trading.mappers.TrainingLessonPlanMapper; import com.sztzjy.forex.trading_trading.mappers.TrainingLessonPlanMapper;
import com.sztzjy.forex.trading_trading.util.ResultEntity;
import com.sztzjy.forex.trading_trading.util.file.IFileUtil; import com.sztzjy.forex.trading_trading.util.file.IFileUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
@ -40,6 +42,7 @@ public class TrainingLessonPlanService {
trainingLessonPlan.setCreatorId(Integer.valueOf(currentUser.getUserId())); trainingLessonPlan.setCreatorId(Integer.valueOf(currentUser.getUserId()));
trainingLessonPlan.setCreatorName(currentUser.getName()); trainingLessonPlan.setCreatorName(currentUser.getName());
trainingLessonPlan.setSchoolId(currentUser.getSchoolId()); trainingLessonPlan.setSchoolId(currentUser.getSchoolId());
trainingLessonPlan.setBuiltData(0);
trainingLessonPlanMapper.insert(trainingLessonPlan); trainingLessonPlanMapper.insert(trainingLessonPlan);
} }
@ -62,7 +65,8 @@ public class TrainingLessonPlanService {
if (StringUtils.hasText(name)) { if (StringUtils.hasText(name)) {
criteria.andNameLike('%' + name + '%'); criteria.andNameLike('%' + name + '%');
} }
// criteria.andSchoolIdEqualTo(currentUser.getSchoolId()); example.or().andBuiltDataEqualTo(1);
criteria.andSchoolIdEqualTo(currentUser.getSchoolId());
return new PageInfo<>(trainingLessonPlanMapper.selectByExample(example)); return new PageInfo<>(trainingLessonPlanMapper.selectByExample(example));
@ -71,6 +75,9 @@ public class TrainingLessonPlanService {
public void deleteById(String id) { public void deleteById(String id) {
TrainingLessonPlan trainingLessonPlan = findById(id); TrainingLessonPlan trainingLessonPlan = findById(id);
if (trainingLessonPlan.getBuiltData() == 1){
return;
}
Assert.notNull(trainingLessonPlan, "教案不存在"); Assert.notNull(trainingLessonPlan, "教案不存在");
fileUtil.remove(trainingLessonPlan.getFilePath()); fileUtil.remove(trainingLessonPlan.getFilePath());
trainingLessonPlanMapper.deleteByPrimaryKey(id); trainingLessonPlanMapper.deleteByPrimaryKey(id);

@ -1,318 +1,333 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sztzjy.forex.trading_trading.mappers.TrainingLessonPlanMapper"> <mapper namespace="com.sztzjy.forex.trading_trading.mappers.TrainingLessonPlanMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan"> <resultMap id="BaseResultMap" type="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element was generated on Thu Mar 07 15:03:26 CST 2024.
--> -->
<id column="id" jdbcType="VARCHAR" property="id" /> <id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name" />
<result column="file_path" jdbcType="VARCHAR" property="filePath" /> <result column="file_path" jdbcType="VARCHAR" property="filePath" />
<result column="school_id" jdbcType="INTEGER" property="schoolId" /> <result column="school_id" jdbcType="INTEGER" property="schoolId" />
<result column="creator_id" jdbcType="INTEGER" property="creatorId" /> <result column="creator_id" jdbcType="INTEGER" property="creatorId" />
<result column="creator_name" jdbcType="VARCHAR" property="creatorName" /> <result column="creator_name" jdbcType="VARCHAR" property="creatorName" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</resultMap> <result column="built_data" jdbcType="INTEGER" property="builtData" />
<sql id="Example_Where_Clause"> </resultMap>
<!-- <sql id="Example_Where_Clause">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
<where> -->
<foreach collection="oredCriteria" item="criteria" separator="or"> <where>
<if test="criteria.valid"> <foreach collection="oredCriteria" item="criteria" separator="or">
<trim prefix="(" prefixOverrides="and" suffix=")"> <if test="criteria.valid">
<foreach collection="criteria.criteria" item="criterion"> <trim prefix="(" prefixOverrides="and" suffix=")">
<choose> <foreach collection="criteria.criteria" item="criterion">
<when test="criterion.noValue"> <choose>
and ${criterion.condition} <when test="criterion.noValue">
</when> and ${criterion.condition}
<when test="criterion.singleValue"> </when>
and ${criterion.condition} #{criterion.value} <when test="criterion.singleValue">
</when> and ${criterion.condition} #{criterion.value}
<when test="criterion.betweenValue"> </when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} <when test="criterion.betweenValue">
</when> and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when test="criterion.listValue"> </when>
and ${criterion.condition} <when test="criterion.listValue">
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> and ${criterion.condition}
#{listItem} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
</foreach> #{listItem}
</when> </foreach>
</choose> </when>
</foreach> </choose>
</trim> </foreach>
</if> </trim>
</foreach> </if>
</where> </foreach>
</sql> </where>
<sql id="Update_By_Example_Where_Clause"> </sql>
<!-- <sql id="Update_By_Example_Where_Clause">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
<where> -->
<foreach collection="example.oredCriteria" item="criteria" separator="or"> <where>
<if test="criteria.valid"> <foreach collection="example.oredCriteria" item="criteria" separator="or">
<trim prefix="(" prefixOverrides="and" suffix=")"> <if test="criteria.valid">
<foreach collection="criteria.criteria" item="criterion"> <trim prefix="(" prefixOverrides="and" suffix=")">
<choose> <foreach collection="criteria.criteria" item="criterion">
<when test="criterion.noValue"> <choose>
and ${criterion.condition} <when test="criterion.noValue">
</when> and ${criterion.condition}
<when test="criterion.singleValue"> </when>
and ${criterion.condition} #{criterion.value} <when test="criterion.singleValue">
</when> and ${criterion.condition} #{criterion.value}
<when test="criterion.betweenValue"> </when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} <when test="criterion.betweenValue">
</when> and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when test="criterion.listValue"> </when>
and ${criterion.condition} <when test="criterion.listValue">
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> and ${criterion.condition}
#{listItem} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
</foreach> #{listItem}
</when> </foreach>
</choose> </when>
</foreach> </choose>
</trim> </foreach>
</if> </trim>
</foreach> </if>
</where> </foreach>
</sql> </where>
<sql id="Base_Column_List"> </sql>
<!-- <sql id="Base_Column_List">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
id, name, file_path, school_id, creator_id, creator_name, create_time -->
</sql> id, name, file_path, school_id, creator_id, creator_name, create_time, built_data
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample" resultMap="BaseResultMap"> </sql>
<!-- <select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample" resultMap="BaseResultMap">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
select -->
<if test="distinct"> select
distinct <if test="distinct">
</if> distinct
<include refid="Base_Column_List" /> </if>
from sys_training_lesson_plan <include refid="Base_Column_List" />
<if test="_parameter != null"> from sys_training_lesson_plan
<include refid="Example_Where_Clause" /> <if test="_parameter != null">
</if> <include refid="Example_Where_Clause" />
<if test="orderByClause != null"> </if>
order by ${orderByClause} <if test="orderByClause != null">
</if> order by ${orderByClause}
</select> </if>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> </select>
<!-- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
select -->
<include refid="Base_Column_List" /> select
from sys_training_lesson_plan <include refid="Base_Column_List" />
where id = #{id,jdbcType=VARCHAR} from sys_training_lesson_plan
</select> where id = #{id,jdbcType=VARCHAR}
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> </select>
<!-- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
delete from sys_training_lesson_plan -->
where id = #{id,jdbcType=VARCHAR} delete from sys_training_lesson_plan
</delete> where id = #{id,jdbcType=VARCHAR}
<delete id="deleteByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample"> </delete>
<!-- <delete id="deleteByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
delete from sys_training_lesson_plan -->
<if test="_parameter != null"> delete from sys_training_lesson_plan
<include refid="Example_Where_Clause" /> <if test="_parameter != null">
</if> <include refid="Example_Where_Clause" />
</delete> </if>
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan"> </delete>
<!-- <insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
insert into sys_training_lesson_plan (id, name, file_path, -->
school_id, creator_id, creator_name, insert into sys_training_lesson_plan (id, name, file_path,
create_time) school_id, creator_id, creator_name,
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR}, create_time, built_data)
#{schoolId,jdbcType=INTEGER}, #{creatorId,jdbcType=INTEGER}, #{creatorName,jdbcType=VARCHAR}, values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}) #{schoolId,jdbcType=INTEGER}, #{creatorId,jdbcType=INTEGER}, #{creatorName,jdbcType=VARCHAR},
</insert> #{createTime,jdbcType=TIMESTAMP}, #{builtData,jdbcType=INTEGER})
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan"> </insert>
<!-- <insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan">
WARNING - @mbg.generated <!--
This element is automatically generated by MyBatis Generator, do not modify. WARNING - @mbg.generated
This element was generated on Thu Jul 06 16:31:12 CST 2023. This element is automatically generated by MyBatis Generator, do not modify.
--> This element was generated on Thu Mar 07 15:03:26 CST 2024.
insert into sys_training_lesson_plan -->
<trim prefix="(" suffix=")" suffixOverrides=","> insert into sys_training_lesson_plan
<if test="id != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
id, <if test="id != null">
</if> id,
<if test="name != null"> </if>
name, <if test="name != null">
</if> name,
<if test="filePath != null"> </if>
file_path, <if test="filePath != null">
</if> file_path,
<if test="schoolId != null"> </if>
school_id, <if test="schoolId != null">
</if> school_id,
<if test="creatorId != null"> </if>
creator_id, <if test="creatorId != null">
</if> creator_id,
<if test="creatorName != null"> </if>
creator_name, <if test="creatorName != null">
</if> creator_name,
<if test="createTime != null"> </if>
create_time, <if test="createTime != null">
</if> create_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="builtData != null">
<if test="id != null"> built_data,
#{id,jdbcType=VARCHAR}, </if>
</if> </trim>
<if test="name != null"> <trim prefix="values (" suffix=")" suffixOverrides=",">
#{name,jdbcType=VARCHAR}, <if test="id != null">
</if> #{id,jdbcType=VARCHAR},
<if test="filePath != null"> </if>
#{filePath,jdbcType=VARCHAR}, <if test="name != null">
</if> #{name,jdbcType=VARCHAR},
<if test="schoolId != null"> </if>
#{schoolId,jdbcType=INTEGER}, <if test="filePath != null">
</if> #{filePath,jdbcType=VARCHAR},
<if test="creatorId != null"> </if>
#{creatorId,jdbcType=INTEGER}, <if test="schoolId != null">
</if> #{schoolId,jdbcType=INTEGER},
<if test="creatorName != null"> </if>
#{creatorName,jdbcType=VARCHAR}, <if test="creatorId != null">
</if> #{creatorId,jdbcType=INTEGER},
<if test="createTime != null"> </if>
#{createTime,jdbcType=TIMESTAMP}, <if test="creatorName != null">
</if> #{creatorName,jdbcType=VARCHAR},
</trim> </if>
</insert> <if test="createTime != null">
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample" resultType="java.lang.Long"> #{createTime,jdbcType=TIMESTAMP},
<!-- </if>
WARNING - @mbg.generated <if test="builtData != null">
This element is automatically generated by MyBatis Generator, do not modify. #{builtData,jdbcType=INTEGER},
This element was generated on Thu Jul 06 16:31:12 CST 2023. </if>
--> </trim>
select count(*) from sys_training_lesson_plan </insert>
<if test="_parameter != null"> <select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlanExample" resultType="java.lang.Long">
<include refid="Example_Where_Clause" /> <!--
</if> WARNING - @mbg.generated
</select> This element is automatically generated by MyBatis Generator, do not modify.
<update id="updateByExampleSelective" parameterType="map"> This element was generated on Thu Mar 07 15:03:26 CST 2024.
<!-- -->
WARNING - @mbg.generated select count(*) from sys_training_lesson_plan
This element is automatically generated by MyBatis Generator, do not modify. <if test="_parameter != null">
This element was generated on Thu Jul 06 16:31:12 CST 2023. <include refid="Example_Where_Clause" />
--> </if>
update sys_training_lesson_plan </select>
<set> <update id="updateByExampleSelective" parameterType="map">
<if test="record.id != null"> <!--
id = #{record.id,jdbcType=VARCHAR}, WARNING - @mbg.generated
</if> This element is automatically generated by MyBatis Generator, do not modify.
<if test="record.name != null"> This element was generated on Thu Mar 07 15:03:26 CST 2024.
name = #{record.name,jdbcType=VARCHAR}, -->
</if> update sys_training_lesson_plan
<if test="record.filePath != null"> <set>
file_path = #{record.filePath,jdbcType=VARCHAR}, <if test="record.id != null">
</if> id = #{record.id,jdbcType=VARCHAR},
<if test="record.schoolId != null"> </if>
school_id = #{record.schoolId,jdbcType=INTEGER}, <if test="record.name != null">
</if> name = #{record.name,jdbcType=VARCHAR},
<if test="record.creatorId != null"> </if>
creator_id = #{record.creatorId,jdbcType=INTEGER}, <if test="record.filePath != null">
</if> file_path = #{record.filePath,jdbcType=VARCHAR},
<if test="record.creatorName != null"> </if>
creator_name = #{record.creatorName,jdbcType=VARCHAR}, <if test="record.schoolId != null">
</if> school_id = #{record.schoolId,jdbcType=INTEGER},
<if test="record.createTime != null"> </if>
create_time = #{record.createTime,jdbcType=TIMESTAMP}, <if test="record.creatorId != null">
</if> creator_id = #{record.creatorId,jdbcType=INTEGER},
</set> </if>
<if test="_parameter != null"> <if test="record.creatorName != null">
<include refid="Update_By_Example_Where_Clause" /> creator_name = #{record.creatorName,jdbcType=VARCHAR},
</if> </if>
</update> <if test="record.createTime != null">
<update id="updateByExample" parameterType="map"> create_time = #{record.createTime,jdbcType=TIMESTAMP},
<!-- </if>
WARNING - @mbg.generated <if test="record.builtData != null">
This element is automatically generated by MyBatis Generator, do not modify. built_data = #{record.builtData,jdbcType=INTEGER},
This element was generated on Thu Jul 06 16:31:12 CST 2023. </if>
--> </set>
update sys_training_lesson_plan <if test="_parameter != null">
set id = #{record.id,jdbcType=VARCHAR}, <include refid="Update_By_Example_Where_Clause" />
name = #{record.name,jdbcType=VARCHAR}, </if>
file_path = #{record.filePath,jdbcType=VARCHAR}, </update>
school_id = #{record.schoolId,jdbcType=INTEGER}, <update id="updateByExample" parameterType="map">
creator_id = #{record.creatorId,jdbcType=INTEGER}, <!--
creator_name = #{record.creatorName,jdbcType=VARCHAR}, WARNING - @mbg.generated
create_time = #{record.createTime,jdbcType=TIMESTAMP} This element is automatically generated by MyBatis Generator, do not modify.
<if test="_parameter != null"> This element was generated on Thu Mar 07 15:03:26 CST 2024.
<include refid="Update_By_Example_Where_Clause" /> -->
</if> update sys_training_lesson_plan
</update> set id = #{record.id,jdbcType=VARCHAR},
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan"> name = #{record.name,jdbcType=VARCHAR},
<!-- file_path = #{record.filePath,jdbcType=VARCHAR},
WARNING - @mbg.generated school_id = #{record.schoolId,jdbcType=INTEGER},
This element is automatically generated by MyBatis Generator, do not modify. creator_id = #{record.creatorId,jdbcType=INTEGER},
This element was generated on Thu Jul 06 16:31:12 CST 2023. creator_name = #{record.creatorName,jdbcType=VARCHAR},
--> create_time = #{record.createTime,jdbcType=TIMESTAMP},
update sys_training_lesson_plan built_data = #{record.builtData,jdbcType=INTEGER}
<set> <if test="_parameter != null">
<if test="name != null"> <include refid="Update_By_Example_Where_Clause" />
name = #{name,jdbcType=VARCHAR}, </if>
</if> </update>
<if test="filePath != null"> <update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan">
file_path = #{filePath,jdbcType=VARCHAR}, <!--
</if> WARNING - @mbg.generated
<if test="schoolId != null"> This element is automatically generated by MyBatis Generator, do not modify.
school_id = #{schoolId,jdbcType=INTEGER}, This element was generated on Thu Mar 07 15:03:26 CST 2024.
</if> -->
<if test="creatorId != null"> update sys_training_lesson_plan
creator_id = #{creatorId,jdbcType=INTEGER}, <set>
</if> <if test="name != null">
<if test="creatorName != null"> name = #{name,jdbcType=VARCHAR},
creator_name = #{creatorName,jdbcType=VARCHAR}, </if>
</if> <if test="filePath != null">
<if test="createTime != null"> file_path = #{filePath,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="schoolId != null">
</set> school_id = #{schoolId,jdbcType=INTEGER},
where id = #{id,jdbcType=VARCHAR} </if>
</update> <if test="creatorId != null">
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan"> creator_id = #{creatorId,jdbcType=INTEGER},
<!-- </if>
WARNING - @mbg.generated <if test="creatorName != null">
This element is automatically generated by MyBatis Generator, do not modify. creator_name = #{creatorName,jdbcType=VARCHAR},
This element was generated on Thu Jul 06 16:31:12 CST 2023. </if>
--> <if test="createTime != null">
update sys_training_lesson_plan create_time = #{createTime,jdbcType=TIMESTAMP},
set name = #{name,jdbcType=VARCHAR}, </if>
file_path = #{filePath,jdbcType=VARCHAR}, <if test="builtData != null">
school_id = #{schoolId,jdbcType=INTEGER}, built_data = #{builtData,jdbcType=INTEGER},
creator_id = #{creatorId,jdbcType=INTEGER}, </if>
creator_name = #{creatorName,jdbcType=VARCHAR}, </set>
create_time = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR} </update>
</update> <update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingLessonPlan">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 07 15:03:26 CST 2024.
-->
update sys_training_lesson_plan
set name = #{name,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
school_id = #{schoolId,jdbcType=INTEGER},
creator_id = #{creatorId,jdbcType=INTEGER},
creator_name = #{creatorName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
built_data = #{builtData,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper> </mapper>
Loading…
Cancel
Save