fix
This commit is contained in:
parent
378b3a062f
commit
36e06f47ac
@ -3,6 +3,7 @@ package com.lz.modules.performance.controller;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.lz.common.utils.PageUtils;
|
import com.lz.common.utils.PageUtils;
|
||||||
import com.lz.common.utils.R;
|
import com.lz.common.utils.R;
|
||||||
|
import com.lz.common.utils.StringUtil;
|
||||||
import com.lz.modules.flow.dao.FlowStartMapper;
|
import com.lz.modules.flow.dao.FlowStartMapper;
|
||||||
import com.lz.modules.flow.entity.EvaluationGroup;
|
import com.lz.modules.flow.entity.EvaluationGroup;
|
||||||
import com.lz.modules.flow.entity.FlowStart;
|
import com.lz.modules.flow.entity.FlowStart;
|
||||||
@ -63,8 +64,9 @@ public class AssessManagerController {
|
|||||||
if(name.contains("绩效考核")){
|
if(name.contains("绩效考核")){
|
||||||
res.setCycleTime(name.substring(0,name.lastIndexOf("绩效考核")));
|
res.setCycleTime(name.substring(0,name.lastIndexOf("绩效考核")));
|
||||||
}
|
}
|
||||||
|
int i = resultRecordMapper.countStartAndGroupNum(flowStart.getId());
|
||||||
res.setJoinNum("");
|
ResultRecord resultRecord = resultRecordMapper.selectOneByStartId(flowStart.getId());
|
||||||
|
res.setJoinNum(resultRecord == null? StringUtil.EMPTY : resultRecord.getStaffName() + i + "人");
|
||||||
data.add(res);
|
data.add(res);
|
||||||
});
|
});
|
||||||
PageUtils pages = new PageUtils();
|
PageUtils pages = new PageUtils();
|
||||||
|
|||||||
@ -82,4 +82,6 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
|
|||||||
void batchDeleteByStaffIdsAndMonth(@Param("staffIds")List<String> staffIds,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
void batchDeleteByStaffIdsAndMonth(@Param("staffIds")List<String> staffIds,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||||
|
|
||||||
int countStartAndGroupNum(@Param("startId")Long startId);
|
int countStartAndGroupNum(@Param("startId")Long startId);
|
||||||
|
|
||||||
|
ResultRecord selectOneByStartId(@Param("startId")Long startId);
|
||||||
}
|
}
|
||||||
@ -368,5 +368,10 @@
|
|||||||
<select id="countStartAndGroupNum" resultType="int">
|
<select id="countStartAndGroupNum" resultType="int">
|
||||||
select COUNT(1) from lz_result_record where is_delete = 0 and start_id = #{startId}
|
select COUNT(1) from lz_result_record where is_delete = 0 and start_id = #{startId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectOneByStartId" resultType="int">
|
||||||
|
select * from lz_result_record where is_delete = 0 and start_id = #{startId} limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user