Browse Source

修改组别信息

tiaosheng
wang0018 5 years ago
parent
commit
3f1189069a
  1. 45
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfig.java
  2. 228
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfigExample.java
  3. 2
      mt/src/main/java/com/ccsens/mt/bean/vo/CompeteExcelVo.java
  4. 7
      mt/src/main/java/com/ccsens/mt/persist/dao/CompeteScoreDao.java
  5. 31
      mt/src/main/java/com/ccsens/mt/service/CompeteService.java
  6. 22
      mt/src/main/java/com/ccsens/mt/service/ExcelService.java
  7. 6
      mt/src/main/resources/mapper_dao/CompeteProjectConfigDao.xml
  8. 74
      mt/src/main/resources/mapper_dao/CompeteScoreDao.xml
  9. 85
      mt/src/main/resources/mapper_raw/CompeteProjectConfigMapper.xml

45
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfig.java

@ -8,6 +8,8 @@ public class CompeteProjectConfig implements Serializable {
private Long projectId;
private Long projectDuration;
private Integer siteNum;
private Long startTime;
@ -20,7 +22,11 @@ public class CompeteProjectConfig implements Serializable {
private Byte recStatus;
private Long projectDuration;
private Long videoStartTime;
private Long videoEndTime;
private Byte restrict;
private static final long serialVersionUID = 1L;
@ -40,6 +46,14 @@ public class CompeteProjectConfig implements Serializable {
this.projectId = projectId;
}
public Long getProjectDuration() {
return projectDuration;
}
public void setProjectDuration(Long projectDuration) {
this.projectDuration = projectDuration;
}
public Integer getSiteNum() {
return siteNum;
}
@ -88,12 +102,28 @@ public class CompeteProjectConfig implements Serializable {
this.recStatus = recStatus;
}
public Long getProjectDuration() {
return projectDuration;
public Long getVideoStartTime() {
return videoStartTime;
}
public void setProjectDuration(Long projectDuration) {
this.projectDuration = projectDuration;
public void setVideoStartTime(Long videoStartTime) {
this.videoStartTime = videoStartTime;
}
public Long getVideoEndTime() {
return videoEndTime;
}
public void setVideoEndTime(Long videoEndTime) {
this.videoEndTime = videoEndTime;
}
public Byte getRestrict() {
return restrict;
}
public void setRestrict(Byte restrict) {
this.restrict = restrict;
}
@Override
@ -104,13 +134,16 @@ public class CompeteProjectConfig implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", projectId=").append(projectId);
sb.append(", projectDuration=").append(projectDuration);
sb.append(", siteNum=").append(siteNum);
sb.append(", startTime=").append(startTime);
sb.append(", endTime=").append(endTime);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", projectDuration=").append(projectDuration);
sb.append(", videoStartTime=").append(videoStartTime);
sb.append(", videoEndTime=").append(videoEndTime);
sb.append(", restrict=").append(restrict);
sb.append("]");
return sb.toString();
}

228
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfigExample.java

@ -225,6 +225,66 @@ public class CompeteProjectConfigExample {
return (Criteria) this;
}
public Criteria andProjectDurationIsNull() {
addCriterion("project_duration is null");
return (Criteria) this;
}
public Criteria andProjectDurationIsNotNull() {
addCriterion("project_duration is not null");
return (Criteria) this;
}
public Criteria andProjectDurationEqualTo(Long value) {
addCriterion("project_duration =", value, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationNotEqualTo(Long value) {
addCriterion("project_duration <>", value, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationGreaterThan(Long value) {
addCriterion("project_duration >", value, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationGreaterThanOrEqualTo(Long value) {
addCriterion("project_duration >=", value, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationLessThan(Long value) {
addCriterion("project_duration <", value, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationLessThanOrEqualTo(Long value) {
addCriterion("project_duration <=", value, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationIn(List<Long> values) {
addCriterion("project_duration in", values, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationNotIn(List<Long> values) {
addCriterion("project_duration not in", values, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationBetween(Long value1, Long value2) {
addCriterion("project_duration between", value1, value2, "projectDuration");
return (Criteria) this;
}
public Criteria andProjectDurationNotBetween(Long value1, Long value2) {
addCriterion("project_duration not between", value1, value2, "projectDuration");
return (Criteria) this;
}
public Criteria andSiteNumIsNull() {
addCriterion("site_num is null");
return (Criteria) this;
@ -585,63 +645,183 @@ public class CompeteProjectConfigExample {
return (Criteria) this;
}
public Criteria andProjectDurationIsNull() {
addCriterion("project_duration is null");
public Criteria andVideoStartTimeIsNull() {
addCriterion("video_start_time is null");
return (Criteria) this;
}
public Criteria andProjectDurationIsNotNull() {
addCriterion("project_duration is not null");
public Criteria andVideoStartTimeIsNotNull() {
addCriterion("video_start_time is not null");
return (Criteria) this;
}
public Criteria andProjectDurationEqualTo(Long value) {
addCriterion("project_duration =", value, "projectDuration");
public Criteria andVideoStartTimeEqualTo(Long value) {
addCriterion("video_start_time =", value, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationNotEqualTo(Long value) {
addCriterion("project_duration <>", value, "projectDuration");
public Criteria andVideoStartTimeNotEqualTo(Long value) {
addCriterion("video_start_time <>", value, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationGreaterThan(Long value) {
addCriterion("project_duration >", value, "projectDuration");
public Criteria andVideoStartTimeGreaterThan(Long value) {
addCriterion("video_start_time >", value, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationGreaterThanOrEqualTo(Long value) {
addCriterion("project_duration >=", value, "projectDuration");
public Criteria andVideoStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("video_start_time >=", value, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationLessThan(Long value) {
addCriterion("project_duration <", value, "projectDuration");
public Criteria andVideoStartTimeLessThan(Long value) {
addCriterion("video_start_time <", value, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationLessThanOrEqualTo(Long value) {
addCriterion("project_duration <=", value, "projectDuration");
public Criteria andVideoStartTimeLessThanOrEqualTo(Long value) {
addCriterion("video_start_time <=", value, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationIn(List<Long> values) {
addCriterion("project_duration in", values, "projectDuration");
public Criteria andVideoStartTimeIn(List<Long> values) {
addCriterion("video_start_time in", values, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationNotIn(List<Long> values) {
addCriterion("project_duration not in", values, "projectDuration");
public Criteria andVideoStartTimeNotIn(List<Long> values) {
addCriterion("video_start_time not in", values, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationBetween(Long value1, Long value2) {
addCriterion("project_duration between", value1, value2, "projectDuration");
public Criteria andVideoStartTimeBetween(Long value1, Long value2) {
addCriterion("video_start_time between", value1, value2, "videoStartTime");
return (Criteria) this;
}
public Criteria andProjectDurationNotBetween(Long value1, Long value2) {
addCriterion("project_duration not between", value1, value2, "projectDuration");
public Criteria andVideoStartTimeNotBetween(Long value1, Long value2) {
addCriterion("video_start_time not between", value1, value2, "videoStartTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeIsNull() {
addCriterion("video_end_time is null");
return (Criteria) this;
}
public Criteria andVideoEndTimeIsNotNull() {
addCriterion("video_end_time is not null");
return (Criteria) this;
}
public Criteria andVideoEndTimeEqualTo(Long value) {
addCriterion("video_end_time =", value, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeNotEqualTo(Long value) {
addCriterion("video_end_time <>", value, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeGreaterThan(Long value) {
addCriterion("video_end_time >", value, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeGreaterThanOrEqualTo(Long value) {
addCriterion("video_end_time >=", value, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeLessThan(Long value) {
addCriterion("video_end_time <", value, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeLessThanOrEqualTo(Long value) {
addCriterion("video_end_time <=", value, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeIn(List<Long> values) {
addCriterion("video_end_time in", values, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeNotIn(List<Long> values) {
addCriterion("video_end_time not in", values, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeBetween(Long value1, Long value2) {
addCriterion("video_end_time between", value1, value2, "videoEndTime");
return (Criteria) this;
}
public Criteria andVideoEndTimeNotBetween(Long value1, Long value2) {
addCriterion("video_end_time not between", value1, value2, "videoEndTime");
return (Criteria) this;
}
public Criteria andRestrictIsNull() {
addCriterion("restrict is null");
return (Criteria) this;
}
public Criteria andRestrictIsNotNull() {
addCriterion("restrict is not null");
return (Criteria) this;
}
public Criteria andRestrictEqualTo(Byte value) {
addCriterion("restrict =", value, "restrict");
return (Criteria) this;
}
public Criteria andRestrictNotEqualTo(Byte value) {
addCriterion("restrict <>", value, "restrict");
return (Criteria) this;
}
public Criteria andRestrictGreaterThan(Byte value) {
addCriterion("restrict >", value, "restrict");
return (Criteria) this;
}
public Criteria andRestrictGreaterThanOrEqualTo(Byte value) {
addCriterion("restrict >=", value, "restrict");
return (Criteria) this;
}
public Criteria andRestrictLessThan(Byte value) {
addCriterion("restrict <", value, "restrict");
return (Criteria) this;
}
public Criteria andRestrictLessThanOrEqualTo(Byte value) {
addCriterion("restrict <=", value, "restrict");
return (Criteria) this;
}
public Criteria andRestrictIn(List<Byte> values) {
addCriterion("restrict in", values, "restrict");
return (Criteria) this;
}
public Criteria andRestrictNotIn(List<Byte> values) {
addCriterion("restrict not in", values, "restrict");
return (Criteria) this;
}
public Criteria andRestrictBetween(Byte value1, Byte value2) {
addCriterion("restrict between", value1, value2, "restrict");
return (Criteria) this;
}
public Criteria andRestrictNotBetween(Byte value1, Byte value2) {
addCriterion("restrict not between", value1, value2, "restrict");
return (Criteria) this;
}
}

2
mt/src/main/java/com/ccsens/mt/bean/vo/CompeteExcelVo.java

@ -80,6 +80,8 @@ public class CompeteExcelVo {
private String projectName;
@ApiModelProperty("时间")
private String startTime;
@ApiModelProperty("是否不限组别")
private int joinRule;
@ApiModelProperty("项目信息")
private List<TeamOrderPlayer> projectList;
}

7
mt/src/main/java/com/ccsens/mt/persist/dao/CompeteScoreDao.java

@ -115,4 +115,11 @@ public interface CompeteScoreDao {
* @return
*/
List<CompeteExcelVo.Project> selAllOrder(@Param("type") byte type);
/**
* 查找计数赛分数
* @param siteId
* @return
*/
ScoreVo.CountScoreCurrentSite getCountScoreByOrderId(@Param("siteId")Long siteId);
}

31
mt/src/main/java/com/ccsens/mt/service/CompeteService.java

@ -1424,19 +1424,24 @@ public class CompeteService implements ICompeteService {
@Override
public List<ScoreVo.CountScoreCurrentSite> countScoreCurrentSite(CompeteDto.CompeteSite params) {
Long siteId = params.getSiteId();
List<ScoreVo.CountScoreCurrentSite> countScoreCurrentSites = competeScoreDao.selectCountScoreCurrentSite(siteId);
countScoreCurrentSites.forEach(mes->{
CompeteStartOrder competeStartOrder = competeStartOrderMapper.selectByPrimaryKey(siteId);
CompeteVideoExample competeVideoExample = new CompeteVideoExample();
competeVideoExample.createCriteria().andProjectIdEqualTo(competeStartOrder.getProjectId()).andPlayerIdEqualTo(competeStartOrder.getPlayerId());
List<CompeteVideo> competeVideos = competeVideoMapper.selectByExample(competeVideoExample);
if(competeVideos.size()>0) {
CompeteVideo competeVideo = competeVideos.get(0);
String path = competeVideo.getVideoUrl();
mes.setVideoUrl(path);
}
});
return countScoreCurrentSites;
List<ScoreVo.CountScoreCurrentSite> scoreCurrentSiteList = new ArrayList<>();
ScoreVo.CountScoreCurrentSite countScoreCurrentSite = competeScoreDao.getCountScoreByOrderId(siteId);
scoreCurrentSiteList.add(countScoreCurrentSite);
// List<ScoreVo.CountScoreCurrentSite> countScoreCurrentSites = competeScoreDao.selectCountScoreCurrentSite(siteId);
// countScoreCurrentSites.forEach(mes->{
// CompeteStartOrder competeStartOrder = competeStartOrderMapper.selectByPrimaryKey(siteId);
// CompeteVideoExample competeVideoExample = new CompeteVideoExample();
// competeVideoExample.createCriteria().andProjectIdEqualTo(competeStartOrder.getProjectId()).andPlayerIdEqualTo(competeStartOrder.getPlayerId());
// List<CompeteVideo> competeVideos = competeVideoMapper.selectByExample(competeVideoExample);
// if(competeVideos.size()>0) {
// CompeteVideo competeVideo = competeVideos.get(0);
// String path = competeVideo.getVideoUrl();
// mes.setVideoUrl(path);
// }
// });
return scoreCurrentSiteList;
}
@Override

22
mt/src/main/java/com/ccsens/mt/service/ExcelService.java

@ -640,21 +640,31 @@ public class ExcelService implements IExcelService {
List<PoiUtil.PoiUtilCell> three = new ArrayList<>();
PoiUtil.PoiUtilCell three1;
PoiUtil.PoiUtilCell three2;
PoiUtil.PoiUtilCell three3 = null;
if (q == 0) {
three1 = new PoiUtil.PoiUtilCell(project.getStartTime(), 1, j);
three2 = new PoiUtil.PoiUtilCell(project.getProjectName(), 1, j);
if(project.getJoinRule() == 1) {
three3 = new PoiUtil.PoiUtilCell("不限组别", 1, j);
}
q++;
} else {
three1 = new PoiUtil.PoiUtilCell();
three2 = new PoiUtil.PoiUtilCell();
if(project.getJoinRule() == 1) {
three3 = new PoiUtil.PoiUtilCell();
}
}
PoiUtil.PoiUtilCell three3;
if (t == 0) {
three3 = new PoiUtil.PoiUtilCell(project.getProjectList().get(k).getGroupName(), 1, project.getProjectList().get(k).getCompanyNameList().size());
++t;
} else {
three3 = new PoiUtil.PoiUtilCell();
// PoiUtil.PoiUtilCell three3 = null;
if(project.getJoinRule() == 0) {
if (t == 0) {
three3 = new PoiUtil.PoiUtilCell(project.getProjectList().get(k).getGroupName(), 1, project.getProjectList().get(k).getCompanyNameList().size());
++t;
} else {
three3 = new PoiUtil.PoiUtilCell();
}
}
PoiUtil.PoiUtilCell three4 = new PoiUtil.PoiUtilCell(project.getProjectList().get(k).getCompanyNameList().get(m).getStartOrder(), 1, 1);
PoiUtil.PoiUtilCell three5 = new PoiUtil.PoiUtilCell(project.getProjectList().get(k).getCompanyNameList().get(m).getCompanyName(), 1, 1);

6
mt/src/main/resources/mapper_dao/CompeteProjectConfigDao.xml

@ -16,7 +16,9 @@
<resultMap id="startOrderByCompany" type="com.ccsens.mt.bean.vo.ProvinceCompeteVo$StartOrderByCompanyAndProject">
<id column="projectId" property="projectId" />
<result column="projectName" property="projectName" />
<result column="startTime" property="startTime" />
<result column="endTime" property="endTime" />
<result column="videoRestrict" property="restrict" />
<collection property="startOrderList" ofType="com.ccsens.mt.bean.vo.ProvinceCompeteVo$StartOrder">
<id column="startOrderId" property="startOrderId" />
<result column="competeOrder" property="competeOrder" />
@ -334,7 +336,9 @@
so.id as startOrderId,
so.compete_order as competeOrder,
so.site as site,
pc.start_time as endTime,
pc.video_start_time as startTime,
pc.video_end_time as endTime,
pc.video_restrict as videoRestrict,
pr.id as projectId,
pr.`name` as projectName,
pr.`team` as team,

74
mt/src/main/resources/mapper_dao/CompeteScoreDao.xml

@ -893,6 +893,7 @@
<id column="projectId" property="projectId"></id>
<result column="projectName" property="projectName" />
<result property="startTime" column="startTime" />
<result property="joinRule" column="joinRule" />
<collection property="projectList" column="groupId" ofType="com.ccsens.mt.bean.vo.CompeteExcelVo$TeamOrderPlayer">
<id property="groupId" column="groupId"/>
<result property="groupName" column="groupName"/>
@ -910,8 +911,9 @@
FROM
(
SELECT
CONCAT( FROM_UNIXTIME( pc.start_time / 1000, '%Y-%m-%d %H:%i' ), '~', FROM_UNIXTIME( pc.end_time / 1000, '%H:%i' ) ) AS startTime,
CONCAT( FROM_UNIXTIME( pc.video_start_time / 1000, '%Y-%m-%d %H:%i' ), '~', FROM_UNIXTIME( pc.video_end_time / 1000, '%H:%i' ) ) AS startTime,
p.`name` AS projectName,
p.`join_rule` AS joinRule,
g.`group_name` AS groupName,
CONCAT( so.compete_order, '--', so.site ) AS startOrder,
c.`name` AS companyName,
@ -945,8 +947,9 @@
AND pc.rec_status = 0
AND so.rec_status = 0 UNION
SELECT
CONCAT( FROM_UNIXTIME( pc.start_time / 1000, '%Y-%m-%d %H:%i' ), '~', FROM_UNIXTIME( pc.end_time / 1000, '%H:%i' ) ) AS startTime,
CONCAT( FROM_UNIXTIME( pc.video_start_time / 1000, '%Y-%m-%d %H:%i' ), '~', FROM_UNIXTIME( pc.video_end_time / 1000, '%H:%i' ) ) AS startTime,
p.`name` AS projectName,
p.`join_rule` AS joinRule,
g.`group_name` AS groupName,
CONCAT( so.compete_order, '--', so.site ) AS startOrder,
c.`name` AS companyName,
@ -998,6 +1001,73 @@
t.competeOrder,
t.site
</select>
<select id="getCountScoreByOrderId" resultType="com.ccsens.mt.bean.vo.ScoreVo$CountScoreCurrentSite">
SELECT
so.id,
so.player_id,
cp.`name` as projectName,
so.site as site,
so.compete_order as competeOrder,
cs.chief_judgment_score as mainScore,
cs.judgment_a_score as mainOneScore,
cs.judgment_b_score2 as mainTwoScore,
cs.should_times as shouldScore,
cs.deduct_times as deductTime,
cs.deduct_cause as deductReason,
cs.final_score as finalScore,
v.video_url,
t.*
FROM
t_compete_start_order so
LEFT JOIN t_compete_count_score cs on cs.site_order_id = so.id
and cs.rec_status = 0
LEFT JOIN t_compete_project cp on so.project_id = cp.id
LEFT JOIN t_compete_video v on so.player_id = v.player_id and v.rec_status = 0
LEFT JOIN(
SELECT
pp.id as playerId,
p.`name` as `name`,
c.`name` as companyName,
g.group_name as groupName
FROM
t_compete_project_player pp
LEFT JOIN t_compete_player p on pp.player_id = p.id
LEFT JOIN t_compete_company c on c.id = p.company_id
LEFT JOIN t_compete_group g on p.compete_group_id = g.id
WHERE
pp.rec_status = 0
and p.rec_status = 0
and c.rec_status = 0
and g.rec_status = 0
UNION
SELECT
t.id as playerId,
GROUP_CONCAT(p.`name` separator '、') as `name`,
c.`name` as companyName,
g.group_name as groupName
FROM
t_compete_team t
LEFT JOIN t_compete_team_member m on m.compete_team_id = t.id
LEFT JOIN t_compete_player p on m.player_id = p.id
LEFT JOIN t_compete_company c on c.id = p.company_id
LEFT JOIN t_compete_group g on t.gender_group = g.sex and t.group_remark = g.group_remark
WHERE
t.rec_status = 0
and m.rec_status = 0
and p.rec_status = 0
and c.rec_status = 0
and g.rec_status = 0
GROUP BY t.id
)t on t.playerId = so.player_id
WHERE
so.id = #{siteId}
and so.rec_status = 0
and cp.rec_status = 0
</select>
<!--<select id="queryEightGroupLimit" resultType="com.ccsens.mt.bean.vo.CompeteExcelVo$BeforeEight">

85
mt/src/main/resources/mapper_raw/CompeteProjectConfigMapper.xml

@ -4,13 +4,16 @@
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteProjectConfig">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="project_duration" jdbcType="BIGINT" property="projectDuration" />
<result column="site_num" jdbcType="INTEGER" property="siteNum" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="end_time" jdbcType="BIGINT" property="endTime" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
<result column="project_duration" jdbcType="BIGINT" property="projectDuration" />
<result column="video_start_time" jdbcType="BIGINT" property="videoStartTime" />
<result column="video_end_time" jdbcType="BIGINT" property="videoEndTime" />
<result column="restrict" jdbcType="TINYINT" property="restrict" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -71,8 +74,8 @@
</where>
</sql>
<sql id="Base_Column_List">
id, project_id, site_num, start_time, end_time, created_at, updated_at, rec_status,
project_duration
id, project_id, project_duration, site_num, start_time, end_time, created_at, updated_at,
rec_status, video_start_time, video_end_time, restrict
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultMap="BaseResultMap">
select
@ -105,13 +108,15 @@
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig">
insert into t_compete_project_config (id, project_id, site_num,
start_time, end_time, created_at,
updated_at, rec_status, project_duration
insert into t_compete_project_config (id, project_id, project_duration,
site_num, start_time, end_time,
created_at, updated_at, rec_status,
video_start_time, video_end_time, restrict
)
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{siteNum,jdbcType=INTEGER},
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP},
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{projectDuration,jdbcType=BIGINT}
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{projectDuration,jdbcType=BIGINT},
#{siteNum,jdbcType=INTEGER}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT},
#{videoStartTime,jdbcType=BIGINT}, #{videoEndTime,jdbcType=BIGINT}, #{restrict,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig">
@ -123,6 +128,9 @@
<if test="projectId != null">
project_id,
</if>
<if test="projectDuration != null">
project_duration,
</if>
<if test="siteNum != null">
site_num,
</if>
@ -141,8 +149,14 @@
<if test="recStatus != null">
rec_status,
</if>
<if test="projectDuration != null">
project_duration,
<if test="videoStartTime != null">
video_start_time,
</if>
<if test="videoEndTime != null">
video_end_time,
</if>
<if test="restrict != null">
restrict,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -152,6 +166,9 @@
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="projectDuration != null">
#{projectDuration,jdbcType=BIGINT},
</if>
<if test="siteNum != null">
#{siteNum,jdbcType=INTEGER},
</if>
@ -170,8 +187,14 @@
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
<if test="projectDuration != null">
#{projectDuration,jdbcType=BIGINT},
<if test="videoStartTime != null">
#{videoStartTime,jdbcType=BIGINT},
</if>
<if test="videoEndTime != null">
#{videoEndTime,jdbcType=BIGINT},
</if>
<if test="restrict != null">
#{restrict,jdbcType=TINYINT},
</if>
</trim>
</insert>
@ -190,6 +213,9 @@
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.projectDuration != null">
project_duration = #{record.projectDuration,jdbcType=BIGINT},
</if>
<if test="record.siteNum != null">
site_num = #{record.siteNum,jdbcType=INTEGER},
</if>
@ -208,8 +234,14 @@
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
<if test="record.projectDuration != null">
project_duration = #{record.projectDuration,jdbcType=BIGINT},
<if test="record.videoStartTime != null">
video_start_time = #{record.videoStartTime,jdbcType=BIGINT},
</if>
<if test="record.videoEndTime != null">
video_end_time = #{record.videoEndTime,jdbcType=BIGINT},
</if>
<if test="record.restrict != null">
restrict = #{record.restrict,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
@ -220,13 +252,16 @@
update t_compete_project_config
set id = #{record.id,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
project_duration = #{record.projectDuration,jdbcType=BIGINT},
site_num = #{record.siteNum,jdbcType=INTEGER},
start_time = #{record.startTime,jdbcType=BIGINT},
end_time = #{record.endTime,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT},
project_duration = #{record.projectDuration,jdbcType=BIGINT}
video_start_time = #{record.videoStartTime,jdbcType=BIGINT},
video_end_time = #{record.videoEndTime,jdbcType=BIGINT},
restrict = #{record.restrict,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -237,6 +272,9 @@
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="projectDuration != null">
project_duration = #{projectDuration,jdbcType=BIGINT},
</if>
<if test="siteNum != null">
site_num = #{siteNum,jdbcType=INTEGER},
</if>
@ -255,8 +293,14 @@
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
<if test="projectDuration != null">
project_duration = #{projectDuration,jdbcType=BIGINT},
<if test="videoStartTime != null">
video_start_time = #{videoStartTime,jdbcType=BIGINT},
</if>
<if test="videoEndTime != null">
video_end_time = #{videoEndTime,jdbcType=BIGINT},
</if>
<if test="restrict != null">
restrict = #{restrict,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
@ -264,13 +308,16 @@
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig">
update t_compete_project_config
set project_id = #{projectId,jdbcType=BIGINT},
project_duration = #{projectDuration,jdbcType=BIGINT},
site_num = #{siteNum,jdbcType=INTEGER},
start_time = #{startTime,jdbcType=BIGINT},
end_time = #{endTime,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT},
project_duration = #{projectDuration,jdbcType=BIGINT}
video_start_time = #{videoStartTime,jdbcType=BIGINT},
video_end_time = #{videoEndTime,jdbcType=BIGINT},
restrict = #{restrict,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
Loading…
Cancel
Save