Browse Source

11-16-2

tiaosheng
Lihong@123456 5 years ago
parent
commit
934ae56fe1
  1. 2
      mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java
  2. 2
      mt/src/main/java/com/ccsens/mt/bean/dto/VideoDto.java
  3. 1
      mt/src/main/java/com/ccsens/mt/service/CompeteService.java
  4. 2
      mt/src/main/resources/mapper_dao/CompeteProjectConfigDao.xml
  5. 12
      mt/src/main/resources/mapper_dao/CompeteScoreDao.xml
  6. 2
      tall/src/main/resources/application-dev.yml
  7. 4
      tall/src/main/resources/application.yml

2
mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java

@ -40,7 +40,7 @@ public class CompeteScoreController {
return JsonResponse.newInstance().ok(playerList); return JsonResponse.newInstance().ok(playerList);
} }
@MustLogin // @MustLogin
@ApiOperation(value = "项目状态", notes = "lihong,查询项目集合,再根据时间判断项目得状态") @ApiOperation(value = "项目状态", notes = "lihong,查询项目集合,再根据时间判断项目得状态")
@RequestMapping(value = "/countScore", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) @RequestMapping(value = "/countScore", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CountScore> countScore(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) { public JsonResponse<CompeteVo.CountScore> countScore(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) {

2
mt/src/main/java/com/ccsens/mt/bean/dto/VideoDto.java

@ -81,10 +81,8 @@ public class VideoDto {
private Long id; private Long id;
@ApiModelProperty("姓名/参赛队伍") @ApiModelProperty("姓名/参赛队伍")
private String name; private String name;
@ApiModelProperty("账号") @ApiModelProperty("账号")
private String phone; private String phone;
@ApiModelProperty("签到时间") @ApiModelProperty("签到时间")
private Long signEndTime; private Long signEndTime;

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

@ -1123,6 +1123,7 @@ public class CompeteService implements ICompeteService {
competeCountScore.setDeductCause(params.getDeductReason()); competeCountScore.setDeductCause(params.getDeductReason());
competeCountScore.setFinalScore(params.getFinalScore()); competeCountScore.setFinalScore(params.getFinalScore());
competeCountScore.setId(snowflake.nextId()); competeCountScore.setId(snowflake.nextId());
competeCountScore.setRecStatus((byte) 0);
competeCountScoreMapper.insert(competeCountScore); competeCountScoreMapper.insert(competeCountScore);
} }

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

@ -65,7 +65,7 @@
and tcc.id = #{companyId} and tcc.id = #{companyId}
</if> </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and tcp.name = #{name} and tcp.name like #{name}
</if> </if>
<if test="idCard != null and idCard != ''"> <if test="idCard != null and idCard != ''">
and tcp.id_card = #{idCard} and tcp.id_card = #{idCard}

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

@ -18,7 +18,7 @@
and tcc.rec_status = 0 and tcc.rec_status = 0
and tcpp.project_id= #{projectId} and tcpp.project_id= #{projectId}
and tcpp.compete_group_id =#{competeGroupId} and tcpp.compete_group_id =#{competeGroupId}
GROUP BY tccs.final_score GROUP BY tccs.final_score DESC
</select> </select>
<select id="selectGroupCount" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> <select id="selectGroupCount" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map">
@ -32,9 +32,9 @@
WHERE tct.rec_status = 0 WHERE tct.rec_status = 0
and tcso.rec_status=0 and tcso.rec_status=0
and tccs.rec_status =0 and tccs.rec_status =0
and and tct.project_id= #{projectId} and tct.project_id= #{projectId}
and tct.compete_group_id = #{competeGroupId} and tct.compete_group_id = #{competeGroupId}
GROUP BY tccs.final_score; GROUP BY tccs.final_score DESC
</select> </select>
<select id="selectSingleVarity" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> <select id="selectSingleVarity" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map">
@ -54,7 +54,7 @@
and tcc.rec_status = 0 and tcc.rec_status = 0
and tcpp.project_id= #{projectId} and tcpp.project_id= #{projectId}
and tcpp.compete_group_id = #{competeGroupId} and tcpp.compete_group_id = #{competeGroupId}
GROUP BY tcvs.score GROUP BY tcvs.score DESC
</select> </select>
<select id="selectGroupVarity" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map"> <select id="selectGroupVarity" resultType="com.ccsens.mt.bean.vo.ScoreVo$CompeteScore" parameterType="java.util.Map">
@ -68,9 +68,9 @@
WHERE tct.rec_status = 0 WHERE tct.rec_status = 0
and tcso.rec_status=0 and tcso.rec_status=0
and tcvs.rec_status =0 and tcvs.rec_status =0
and and tct.project_id= #{projectId} and tct.project_id= #{projectId}
and tct.compete_group_id = #{competeGroupId} and tct.compete_group_id = #{competeGroupId}
GROUP BY tcvs.score GROUP BY tcvs.score DESC
</select> </select>

2
tall/src/main/resources/application-dev.yml

@ -1,5 +1,5 @@
server: server:
port: 7070 port: 7030
servlet: servlet:
context-path: /v1.0 context-path: /v1.0
spring: spring:

4
tall/src/main/resources/application.yml

@ -1,5 +1,5 @@
spring: spring:
profiles: profiles:
active: test active: dev
include: util-test,common include: util-dev,common

Loading…
Cancel
Save