This commit is contained in:
杜建超 2020-11-10 10:36:31 +08:00
parent b63c6fd7f0
commit 77ff0a7f90
3 changed files with 9 additions and 0 deletions

View File

@ -49,4 +49,6 @@ public interface EvaluationStartStaffMapper extends BaseMapper<EvaluationStartSt
List<Long> selectStaffIdsByStart(@Param("startId") Long startId);
List<Long> selectStaffIdsByStartAndStaffId(@Param("startId") Long id, @Param("list") List<StaffSimpleInfo> staffIds);
int deleteByStartId(@Param("startId") Long startId);
}

View File

@ -153,6 +153,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
public void accessDelete(FlowStart flowStart) {
flowStart.setIsDelete(1);
flowStartMapper.updateFlowStartById(flowStart);
evaluationStartStaffMapper.deleteByStartId(flowStart.getId());
String groupIds = flowStart.getGroupIds();
if(StringUtil.isNotBlank(groupIds)){
String[] split = groupIds.split(",");

View File

@ -177,5 +177,11 @@
)
group by staff_id
</select>
<update id="deleteByStartId">
UPDATE lz_evaluation_start_staff
SET is_delete = 1
where is_delete = 0 and start_id = #{startId}
</update>
</mapper>