112 changed files with 14816 additions and 1844 deletions
@ -0,0 +1,137 @@ |
|||
package com.ccsens.cloudutil.bean.tall.dto; |
|||
|
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import lombok.NonNull; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
@ApiModel |
|||
public class TallTaskDto { |
|||
|
|||
@ApiModel |
|||
@Data |
|||
public static class AddTask { |
|||
@ApiModelProperty("关联项目Id") |
|||
private Long projectId; |
|||
@ApiModelProperty("关联的任务id(detailId)") |
|||
private Long parentTaskId; |
|||
@ApiModelProperty("任务名称") |
|||
@NotEmpty(message = "任务名不能为空") |
|||
private String taskName; |
|||
@ApiModelProperty("任务描述") |
|||
private String description; |
|||
@ApiModelProperty("负责人id") |
|||
@NotNull(message = "请选择负责人") |
|||
private Long executorId; |
|||
@ApiModelProperty("开始时间") |
|||
private Long beginTime; |
|||
@ApiModelProperty("结束时间") |
|||
private Long endTime; |
|||
@ApiModelProperty("重复周期") |
|||
private String cycle; |
|||
@ApiModelProperty("交付物") |
|||
private String taskDeliver; |
|||
@ApiModelProperty("插件") |
|||
private List<Long> pluginList; |
|||
@ApiModelProperty("优先级 3,紧急重要 2,紧急不重要 1,重要不紧急 0,不重要不紧急 默认0") |
|||
private Byte priority; |
|||
@ApiModelProperty("任务提醒消息") |
|||
private TaskRemindByAdd taskRemind; |
|||
@ApiModelProperty("token") |
|||
private String token; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("添加时设置任务提醒") |
|||
public static class TaskRemindByAdd{ |
|||
@ApiModelProperty("提醒时机 0不提醒 1开始前,2开始时,3开始后,4结束前,5结束时,6结束后,7自定义时间") |
|||
private Byte remindTiming; |
|||
@ApiModelProperty("时长 提醒时机是“开始时”或“结束时”可以为空") |
|||
private Long duration = 0L; |
|||
@ApiModelProperty("时间单位 0分钟 1小时 2天") |
|||
private Byte unit; |
|||
|
|||
public Long getDuration(){ |
|||
if(ObjectUtil.isNull(unit)) { |
|||
throw new BaseException("时间单位不能为空"); |
|||
} |
|||
if(remindTiming == 7){ |
|||
return duration; |
|||
} |
|||
switch (unit) { |
|||
case 0: |
|||
return duration * 60 * 1000L; |
|||
case 1: |
|||
return duration * 60 * 60 * 1000L; |
|||
case 2: |
|||
return duration * 24 * 60 * 60 * 1000L; |
|||
default: |
|||
return duration; |
|||
} |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("修改任务详细信息") |
|||
public static class UpdateTaskInfo{ |
|||
@ApiModelProperty("任务id") |
|||
private Long id; |
|||
@ApiModelProperty("任务名") |
|||
private String name; |
|||
@ApiModelProperty("任务详情") |
|||
private String description; |
|||
@ApiModelProperty("负责人") |
|||
private Long executorRole; |
|||
@ApiModelProperty("任务开始时间") |
|||
private Long beginTime; |
|||
@ApiModelProperty("任务结束时间") |
|||
private Long endTime; |
|||
@ApiModelProperty("重复频率") |
|||
private String cycle; |
|||
@ApiModelProperty("任务奖惩") |
|||
private Long money; |
|||
@ApiModelProperty("任务切换模式,0时间到立刻切换 1延迟delay_time切换 2手动切换") |
|||
private int delay; |
|||
@ApiModelProperty("延迟切换时间") |
|||
private Long delayTime; |
|||
@ApiModelProperty("优先级 3,紧急重要 2,紧急不重要 1,重要不紧急 0,不重要不紧急 默认0") |
|||
private Byte priority; |
|||
@ApiModelProperty("是否是里程碑 0否 1是") |
|||
private Byte milestone; |
|||
@ApiModelProperty("需要修改的插件Id") |
|||
private List<Long> plugins; |
|||
@ApiModelProperty("token") |
|||
private String token; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("修改插件配置") |
|||
public static class UpdatePluginConfig { |
|||
@NonNull |
|||
@ApiModelProperty("任务id") |
|||
private Long taskId; |
|||
@ApiModelProperty("任务插件id") |
|||
private Long taskPluginId; |
|||
@ApiModelProperty("页面接口路径") |
|||
private String webPath; |
|||
@ApiModelProperty("入参") |
|||
private String importParam; |
|||
@ApiModelProperty("放置位置 默认0 ,0任务名 1详情页 2任务下") |
|||
private Byte placeLocation; |
|||
@ApiModelProperty("程序位置 0:tall内部,1外部") |
|||
private Byte routineLocation; |
|||
@ApiModelProperty("token") |
|||
private String token; |
|||
|
|||
public UpdatePluginConfig() { |
|||
} |
|||
} |
|||
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.ccsens.cloudutil.config; |
|||
|
|||
import cn.hutool.json.JSONObject; |
|||
import cn.hutool.json.JSONUtil; |
|||
import feign.RequestInterceptor; |
|||
import feign.RequestTemplate; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Component |
|||
public class FeignTokenConfig implements RequestInterceptor { |
|||
@Override |
|||
public void apply(RequestTemplate template) { |
|||
byte[] body = template.body(); |
|||
if (body == null) { |
|||
return; |
|||
} |
|||
String json = new String(body); |
|||
JSONObject jsonObject = JSONUtil.parseObj(json); |
|||
|
|||
//添加token
|
|||
template.header("Authorization", jsonObject.get("token").toString()); |
|||
} |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.vo.CompeteVo; |
|||
import com.ccsens.mt.service.CompeteService; |
|||
import com.ccsens.mt.service.ICompeteService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
@Slf4j |
|||
@Api(tags = "用户信息", description = "") |
|||
@RestController |
|||
@RequestMapping("/compete/userMes") |
|||
public class CompeteCompanyController { |
|||
@Resource |
|||
private ICompeteService competeService; |
|||
@MustLogin |
|||
@ApiOperation(value = "用户的参赛单位id", notes = "") |
|||
@RequestMapping(value = "/getUserCompanyId", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompanyId> getUserCompanyId(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.GetUserCompany> params) { |
|||
log.info("查看当前用户的参赛单位id:{}",params); |
|||
CompeteVo.CompanyId companyId1=new CompeteVo.CompanyId(); |
|||
Long companyId = competeService.getUserCompanyId(params.getUserId(),params.getParam().getType()); |
|||
companyId1.setCompanyId(companyId); |
|||
return JsonResponse.newInstance().ok(companyId1); |
|||
} |
|||
} |
@ -0,0 +1,103 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.dto.ProvinceCompeteDto; |
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.bean.vo.TableVo; |
|||
import com.ccsens.mt.service.ICompeteTaskService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.WebConstant; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletRequest; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "比赛日程相关接口", description = "裁判分配日程安排等。。。") |
|||
@RestController |
|||
@RequestMapping("/compete/task") |
|||
@Slf4j |
|||
public class CompeteTaskController { |
|||
@Resource |
|||
private ICompeteTaskService competeTaskService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查找日期配置", notes = "zy:查找项目对应的配置信息") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<TableVo.DailyScheduleProcess> queryCompeteConfig(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) { |
|||
log.info("查找日期配置:{}",params); |
|||
List<TableVo.CompeteProjectConfig> dailyScheduleProcessList = competeTaskService.queryCompeteConfig(params.getParam()); |
|||
log.info("查找日期配置:{}",dailyScheduleProcessList); |
|||
return JsonResponse.newInstance().ok(dailyScheduleProcessList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "日程安排更新", notes = "zy:1、循环查找项目对应的配置信息。2、有则修改,没有则添加配置信息。" + |
|||
"3、根据配置的时间和场地生成出场顺序表。4存入出场顺序表。5、调用tall接口添加任务") |
|||
@RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<TableVo.DailyScheduleProcess> updateCompeteConfig( |
|||
@ApiParam @Validated @RequestBody QueryDto<ProvinceCompeteDto.UpdateCompeteProjectConfig> params, HttpServletRequest request) { |
|||
log.info("日程安排更新:{}",params); |
|||
String authHeader = request.getHeader(WebConstant.HEADER_KEY_TOKEN); |
|||
List<TableVo.CompeteProjectConfig> dailyScheduleProcessList = competeTaskService.updateCompeteProjectConfig(params.getParam(),authHeader); |
|||
log.info("日程安排更新:{}",dailyScheduleProcessList); |
|||
return JsonResponse.newInstance().ok(dailyScheduleProcessList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看该学校选手列表,按出场顺序(手机上上传视频用)", notes = "zy:按顺序查找出场顺序表,筛选出该学校在此项目中的所有选手或团队的出场顺序和时间") |
|||
@RequestMapping(value = "/query/players", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<ProvinceCompeteVo.StartOrderByCompanyAndProject>> queryStartOrderByCompany( |
|||
@ApiParam @Validated @RequestBody QueryDto<ProvinceCompeteDto.QueryStartOrderByCompany> params) { |
|||
log.info("查看该学校选手列表:{}",params); |
|||
List<ProvinceCompeteVo.StartOrderByCompanyAndProject> startOrderByCompanyList = competeTaskService.queryStartOrderByCompany(params.getParam()); |
|||
log.info("查看该学校选手列表:{}",startOrderByCompanyList); |
|||
return JsonResponse.newInstance().ok(startOrderByCompanyList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看裁判分配信息", notes = "zy:查看每个项目下的每个场地的裁判信息") |
|||
@RequestMapping(value = "/query/judgment", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<ProvinceCompeteVo.QueryJudgment>> queryJudgment(@ApiParam @Validated @RequestBody QueryDto<ProvinceCompeteDto.QueryJudgment> params) { |
|||
log.info("查看裁判分配信息:{}",params); |
|||
List<ProvinceCompeteVo.QueryJudgment> queryJudgmentList = competeTaskService.queryJudgment(params.getParam()); |
|||
log.info("查看裁判分配信息:{}",queryJudgmentList); |
|||
return JsonResponse.newInstance().ok(queryJudgmentList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "分配裁判信息", notes = "zy:传入裁判分配信息表,根据内容给每个的项目的每个场次添加裁判信息") |
|||
@RequestMapping(value = "/allocation/judgment", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<ProvinceCompeteVo.QueryJudgment>> allocationJudgment( |
|||
@ApiParam @Validated @RequestBody QueryDto<ProvinceCompeteDto.AllocationJudgmentAndTall> params, HttpServletRequest request) { |
|||
log.info("分配裁判信息:{}",params); |
|||
String authHeader = request.getHeader(WebConstant.HEADER_KEY_TOKEN); |
|||
List<ProvinceCompeteVo.QueryJudgment> queryJudgmentList = competeTaskService.allocationJudgment(params.getParam(),authHeader); |
|||
log.info("分配裁判信息:{}",queryJudgmentList); |
|||
return JsonResponse.newInstance().ok(queryJudgmentList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看裁判身份,场次id和比赛项目id等信息", notes = "zy:通过tall内的roleId和detailId,获取裁判的身份,比赛项目相关的信息") |
|||
@RequestMapping(value = "/query/projectByTall", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<ProvinceCompeteVo.QueryProjectByTall> queryProjectByTall( |
|||
@ApiParam @Validated @RequestBody QueryDto<ProvinceCompeteDto.ProjectByTall> params) { |
|||
log.info("查看裁判身份场次id:{}",params); |
|||
ProvinceCompeteVo.QueryProjectByTall queryProjectByTall = competeTaskService.queryProjectByTall(params.getParam()); |
|||
log.info("查看裁判身份场次id:{}",queryProjectByTall); |
|||
return JsonResponse.newInstance().ok(queryProjectByTall); |
|||
} |
|||
} |
@ -0,0 +1,98 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.dto.VideoDto; |
|||
import com.ccsens.mt.bean.vo.VideoProjectVo; |
|||
import com.ccsens.mt.service.ICompeteVedioService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
@Api(tags = "比赛视频相关接口", description = "") |
|||
@RestController |
|||
@RequestMapping("/compete/video") |
|||
@Slf4j |
|||
public class CompeteVideoController { |
|||
|
|||
@Resource |
|||
private ICompeteVedioService iCompeteVedioService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "添加用户观看开幕式视频记录(签到用)", notes = "Mr.王---------根据公司的id在t_compete_player_look表中插入一条数据,单表操作,") |
|||
@RequestMapping(value = "/addUserSign", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse addCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<VideoDto.Video> params) { |
|||
log.info("添加用户观看开幕式视频记录(签到用):{}",params); |
|||
iCompeteVedioService.insertSignVideo(params.getParam().getCompanyId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
@MustLogin |
|||
@ApiOperation(value = "查看用户观看视频记录(签到用)", notes = "Mr.王---------根据公司的id在t_compete_player_look表中查询数据,单表操作,如果是看了,返回true,没看返回false") |
|||
@RequestMapping(value = "/selectUserSign", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
|
|||
public JsonResponse selCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<VideoDto.Video> params) { |
|||
log.info("添加用户观看开幕式视频记录(签到用):{}",params); |
|||
boolean code= iCompeteVedioService.selectSignVideo(params.getParam().getCompanyId()); |
|||
return JsonResponse.newInstance().ok(code); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "上传视频保存上传记录 (比赛视频)", notes = "Mr.王---------增加一条数据到competevideo") |
|||
@RequestMapping(value = "/insertVideoRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse uploadVideo(@ApiParam @Validated @RequestBody QueryDto<VideoDto.UploadVdeo> params) { |
|||
log.info("添加用户观看开幕式视频记录(签到用):{}",params); |
|||
String path= iCompeteVedioService.uploadVideoPath(params.getParam()); |
|||
return JsonResponse.newInstance().ok(path); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看单位签到状态(签到用)(有筛选)", notes = "Mr.王---------查看单位的人的最近一条的签到状态") |
|||
@RequestMapping(value = "/selectUserStatus", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VideoProjectVo.PeoSignStatu>> selectCompanySignStatus(@ApiParam @Validated @RequestBody QueryDto<VideoDto.GetSignStatus> params) { |
|||
log.info("查看单位签到状态(签到用):{}",params); |
|||
List<VideoProjectVo.PeoSignStatu> peoSignStatus = iCompeteVedioService.selectCompanySignStatus(params); |
|||
return JsonResponse.newInstance().ok(peoSignStatus); |
|||
} |
|||
@MustLogin |
|||
@ApiOperation(value = "查看教练签到状态(签到用)", notes = "Mr.王---------查看教练的人的签到状态") |
|||
@RequestMapping(value = "/selectCoachStatus", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VideoProjectVo.CoachSignStatu>> selectCoachSignStatus(@ApiParam @Validated @RequestBody QueryDto<VideoDto.GetSignStatus> params) { |
|||
log.info("查看教练签到状态(签到用):{}",params); |
|||
List<VideoProjectVo.CoachSignStatu> coachSignStatus = iCompeteVedioService.selectCoachSignStatus(params); |
|||
return JsonResponse.newInstance().ok(coachSignStatus); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看所有二级比赛项目", notes = "Mr.王---------去那个competeProject表下面查") |
|||
@RequestMapping(value = "/selectTwoProject", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VideoProjectVo.GetTwoProject>> selectTwoProject(@ApiParam @Validated @RequestBody QueryDto<VideoDto.GetTwoProject> params) { |
|||
|
|||
log.info("添加用户观看开幕式视频记录(签到用):{}",params); |
|||
List<VideoProjectVo.GetTwoProject> list=iCompeteVedioService.selectTwoProject(params); |
|||
return JsonResponse.newInstance().ok(list); |
|||
|
|||
} |
|||
@MustLogin |
|||
@ApiOperation(value = "查找所有参赛单位", notes = "Mr.王---------去那个competeProject表下面查") |
|||
@RequestMapping(value = "/selectAllCompany", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VideoProjectVo.GetAllCompany>> selectAllCompany(@ApiParam @Validated @RequestBody QueryDto<VideoDto.GetAllCompany> params) { |
|||
log.info("添加用户观看开幕式视频记录(签到用):{}",params); |
|||
List<VideoProjectVo.GetAllCompany> list=iCompeteVedioService.selectAllCompany(params); |
|||
return JsonResponse.newInstance().ok(list); |
|||
} |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.vo.CompeteVo; |
|||
import com.ccsens.mt.service.IKCPlayerService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
@Slf4j |
|||
@Api(tags = "云点播", description = "") |
|||
@RestController |
|||
@RequestMapping("/kcPlayer") |
|||
public class KCPlayerController { |
|||
@Resource |
|||
private IKCPlayerService kcPlayerService; |
|||
|
|||
@ApiOperation(value = "查看云点播签名", notes = "从redis获取云点播签名,有则返回,没有则调用工具类查询,存入redis并返回") |
|||
@RequestMapping(value = "/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<String> getSignature(Long id) { |
|||
log.info("查看云点播签名"); |
|||
String signature = kcPlayerService.getSignature(id); |
|||
log.info("查看云点播签名:{}",signature); |
|||
return JsonResponse.newInstance().ok(signature); |
|||
} |
|||
|
|||
@ApiOperation(value = "查看云点播签名", notes = "从redis获取云点播签名,有则返回,没有则调用工具类查询,存入redis并返回") |
|||
@RequestMapping(value = "/receive", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse receive(@RequestBody Map map) { |
|||
log.info("接受文件上传通知:{}",map); |
|||
|
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,151 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteCountScore extends CompeteCountScoreKey implements Serializable { |
|||
private Long competeTimeId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long siteOrderId; |
|||
|
|||
private BigDecimal chiefJudgmentScore; |
|||
|
|||
private BigDecimal judgmentAScore; |
|||
|
|||
private BigDecimal judgmentBScore2; |
|||
|
|||
private Integer deductTimes; |
|||
|
|||
private String deductCause; |
|||
|
|||
private BigDecimal finalScore; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getCompeteTimeId() { |
|||
return competeTimeId; |
|||
} |
|||
|
|||
public void setCompeteTimeId(Long competeTimeId) { |
|||
this.competeTimeId = competeTimeId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getSiteOrderId() { |
|||
return siteOrderId; |
|||
} |
|||
|
|||
public void setSiteOrderId(Long siteOrderId) { |
|||
this.siteOrderId = siteOrderId; |
|||
} |
|||
|
|||
public BigDecimal getChiefJudgmentScore() { |
|||
return chiefJudgmentScore; |
|||
} |
|||
|
|||
public void setChiefJudgmentScore(BigDecimal chiefJudgmentScore) { |
|||
this.chiefJudgmentScore = chiefJudgmentScore; |
|||
} |
|||
|
|||
public BigDecimal getJudgmentAScore() { |
|||
return judgmentAScore; |
|||
} |
|||
|
|||
public void setJudgmentAScore(BigDecimal judgmentAScore) { |
|||
this.judgmentAScore = judgmentAScore; |
|||
} |
|||
|
|||
public BigDecimal getJudgmentBScore2() { |
|||
return judgmentBScore2; |
|||
} |
|||
|
|||
public void setJudgmentBScore2(BigDecimal judgmentBScore2) { |
|||
this.judgmentBScore2 = judgmentBScore2; |
|||
} |
|||
|
|||
public Integer getDeductTimes() { |
|||
return deductTimes; |
|||
} |
|||
|
|||
public void setDeductTimes(Integer deductTimes) { |
|||
this.deductTimes = deductTimes; |
|||
} |
|||
|
|||
public String getDeductCause() { |
|||
return deductCause; |
|||
} |
|||
|
|||
public void setDeductCause(String deductCause) { |
|||
this.deductCause = deductCause == null ? null : deductCause.trim(); |
|||
} |
|||
|
|||
public BigDecimal getFinalScore() { |
|||
return finalScore; |
|||
} |
|||
|
|||
public void setFinalScore(BigDecimal finalScore) { |
|||
this.finalScore = finalScore; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", competeTimeId=").append(competeTimeId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", siteOrderId=").append(siteOrderId); |
|||
sb.append(", chiefJudgmentScore=").append(chiefJudgmentScore); |
|||
sb.append(", judgmentAScore=").append(judgmentAScore); |
|||
sb.append(", judgmentBScore2=").append(judgmentBScore2); |
|||
sb.append(", deductTimes=").append(deductTimes); |
|||
sb.append(", deductCause=").append(deductCause); |
|||
sb.append(", finalScore=").append(finalScore); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,77 @@ |
|||
|
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class CompeteCountScoreKey implements Serializable { |
|||
private Long id; |
|||
|
|||
private Integer shouldTimes; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Integer getShouldTimes() { |
|||
return shouldTimes; |
|||
} |
|||
|
|||
public void setShouldTimes(Integer shouldTimes) { |
|||
this.shouldTimes = shouldTimes; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", shouldTimes=").append(shouldTimes); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
|
|||
|
|||
//public class CompeteCountScoreKey implements Serializable {
|
|||
// private Long id;
|
|||
//
|
|||
// private Integer shouldTimes;
|
|||
//
|
|||
// private static final long serialVersionUID = 1L;
|
|||
//
|
|||
// public Long getId() {
|
|||
// return id;
|
|||
// }
|
|||
//
|
|||
// public void setId(Long id) {
|
|||
// this.id = id;
|
|||
// }
|
|||
//
|
|||
// public Integer getShouldTimes() {
|
|||
// return shouldTimes;
|
|||
// }
|
|||
//
|
|||
// public void setShouldTimes(Integer shouldTimes) {
|
|||
// this.shouldTimes = shouldTimes;
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// public String toString() {
|
|||
// StringBuilder sb = new StringBuilder();
|
|||
// sb.append(getClass().getSimpleName());
|
|||
// sb.append(" [");
|
|||
// sb.append("Hash = ").append(hashCode());
|
|||
// sb.append(", id=").append(id);
|
|||
// sb.append(", shouldTimes=").append(shouldTimes);
|
|||
// sb.append("]");
|
|||
// return sb.toString();
|
|||
// }
|
|||
//}
|
@ -0,0 +1,172 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteJudgment implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String phone; |
|||
|
|||
private String remark; |
|||
|
|||
private Long competeTimeId; |
|||
|
|||
private Integer site; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long userId; |
|||
|
|||
private Byte chiefJudgment; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long memberId; |
|||
|
|||
private Long roleId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Long getCompeteTimeId() { |
|||
return competeTimeId; |
|||
} |
|||
|
|||
public void setCompeteTimeId(Long competeTimeId) { |
|||
this.competeTimeId = competeTimeId; |
|||
} |
|||
|
|||
public Integer getSite() { |
|||
return site; |
|||
} |
|||
|
|||
public void setSite(Integer site) { |
|||
this.site = site; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Byte getChiefJudgment() { |
|||
return chiefJudgment; |
|||
} |
|||
|
|||
public void setChiefJudgment(Byte chiefJudgment) { |
|||
this.chiefJudgment = chiefJudgment; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getMemberId() { |
|||
return memberId; |
|||
} |
|||
|
|||
public void setMemberId(Long memberId) { |
|||
this.memberId = memberId; |
|||
} |
|||
|
|||
public Long getRoleId() { |
|||
return roleId; |
|||
} |
|||
|
|||
public void setRoleId(Long roleId) { |
|||
this.roleId = roleId; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", competeTimeId=").append(competeTimeId); |
|||
sb.append(", site=").append(site); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", chiefJudgment=").append(chiefJudgment); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", memberId=").append(memberId); |
|||
sb.append(", roleId=").append(roleId); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,95 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompetePlayerLook implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long companyId; |
|||
|
|||
private Byte lookStatus; |
|||
|
|||
private Long lookTime; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getCompanyId() { |
|||
return companyId; |
|||
} |
|||
|
|||
public void setCompanyId(Long companyId) { |
|||
this.companyId = companyId; |
|||
} |
|||
|
|||
public Byte getLookStatus() { |
|||
return lookStatus; |
|||
} |
|||
|
|||
public void setLookStatus(Byte lookStatus) { |
|||
this.lookStatus = lookStatus; |
|||
} |
|||
|
|||
public Long getLookTime() { |
|||
return lookTime; |
|||
} |
|||
|
|||
public void setLookTime(Long lookTime) { |
|||
this.lookTime = lookTime; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", companyId=").append(companyId); |
|||
sb.append(", lookStatus=").append(lookStatus); |
|||
sb.append(", lookTime=").append(lookTime); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,621 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompetePlayerLookExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompetePlayerLookExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdIsNull() { |
|||
addCriterion("company_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdIsNotNull() { |
|||
addCriterion("company_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdEqualTo(Long value) { |
|||
addCriterion("company_id =", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdNotEqualTo(Long value) { |
|||
addCriterion("company_id <>", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdGreaterThan(Long value) { |
|||
addCriterion("company_id >", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("company_id >=", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdLessThan(Long value) { |
|||
addCriterion("company_id <", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("company_id <=", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdIn(List<Long> values) { |
|||
addCriterion("company_id in", values, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdNotIn(List<Long> values) { |
|||
addCriterion("company_id not in", values, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdBetween(Long value1, Long value2) { |
|||
addCriterion("company_id between", value1, value2, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("company_id not between", value1, value2, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusIsNull() { |
|||
addCriterion("look_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusIsNotNull() { |
|||
addCriterion("look_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusEqualTo(Byte value) { |
|||
addCriterion("look_status =", value, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusNotEqualTo(Byte value) { |
|||
addCriterion("look_status <>", value, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusGreaterThan(Byte value) { |
|||
addCriterion("look_status >", value, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("look_status >=", value, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusLessThan(Byte value) { |
|||
addCriterion("look_status <", value, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("look_status <=", value, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusIn(List<Byte> values) { |
|||
addCriterion("look_status in", values, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusNotIn(List<Byte> values) { |
|||
addCriterion("look_status not in", values, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("look_status between", value1, value2, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("look_status not between", value1, value2, "lookStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeIsNull() { |
|||
addCriterion("look_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeIsNotNull() { |
|||
addCriterion("look_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeEqualTo(Long value) { |
|||
addCriterion("look_time =", value, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeNotEqualTo(Long value) { |
|||
addCriterion("look_time <>", value, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeGreaterThan(Long value) { |
|||
addCriterion("look_time >", value, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("look_time >=", value, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeLessThan(Long value) { |
|||
addCriterion("look_time <", value, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("look_time <=", value, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeIn(List<Long> values) { |
|||
addCriterion("look_time in", values, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeNotIn(List<Long> values) { |
|||
addCriterion("look_time not in", values, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeBetween(Long value1, Long value2) { |
|||
addCriterion("look_time between", value1, value2, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLookTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("look_time not between", value1, value2, "lookTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -1,117 +1,117 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteProjectConfig implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Integer siteNum; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long projectDuration; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Integer getSiteNum() { |
|||
return siteNum; |
|||
} |
|||
|
|||
public void setSiteNum(Integer siteNum) { |
|||
this.siteNum = siteNum; |
|||
} |
|||
|
|||
public Long getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Long startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Long getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Long endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getProjectDuration() { |
|||
return projectDuration; |
|||
} |
|||
|
|||
public void setProjectDuration(Long projectDuration) { |
|||
this.projectDuration = projectDuration; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", projectId=").append(projectId); |
|||
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("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteProjectConfig implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Integer siteNum; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long projectDuration; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Integer getSiteNum() { |
|||
return siteNum; |
|||
} |
|||
|
|||
public void setSiteNum(Integer siteNum) { |
|||
this.siteNum = siteNum; |
|||
} |
|||
|
|||
public Long getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Long startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Long getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Long endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getProjectDuration() { |
|||
return projectDuration; |
|||
} |
|||
|
|||
public void setProjectDuration(Long projectDuration) { |
|||
this.projectDuration = projectDuration; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", projectId=").append(projectId); |
|||
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("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,172 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteStartOrder implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long playerId; |
|||
|
|||
private Byte team; |
|||
|
|||
private Byte competeOrder; |
|||
|
|||
private Byte site; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long taskId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private String remark; |
|||
|
|||
private Byte waiver; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getPlayerId() { |
|||
return playerId; |
|||
} |
|||
|
|||
public void setPlayerId(Long playerId) { |
|||
this.playerId = playerId; |
|||
} |
|||
|
|||
public Byte getTeam() { |
|||
return team; |
|||
} |
|||
|
|||
public void setTeam(Byte team) { |
|||
this.team = team; |
|||
} |
|||
|
|||
public Byte getCompeteOrder() { |
|||
return competeOrder; |
|||
} |
|||
|
|||
public void setCompeteOrder(Byte competeOrder) { |
|||
this.competeOrder = competeOrder; |
|||
} |
|||
|
|||
public Byte getSite() { |
|||
return site; |
|||
} |
|||
|
|||
public void setSite(Byte site) { |
|||
this.site = site; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getTaskId() { |
|||
return taskId; |
|||
} |
|||
|
|||
public void setTaskId(Long taskId) { |
|||
this.taskId = taskId; |
|||
} |
|||
|
|||
public Long getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Long startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Long getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Long endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Byte getWaiver() { |
|||
return waiver; |
|||
} |
|||
|
|||
public void setWaiver(Byte waiver) { |
|||
this.waiver = waiver; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", playerId=").append(playerId); |
|||
sb.append(", team=").append(team); |
|||
sb.append(", competeOrder=").append(competeOrder); |
|||
sb.append(", site=").append(site); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", taskId=").append(taskId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", waiver=").append(waiver); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,129 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteVarietyScore implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long competeTimeId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long siteOrderId; |
|||
|
|||
private String code; |
|||
|
|||
private BigDecimal score; |
|||
|
|||
private Long judgmentId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getCompeteTimeId() { |
|||
return competeTimeId; |
|||
} |
|||
|
|||
public void setCompeteTimeId(Long competeTimeId) { |
|||
this.competeTimeId = competeTimeId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getSiteOrderId() { |
|||
return siteOrderId; |
|||
} |
|||
|
|||
public void setSiteOrderId(Long siteOrderId) { |
|||
this.siteOrderId = siteOrderId; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public BigDecimal getScore() { |
|||
return score; |
|||
} |
|||
|
|||
public void setScore(BigDecimal score) { |
|||
this.score = score; |
|||
} |
|||
|
|||
public Long getJudgmentId() { |
|||
return judgmentId; |
|||
} |
|||
|
|||
public void setJudgmentId(Long judgmentId) { |
|||
this.judgmentId = judgmentId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", competeTimeId=").append(competeTimeId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", siteOrderId=").append(siteOrderId); |
|||
sb.append(", code=").append(code); |
|||
sb.append(", score=").append(score); |
|||
sb.append(", judgmentId=").append(judgmentId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,812 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteVarietyScoreExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteVarietyScoreExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdIsNull() { |
|||
addCriterion("compete_time_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdIsNotNull() { |
|||
addCriterion("compete_time_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdEqualTo(Long value) { |
|||
addCriterion("compete_time_id =", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdNotEqualTo(Long value) { |
|||
addCriterion("compete_time_id <>", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdGreaterThan(Long value) { |
|||
addCriterion("compete_time_id >", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("compete_time_id >=", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdLessThan(Long value) { |
|||
addCriterion("compete_time_id <", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("compete_time_id <=", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdIn(List<Long> values) { |
|||
addCriterion("compete_time_id in", values, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdNotIn(List<Long> values) { |
|||
addCriterion("compete_time_id not in", values, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdBetween(Long value1, Long value2) { |
|||
addCriterion("compete_time_id between", value1, value2, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("compete_time_id not between", value1, value2, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdIsNull() { |
|||
addCriterion("site_order_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdIsNotNull() { |
|||
addCriterion("site_order_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdEqualTo(Long value) { |
|||
addCriterion("site_order_id =", value, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdNotEqualTo(Long value) { |
|||
addCriterion("site_order_id <>", value, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdGreaterThan(Long value) { |
|||
addCriterion("site_order_id >", value, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("site_order_id >=", value, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdLessThan(Long value) { |
|||
addCriterion("site_order_id <", value, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("site_order_id <=", value, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdIn(List<Long> values) { |
|||
addCriterion("site_order_id in", values, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdNotIn(List<Long> values) { |
|||
addCriterion("site_order_id not in", values, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdBetween(Long value1, Long value2) { |
|||
addCriterion("site_order_id between", value1, value2, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSiteOrderIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("site_order_id not between", value1, value2, "siteOrderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIsNull() { |
|||
addCriterion("code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIsNotNull() { |
|||
addCriterion("code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeEqualTo(String value) { |
|||
addCriterion("code =", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotEqualTo(String value) { |
|||
addCriterion("code <>", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThan(String value) { |
|||
addCriterion("code >", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("code >=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThan(String value) { |
|||
addCriterion("code <", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("code <=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLike(String value) { |
|||
addCriterion("code like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotLike(String value) { |
|||
addCriterion("code not like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIn(List<String> values) { |
|||
addCriterion("code in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotIn(List<String> values) { |
|||
addCriterion("code not in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeBetween(String value1, String value2) { |
|||
addCriterion("code between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotBetween(String value1, String value2) { |
|||
addCriterion("code not between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreIsNull() { |
|||
addCriterion("score is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreIsNotNull() { |
|||
addCriterion("score is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreEqualTo(BigDecimal value) { |
|||
addCriterion("score =", value, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreNotEqualTo(BigDecimal value) { |
|||
addCriterion("score <>", value, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreGreaterThan(BigDecimal value) { |
|||
addCriterion("score >", value, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreGreaterThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("score >=", value, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreLessThan(BigDecimal value) { |
|||
addCriterion("score <", value, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreLessThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("score <=", value, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreIn(List<BigDecimal> values) { |
|||
addCriterion("score in", values, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreNotIn(List<BigDecimal> values) { |
|||
addCriterion("score not in", values, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("score between", value1, value2, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScoreNotBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("score not between", value1, value2, "score"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdIsNull() { |
|||
addCriterion("judgment_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdIsNotNull() { |
|||
addCriterion("judgment_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdEqualTo(Long value) { |
|||
addCriterion("judgment_id =", value, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdNotEqualTo(Long value) { |
|||
addCriterion("judgment_id <>", value, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdGreaterThan(Long value) { |
|||
addCriterion("judgment_id >", value, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("judgment_id >=", value, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdLessThan(Long value) { |
|||
addCriterion("judgment_id <", value, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("judgment_id <=", value, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdIn(List<Long> values) { |
|||
addCriterion("judgment_id in", values, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdNotIn(List<Long> values) { |
|||
addCriterion("judgment_id not in", values, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdBetween(Long value1, Long value2) { |
|||
addCriterion("judgment_id between", value1, value2, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJudgmentIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("judgment_id not between", value1, value2, "judgmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.ccsens.mt.bean.vo; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class CompeteExcelVo { |
|||
@Data |
|||
@ApiModel("顺序表") |
|||
public static class TeamOrderPlayer { |
|||
@ApiModelProperty("组别id") |
|||
private String groupId; |
|||
@ApiModelProperty("组别名") |
|||
private String groupName; |
|||
@ApiModelProperty("单位信息") |
|||
private List<TeamOrderPlayerList> companyNameList; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("顺序表") |
|||
public static class TeamOrderPlayerList { |
|||
@ApiModelProperty("团队id") |
|||
private Long teamId; |
|||
@ApiModelProperty("单位名称") |
|||
private String companyName; |
|||
@ApiModelProperty("团队选手名字") |
|||
private String playerNames; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("所有项目") |
|||
public static class AllProject{ |
|||
@ApiModelProperty("项目id") |
|||
private Long id; |
|||
@ApiModelProperty("项目名字") |
|||
private String projectName; |
|||
@ApiModelProperty("开始时间Long") |
|||
private Long startTime; |
|||
@ApiModelProperty("开始时间Str") |
|||
private String startTimeStr; |
|||
@ApiModelProperty("结束时间Long") |
|||
private Long endTime; |
|||
@ApiModelProperty("结束时间Str") |
|||
private String endTimeStr; |
|||
@ApiModelProperty("组别大小") |
|||
private int size; |
|||
@ApiModelProperty("是否为团队项目,0不是 1是") |
|||
private Byte team; |
|||
@ApiModelProperty("项目场地数量") |
|||
private int siteNum; |
|||
@ApiModelProperty("项目信息") |
|||
private List<TeamOrderPlayer> projectList; |
|||
@ApiModelProperty("月/日 上/下午") |
|||
private String year; |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,57 @@ |
|||
package com.ccsens.mt.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class VideoProjectVo { |
|||
|
|||
@Data |
|||
@ApiModel("返回所有二级比赛项目(包括项目类型)") |
|||
public static class GetTwoProject{ |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@ApiModelProperty("项目名") |
|||
private String projectName; |
|||
@ApiModelProperty("项目类型") |
|||
private int projectType; |
|||
} |
|||
@Data |
|||
@ApiModel("查找所有参赛单位") |
|||
public static class GetAllCompany{ |
|||
@ApiModelProperty("参赛单位id") |
|||
private Long companyId; |
|||
@ApiModelProperty("返回参赛单位名称") |
|||
private String companyName; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查找单位签到的状态") |
|||
public static class PeoSignStatu{ |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("账号") |
|||
private String phone; |
|||
@ApiModelProperty("最近签到时间") |
|||
private Long time; |
|||
} |
|||
@Data |
|||
@ApiModel("查找裁判签到的状态") |
|||
public static class CoachSignStatu{ |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("账号") |
|||
private String phone; |
|||
@ApiModelProperty("裁判类型") |
|||
private byte chiefJudgment; |
|||
@ApiModelProperty("最近签到时间") |
|||
private Date time; |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.ccsens.mt.persist.dao; |
|||
|
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.persist.mapper.CompeteJudgmentMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Repository |
|||
public interface CompeteJudgmentDao extends CompeteJudgmentMapper { |
|||
/** |
|||
* 查找裁判分配信息 |
|||
* @param competeTimeId 大赛id |
|||
* @return |
|||
*/ |
|||
List<ProvinceCompeteVo.QueryJudgment> queryJudgment(@Param("competeTimeId") Long competeTimeId,@Param("projectId") Long projectId); |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.ccsens.mt.persist.dao; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteProjectConfig; |
|||
import com.ccsens.mt.bean.po.CompeteProjectConfigExample; |
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.bean.vo.TableVo; |
|||
import com.ccsens.mt.persist.mapper.CompeteProjectConfigMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* |
|||
* @author: li |
|||
* |
|||
*/ |
|||
public interface CompeteProjectConfigDao extends CompeteProjectConfigMapper { |
|||
CompeteProjectConfig selectByProjectId(@Param("projectId") Long projectId); |
|||
List<TableVo.SchedulePlan> selectDetail (); |
|||
List<TableVo.CompeteJoin> selectSingle (@Param("projectId") Long projectId,@Param("groupId") Long groupId,@Param("companyId") Long companyId,@Param("name") String name,@Param("idCard") String idCard); |
|||
List<TableVo.CompeteJoin> selectGroup (@Param("projectId") Long projectId,@Param("groupId") Long groupId,@Param("companyId") Long companyId,@Param("name") String name,@Param("idCard") String idCard); |
|||
CompeteProjectConfig selectStartTime(@Param("projectId") Long projectId); |
|||
|
|||
List<TableVo.CompeteJoin> selectPeople (@Param("projectId") Long projectId,@Param("groupId") Long groupId,@Param("companyId") Long companyId,@Param("name") String name,@Param("idCard") String idCard); |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 查询所有项目配置信息 |
|||
* @param type 比赛类型 |
|||
* @return 返回所有比赛日程配置信息 |
|||
*/ |
|||
List<TableVo.CompeteProjectConfig> queryProjectConfig(@Param("type")int type); |
|||
|
|||
/** |
|||
* 查看该学校选手列表,按出场顺序(手机上上传视频用) |
|||
* @param companyId 单位id |
|||
* @param projectId 项目di |
|||
* @return 返回选手列表 |
|||
*/ |
|||
List<ProvinceCompeteVo.StartOrderByCompanyAndProject> queryStartOrderByCompany(@Param("companyId")Long companyId, @Param("projectId")Long projectId, @Param("competeTimeId")Long competeTimeId); |
|||
|
|||
/** |
|||
* 通过taskDetailId查询比赛场次和项目信息 |
|||
* @param taskDetailId 任务详情id |
|||
* @return 返回比赛项目信息 |
|||
*/ |
|||
ProvinceCompeteVo.QueryProjectByTall queryProjectByTaskDetailId(@Param("taskDetailId")Long taskDetailId); |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.ccsens.mt.persist.dao; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteProject; |
|||
import com.ccsens.mt.bean.po.CompeteProjectConfig; |
|||
import com.ccsens.mt.bean.vo.TableVo; |
|||
import com.ccsens.mt.persist.mapper.CompeteProjectConfigMapper; |
|||
import com.ccsens.mt.persist.mapper.CompeteProjectMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* |
|||
* @author: li |
|||
* |
|||
*/ |
|||
public interface CompeteProjectDao extends CompeteProjectMapper { |
|||
CompeteProject getProjectByProjectName(@Param("projectName") String projectId); |
|||
List<TableVo.CompeteJoin> getPlayerForSingle (@Param("level") Byte level, @Param("type") Byte type); |
|||
List<TableVo.CompeteJoin> getPlayerForTeam (@Param("level") Byte level, @Param("type") Byte type); |
|||
|
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.ccsens.mt.persist.dao; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteCoach; |
|||
import com.ccsens.mt.bean.po.CompeteCompany; |
|||
import com.ccsens.mt.bean.vo.CompeteExcelVo; |
|||
import com.ccsens.mt.bean.vo.CompeteVo; |
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.bean.vo.ScoreVo; |
|||
import com.ccsens.mt.persist.mapper.CompeteCompanyMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Repository |
|||
public interface CompeteScoreDao { |
|||
List<ScoreVo.CompeteScore> selectSingleCount (@Param("projectId") long projectId,@Param("competeGroupId") long competeGroupId); |
|||
List<ScoreVo.CompeteScore> selectGroupCount (@Param("projectId") long projectId,@Param("competeGroupId") long competeGroupId); |
|||
List<ScoreVo.CompeteScore> selectSingleVarity(@Param("projectId") long projectId,@Param("competeGroupId") long competeGroupId); |
|||
List<ScoreVo.CompeteScore> selectGroupVarity (@Param("projectId") long projectId,@Param("competeGroupId") long competeGroupId); |
|||
List<ScoreVo.CountScoreCurrentSite> selectCountScoreCurrentSite (@Param("siteId") long siteId); |
|||
List<CompeteVo.SpeedPass> selectByProjectIdAndPid(@Param("projectId") long projectId,@Param("competeTimeId") long competeTimeId); |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 查找计数赛成绩公示(个人比赛) |
|||
* @param projectId |
|||
* @return |
|||
*/ |
|||
List<ScoreVo.CountScoreCurrentSite> queryCountScoreAll(@Param("projectId")Long projectId); |
|||
/** |
|||
* 查找计数赛成绩公示(团队比赛) |
|||
* @param projectId |
|||
* @return |
|||
*/ |
|||
List<ScoreVo.CountScoreCurrentSite> queryCountScoreAllByTeam(Long projectId); |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.ccsens.mt.persist.dao; |
|||
|
|||
import com.ccsens.mt.bean.dto.VideoDto; |
|||
import com.ccsens.mt.bean.vo.VideoProjectVo; |
|||
import com.ccsens.mt.persist.mapper.CompeteCompanyMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Mr.王 |
|||
*/ |
|||
public interface CompeteVideoDao extends CompeteCompanyMapper { |
|||
|
|||
List<VideoProjectVo.PeoSignStatu> selectCompanySignStatus(@Param("param") VideoDto.GetSignStatus param); |
|||
|
|||
List<VideoProjectVo.CoachSignStatu> selectCoachSignStatus(@Param("param") VideoDto.GetSignStatus param); |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteCountScore; |
|||
import com.ccsens.mt.bean.po.CompeteCountScoreExample; |
|||
import com.ccsens.mt.bean.po.CompeteCountScoreKey; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompeteCountScoreMapper { |
|||
long countByExample(CompeteCountScoreExample example); |
|||
|
|||
int deleteByExample(CompeteCountScoreExample example); |
|||
|
|||
int deleteByPrimaryKey(CompeteCountScoreKey key); |
|||
|
|||
int insert(CompeteCountScore record); |
|||
|
|||
int insertSelective(CompeteCountScore record); |
|||
|
|||
List<CompeteCountScore> selectByExample(CompeteCountScoreExample example); |
|||
|
|||
CompeteCountScore selectByPrimaryKey(CompeteCountScoreKey key); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompeteCountScore record, @Param("example") CompeteCountScoreExample example); |
|||
|
|||
int updateByExample(@Param("record") CompeteCountScore record, @Param("example") CompeteCountScoreExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompeteCountScore record); |
|||
|
|||
int updateByPrimaryKey(CompeteCountScore record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteJudgment; |
|||
import com.ccsens.mt.bean.po.CompeteJudgmentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompeteJudgmentMapper { |
|||
long countByExample(CompeteJudgmentExample example); |
|||
|
|||
int deleteByExample(CompeteJudgmentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CompeteJudgment record); |
|||
|
|||
int insertSelective(CompeteJudgment record); |
|||
|
|||
List<CompeteJudgment> selectByExample(CompeteJudgmentExample example); |
|||
|
|||
CompeteJudgment selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompeteJudgment record, @Param("example") CompeteJudgmentExample example); |
|||
|
|||
int updateByExample(@Param("record") CompeteJudgment record, @Param("example") CompeteJudgmentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompeteJudgment record); |
|||
|
|||
int updateByPrimaryKey(CompeteJudgment record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompetePlayerLook; |
|||
import com.ccsens.mt.bean.po.CompetePlayerLookExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompetePlayerLookMapper { |
|||
long countByExample(CompetePlayerLookExample example); |
|||
|
|||
int deleteByExample(CompetePlayerLookExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CompetePlayerLook record); |
|||
|
|||
int insertSelective(CompetePlayerLook record); |
|||
|
|||
List<CompetePlayerLook> selectByExample(CompetePlayerLookExample example); |
|||
|
|||
CompetePlayerLook selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompetePlayerLook record, @Param("example") CompetePlayerLookExample example); |
|||
|
|||
int updateByExample(@Param("record") CompetePlayerLook record, @Param("example") CompetePlayerLookExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompetePlayerLook record); |
|||
|
|||
int updateByPrimaryKey(CompetePlayerLook record); |
|||
} |
@ -1,30 +1,30 @@ |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteProjectConfig; |
|||
import com.ccsens.mt.bean.po.CompeteProjectConfigExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompeteProjectConfigMapper { |
|||
long countByExample(CompeteProjectConfigExample example); |
|||
|
|||
int deleteByExample(CompeteProjectConfigExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CompeteProjectConfig record); |
|||
|
|||
int insertSelective(CompeteProjectConfig record); |
|||
|
|||
List<CompeteProjectConfig> selectByExample(CompeteProjectConfigExample example); |
|||
|
|||
CompeteProjectConfig selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); |
|||
|
|||
int updateByExample(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompeteProjectConfig record); |
|||
|
|||
int updateByPrimaryKey(CompeteProjectConfig record); |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteProjectConfig; |
|||
import com.ccsens.mt.bean.po.CompeteProjectConfigExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompeteProjectConfigMapper { |
|||
long countByExample(CompeteProjectConfigExample example); |
|||
|
|||
int deleteByExample(CompeteProjectConfigExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CompeteProjectConfig record); |
|||
|
|||
int insertSelective(CompeteProjectConfig record); |
|||
|
|||
List<CompeteProjectConfig> selectByExample(CompeteProjectConfigExample example); |
|||
|
|||
CompeteProjectConfig selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); |
|||
|
|||
int updateByExample(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompeteProjectConfig record); |
|||
|
|||
int updateByPrimaryKey(CompeteProjectConfig record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteStartOrder; |
|||
import com.ccsens.mt.bean.po.CompeteStartOrderExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompeteStartOrderMapper { |
|||
long countByExample(CompeteStartOrderExample example); |
|||
|
|||
int deleteByExample(CompeteStartOrderExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CompeteStartOrder record); |
|||
|
|||
int insertSelective(CompeteStartOrder record); |
|||
|
|||
List<CompeteStartOrder> selectByExample(CompeteStartOrderExample example); |
|||
|
|||
CompeteStartOrder selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompeteStartOrder record, @Param("example") CompeteStartOrderExample example); |
|||
|
|||
int updateByExample(@Param("record") CompeteStartOrder record, @Param("example") CompeteStartOrderExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompeteStartOrder record); |
|||
|
|||
int updateByPrimaryKey(CompeteStartOrder record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.mt.persist.mapper; |
|||
|
|||
import com.ccsens.mt.bean.po.CompeteVarietyScore; |
|||
import com.ccsens.mt.bean.po.CompeteVarietyScoreExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CompeteVarietyScoreMapper { |
|||
long countByExample(CompeteVarietyScoreExample example); |
|||
|
|||
int deleteByExample(CompeteVarietyScoreExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CompeteVarietyScore record); |
|||
|
|||
int insertSelective(CompeteVarietyScore record); |
|||
|
|||
List<CompeteVarietyScore> selectByExample(CompeteVarietyScoreExample example); |
|||
|
|||
CompeteVarietyScore selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CompeteVarietyScore record, @Param("example") CompeteVarietyScoreExample example); |
|||
|
|||
int updateByExample(@Param("record") CompeteVarietyScore record, @Param("example") CompeteVarietyScoreExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CompeteVarietyScore record); |
|||
|
|||
int updateByPrimaryKey(CompeteVarietyScore record); |
|||
} |
@ -0,0 +1,548 @@ |
|||
package com.ccsens.mt.service; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.lang.Snowflake; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import com.ccsens.cloudutil.bean.tall.dto.MemberRoleDto; |
|||
import com.ccsens.cloudutil.bean.tall.dto.TallTaskDto; |
|||
import com.ccsens.cloudutil.bean.tall.vo.MemberVo; |
|||
import com.ccsens.cloudutil.bean.tall.vo.TaskVo; |
|||
import com.ccsens.cloudutil.feign.TallFeignClient; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.dto.ProvinceCompeteDto; |
|||
import com.ccsens.mt.bean.po.*; |
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.bean.vo.TableVo; |
|||
import com.ccsens.mt.persist.dao.*; |
|||
import com.ccsens.mt.persist.mapper.CompeteProjectPlayerMapper; |
|||
import com.ccsens.mt.persist.mapper.CompeteStartOrderMapper; |
|||
import com.ccsens.mt.util.Constant; |
|||
import com.ccsens.util.JsonResponse; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Propagation; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.ArrayList; |
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.concurrent.atomic.AtomicInteger; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class CompeteTaskService implements ICompeteTaskService{ |
|||
@Resource |
|||
private CompeteProjectConfigDao projectConfigDao; |
|||
@Resource |
|||
private CompeteProjectDao competeProjectDao; |
|||
@Resource |
|||
private CompeteTimeDao competeTimeDao; |
|||
@Resource |
|||
private CompeteProjectPlayerMapper projectPlayerMapper; |
|||
@Resource |
|||
private Snowflake snowflake; |
|||
@Resource |
|||
private CompeteStartOrderMapper startOrderMapper; |
|||
@Resource |
|||
private CompeteTeamDao competeTeamDao; |
|||
@Resource |
|||
private TallFeignClient tallFeignClient; |
|||
@Resource |
|||
private CompeteJudgmentDao competeJudgmentDao; |
|||
|
|||
/** |
|||
* 查看项目的日程配置信息 |
|||
*/ |
|||
@Override |
|||
public List<TableVo.CompeteProjectConfig> queryCompeteConfig(CompeteDto.CompeteTime param) { |
|||
CompeteTime competeTime = competeTimeDao.selectByPrimaryKey(param.getCompeteTimeId()); |
|||
List<TableVo.CompeteProjectConfig> competeProjectConfigList = new ArrayList<>(); |
|||
if(ObjectUtil.isNotNull(competeTime)) { |
|||
competeProjectConfigList = projectConfigDao.queryProjectConfig(competeTime.getType()); |
|||
} |
|||
return competeProjectConfigList; |
|||
} |
|||
|
|||
/** |
|||
* 修改项目的日程配置 |
|||
*/ |
|||
@Override |
|||
public List<TableVo.CompeteProjectConfig> updateCompeteProjectConfig(ProvinceCompeteDto.UpdateCompeteProjectConfig param,String token) { |
|||
//获取比赛类型
|
|||
AtomicInteger type = new AtomicInteger(); |
|||
if(CollectionUtil.isEmpty(param.getUpdateCompeteTaskList())) { |
|||
return new ArrayList<>(); |
|||
} |
|||
param.getUpdateCompeteTaskList().forEach(projectConfig -> { |
|||
//判断时间和时长是否正确
|
|||
if(projectConfig.getStartTime() == 0 || projectConfig.getEndTime() == 0 || projectConfig.getDuration() == 0){ |
|||
return; |
|||
} |
|||
//获取项目
|
|||
CompeteProject project = competeProjectDao.selectByPrimaryKey(projectConfig.getProjectId()); |
|||
if(ObjectUtil.isNotNull(project)){ |
|||
type.set(project.getType()); |
|||
} |
|||
CompeteProjectConfig competeProjectConfig; |
|||
CompeteProjectConfigExample projectConfigExample = new CompeteProjectConfigExample(); |
|||
projectConfigExample.createCriteria().andProjectIdEqualTo(projectConfig.getProjectId()); |
|||
List<CompeteProjectConfig> projectConfigList = projectConfigDao.selectByExample(projectConfigExample); |
|||
log.info("查找项目配置信息:{}",projectConfigList); |
|||
if(CollectionUtil.isNotEmpty(projectConfigList)){ |
|||
//有则修改
|
|||
competeProjectConfig = projectConfigList.get(0); |
|||
competeProjectConfig.setProjectDuration(projectConfig.getDuration()); |
|||
competeProjectConfig.setSiteNum(projectConfig.getSiteNum()); |
|||
competeProjectConfig.setStartTime(projectConfig.getStartTime() == null ? 0 : projectConfig.getStartTime()); |
|||
competeProjectConfig.setEndTime(projectConfig.getEndTime() == null ? 0 : projectConfig.getEndTime()); |
|||
projectConfigDao.updateByPrimaryKeySelective(competeProjectConfig); |
|||
}else { |
|||
//没有则添加
|
|||
competeProjectConfig = new CompeteProjectConfig(); |
|||
competeProjectConfig.setId(snowflake.nextId()); |
|||
competeProjectConfig.setProjectId(projectConfig.getProjectId()); |
|||
competeProjectConfig.setProjectDuration(projectConfig.getDuration()); |
|||
competeProjectConfig.setSiteNum(projectConfig.getSiteNum()); |
|||
competeProjectConfig.setStartTime(projectConfig.getStartTime() == null ? 0 : projectConfig.getStartTime()); |
|||
competeProjectConfig.setEndTime(projectConfig.getEndTime() == null ? 0 : projectConfig.getEndTime()); |
|||
projectConfigDao.insertSelective(competeProjectConfig); |
|||
} |
|||
//生成出场顺序表,存入数据库。在tall内添加对应的任务
|
|||
setStartOrder(competeProjectConfig,param.getProjectId(),param.getTallRoleId(),token); |
|||
}); |
|||
|
|||
return projectConfigDao.queryProjectConfig(type.get()); |
|||
} |
|||
/** |
|||
* 修改配置时生成出场顺序 |
|||
*/ |
|||
public void setStartOrder(CompeteProjectConfig projectConfig, Long tallProjectId,Long tallRoleId,String token) { |
|||
if (ObjectUtil.isNotNull(projectConfig)) { |
|||
//查找项目
|
|||
CompeteProject project = competeProjectDao.selectByPrimaryKey(projectConfig.getProjectId()); |
|||
if (ObjectUtil.isNotNull(project)) { |
|||
//判断是团队还是个人项目
|
|||
if (project.getTeam() == 0) { |
|||
//个人项目查找所有参赛信息
|
|||
CompeteProjectPlayerExample projectPlayerExample = new CompeteProjectPlayerExample(); |
|||
projectPlayerExample.createCriteria().andProjectIdEqualTo(project.getId()); |
|||
List<CompeteProjectPlayer> projectPlayerList = projectPlayerMapper.selectByExample(projectPlayerExample); |
|||
if (CollectionUtil.isNotEmpty(projectPlayerList)) { |
|||
//计算场次
|
|||
int order = (int) Math.ceil(projectPlayerList.size() / projectConfig.getSiteNum()); |
|||
//计算每个场次时间
|
|||
long projectStartTime = projectConfig.getStartTime(); |
|||
long orderTime = 0; |
|||
if(order != 0) { |
|||
orderTime = (long) Math.floor((projectConfig.getEndTime() - projectStartTime) / order); |
|||
}else { |
|||
log.info("场次为0的比赛:{}------{}",project,projectConfig); |
|||
} |
|||
//场次
|
|||
int competeOrder = 1; |
|||
//场地
|
|||
int site = 1; |
|||
for (CompeteProjectPlayer projectPlayer : projectPlayerList) { |
|||
CompeteStartOrderExample startOrderExample = new CompeteStartOrderExample(); |
|||
startOrderExample.createCriteria().andPlayerIdEqualTo(projectPlayer.getId()).andProjectIdEqualTo(project.getId()); |
|||
List<CompeteStartOrder> startOrderList = startOrderMapper.selectByExample(startOrderExample); |
|||
if(CollectionUtil.isNotEmpty(startOrderList)){ |
|||
CompeteStartOrder competeStartOrder = startOrderList.get(0); |
|||
competeStartOrder.setSite((byte) site); |
|||
competeStartOrder.setCompeteOrder((byte) competeOrder); |
|||
if(orderTime > 0 && (competeStartOrder.getStartTime() == projectStartTime || competeStartOrder.getEndTime() == projectStartTime + orderTime)){ |
|||
competeStartOrder.setStartTime(projectStartTime); |
|||
competeStartOrder.setEndTime(projectStartTime + orderTime); |
|||
// 修改tall的任务
|
|||
TallTaskDto.UpdateTaskInfo updateTaskInfo = new TallTaskDto.UpdateTaskInfo(); |
|||
updateTaskInfo.setId(competeStartOrder.getId()); |
|||
updateTaskInfo.setBeginTime(competeStartOrder.getStartTime()); |
|||
updateTaskInfo.setEndTime(competeStartOrder.getEndTime()); |
|||
updateTaskInfo.setToken(token); |
|||
log.info("修改tall的任务信息:{}",updateTaskInfo); |
|||
JsonResponse<TaskVo.NormalTask> normalTaskJsonResponse = tallFeignClient.updataTask(updateTaskInfo); |
|||
log.info("修改tall的任务信息后返回:{}",normalTaskJsonResponse); |
|||
//失败return
|
|||
if (ObjectUtil.isNull(normalTaskJsonResponse) || normalTaskJsonResponse.getCode() != 200){ |
|||
return; |
|||
} |
|||
} |
|||
startOrderMapper.updateByPrimaryKeySelective(competeStartOrder); |
|||
|
|||
}else{ |
|||
//添加tall的任务
|
|||
Long taskId = null; |
|||
TallTaskDto.AddTask addTask = new TallTaskDto.AddTask(); |
|||
addTask.setProjectId(tallProjectId); |
|||
addTask.setTaskName(project.getName() + competeOrder +"-" + site); |
|||
addTask.setBeginTime(projectStartTime); |
|||
addTask.setEndTime(projectStartTime + orderTime); |
|||
addTask.setExecutorId(tallRoleId); |
|||
addTask.setToken(token); |
|||
log.info("在tall内添加任务:{}",addTask); |
|||
JsonResponse<TaskVo.NormalTask> normalTaskJsonResponse = tallFeignClient.saveTask(addTask); |
|||
//异常return
|
|||
log.info("添加任务后返回:{}",normalTaskJsonResponse); |
|||
if (ObjectUtil.isNull(normalTaskJsonResponse) || normalTaskJsonResponse.getCode() != 200) { |
|||
return; |
|||
} |
|||
TaskVo.NormalTask normalTask = normalTaskJsonResponse.getData(); |
|||
if (ObjectUtil.isNotNull(normalTask)) { |
|||
taskId = normalTask.getDetailId(); |
|||
} |
|||
//添加出场顺序信息
|
|||
CompeteStartOrder competeStartOrder = new CompeteStartOrder(); |
|||
competeStartOrder.setId(snowflake.nextId()); |
|||
competeStartOrder.setProjectId(project.getId()); |
|||
competeStartOrder.setPlayerId(projectPlayer.getId()); |
|||
competeStartOrder.setSite((byte) site); |
|||
competeStartOrder.setTeam((byte) 0); |
|||
competeStartOrder.setCompeteOrder((byte) competeOrder); |
|||
// competeStartOrder.setTaskId(taskId);
|
|||
competeStartOrder.setStartTime(projectStartTime); |
|||
competeStartOrder.setEndTime(projectStartTime + orderTime); |
|||
startOrderMapper.insertSelective(competeStartOrder); |
|||
} |
|||
site++; |
|||
if(site > projectConfig.getSiteNum()){ |
|||
site = 1; |
|||
competeOrder++; |
|||
projectStartTime += orderTime; |
|||
} |
|||
} |
|||
} |
|||
} else { |
|||
//团体项目查找所有参赛队伍
|
|||
CompeteTeamExample teamExample = new CompeteTeamExample(); |
|||
teamExample.createCriteria().andProjectIdEqualTo(project.getId()); |
|||
List<CompeteTeam> teamList = competeTeamDao.selectByExample(teamExample); |
|||
if(CollectionUtil.isNotEmpty(teamList)){ |
|||
//计算场次
|
|||
int order = (int) Math.ceil(teamList.size() / projectConfig.getSiteNum()); |
|||
//计算每个场次时间
|
|||
long projectStartTime = projectConfig.getStartTime() + Constant.UPLOAD_VIDEO_TIME; |
|||
long orderTime = 0; |
|||
if(order != 0) { |
|||
orderTime = (long) Math.floor((projectConfig.getEndTime() - projectStartTime) / order); |
|||
} |
|||
//场次
|
|||
int competeOrder = 1; |
|||
//场地
|
|||
int site = 1; |
|||
for (CompeteTeam competeTeam : teamList) { |
|||
CompeteStartOrderExample startOrderExample = new CompeteStartOrderExample(); |
|||
startOrderExample.createCriteria().andPlayerIdEqualTo(competeTeam.getId()).andProjectIdEqualTo(project.getId()); |
|||
List<CompeteStartOrder> startOrderList = startOrderMapper.selectByExample(startOrderExample); |
|||
if(CollectionUtil.isNotEmpty(startOrderList)){ |
|||
CompeteStartOrder competeStartOrder = startOrderList.get(0); |
|||
competeStartOrder.setSite((byte) site); |
|||
competeStartOrder.setCompeteOrder((byte) competeOrder); |
|||
if(orderTime > 0 && (competeStartOrder.getStartTime() == projectStartTime || competeStartOrder.getEndTime() == projectStartTime + orderTime)){ |
|||
competeStartOrder.setStartTime(projectStartTime); |
|||
competeStartOrder.setEndTime(projectStartTime + orderTime); |
|||
//修改tall的任务
|
|||
TallTaskDto.UpdateTaskInfo updateTaskInfo = new TallTaskDto.UpdateTaskInfo(); |
|||
updateTaskInfo.setId(competeStartOrder.getId()); |
|||
updateTaskInfo.setBeginTime(competeStartOrder.getId()); |
|||
updateTaskInfo.setBeginTime(competeStartOrder.getEndTime()); |
|||
updateTaskInfo.setToken(token); |
|||
log.info("修改tall的任务信息:{}",updateTaskInfo); |
|||
JsonResponse<TaskVo.NormalTask> normalTaskJsonResponse = tallFeignClient.updataTask(updateTaskInfo); |
|||
log.info("修改tall的任务信息后返回:{}",normalTaskJsonResponse); |
|||
//失败return
|
|||
if (ObjectUtil.isNull(normalTaskJsonResponse) || normalTaskJsonResponse.getCode() != 200){ |
|||
return; |
|||
} |
|||
} |
|||
startOrderMapper.updateByPrimaryKeySelective(competeStartOrder); |
|||
|
|||
}else{ |
|||
//添加tall的任务
|
|||
Long taskId = null; |
|||
TallTaskDto.AddTask addTask = new TallTaskDto.AddTask(); |
|||
addTask.setProjectId(tallProjectId); |
|||
addTask.setTaskName(project.getName() + competeOrder +"-" + site); |
|||
addTask.setBeginTime(projectStartTime); |
|||
addTask.setEndTime(projectStartTime + orderTime); |
|||
addTask.setExecutorId(tallRoleId); |
|||
addTask.setToken(token); |
|||
log.info("在tall内添加任务:{}",addTask); |
|||
JsonResponse<TaskVo.NormalTask> normalTaskJsonResponse = tallFeignClient.saveTask(addTask); |
|||
log.info("添加任务后返回:{}",normalTaskJsonResponse); |
|||
//异常return
|
|||
log.info("添加任务后返回:{}",normalTaskJsonResponse); |
|||
if (ObjectUtil.isNull(normalTaskJsonResponse) || normalTaskJsonResponse.getCode() != 200) { |
|||
return; |
|||
} |
|||
TaskVo.NormalTask normalTask = normalTaskJsonResponse.getData(); |
|||
if (ObjectUtil.isNotNull(normalTask)) { |
|||
taskId = normalTask.getDetailId(); |
|||
} |
|||
//添加出场顺序信息
|
|||
CompeteStartOrder competeStartOrder = new CompeteStartOrder(); |
|||
competeStartOrder.setId(snowflake.nextId()); |
|||
competeStartOrder.setProjectId(project.getId()); |
|||
competeStartOrder.setPlayerId(competeTeam.getId()); |
|||
competeStartOrder.setSite((byte) site); |
|||
competeStartOrder.setTeam((byte) 0); |
|||
competeStartOrder.setCompeteOrder((byte) competeOrder); |
|||
// competeStartOrder.setTaskId(taskId);
|
|||
competeStartOrder.setStartTime(projectStartTime); |
|||
competeStartOrder.setEndTime(projectStartTime + orderTime); |
|||
startOrderMapper.insertSelective(competeStartOrder); |
|||
} |
|||
site++; |
|||
if(site > projectConfig.getSiteNum()){ |
|||
site = 1; |
|||
competeOrder++; |
|||
projectStartTime += orderTime; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 手机上查看选手出场顺序 |
|||
*/ |
|||
@Override |
|||
public List<ProvinceCompeteVo.StartOrderByCompanyAndProject> queryStartOrderByCompany(ProvinceCompeteDto.QueryStartOrderByCompany param) { |
|||
return projectConfigDao.queryStartOrderByCompany(param.getCompanyId(),param.getProjectId(),param.getCompeteTimeId()); |
|||
} |
|||
|
|||
/** |
|||
* 查看裁判分配信息 |
|||
*/ |
|||
@Override |
|||
public List<ProvinceCompeteVo.QueryJudgment> queryJudgment(ProvinceCompeteDto.QueryJudgment param) { |
|||
List<ProvinceCompeteVo.QueryJudgment> queryJudgmentList = competeJudgmentDao.queryJudgment(param.getCompeteTimeId(),param.getProjectId()); |
|||
if(CollectionUtil.isNotEmpty(queryJudgmentList)){ |
|||
queryJudgmentList.forEach(projectJudgment -> { |
|||
//裁判数量
|
|||
int count = projectJudgment.getProjectType() == 0 ? 3 : 7; |
|||
for (int i = 0; i < projectJudgment.getSiteNums(); i++) { |
|||
if(i < projectJudgment.getSiteList().size()){ |
|||
ProvinceCompeteVo.ProjectSite siteJudgment = projectJudgment.getSiteList().get(i); |
|||
if (CollectionUtil.isEmpty(siteJudgment.getJudgmentList())) { |
|||
siteJudgment.setJudgmentList(new ArrayList<>()); |
|||
} |
|||
int a = siteJudgment.getJudgmentList().size(); |
|||
for (int j = 0; j < count - a; j++) { |
|||
ProvinceCompeteVo.SiteJudgment siteJudgment1 = new ProvinceCompeteVo.SiteJudgment(); |
|||
siteJudgment1.setJudgmentNum(a + j); |
|||
siteJudgment.getJudgmentList().add(siteJudgment1); |
|||
} |
|||
}else { |
|||
int a = projectJudgment.getSiteList().size(); |
|||
for (int j = 0; j < count - a; j++) { |
|||
ProvinceCompeteVo.ProjectSite siteJudgment = new ProvinceCompeteVo.ProjectSite(); |
|||
siteJudgment.setSiteNum(a + j + 1); |
|||
projectJudgment.getSiteList().add(siteJudgment); |
|||
int b = siteJudgment.getJudgmentList().size(); |
|||
for (int x = 0; x < count - b; x++) { |
|||
ProvinceCompeteVo.SiteJudgment siteJudgment1 = new ProvinceCompeteVo.SiteJudgment(); |
|||
siteJudgment1.setJudgmentNum(b + x); |
|||
siteJudgment.getJudgmentList().add(siteJudgment1); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}); |
|||
} |
|||
return queryJudgmentList; |
|||
} |
|||
|
|||
/** |
|||
* 分配裁判 |
|||
*/ |
|||
@Override |
|||
public List<ProvinceCompeteVo.QueryJudgment> allocationJudgment(ProvinceCompeteDto.AllocationJudgmentAndTall param,String token) { |
|||
//查找项目
|
|||
if(CollectionUtil.isNotEmpty(param.getAllocationJudgmentList())){ |
|||
for(ProvinceCompeteDto.AllocationJudgment allocationJudgment : param.getAllocationJudgmentList()) { |
|||
CompeteProject project = competeProjectDao.selectByPrimaryKey(allocationJudgment.getProjectId()); |
|||
if (ObjectUtil.isNotNull(project)) { |
|||
if (CollectionUtil.isNotEmpty(allocationJudgment.getSiteJudgmentList())) { |
|||
allocationJudgment.getSiteJudgmentList().forEach(siteJudgment -> { |
|||
if (ObjectUtil.isNotNull(siteJudgment)) { |
|||
siteJudgment.getJudgmentInfoList().forEach(judgmentInfo -> { |
|||
saveJudgmentAndTask(param.getCompeteTimeId(),param.getTallProjectId(), project, siteJudgment, judgmentInfo,token); |
|||
}); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return competeJudgmentDao.queryJudgment(param.getCompeteTimeId(),null); |
|||
} |
|||
|
|||
/** |
|||
* 添加裁判信息和tall内的角色成员任务 |
|||
*/ |
|||
private void saveJudgmentAndTask(Long competeTimeId,Long tallProjectId,CompeteProject project |
|||
, ProvinceCompeteDto.SiteJudgment siteJudgment, ProvinceCompeteDto.JudgmentInfo judgmentInfo,String token) { |
|||
// TODO 查找该手机号在此项目之前的裁判信息,修改,同时修改tall内的成员角色信息
|
|||
//添加裁判信息
|
|||
//查找该项目下的该场地的裁判信息
|
|||
CompeteJudgment competeJudgment; |
|||
CompeteJudgmentExample competeJudgmentExample = new CompeteJudgmentExample(); |
|||
competeJudgmentExample.createCriteria().andProjectIdEqualTo(project.getId()).andCompeteTimeIdEqualTo(competeTimeId) |
|||
.andSiteEqualTo(siteJudgment.getSite()).andChiefJudgmentEqualTo((byte) judgmentInfo.getJudgmentNum()); |
|||
List<CompeteJudgment> competeJudgmentList = competeJudgmentDao.selectByExample(competeJudgmentExample); |
|||
if(CollectionUtil.isNotEmpty(competeJudgmentList)){ |
|||
competeJudgment = competeJudgmentList.get(0); |
|||
competeJudgment.setName(judgmentInfo.getJudgmentName()); |
|||
competeJudgment.setPhone(judgmentInfo.getJudgmentPhone()); |
|||
competeJudgment.setRemark(judgmentInfo.getRemark()); |
|||
competeJudgment.setCompeteTimeId(competeTimeId); |
|||
competeJudgment.setProjectId(project.getId()); |
|||
competeJudgment.setSite(siteJudgment.getSite()); |
|||
competeJudgment.setChiefJudgment((byte) judgmentInfo.getJudgmentNum()); |
|||
competeJudgmentDao.updateByPrimaryKeySelective(competeJudgment); |
|||
//修改角色
|
|||
//修改成员
|
|||
//修改任务
|
|||
}else { |
|||
competeJudgment = new CompeteJudgment(); |
|||
competeJudgment.setId(snowflake.nextId()); |
|||
competeJudgment.setName(judgmentInfo.getJudgmentName()); |
|||
competeJudgment.setPhone(judgmentInfo.getJudgmentPhone()); |
|||
competeJudgment.setRemark(judgmentInfo.getRemark()); |
|||
competeJudgment.setCompeteTimeId(competeTimeId); |
|||
competeJudgment.setProjectId(project.getId()); |
|||
competeJudgment.setSite(siteJudgment.getSite()); |
|||
competeJudgment.setChiefJudgment((byte) judgmentInfo.getJudgmentNum()); |
|||
competeJudgmentDao.insertSelective(competeJudgment); |
|||
|
|||
|
|||
//添加角色
|
|||
MemberRoleDto.SaveRole saveRole = new MemberRoleDto.SaveRole(); |
|||
saveRole.setProjectId(tallProjectId); |
|||
String jdgmentNum = ""; |
|||
if (judgmentInfo.getJudgmentNum() == 0) { |
|||
jdgmentNum = "主裁判"; |
|||
} else { |
|||
jdgmentNum = "裁判" + judgmentInfo.getJudgmentNum(); |
|||
} |
|||
saveRole.setRoleName(project.getName() + "-场地" + siteJudgment.getSite() + "-" + jdgmentNum); |
|||
Long roleId = null; |
|||
saveRole.setToken(token); |
|||
log.info("在tall内添加角色:{}", saveRole); |
|||
JsonResponse<MemberVo.RoleInfo> roleJsonResponse = tallFeignClient.saveRole(saveRole); |
|||
log.info("添加角色后返回:{}", roleJsonResponse); |
|||
if (ObjectUtil.isNotNull(roleJsonResponse)) { |
|||
MemberVo.RoleInfo roleInfo = roleJsonResponse.getData(); |
|||
if (ObjectUtil.isNotNull(roleInfo)) { |
|||
roleId = roleInfo.getRoleId(); |
|||
} |
|||
} |
|||
//添加成员
|
|||
MemberRoleDto.SaveMember saveMember = new MemberRoleDto.SaveMember(); |
|||
saveMember.setMemberName(judgmentInfo.getJudgmentName()); |
|||
saveMember.setProjectId(tallProjectId); |
|||
saveMember.setPhone(judgmentInfo.getJudgmentPhone()); |
|||
saveMember.setRoleId(Arrays.asList(roleId)); |
|||
saveMember.setToken(token); |
|||
log.info("在tall内添加成员:{}", saveMember); |
|||
JsonResponse<MemberVo.Member> memberJsonResponse = tallFeignClient.saveMember(saveMember); |
|||
log.info("添加成员后返回:{}", memberJsonResponse); |
|||
//如果成员已存在,查询成员信息然后添加至角色内
|
|||
Long memberId = null; |
|||
if (ObjectUtil.isNotNull(memberJsonResponse)) { |
|||
//code等于21代表成员已存在
|
|||
if(memberJsonResponse.getCode() == 21){ |
|||
//查询该手机号在项目内的成员的id
|
|||
MemberRoleDto.GetMemberByPhone getMemberByPhone = new MemberRoleDto.GetMemberByPhone(); |
|||
getMemberByPhone.setProjectId(tallProjectId); |
|||
getMemberByPhone.setPhone(judgmentInfo.getJudgmentPhone()); |
|||
getMemberByPhone.setToken(token); |
|||
JsonResponse<MemberVo.MemberList> memberListJsonResponse = tallFeignClient.queryMemberByPhone(getMemberByPhone); |
|||
if (ObjectUtil.isNotNull(memberListJsonResponse)) { |
|||
MemberVo.MemberList memberList = memberListJsonResponse.getData(); |
|||
if (ObjectUtil.isNotNull(memberList)) { |
|||
memberId = memberList.getMemberId(); |
|||
} |
|||
} |
|||
//将该成员添加至角色下
|
|||
if(ObjectUtil.isNotNull(roleId) && ObjectUtil.isNotNull(memberId)){ |
|||
MemberRoleDto.SaveMemberInRole saveMemberInRole = new MemberRoleDto.SaveMemberInRole(); |
|||
saveMemberInRole.setRoleId(roleId); |
|||
saveMemberInRole.setMemberId(memberId); |
|||
saveMemberInRole.setToken(token); |
|||
tallFeignClient.saveMemberInRole(saveMemberInRole); |
|||
} |
|||
} |
|||
} |
|||
//添加任务
|
|||
//查找场次信息表
|
|||
CompeteStartOrderExample startOrderExample = new CompeteStartOrderExample(); |
|||
startOrderExample.createCriteria().andProjectIdEqualTo(project.getId()) |
|||
.andSiteEqualTo((byte) siteJudgment.getSite()); |
|||
List<CompeteStartOrder> startOrderList = startOrderMapper.selectByExample(startOrderExample); |
|||
if (CollectionUtil.isNotEmpty(startOrderList)) { |
|||
for (CompeteStartOrder startOrder : startOrderList) { |
|||
TallTaskDto.AddTask addTask = new TallTaskDto.AddTask(); |
|||
addTask.setProjectId(tallProjectId); |
|||
addTask.setTaskName(project.getName() + startOrder.getCompeteOrder() + "-" |
|||
+ startOrder.getSite() + "-" + jdgmentNum); |
|||
addTask.setBeginTime(startOrder.getStartTime()); |
|||
addTask.setEndTime(startOrder.getEndTime()); |
|||
addTask.setExecutorId(roleId); |
|||
addTask.setParentTaskId(startOrder.getTaskId()); |
|||
addTask.setToken(token); |
|||
log.info("在tall内添加任务:{}", addTask); |
|||
JsonResponse<TaskVo.NormalTask> normalTaskJsonResponse = tallFeignClient.saveTask(addTask); |
|||
log.info("添加任务后返回:{}", normalTaskJsonResponse); |
|||
if (ObjectUtil.isNotNull(normalTaskJsonResponse)) { |
|||
TaskVo.NormalTask normalTask = normalTaskJsonResponse.getData(); |
|||
if (ObjectUtil.isNotNull(normalTask)) { |
|||
//修改任务插件配置信息
|
|||
TallTaskDto.UpdatePluginConfig updatePluginConfig = new TallTaskDto.UpdatePluginConfig(); |
|||
updatePluginConfig.setWebPath("/home/osct/video-score"); |
|||
updatePluginConfig.setTaskId(normalTask.getDetailId()); |
|||
updatePluginConfig.setToken(token); |
|||
log.info("修改tall内任务插件配置:{}", updatePluginConfig); |
|||
JsonResponse<TaskVo.PluginVo> pluginVoJsonResponse = tallFeignClient.updatePluginConfig(updatePluginConfig); |
|||
log.info("修改任务插件配置后返回:{}", pluginVoJsonResponse); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 通过tall查看裁判和比赛项目的信息 |
|||
*/ |
|||
@Override |
|||
public ProvinceCompeteVo.QueryProjectByTall queryProjectByTall(ProvinceCompeteDto.ProjectByTall param) { |
|||
//查询比赛项目信息
|
|||
ProvinceCompeteVo.QueryProjectByTall queryProjectByTall = projectConfigDao.queryProjectByTaskDetailId(param.getTaskDetailId()); |
|||
log.info("根据taskDetailId查询到的场次和项目信息:{}",queryProjectByTall); |
|||
if(ObjectUtil.isNull(queryProjectByTall)){ |
|||
queryProjectByTall = new ProvinceCompeteVo.QueryProjectByTall(); |
|||
} |
|||
//查询裁判信息
|
|||
CompeteJudgment judgment = new CompeteJudgment(); |
|||
CompeteJudgmentExample judgmentExample = new CompeteJudgmentExample(); |
|||
judgmentExample.createCriteria().andRoleIdEqualTo(param.getRoleId()); |
|||
List<CompeteJudgment> judgmentList = competeJudgmentDao.selectByExample(judgmentExample); |
|||
if(CollectionUtil.isNotEmpty(judgmentList)){ |
|||
judgment = judgmentList.get(0); |
|||
log.info("根据roleId查询到的裁判信息:{}",judgment); |
|||
queryProjectByTall.setJudgmentId(judgment.getId()); |
|||
queryProjectByTall.setJudgmentNum(judgment.getChiefJudgment()); |
|||
} |
|||
|
|||
return queryProjectByTall; |
|||
} |
|||
} |
@ -0,0 +1,135 @@ |
|||
package com.ccsens.mt.service; |
|||
|
|||
import cn.hutool.core.lang.Snowflake; |
|||
import com.ccsens.mt.bean.dto.VideoDto; |
|||
import com.ccsens.mt.bean.po.*; |
|||
import com.ccsens.mt.bean.vo.VideoProjectVo; |
|||
import com.ccsens.mt.persist.dao.CompeteTeamDao; |
|||
import com.ccsens.mt.persist.dao.CompeteTimeDao; |
|||
import com.ccsens.mt.persist.dao.CompeteVideoDao; |
|||
import com.ccsens.mt.persist.mapper.CompeteCompanyMapper; |
|||
import com.ccsens.mt.persist.mapper.CompetePlayerLookMapper; |
|||
import com.ccsens.mt.persist.mapper.CompeteProjectMapper; |
|||
import com.ccsens.mt.persist.mapper.CompeteVideoMapper; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Propagation; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 10071 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class CompeteVedioService implements ICompeteVedioService{ |
|||
|
|||
@Resource |
|||
private Snowflake snowflake; |
|||
@Resource |
|||
private CompetePlayerLookMapper competePlayerLookMapper; |
|||
@Resource |
|||
private CompeteVideoMapper competeVideoMapper; |
|||
|
|||
@Resource |
|||
private CompeteProjectMapper competeProjectMapper; |
|||
@Resource |
|||
private CompeteCompanyMapper competeCompanyMapper; |
|||
@Resource |
|||
private CompeteVideoDao competeVideoDao; |
|||
@Resource |
|||
private CompeteTimeDao competeTimeDao; |
|||
|
|||
@Override |
|||
public void insertSignVideo(Long companyId) { |
|||
CompetePlayerLook competePlayerLook=new CompetePlayerLook(); |
|||
competePlayerLook.setCompanyId(companyId); |
|||
competePlayerLook.setId(snowflake.nextId()); |
|||
competePlayerLook.setLookStatus((byte) 1); |
|||
competePlayerLook.setLookTime(System.currentTimeMillis()); |
|||
competePlayerLookMapper.insertSelective(competePlayerLook); |
|||
|
|||
} |
|||
|
|||
@Override |
|||
public boolean selectSignVideo(Long companyId) { |
|||
CompetePlayerLookExample competePlayerLookExample=new CompetePlayerLookExample(); |
|||
competePlayerLookExample.createCriteria().andCompanyIdEqualTo(companyId); |
|||
List<CompetePlayerLook> competePlayerLooks = competePlayerLookMapper.selectByExample(competePlayerLookExample); |
|||
return competePlayerLooks.size()==0? false:true; |
|||
} |
|||
|
|||
@Override |
|||
public String uploadVideoPath(VideoDto.UploadVdeo param) { |
|||
CompeteVideo competeVideo=new CompeteVideo(); |
|||
competeVideo.setId(snowflake.nextId()); |
|||
competeVideo.setCompeteTimeId(param.getCompeteTimeId()); |
|||
competeVideo.setProjectId(param.getCompeteProjectId()); |
|||
competeVideo.setPlayerId(param.getPlayerOrTeamId()); |
|||
competeVideo.setVideoUrl(param.getVideoPath()); |
|||
competeVideo.setRecStatus((byte) 0); |
|||
long startTime = System.currentTimeMillis(); |
|||
competeVideo.setUploadTime(startTime); |
|||
competeVideoMapper.insert(competeVideo); |
|||
return param.getVideoPath(); |
|||
} |
|||
|
|||
@Override |
|||
public List<VideoProjectVo.GetTwoProject> selectTwoProject(QueryDto<VideoDto.GetTwoProject> params) { |
|||
List<VideoProjectVo.GetTwoProject> getTwoProjects = competeTimeDao.selectTwoProject(params.getParam().getTeamId()); |
|||
// CompeteTime competeTime = competeTimeDao.selectByPrimaryKey(params.getParam().getTeamId());
|
|||
// CompeteProjectExample competeCompanyExample=new CompeteProjectExample();
|
|||
// competeCompanyExample.createCriteria().andTypeEqualTo(competeTime.getType()).andLevelEqualTo((byte) 2);
|
|||
// List<CompeteProject> list=competeProjectMapper.selectByExample(competeCompanyExample);
|
|||
// List<VideoProjectVo.GetTwoProject> list1=new ArrayList<>();
|
|||
// list.forEach(mes->{
|
|||
// VideoProjectVo.GetTwoProject getTwoProject=new VideoProjectVo.GetTwoProject();
|
|||
// getTwoProject.setProjectId(mes.getId());
|
|||
// getTwoProject.setProjectName(mes.getName());
|
|||
// list1.add(getTwoProject);
|
|||
// });
|
|||
return getTwoProjects; |
|||
} |
|||
|
|||
@Override |
|||
public List<VideoProjectVo.GetAllCompany> selectAllCompany(QueryDto<VideoDto.GetAllCompany> params) { |
|||
CompeteCompanyExample competeCompanyExample=new CompeteCompanyExample(); |
|||
competeCompanyExample.createCriteria().andCompeteTimeIdEqualTo(params.getParam().getTeamId()); |
|||
List<CompeteCompany> list= competeCompanyMapper.selectByExample(competeCompanyExample); |
|||
List<VideoProjectVo.GetAllCompany> list1=new ArrayList<>(); |
|||
list.forEach(mes->{ |
|||
VideoProjectVo.GetAllCompany getAllCompany=new VideoProjectVo.GetAllCompany(); |
|||
getAllCompany.setCompanyId(mes.getId()); |
|||
getAllCompany.setCompanyName(mes.getName()); |
|||
list1.add(getAllCompany); |
|||
}); |
|||
return list1; |
|||
} |
|||
/** |
|||
* 查看公司的签到状态 |
|||
* @param params |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public List<VideoProjectVo.PeoSignStatu> selectCompanySignStatus(QueryDto<VideoDto.GetSignStatus> params) { |
|||
return competeVideoDao.selectCompanySignStatus(params.getParam()); |
|||
} |
|||
/** |
|||
* 查看教练的签到状态 |
|||
* @param params |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public List<VideoProjectVo.CoachSignStatu> selectCoachSignStatus(QueryDto<VideoDto.GetSignStatus> params) { |
|||
log.info(params.getParam().toString()); |
|||
return competeVideoDao.selectCoachSignStatus(params.getParam()); |
|||
} |
|||
|
|||
|
|||
|
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,55 @@ |
|||
package com.ccsens.mt.service; |
|||
|
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.dto.ProvinceCompeteDto; |
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.bean.vo.TableVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface ICompeteTaskService { |
|||
/** |
|||
* 修改日程安排 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<TableVo.CompeteProjectConfig> updateCompeteProjectConfig(ProvinceCompeteDto.UpdateCompeteProjectConfig param,String token); |
|||
|
|||
/** |
|||
* 查找所有项目的日程配置 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<TableVo.CompeteProjectConfig> queryCompeteConfig(CompeteDto.CompeteTime param); |
|||
|
|||
/** |
|||
* 查找该单位下参加该项目的选手的出场顺序信息 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<ProvinceCompeteVo.StartOrderByCompanyAndProject> queryStartOrderByCompany(ProvinceCompeteDto.QueryStartOrderByCompany param); |
|||
|
|||
/** |
|||
* 查看所有项目下的裁判分配信息 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<ProvinceCompeteVo.QueryJudgment> queryJudgment(ProvinceCompeteDto.QueryJudgment param); |
|||
|
|||
/** |
|||
* 为项目分配裁判 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<ProvinceCompeteVo.QueryJudgment> allocationJudgment(ProvinceCompeteDto.AllocationJudgmentAndTall param,String token); |
|||
|
|||
/** |
|||
* 通过tall的任务id和角色id查询裁判和比赛项目的信息 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
ProvinceCompeteVo.QueryProjectByTall queryProjectByTall(ProvinceCompeteDto.ProjectByTall param); |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.ccsens.mt.service; |
|||
|
|||
import com.ccsens.mt.bean.dto.VideoDto; |
|||
import com.ccsens.mt.bean.po.CompetePlayerLook; |
|||
import com.ccsens.mt.bean.vo.VideoProjectVo; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface ICompeteVedioService { |
|||
/** |
|||
* |
|||
* 添加用户观看开幕式视频记录(签到用) |
|||
* @param companyId 单位id |
|||
*/ |
|||
void insertSignVideo(Long companyId); |
|||
|
|||
/** |
|||
* 查看用户观看视频记录(签到用) |
|||
* @param companyId |
|||
* |
|||
*/ |
|||
boolean selectSignVideo(Long companyId); |
|||
|
|||
String uploadVideoPath(VideoDto.UploadVdeo param); |
|||
|
|||
List<VideoProjectVo.GetTwoProject> selectTwoProject(QueryDto<VideoDto.GetTwoProject> params); |
|||
|
|||
List<VideoProjectVo.GetAllCompany> selectAllCompany(QueryDto<VideoDto.GetAllCompany> params); |
|||
|
|||
List<VideoProjectVo.PeoSignStatu> selectCompanySignStatus(QueryDto<VideoDto.GetSignStatus> params); |
|||
|
|||
List<VideoProjectVo.CoachSignStatu> selectCoachSignStatus(QueryDto<VideoDto.GetSignStatus> params); |
|||
} |
@ -0,0 +1,5 @@ |
|||
package com.ccsens.mt.service; |
|||
|
|||
public interface IKCPlayerService { |
|||
String getSignature(Long id); |
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.ccsens.mt.service; |
|||
|
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import com.ccsens.mt.util.Constant; |
|||
import com.ccsens.util.CodeEnum; |
|||
import com.ccsens.util.KCPlayerSignature; |
|||
import com.ccsens.util.RedisUtil; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Propagation; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.Random; |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class KCPlayerService implements IKCPlayerService{ |
|||
@Resource |
|||
private RedisUtil redisUtil; |
|||
|
|||
/** |
|||
* 获取云点播签名 |
|||
* @return 返回签名 |
|||
* @param id |
|||
*/ |
|||
@Override |
|||
public String getSignature(Long id) { |
|||
String signature; |
|||
//查询redis
|
|||
Object o = redisUtil.get(Constant.Redis.KC_PLAYER_SIGNATURE + id); |
|||
if(ObjectUtil.isNotNull(o)){ |
|||
return (String) o; |
|||
} |
|||
|
|||
KCPlayerSignature sign = new KCPlayerSignature(); |
|||
sign.setCurrentTime(System.currentTimeMillis() / 1000); |
|||
sign.setRandom(new Random().nextInt(java.lang.Integer.MAX_VALUE)); |
|||
// 签名有效期:2天
|
|||
sign.setSignValidDuration(3600 * 24 * 2); |
|||
try { |
|||
signature = sign.getUploadSignature(id); |
|||
log.info("获取云点播签名成功:{}",signature); |
|||
//存入redis
|
|||
redisUtil.set(Constant.Redis.KC_PLAYER_SIGNATURE + id,signature,3600 * 24); |
|||
} catch (Exception e) { |
|||
log.error("获取云点播签名失败",e); |
|||
throw new BaseException(CodeEnum.SYS_ERROR); |
|||
|
|||
} |
|||
return signature; |
|||
} |
|||
} |
@ -1,4 +1,5 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: common, util-test |
|||
active: dev |
|||
include: common, util-dev |
|||
|
|||
|
@ -0,0 +1,52 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.dao.CompeteJudgmentDao"> |
|||
|
|||
<resultMap id="queryJudgment" type="com.ccsens.mt.bean.vo.ProvinceCompeteVo$QueryJudgment"> |
|||
<id column="projectId" property="projectId"/> |
|||
<result column="projectName" property="projectName"/> |
|||
<result column="projectType" property="projectType"/> |
|||
<result column="startTime" property="startTime"/> |
|||
<result column="endTime" property="endTime"/> |
|||
<result column="siteNums" property="siteNums"/> |
|||
<collection property="siteList" ofType="com.ccsens.mt.bean.vo.ProvinceCompeteVo$ProjectSite"> |
|||
<id column="siteNum" property="siteNum"/> |
|||
<collection property="judgmentList" ofType="com.ccsens.mt.bean.vo.ProvinceCompeteVo$SiteJudgment"> |
|||
<id column="judgmentNum" property="judgmentNum"/> |
|||
<result column="judgmentName" property="judgmentName"/> |
|||
<result column="judgmentPhone" property="judgmentPhone"/> |
|||
<result column="remark" property="remark"/> |
|||
</collection> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<select id="queryJudgment" resultMap="queryJudgment"> |
|||
SELECT |
|||
p.id as projectId, |
|||
p.`name` as projectName, |
|||
pc.start_time as startTime, |
|||
pc.end_time as endTime, |
|||
pc.site_num AS siteNums, |
|||
j.site as siteNum, |
|||
j.chief_judgment as judgmentNum, |
|||
j.`name` as judgmentName, |
|||
j.phone as judgmentPhone, |
|||
j.remark as remark, |
|||
if(p.parent_id = 2001,0,1) as projectType |
|||
FROM |
|||
t_compete_project p LEFT JOIN t_compete_time ct on p.type = ct.type |
|||
LEFT JOIN t_compete_project_config pc on p.id = pc.project_id |
|||
LEFT JOIN t_compete_judgment j on j.project_id = p.id and (j.rec_status = 0 or j.rec_status IS NULL) |
|||
WHERE |
|||
ct.id = #{competeTimeId} |
|||
<if test="projectId != null"> |
|||
and p.id = #{projectId} |
|||
</if> |
|||
and p.`level` = 2 |
|||
and p.certificate = 0 |
|||
and p.rec_status = 0 |
|||
and pc.rec_status = 0 |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,407 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.dao.CompeteProjectConfigDao"> |
|||
<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="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" /> |
|||
</resultMap> |
|||
|
|||
<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" /> |
|||
<collection property="startOrderList" ofType="com.ccsens.mt.bean.vo.ProvinceCompeteVo$StartOrder"> |
|||
<id column="startOrderId" property="startOrderId" /> |
|||
<result column="competeOrder" property="competeOrder" /> |
|||
<result column="site" property="site" /> |
|||
<result column="team" property="team" /> |
|||
<result column="groupName" property="groupName" /> |
|||
<result column="videoUrl" property="videoUrl" /> |
|||
<result column="playerOrTeamId" property="playerOrTeamId" /> |
|||
<collection property="playerNameList" ofType="String"> |
|||
<result column="playerName"/> |
|||
</collection> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<resultMap id="qwe" type="com.ccsens.mt.bean.vo.TableVo$SchedulePlan"> |
|||
<id column="startDate" property="date" /> |
|||
<collection property="schedulePlanDetailListMorning" ofType="com.ccsens.mt.bean.vo.TableVo$SchedulePlanDetail"> |
|||
<id column="projectName" property="projectName" /> |
|||
<result column="start_time" property="startTime" /> |
|||
<result column="endTime" property="endTime" /> |
|||
</collection> |
|||
<collection property="schedulePlanDetailListAfternoon" ofType="com.ccsens.mt.bean.vo.TableVo$SchedulePlanDetail"> |
|||
<id column="projectNameP" property="projectName" /> |
|||
<result column="start_timeP" property="startTime" /> |
|||
<result column="endTimeP" property="endTime" /> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<select id="selectByProjectId" resultMap="BaseResultMap" parameterType="java.util.Map"> |
|||
select * from t_compete_project_config |
|||
where project_id = #{projectId} |
|||
and rec_status = 0 |
|||
</select> |
|||
<select id="selectDetail" resultMap="qwe" parameterType="java.util.Map"> |
|||
SELECT |
|||
FROM_UNIXTIME(start_time/1000,'%y-%m-%d') as startDate, |
|||
if(a.aa = 1,p.`name`,null) as projectName, |
|||
if(a.aa = 0,p.`name`,null) as projectNamep, |
|||
if(a.aa = 1,c.start_time,null) as start_time, |
|||
if(a.aa = 0,c.start_time,null) as start_timeP, |
|||
if(a.aa = 1,c.end_time,null) as endTime, |
|||
if(a.aa = 0,c.end_time,null) as endTimeP |
|||
|
|||
FROM |
|||
`t_compete_project_config` c |
|||
LEFT JOIN t_compete_project p on c.project_id = p.id |
|||
LEFT JOIN ( |
|||
SELECT |
|||
id, |
|||
if(FROM_UNIXTIME(start_time/1000,'%h') <= 12,1 ,0) as aa |
|||
FROM |
|||
t_compete_project_config |
|||
)a on c.id = a.id |
|||
where c.project_id = p.id |
|||
ORDER BY c.start_time |
|||
</select> |
|||
<select id="selectStartTime" resultType="com.ccsens.mt.bean.po.CompeteProjectConfig" parameterType="java.util.Map"> |
|||
SELECT |
|||
project_id |
|||
FROM t_compete_project_config |
|||
where project_id = #{projectId} |
|||
</select> |
|||
|
|||
<select id="selectPeople" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcpro.id as projectId, |
|||
tcpro.name as competeProject, |
|||
tcg.group_name as competeGroup, |
|||
tcc.`name` as joinTeam, |
|||
tcp.`name` as name, |
|||
tcp.gender as gender, |
|||
tcp.id_card as idCard, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as idCardPromiseFront, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as idCardPromiseBack, |
|||
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as picture, |
|||
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as studentPromise, |
|||
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as bodyTest, |
|||
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as bodyProtect |
|||
from |
|||
t_compete_project tcpro LEFT JOIN t_compete_team tct on tcpro.id = tct.project_id |
|||
LEFT JOIN t_compete_team_member tctm on tct.id = tctm.compete_team_id |
|||
LEFT JOIN t_compete_player tcp on tcp.id = tctm.player_id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|||
WHERE |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<if test="projectId != null"> |
|||
tcpro.id = #{projectId} |
|||
</if> |
|||
<if test="groupId != null"> |
|||
and tcg.id = #{groupId} |
|||
</if> |
|||
<if test="companyId != null"> |
|||
and tcc.id = #{companyId} |
|||
</if> |
|||
<if test="name != null and name != ''"> |
|||
and tcp.name like concat('%',#{name, jdbcType=VARCHAR},'%') |
|||
</if> |
|||
<if test="idCard != null and idCard != ''"> |
|||
and tcp.id_card = #{idCard} |
|||
</if> |
|||
and tcpro.type=0 |
|||
and tcpro.`level` =2 |
|||
and tcpro.team=1 |
|||
and tcpro.rec_status = 0 |
|||
and tctm.rec_status = 0 |
|||
and tcp.rec_status = 0 |
|||
and tcc.rec_status = 0 |
|||
and tcg.rec_status = 0 |
|||
and tct.rec_status = 0 |
|||
</trim> |
|||
UNION |
|||
SELECT |
|||
tcpro.id as projectId, |
|||
tcpro.name as competeProject, |
|||
tcg.group_name as competeGroup, |
|||
tcc.`name` as joinTeam, |
|||
tcp.`name` as name, |
|||
tcp.gender as gender, |
|||
tcp.id_card as idCard, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as idCardPromiseFront, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as idCardPromiseBack, |
|||
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as picture, |
|||
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as studentPromise, |
|||
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as bodyTest, |
|||
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as bodyProtect |
|||
from |
|||
t_compete_project tcpro LEFT JOIN t_compete_project_player tcpp on tcpro.id = tcpp.project_id |
|||
LEFT JOIN t_compete_player tcp on tcpp.player_id = tcp.id |
|||
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
where |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<if test="projectId != null"> |
|||
tcpro.id = #{projectId} |
|||
</if> |
|||
<if test="groupId != null"> |
|||
and tcg.id = #{groupId} |
|||
</if> |
|||
<if test="companyId != null"> |
|||
and tcc.id = #{companyId} |
|||
</if> |
|||
<if test="name != null and name != ''"> |
|||
and tcp.name like concat('%',#{name, jdbcType=VARCHAR},'%') |
|||
</if> |
|||
<if test="idCard != null and idCard != ''"> |
|||
and tcp.id_card = #{idCard} |
|||
</if> |
|||
and tcpro.type=0 |
|||
and tcpro.`level` =2 |
|||
and tcpro.team=0 |
|||
and tcp.rec_status = 0 |
|||
and tcc.rec_status = 0 |
|||
and tcpp.rec_status = 0 |
|||
and tcpro.rec_status = 0 |
|||
</trim> |
|||
|
|||
</select> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<select id="selectSingle" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcpro.id as projectId, |
|||
tcpro.name as competeProject, |
|||
tcg.group_name as competeGroup, |
|||
tcc.`name` as joinTeam, |
|||
tcp.`name` as name, |
|||
tcp.gender as gender, |
|||
tcp.id_card as idCard, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as idCardPromiseFront, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as idCardPromiseBack, |
|||
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as picture, |
|||
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as studentPromise, |
|||
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as bodyTest, |
|||
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as bodyProtect |
|||
from |
|||
t_compete_project tcpro LEFT JOIN t_compete_project_player tcpp on tcpro.id = tcpp.project_id |
|||
LEFT JOIN t_compete_player tcp on tcpp.player_id = tcp.id |
|||
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
where |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<if test="projectId != null"> |
|||
tcpro.id = #{projectId} |
|||
</if> |
|||
<if test="groupId != null"> |
|||
and tcg.id = #{groupId} |
|||
</if> |
|||
<if test="companyId != null"> |
|||
and tcc.id = #{companyId} |
|||
</if> |
|||
<if test="name != null and name != ''"> |
|||
and tcp.name like concat('%',#{name, jdbcType=VARCHAR},'%') |
|||
</if> |
|||
<if test="idCard != null and idCard != ''"> |
|||
and tcp.id_card = #{idCard} |
|||
</if> |
|||
and tcpro.type=0 |
|||
and tcpro.`level` =2 |
|||
and tcpro.team=0 |
|||
and tcp.rec_status = 0 |
|||
and tcc.rec_status = 0 |
|||
and tcpp.rec_status = 0 |
|||
and tcpro.rec_status = 0 |
|||
</trim> |
|||
</select> |
|||
|
|||
|
|||
<select id="selectGroup" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcpro.id as projectId, |
|||
tcpro.name as competeProject, |
|||
tcg.group_name as competeGroup, |
|||
tcc.`name` as joinTeam, |
|||
tcp.`name` as name, |
|||
tcp.gender as gender, |
|||
tcp.id_card as idCard, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as idCardPromiseFront, |
|||
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as idCardPromiseBack, |
|||
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as picture, |
|||
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as studentPromise, |
|||
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as bodyTest, |
|||
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as bodyProtect |
|||
from |
|||
t_compete_project tcpro LEFT JOIN t_compete_team tct on tcpro.id = tct.project_id |
|||
LEFT JOIN t_compete_team_member tctm on tct.id = tctm.compete_team_id |
|||
LEFT JOIN t_compete_player tcp on tcp.id = tctm.player_id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|||
WHERE |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<if test="projectId != null"> |
|||
tcpro.id = #{projectId} |
|||
</if> |
|||
<if test="groupId != null"> |
|||
and tcg.id = #{groupId} |
|||
</if> |
|||
<if test="companyId != null"> |
|||
and tcc.id = #{companyId} |
|||
</if> |
|||
<if test="name != null and name != ''"> |
|||
and tcp.name like concat('%',#{name, jdbcType=VARCHAR},'%') |
|||
</if> |
|||
<if test="idCard != null and idCard != ''"> |
|||
and tcp.id_card = #{idCard} |
|||
</if> |
|||
and tcpro.type=0 |
|||
and tcpro.`level` =2 |
|||
and tcpro.team=1 |
|||
and tcpro.rec_status = 0 |
|||
and tctm.rec_status = 0 |
|||
and tcp.rec_status = 0 |
|||
and tcc.rec_status = 0 |
|||
and tcg.rec_status = 0 |
|||
and tct.rec_status = 0 |
|||
</trim> |
|||
</select> |
|||
<select id="queryProjectConfig" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteProjectConfig"> |
|||
SELECT |
|||
p.id as projectId, |
|||
p.`name` as projectName, |
|||
if(p.team = 0,count(a.projectId),count(b.projectId)) as joinNum, |
|||
pc.project_duration as duration, |
|||
pc.site_num as siteNum, |
|||
pc.start_time as startTime, |
|||
pc.end_time as endTime |
|||
FROM |
|||
t_compete_project p |
|||
LEFT JOIN (SELECT * FROM t_compete_project_config WHERE rec_status = 0 and rec_status is null) pc on pc.project_id = p.id |
|||
LEFT JOIN |
|||
( |
|||
SELECT |
|||
pp.project_id as projectId |
|||
FROM |
|||
t_compete_project_player pp LEFT JOIN t_compete_player pl on pp.player_id = pl.id |
|||
LEFT JOIN t_compete_company c on pl.company_id = c.id |
|||
WHERE |
|||
pp.rec_status = 0 |
|||
and pl .rec_status = 0 |
|||
and c.rec_status = 0 |
|||
)a on a.projectId = p.id |
|||
LEFT JOIN |
|||
( |
|||
SELECT |
|||
t.project_id as projectId |
|||
FROM |
|||
t_compete_team t LEFT JOIN t_compete_team_member m on t.id = m.compete_team_id |
|||
LEFT JOIN t_compete_player pl on m.player_id = pl.id |
|||
LEFT JOIN t_compete_company c on t.company_id = c.id |
|||
WHERE |
|||
t.rec_status = 0 |
|||
and m .rec_status = 0 |
|||
and pl .rec_status = 0 |
|||
and c.rec_status = 0 |
|||
GROUP BY t.id |
|||
)b on b.projectId = p.id |
|||
WHERE |
|||
p.type = #{type} |
|||
and p.`level` = 2 |
|||
and p.certificate = 0 |
|||
and p.rec_status = 0 |
|||
GROUP BY p.id |
|||
</select> |
|||
<select id="queryStartOrderByCompany" resultMap="startOrderByCompany"> |
|||
SELECT |
|||
so.id as startOrderId, |
|||
so.compete_order as competeOrder, |
|||
so.site as site, |
|||
pc.start_time as startTime, |
|||
pr.id as projectId, |
|||
pr.`name` as projectName, |
|||
pr.`team` as team, |
|||
if(pr.team = 0,a.plName,b.plName) as playerName, |
|||
if(pr.team = 0,a.groupName,b.groupName) as groupName, |
|||
if(pr.team = 0,a.videoUrl,b.videoUrl) as videoUrl, |
|||
if(pr.team = 0,a.ppId,b.teamId) as playerOrTeamId |
|||
from |
|||
t_compete_start_order so |
|||
LEFT JOIN t_compete_project pr on so.project_id = pr.id |
|||
LEFT JOIN t_compete_time ti on pr.type = ti.type |
|||
LEFT JOIN t_compete_project_config pc on pc.project_id = pr.id |
|||
LEFT JOIN |
|||
( |
|||
SELECT |
|||
pp.id as ppId, |
|||
pl.`name` as plName, |
|||
g.group_name as groupName, |
|||
v.video_url as videoUrl |
|||
FROM |
|||
t_compete_project_player pp LEFT JOIN t_compete_player pl on pp.player_id = pl.id |
|||
LEFT JOIN t_compete_group g on g.id = pl.compete_group_id |
|||
LEFT JOIN t_compete_video v on pp.id = v.player_id |
|||
WHERE |
|||
pl.company_id = #{companyId} |
|||
and pp.rec_status = 0 |
|||
and pl.rec_status = 0 |
|||
)a on a.ppId = so.player_id |
|||
LEFT JOIN |
|||
( |
|||
SELECT |
|||
t.id as teamId, |
|||
pl.`name` as plName, |
|||
g.group_name as groupName, |
|||
v.video_url as videoUrl |
|||
FROM |
|||
t_compete_team t LEFT JOIN t_compete_team_member m on t.id = m.compete_team_id |
|||
LEFT JOIN t_compete_player pl on m.player_id = pl.id |
|||
LEFT JOIN t_compete_group g on t.group_remark = g.group_remark and t.gender_group = g.sex |
|||
LEFT JOIN t_compete_video v on t.id = v.player_id |
|||
WHERE |
|||
t.company_id = #{companyId} |
|||
and t.rec_status = 0 |
|||
and m.rec_status = 0 |
|||
and pl.rec_status = 0 |
|||
)b on b.teamId = so.player_id |
|||
WHERE |
|||
<if test="projectId != null"> |
|||
pr.id = #{projectId} |
|||
and |
|||
</if> |
|||
ti.id = #{competeTimeId} |
|||
and(a.ppId is not null or b.teamId is not null) |
|||
and so.rec_status = 0 |
|||
and pr.rec_status = 0 |
|||
ORDER BY so.start_time |
|||
</select> |
|||
<select id="queryProjectByTaskDetailId" resultType="com.ccsens.mt.bean.vo.ProvinceCompeteVo$QueryProjectByTall"> |
|||
SELECT |
|||
s.id as startOrderId, |
|||
p.id as projectId, |
|||
if(p.parent_id = 2001,0,1) as projectType |
|||
FROM |
|||
`t_compete_start_order` s LEFT JOIN t_compete_project p on s.project_id = p.id |
|||
WHERE |
|||
s.task_id = #{taskDetailId} |
|||
and s.rec_status = 0 |
|||
and p.rec_status = 0 |
|||
LIMIT 1 |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,64 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.dao.CompeteProjectDao"> |
|||
|
|||
<select id="getProjectByProjectName" resultType="com.ccsens.mt.bean.po.CompeteProject" parameterType="java.util.Map"> |
|||
select * from t_compete_project |
|||
where name = #{projectName} |
|||
and rec_status = 0 |
|||
</select> |
|||
|
|||
|
|||
<select id="getPlayerForSingle" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|||
select |
|||
tcpro.`name` as competeProject, |
|||
tcg.group_name as competeGroup, |
|||
tcc.`name` as joinTeam, |
|||
tcp.`name` as name, |
|||
tcp.gender as gender, |
|||
tcp.id_card as idCard, |
|||
(2020 - SUBSTR(tcp.id_card FROM 7 FOR 4)) as age |
|||
from t_compete_project tcpro |
|||
LEFT JOIN t_compete_project_player tcpp on tcpro.id = tcpp.project_id |
|||
LEFT JOIN t_compete_player tcp on tcp.id = tcpp.player_id |
|||
LEFT JOIN t_compete_company tcc on tcc.id= tcp.company_id |
|||
LEFT JOIN t_compete_group tcg on tcg.id =tcp.compete_group_id |
|||
WHERE tcpro.`level`=#{level} |
|||
and tcpro.type = #{type} |
|||
and tcpro.team = 0 |
|||
and tcpro.rec_status=0 |
|||
and tcpp.rec_status =0 |
|||
and tcp.rec_status=0 |
|||
and tcc.rec_status=0 |
|||
and tcg.rec_status=0 |
|||
</select> |
|||
|
|||
<select id="getPlayerForTeam" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|||
SELECT |
|||
c.id, |
|||
p.`name` as competeProject, |
|||
g.`group_name` as competeGroup, |
|||
c.`name` as joinTeam, |
|||
pl.`name` as name , |
|||
pl.id_card as idCard, |
|||
if(pl.gender = 1,'男','女') as gender, |
|||
(2020 - SUBSTR(pl.id_card FROM 7 FOR 4)) as age |
|||
FROM |
|||
t_compete_project p |
|||
LEFT JOIN t_compete_team t on p.id = t.project_id |
|||
LEFT JOIN t_compete_team_member m on t.id = m.compete_team_id |
|||
LEFT JOIN t_compete_company c on t.company_id = c.id |
|||
LEFT JOIN t_compete_player pl on m.player_id = pl.id |
|||
LEFT JOIN t_compete_group g on t.gender_group = g.sex and t.group_remark = g.group_remark |
|||
WHERE |
|||
p.type = #{type} |
|||
and p.`level` = #{level} |
|||
and p.team = 1 |
|||
and p.rec_status = 0 |
|||
and m.rec_status = 0 |
|||
and t.rec_status = 0 |
|||
and pl.rec_status = 0 |
|||
and g.rec_status = 0 |
|||
and c.rec_status = 0 |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,182 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.dao.CompeteScoreDao"> |
|||
<select id="selectSingleCount" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcp.`name` as name, |
|||
tcc.`name` as companyName, |
|||
tccs.final_score as score |
|||
from |
|||
t_compete_project_player tcpp LEFT JOIN t_compete_player tcp ON tcpp.player_id = tcp.id |
|||
LEFT JOIN t_compete_start_order tcso on tcso.player_id = tcpp.player_id |
|||
LEFT JOIN t_compete_count_score tccs on tccs.site_order_id = tcso.id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
WHERE tcpp.rec_status = 0 |
|||
and tcp.rec_status=0 |
|||
and tcso.rec_status=0 |
|||
and tccs.rec_status=0 |
|||
and tcc.rec_status = 0 |
|||
and tcpp.project_id= #{projectId} |
|||
and tcpp.compete_group_id =#{competeGroupId} |
|||
GROUP BY tccs.final_score DESC |
|||
</select> |
|||
|
|||
<select id="selectGroupCount" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> |
|||
SELECT |
|||
tccs.final_score as score, |
|||
tcc.`name` as companyName |
|||
from |
|||
t_compete_team tct LEFT JOIN t_compete_start_order tcso ON tct.id = tcso.player_id |
|||
LEFT JOIN t_compete_count_score tccs ON tccs.site_order_id = tcso.id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tct.company_id |
|||
WHERE tct.rec_status = 0 |
|||
and tcso.rec_status=0 |
|||
and tccs.rec_status =0 |
|||
and tct.project_id= #{projectId} |
|||
and tct.compete_group_id = #{competeGroupId} |
|||
GROUP BY tccs.final_score DESC |
|||
</select> |
|||
|
|||
<select id="selectSingleVarity" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcp.`name` as name, |
|||
tcc.`name` as companyName, |
|||
tcvs.score as score |
|||
from |
|||
t_compete_project_player tcpp LEFT JOIN t_compete_player tcp ON tcpp.player_id = tcp.id |
|||
LEFT JOIN t_compete_start_order tcso on tcso.player_id = tcpp.player_id |
|||
LEFT JOIN t_compete_variety_score tcvs on tcvs.site_order_id = tcso.id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
WHERE tcpp.rec_status = 0 |
|||
and tcp.rec_status=0 |
|||
and tcso.rec_status=0 |
|||
and tcvs.rec_status=0 |
|||
and tcc.rec_status = 0 |
|||
and tcpp.project_id= #{projectId} |
|||
and tcpp.compete_group_id = #{competeGroupId} |
|||
GROUP BY tcvs.score DESC |
|||
</select> |
|||
|
|||
<select id="selectGroupVarity" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcc.`name` as companyName, |
|||
tcvs.score as score |
|||
from |
|||
t_compete_team tct LEFT JOIN t_compete_start_order tcso ON tct.id = tcso.player_id |
|||
LEFT JOIN t_compete_variety_score tcvs ON tcvs.site_order_id = tcso.id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tct.company_id |
|||
WHERE tct.rec_status = 0 |
|||
and tcso.rec_status=0 |
|||
and tcvs.rec_status =0 |
|||
and tct.project_id= #{projectId} |
|||
and tct.compete_group_id = #{competeGroupId} |
|||
GROUP BY tcvs.score DESC |
|||
</select> |
|||
|
|||
|
|||
<select id="selectCountScoreCurrentSite" resultType="com.ccsens.mt.bean.vo.ScoreVo$CountScoreCurrentSite" parameterType="java.util.Map"> |
|||
SELECT |
|||
tcp.`name` as name, |
|||
tcc.`name` as companyName, |
|||
tcg.group_name as groupName, |
|||
tcppro.`name` as projectName, |
|||
tcso.site as site, |
|||
tcso.compete_order as competeOrder, |
|||
tccs.chief_judgment_score as mainScore, |
|||
tccs.judgment_a_score as mainOneScore, |
|||
tccs.judgment_b_score2 as mainTwoScore, |
|||
tccs.should_times as shouldScore, |
|||
tccs.deduct_times as deductTime, |
|||
tccs.deduct_cause as deductReason, |
|||
tccs.final_score as finalScore |
|||
from |
|||
t_compete_start_order tcso LEFT JOIN t_compete_player tcp on tcso.player_id = tcp.id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|||
LEFT JOIN t_compete_project tcppro on tcppro.id = tcso.project_id |
|||
LEFT JOIN t_compete_count_score tccs on tccs.site_order_id = tcso.id |
|||
WHERE |
|||
tcso.rec_status=0 |
|||
and tcp.rec_status=0 |
|||
and tcc.rec_status=0 |
|||
and tcg.rec_status=0 |
|||
and tcppro.rec_status=0 |
|||
and tccs.rec_status =0 |
|||
and tcso.id =#{siteId} |
|||
</select> |
|||
<select id="queryCountScoreAll" resultType="com.ccsens.mt.bean.vo.ScoreVo$CountScoreCurrentSite"> |
|||
SELECT @rownum:=@rownum+1 as rangee, b.* from ( |
|||
SELECT |
|||
g.group_name as groupName, |
|||
c.`name` as companyName, |
|||
p.`name` as name, |
|||
s.judgment_a_score as mainOneScore, |
|||
s.judgment_b_score2 as mainTwoScore, |
|||
s.should_times as shouldScore, |
|||
s.chief_judgment_score as mainScore, |
|||
(s.judgment_a_score + s.judgment_b_score2) / 2, |
|||
s.deduct_times as deductTime, |
|||
s.final_score as finalScore |
|||
FROM |
|||
t_compete_start_order o |
|||
LEFT JOIN t_compete_project_player pp on o.player_id = pp.id and pp.rec_status = 0 |
|||
LEFT JOIN t_compete_player p on pp.player_id = p.id and p.rec_status = 0 |
|||
LEFT JOIN t_compete_company c on c.id = p.company_id and c.rec_status = 0 |
|||
LEFT JOIN t_compete_group g on p.compete_group_id = g.id |
|||
LEFT JOIN t_compete_count_score s on s.site_order_id = o.id and s.rec_status = 0 |
|||
WHERE |
|||
o.project_id = #{projectId} |
|||
and |
|||
o.rec_status = 0 |
|||
ORDER BY s.final_score DESC) b,(select @rownum:=0) a |
|||
</select> |
|||
<select id="queryCountScoreAllByTeam" resultType="com.ccsens.mt.bean.vo.ScoreVo$CountScoreCurrentSite"> |
|||
SELECT |
|||
g.group_name, |
|||
c.`name`, |
|||
GROUP_CONCAT(p.`name`), |
|||
s.judgment_a_score, |
|||
s.judgment_b_score2, |
|||
s.should_times, |
|||
(s.judgment_a_score + s.judgment_b_score2) / 2, |
|||
s.deduct_times, |
|||
s.final_score |
|||
FROM |
|||
t_compete_start_order o |
|||
LEFT JOIN t_compete_team t on o.player_id = t.id and t.rec_status = 0 |
|||
LEFT JOIN t_compete_team_member m on m.compete_team_id = t.id and m.rec_status = 0 |
|||
LEFT JOIN t_compete_player p on m.player_id = p.id and p.rec_status = 0 |
|||
LEFT JOIN t_compete_company c on c.id = t.company_id and c.rec_status = 0 |
|||
LEFT JOIN t_compete_group g on t.group_remark = g.group_remark and t.gender_group = g.sex |
|||
LEFT JOIN t_compete_count_score s on s.site_order_id = o.id and s.rec_status = 0 |
|||
WHERE |
|||
o.project_id = #{projectId} |
|||
and |
|||
o.rec_status = 0 |
|||
GROUP BY o.id |
|||
ORDER BY s.final_score DESC |
|||
</select> |
|||
|
|||
<select id="selectByProjectIdAndPid" resultType="com.ccsens.mt.bean.vo.CompeteVo$SpeedPass" parameterType="java.util.Map"> |
|||
select |
|||
tcg.group_name AS groupName, |
|||
tcp.`name` as playerName, |
|||
tcc.`name` as companyName, |
|||
tccp.player_id as playerId, |
|||
tccp.project_id as projectId |
|||
|
|||
from |
|||
t_compete_project_player tccp |
|||
LEFT JOIN t_compete_player tcp on tccp.player_id = tcp.id |
|||
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|||
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|||
WHERE tccp.compete_time_id = #{competeTimeId} |
|||
and tccp.project_id =#{projectId} |
|||
and tccp.rec_status=0 |
|||
and tcp.rec_status=0 |
|||
and tcc.rec_status=0 |
|||
and tcg.rec_status=0 |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,63 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.dao.CompeteVideoDao"> |
|||
|
|||
<select id="selectCompanySignStatus" parameterType="com.ccsens.mt.bean.dto.VideoDto$GetSignStatus" resultType="com.ccsens.mt.bean.vo.VideoProjectVo$PeoSignStatu"> |
|||
select |
|||
tcc.name as name, |
|||
tcc.`contacts_phone` as phone, |
|||
tcpl.`look_time` as `time` |
|||
from |
|||
t_compete_company tcc |
|||
LEFT JOIN t_compete_time tct on tct.id=tcc.compete_time_id |
|||
LEFT JOIN ( |
|||
select company_id,max(look_time) as `look_time` |
|||
FROM t_compete_player_look |
|||
where `rec_status`=0 |
|||
<if test="param.signEndTime!=null and param.signEndTime!=0"> |
|||
and t_compete_player_look.`look_time` <= #{param.signEndTime} |
|||
</if> |
|||
) tcpl on tcpl.company_id=tcc.id |
|||
where |
|||
tct.id= #{param.id} |
|||
<if test="param.name!=null and param.name!=''"> |
|||
and tcc.`name`=#{param.name} |
|||
</if> |
|||
<if test="param.phone!=null and param.phone!=''"> |
|||
and tcc.`contacts_name`=#{param.phone} |
|||
</if> |
|||
and tcc.`rec_status`=0 |
|||
and tct.`rec_status`=0 |
|||
</select> |
|||
<select id="selectCoachSignStatus" parameterType="com.ccsens.mt.bean.dto.VideoDto$GetSignStatus" resultType="com.ccsens.mt.bean.vo.VideoProjectVo$CoachSignStatu" > |
|||
select |
|||
tcj.`name` as `name`, |
|||
tcj.`phone` as `phone`, |
|||
tcj.`chief_judgment` as `chiefJudgment`, |
|||
tt.`cr` as `time` |
|||
FROM |
|||
t_compete_judgment tcj |
|||
left join ( |
|||
select |
|||
max(created_at) as cr, |
|||
user_id |
|||
From tall.t_sys_log |
|||
where `url`='/users/signin' and `rec_status`=0 |
|||
<if test="param.signEndTime!=null and param.signEndTime!=0"> |
|||
and tall.t_sys_log.created_at <= #{param.signEndTime} |
|||
</if> |
|||
) tt on tt.`user_id`=tcj.`user_id` |
|||
LEFT JOIN t_compete_time tct on tct.id =tcj.`compete_time_id` |
|||
WHERE |
|||
tct.id=#{param.id} |
|||
<if test="param.name!=null and param.name!=''"> |
|||
and tcj.`name`=#{param.name} |
|||
</if> |
|||
<if test="param.phone!=null and param.phone!='' "> |
|||
and tcj.`phone`=#{param.phone} |
|||
</if> |
|||
and tcj.`rec_status`=0 |
|||
and tct.`rec_status`=0 |
|||
|
|||
</select> |
|||
</mapper> |
@ -0,0 +1,354 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteCountScoreMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteCountScore"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<id column="should_times" jdbcType="INTEGER" property="shouldTimes" /> |
|||
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" /> |
|||
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|||
<result column="site_order_id" jdbcType="BIGINT" property="siteOrderId" /> |
|||
<result column="chief_judgment_score" jdbcType="DECIMAL" property="chiefJudgmentScore" /> |
|||
<result column="judgment_a_score" jdbcType="DECIMAL" property="judgmentAScore" /> |
|||
<result column="judgment_b_score2" jdbcType="DECIMAL" property="judgmentBScore2" /> |
|||
<result column="deduct_times" jdbcType="INTEGER" property="deductTimes" /> |
|||
<result column="deduct_cause" jdbcType="VARCHAR" property="deductCause" /> |
|||
<result column="final_score" jdbcType="DECIMAL" property="finalScore" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, should_times, compete_time_id, project_id, site_order_id, chief_judgment_score, |
|||
judgment_a_score, judgment_b_score2, deduct_times, deduct_cause, final_score, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteCountScoreExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_count_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteCountScoreKey" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_count_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
and should_times = #{shouldTimes,jdbcType=INTEGER} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteCountScoreKey"> |
|||
delete from t_compete_count_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
and should_times = #{shouldTimes,jdbcType=INTEGER} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteCountScoreExample"> |
|||
delete from t_compete_count_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteCountScore"> |
|||
insert into t_compete_count_score (id, should_times, compete_time_id, |
|||
project_id, site_order_id, chief_judgment_score, |
|||
judgment_a_score, judgment_b_score2, deduct_times, |
|||
deduct_cause, final_score, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{shouldTimes,jdbcType=INTEGER}, #{competeTimeId,jdbcType=BIGINT}, |
|||
#{projectId,jdbcType=BIGINT}, #{siteOrderId,jdbcType=BIGINT}, #{chiefJudgmentScore,jdbcType=DECIMAL}, |
|||
#{judgmentAScore,jdbcType=DECIMAL}, #{judgmentBScore2,jdbcType=DECIMAL}, #{deductTimes,jdbcType=INTEGER}, |
|||
#{deductCause,jdbcType=VARCHAR}, #{finalScore,jdbcType=DECIMAL}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteCountScore"> |
|||
insert into t_compete_count_score |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="shouldTimes != null"> |
|||
should_times, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
compete_time_id, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="siteOrderId != null"> |
|||
site_order_id, |
|||
</if> |
|||
<if test="chiefJudgmentScore != null"> |
|||
chief_judgment_score, |
|||
</if> |
|||
<if test="judgmentAScore != null"> |
|||
judgment_a_score, |
|||
</if> |
|||
<if test="judgmentBScore2 != null"> |
|||
judgment_b_score2, |
|||
</if> |
|||
<if test="deductTimes != null"> |
|||
deduct_times, |
|||
</if> |
|||
<if test="deductCause != null"> |
|||
deduct_cause, |
|||
</if> |
|||
<if test="finalScore != null"> |
|||
final_score, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="shouldTimes != null"> |
|||
#{shouldTimes,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
#{competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteOrderId != null"> |
|||
#{siteOrderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="chiefJudgmentScore != null"> |
|||
#{chiefJudgmentScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="judgmentAScore != null"> |
|||
#{judgmentAScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="judgmentBScore2 != null"> |
|||
#{judgmentBScore2,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="deductTimes != null"> |
|||
#{deductTimes,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="deductCause != null"> |
|||
#{deductCause,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="finalScore != null"> |
|||
#{finalScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteCountScoreExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_count_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_count_score |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.shouldTimes != null"> |
|||
should_times = #{record.shouldTimes,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.competeTimeId != null"> |
|||
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.siteOrderId != null"> |
|||
site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.chiefJudgmentScore != null"> |
|||
chief_judgment_score = #{record.chiefJudgmentScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.judgmentAScore != null"> |
|||
judgment_a_score = #{record.judgmentAScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.judgmentBScore2 != null"> |
|||
judgment_b_score2 = #{record.judgmentBScore2,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.deductTimes != null"> |
|||
deduct_times = #{record.deductTimes,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.deductCause != null"> |
|||
deduct_cause = #{record.deductCause,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.finalScore != null"> |
|||
final_score = #{record.finalScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_count_score |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
should_times = #{record.shouldTimes,jdbcType=INTEGER}, |
|||
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, |
|||
chief_judgment_score = #{record.chiefJudgmentScore,jdbcType=DECIMAL}, |
|||
judgment_a_score = #{record.judgmentAScore,jdbcType=DECIMAL}, |
|||
judgment_b_score2 = #{record.judgmentBScore2,jdbcType=DECIMAL}, |
|||
deduct_times = #{record.deductTimes,jdbcType=INTEGER}, |
|||
deduct_cause = #{record.deductCause,jdbcType=VARCHAR}, |
|||
final_score = #{record.finalScore,jdbcType=DECIMAL}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteCountScore"> |
|||
update t_compete_count_score |
|||
<set> |
|||
<if test="competeTimeId != null"> |
|||
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteOrderId != null"> |
|||
site_order_id = #{siteOrderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="chiefJudgmentScore != null"> |
|||
chief_judgment_score = #{chiefJudgmentScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="judgmentAScore != null"> |
|||
judgment_a_score = #{judgmentAScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="judgmentBScore2 != null"> |
|||
judgment_b_score2 = #{judgmentBScore2,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="deductTimes != null"> |
|||
deduct_times = #{deductTimes,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="deductCause != null"> |
|||
deduct_cause = #{deductCause,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="finalScore != null"> |
|||
final_score = #{finalScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
and should_times = #{shouldTimes,jdbcType=INTEGER} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteCountScore"> |
|||
update t_compete_count_score |
|||
set compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
site_order_id = #{siteOrderId,jdbcType=BIGINT}, |
|||
chief_judgment_score = #{chiefJudgmentScore,jdbcType=DECIMAL}, |
|||
judgment_a_score = #{judgmentAScore,jdbcType=DECIMAL}, |
|||
judgment_b_score2 = #{judgmentBScore2,jdbcType=DECIMAL}, |
|||
deduct_times = #{deductTimes,jdbcType=INTEGER}, |
|||
deduct_cause = #{deductCause,jdbcType=VARCHAR}, |
|||
final_score = #{finalScore,jdbcType=DECIMAL}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
and should_times = #{shouldTimes,jdbcType=INTEGER} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,353 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteJudgmentMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteJudgment"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" /> |
|||
<result column="site" jdbcType="INTEGER" property="site" /> |
|||
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="chief_judgment" jdbcType="TINYINT" property="chiefJudgment" /> |
|||
<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="member_id" jdbcType="BIGINT" property="memberId" /> |
|||
<result column="role_id" jdbcType="BIGINT" property="roleId" /> |
|||
</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, phone, remark, compete_time_id, site, project_id, user_id, chief_judgment, |
|||
created_at, updated_at, rec_status, member_id, role_id |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_judgment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_judgment |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_compete_judgment |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample"> |
|||
delete from t_compete_judgment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|||
insert into t_compete_judgment (id, name, phone, |
|||
remark, compete_time_id, site, |
|||
project_id, user_id, chief_judgment, |
|||
created_at, updated_at, rec_status, |
|||
member_id, role_id) |
|||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, |
|||
#{remark,jdbcType=VARCHAR}, #{competeTimeId,jdbcType=BIGINT}, #{site,jdbcType=INTEGER}, |
|||
#{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{chiefJudgment,jdbcType=TINYINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|||
#{memberId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|||
insert into t_compete_judgment |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
compete_time_id, |
|||
</if> |
|||
<if test="site != null"> |
|||
site, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="chiefJudgment != null"> |
|||
chief_judgment, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="memberId != null"> |
|||
member_id, |
|||
</if> |
|||
<if test="roleId != null"> |
|||
role_id, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
#{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
#{competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="site != null"> |
|||
#{site,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="chiefJudgment != null"> |
|||
#{chiefJudgment,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="memberId != null"> |
|||
#{memberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="roleId != null"> |
|||
#{roleId,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_judgment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_judgment |
|||
<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.phone != null"> |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.competeTimeId != null"> |
|||
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.site != null"> |
|||
site = #{record.site,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.chiefJudgment != null"> |
|||
chief_judgment = #{record.chiefJudgment,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.memberId != null"> |
|||
member_id = #{record.memberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.roleId != null"> |
|||
role_id = #{record.roleId,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_judgment |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|||
site = #{record.site,jdbcType=INTEGER}, |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
chief_judgment = #{record.chiefJudgment,jdbcType=TINYINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
member_id = #{record.memberId,jdbcType=BIGINT}, |
|||
role_id = #{record.roleId,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|||
update t_compete_judgment |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="site != null"> |
|||
site = #{site,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="chiefJudgment != null"> |
|||
chief_judgment = #{chiefJudgment,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="memberId != null"> |
|||
member_id = #{memberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="roleId != null"> |
|||
role_id = #{roleId,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|||
update t_compete_judgment |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|||
site = #{site,jdbcType=INTEGER}, |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
chief_judgment = #{chiefJudgment,jdbcType=TINYINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
member_id = #{memberId,jdbcType=BIGINT}, |
|||
role_id = #{roleId,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,243 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompetePlayerLookMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompetePlayerLook"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|||
<result column="look_status" jdbcType="TINYINT" property="lookStatus" /> |
|||
<result column="look_time" jdbcType="BIGINT" property="lookTime" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, company_id, look_status, look_time, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerLookExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_player_look |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_player_look |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_compete_player_look |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerLookExample"> |
|||
delete from t_compete_player_look |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompetePlayerLook"> |
|||
insert into t_compete_player_look (id, company_id, look_status, |
|||
look_time, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{lookStatus,jdbcType=TINYINT}, |
|||
#{lookTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompetePlayerLook"> |
|||
insert into t_compete_player_look |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="companyId != null"> |
|||
company_id, |
|||
</if> |
|||
<if test="lookStatus != null"> |
|||
look_status, |
|||
</if> |
|||
<if test="lookTime != null"> |
|||
look_time, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="companyId != null"> |
|||
#{companyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="lookStatus != null"> |
|||
#{lookStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="lookTime != null"> |
|||
#{lookTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerLookExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_player_look |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_player_look |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.companyId != null"> |
|||
company_id = #{record.companyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.lookStatus != null"> |
|||
look_status = #{record.lookStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.lookTime != null"> |
|||
look_time = #{record.lookTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_player_look |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
company_id = #{record.companyId,jdbcType=BIGINT}, |
|||
look_status = #{record.lookStatus,jdbcType=TINYINT}, |
|||
look_time = #{record.lookTime,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompetePlayerLook"> |
|||
update t_compete_player_look |
|||
<set> |
|||
<if test="companyId != null"> |
|||
company_id = #{companyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="lookStatus != null"> |
|||
look_status = #{lookStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="lookTime != null"> |
|||
look_time = #{lookTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompetePlayerLook"> |
|||
update t_compete_player_look |
|||
set company_id = #{companyId,jdbcType=BIGINT}, |
|||
look_status = #{lookStatus,jdbcType=TINYINT}, |
|||
look_time = #{lookTime,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -1,276 +1,276 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteProjectConfigMapper"> |
|||
<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="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" /> |
|||
</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, project_id, site_num, start_time, end_time, created_at, updated_at, rec_status, |
|||
project_duration |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_project_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_project_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_compete_project_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample"> |
|||
delete from t_compete_project_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</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 |
|||
) |
|||
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} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|||
insert into t_compete_project_config |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="siteNum != null"> |
|||
site_num, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="projectDuration != null"> |
|||
project_duration, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteNum != null"> |
|||
#{siteNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
#{startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
#{endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="projectDuration != null"> |
|||
#{projectDuration,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_project_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_project_config |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.siteNum != null"> |
|||
site_num = #{record.siteNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.startTime != null"> |
|||
start_time = #{record.startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.endTime != null"> |
|||
end_time = #{record.endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.projectDuration != null"> |
|||
project_duration = #{record.projectDuration,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_project_config |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
project_id = #{record.projectId,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|||
update t_compete_project_config |
|||
<set> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteNum != null"> |
|||
site_num = #{siteNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time = #{startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time = #{endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="projectDuration != null"> |
|||
project_duration = #{projectDuration,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|||
update t_compete_project_config |
|||
set project_id = #{projectId,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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteProjectConfigMapper"> |
|||
<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="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" /> |
|||
</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, project_id, site_num, start_time, end_time, created_at, updated_at, rec_status, |
|||
project_duration |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_project_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_project_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_compete_project_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample"> |
|||
delete from t_compete_project_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</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 |
|||
) |
|||
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} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|||
insert into t_compete_project_config |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="siteNum != null"> |
|||
site_num, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="projectDuration != null"> |
|||
project_duration, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteNum != null"> |
|||
#{siteNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
#{startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
#{endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="projectDuration != null"> |
|||
#{projectDuration,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_project_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_project_config |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.siteNum != null"> |
|||
site_num = #{record.siteNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.startTime != null"> |
|||
start_time = #{record.startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.endTime != null"> |
|||
end_time = #{record.endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.projectDuration != null"> |
|||
project_duration = #{record.projectDuration,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_project_config |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
project_id = #{record.projectId,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|||
update t_compete_project_config |
|||
<set> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteNum != null"> |
|||
site_num = #{siteNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time = #{startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time = #{endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="projectDuration != null"> |
|||
project_duration = #{projectDuration,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|||
update t_compete_project_config |
|||
set project_id = #{projectId,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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,353 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteStartOrderMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteStartOrder"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|||
<result column="player_id" jdbcType="BIGINT" property="playerId" /> |
|||
<result column="team" jdbcType="TINYINT" property="team" /> |
|||
<result column="compete_order" jdbcType="TINYINT" property="competeOrder" /> |
|||
<result column="site" jdbcType="TINYINT" property="site" /> |
|||
<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="task_id" jdbcType="BIGINT" property="taskId" /> |
|||
<result column="start_time" jdbcType="BIGINT" property="startTime" /> |
|||
<result column="end_time" jdbcType="BIGINT" property="endTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="waiver" jdbcType="TINYINT" property="waiver" /> |
|||
</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, project_id, player_id, team, compete_order, site, created_at, updated_at, rec_status, |
|||
task_id, start_time, end_time, remark, waiver |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteStartOrderExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_start_order |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_start_order |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_compete_start_order |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteStartOrderExample"> |
|||
delete from t_compete_start_order |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder"> |
|||
insert into t_compete_start_order (id, project_id, player_id, |
|||
team, compete_order, site, |
|||
created_at, updated_at, rec_status, |
|||
task_id, start_time, end_time, |
|||
remark, waiver) |
|||
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, |
|||
#{team,jdbcType=TINYINT}, #{competeOrder,jdbcType=TINYINT}, #{site,jdbcType=TINYINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|||
#{taskId,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, |
|||
#{remark,jdbcType=VARCHAR}, #{waiver,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder"> |
|||
insert into t_compete_start_order |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="playerId != null"> |
|||
player_id, |
|||
</if> |
|||
<if test="team != null"> |
|||
team, |
|||
</if> |
|||
<if test="competeOrder != null"> |
|||
compete_order, |
|||
</if> |
|||
<if test="site != null"> |
|||
site, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="taskId != null"> |
|||
task_id, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="waiver != null"> |
|||
waiver, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="playerId != null"> |
|||
#{playerId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="team != null"> |
|||
#{team,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="competeOrder != null"> |
|||
#{competeOrder,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="site != null"> |
|||
#{site,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="taskId != null"> |
|||
#{taskId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
#{startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
#{endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="waiver != null"> |
|||
#{waiver,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteStartOrderExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_start_order |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_start_order |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.playerId != null"> |
|||
player_id = #{record.playerId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.team != null"> |
|||
team = #{record.team,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.competeOrder != null"> |
|||
compete_order = #{record.competeOrder,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.site != null"> |
|||
site = #{record.site,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.taskId != null"> |
|||
task_id = #{record.taskId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.startTime != null"> |
|||
start_time = #{record.startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.endTime != null"> |
|||
end_time = #{record.endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.waiver != null"> |
|||
waiver = #{record.waiver,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_start_order |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
player_id = #{record.playerId,jdbcType=BIGINT}, |
|||
team = #{record.team,jdbcType=TINYINT}, |
|||
compete_order = #{record.competeOrder,jdbcType=TINYINT}, |
|||
site = #{record.site,jdbcType=TINYINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
task_id = #{record.taskId,jdbcType=BIGINT}, |
|||
start_time = #{record.startTime,jdbcType=BIGINT}, |
|||
end_time = #{record.endTime,jdbcType=BIGINT}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
waiver = #{record.waiver,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder"> |
|||
update t_compete_start_order |
|||
<set> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="playerId != null"> |
|||
player_id = #{playerId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="team != null"> |
|||
team = #{team,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="competeOrder != null"> |
|||
compete_order = #{competeOrder,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="site != null"> |
|||
site = #{site,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="taskId != null"> |
|||
task_id = #{taskId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time = #{startTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time = #{endTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="waiver != null"> |
|||
waiver = #{waiver,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder"> |
|||
update t_compete_start_order |
|||
set project_id = #{projectId,jdbcType=BIGINT}, |
|||
player_id = #{playerId,jdbcType=BIGINT}, |
|||
team = #{team,jdbcType=TINYINT}, |
|||
compete_order = #{competeOrder,jdbcType=TINYINT}, |
|||
site = #{site,jdbcType=TINYINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
task_id = #{taskId,jdbcType=BIGINT}, |
|||
start_time = #{startTime,jdbcType=BIGINT}, |
|||
end_time = #{endTime,jdbcType=BIGINT}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
waiver = #{waiver,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,291 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteVarietyScoreMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteVarietyScore"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" /> |
|||
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|||
<result column="site_order_id" jdbcType="BIGINT" property="siteOrderId" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
<result column="score" jdbcType="DECIMAL" property="score" /> |
|||
<result column="judgment_id" jdbcType="BIGINT" property="judgmentId" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, compete_time_id, project_id, site_order_id, code, score, judgment_id, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScoreExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_variety_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_compete_variety_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_compete_variety_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScoreExample"> |
|||
delete from t_compete_variety_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore"> |
|||
insert into t_compete_variety_score (id, compete_time_id, project_id, |
|||
site_order_id, code, score, |
|||
judgment_id, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{competeTimeId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
|||
#{siteOrderId,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{score,jdbcType=DECIMAL}, |
|||
#{judgmentId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore"> |
|||
insert into t_compete_variety_score |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
compete_time_id, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="siteOrderId != null"> |
|||
site_order_id, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
<if test="score != null"> |
|||
score, |
|||
</if> |
|||
<if test="judgmentId != null"> |
|||
judgment_id, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="competeTimeId != null"> |
|||
#{competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteOrderId != null"> |
|||
#{siteOrderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
#{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
#{score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="judgmentId != null"> |
|||
#{judgmentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScoreExample" resultType="java.lang.Long"> |
|||
select count(*) from t_compete_variety_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_compete_variety_score |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.competeTimeId != null"> |
|||
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.siteOrderId != null"> |
|||
site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.code != null"> |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.score != null"> |
|||
score = #{record.score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.judgmentId != null"> |
|||
judgment_id = #{record.judgmentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_compete_variety_score |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
score = #{record.score,jdbcType=DECIMAL}, |
|||
judgment_id = #{record.judgmentId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore"> |
|||
update t_compete_variety_score |
|||
<set> |
|||
<if test="competeTimeId != null"> |
|||
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="siteOrderId != null"> |
|||
site_order_id = #{siteOrderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
score = #{score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="judgmentId != null"> |
|||
judgment_id = #{judgmentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore"> |
|||
update t_compete_variety_score |
|||
set compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
site_order_id = #{siteOrderId,jdbcType=BIGINT}, |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
score = #{score,jdbcType=DECIMAL}, |
|||
judgment_id = #{judgmentId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue