This commit is contained in:
杜建超 2020-11-19 11:32:00 +08:00
parent 9321fafdaa
commit b16c903f3a
3 changed files with 7 additions and 6 deletions

View File

@ -285,7 +285,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
Long evaluation = group.getId(); Long evaluation = group.getId();
int i = evaluationStartStaffService.updateBatchToScore(req.getStartId(), group.getId()); int i = evaluationStartStaffService.updateBatchToScore(req.getStartId(), group.getId());
log.info("更新evaluationStartStaff 数据 为已评分 " + i); log.info("更新evaluationStartStaff 数据 为已评分 " + i);
List<ToScoreDingTalkDto> dtos = resultRecordMapper.selectToScoreList(req.getStartId(), evaluation); List<ResultRecord> dtos = resultRecordMapper.selectToScoreList(req.getStartId(), evaluation);
if(CollectionUtils.isNotEmpty(dtos)){ if(CollectionUtils.isNotEmpty(dtos)){
log.info("本次评分更新操作 num: " + dtos.size()); log.info("本次评分更新操作 num: " + dtos.size());
dtos.forEach(dto -> { dtos.forEach(dto -> {
@ -304,8 +304,9 @@ public class AssessManagerServiceImpl implements AssessManagerService {
//钉钉通知评分构建 //钉钉通知评分构建
StaffSimpleInfo staffSimpleInfo = new StaffSimpleInfo(); StaffSimpleInfo staffSimpleInfo = new StaffSimpleInfo();
staffSimpleInfo.setId(dto.getStaffId()); staffSimpleInfo.setId(dto.getStaffId());
staffSimpleInfo.setRecordId(recordId); staffSimpleInfo.setResultRecord(dto);
staffSimpleInfo.setStartId(req.getStartId()); FlowStart start = flowStartMapper.selectFlowStartById(req.getStartId());
staffSimpleInfo.setFlowStart(start);
toStaffids.add(staffSimpleInfo); toStaffids.add(staffSimpleInfo);
}); });

View File

@ -94,7 +94,7 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
int batchDeleteByStartIdAndStaffId(@Param("startId")Long startId,@Param("staffIds") List<String> staffIds); int batchDeleteByStartIdAndStaffId(@Param("startId")Long startId,@Param("staffIds") List<String> staffIds);
List<ToScoreDingTalkDto> selectToScoreList(@Param("startId")Long startId, @Param("evaluationId")Long evaluationId); List<ResultRecord> selectToScoreList(@Param("startId")Long startId, @Param("evaluationId")Long evaluationId);
int countAssessNumJoin(@Param("req")AssessDetailReq req); int countAssessNumJoin(@Param("req")AssessDetailReq req);

View File

@ -580,8 +580,8 @@
) )
</update> </update>
<select id="selectToScoreList" resultType="com.lz.modules.performance.dto.ToScoreDingTalkDto"> <select id="selectToScoreList" resultType="ResultRecord">
select id,staff_id from lz_result_record where is_delete = 0 select * from lz_result_record where is_delete = 0
and start_id = #{startId} and start_id = #{startId}
and flow_process = 2 and flow_process = 2
and evaluation_id = #{evaluationId} and evaluation_id = #{evaluationId}