You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.0 KiB
58 lines
2.0 KiB
package com.ccic.safeliab.service; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
import com.ccic.safeliab.dao.ExamScheduleMapper; |
|
import com.ccic.safeliab.entity.ExamSchedule; |
|
import com.ccic.safeliab.entity.Industry; |
|
import com.ccic.safeliab.support.BaseServiceImpl; |
|
import org.apache.ibatis.annotations.Param; |
|
import org.springframework.beans.factory.annotation.Autowired; |
|
import org.springframework.stereotype.Service; |
|
|
|
import java.util.List; |
|
import java.util.Map; |
|
|
|
@Service |
|
public class ExamScheduleServiceImpl extends BaseServiceImpl<ExamScheduleMapper, ExamSchedule> implements ExamScheduleService { |
|
|
|
public List<ExamSchedule> selectExamSchedule(Map<String, Object> param){ |
|
return baseMapper.selectExamSchedule(param); |
|
} |
|
|
|
public List<Map<String,Object>> getIndustry(){ |
|
return baseMapper.getIndustry(); |
|
} |
|
|
|
public List<Map<String,Object>> getPaper(){ |
|
return baseMapper.getPaper(); |
|
} |
|
public ExamSchedule getExamDataById(String id){ |
|
return baseMapper.selectById(id); |
|
} |
|
public int doPublish(List<String> ids){ |
|
List<ExamSchedule> ExamSchedules = baseMapper.selectBatchIds(ids); |
|
for(ExamSchedule info : ExamSchedules){ |
|
info.setPublishStatus(1); |
|
} |
|
boolean result = updateBatchById(ExamSchedules); |
|
return result?ExamSchedules.size():0; |
|
} |
|
public int doDelete(List<String> ids){ |
|
List<ExamSchedule> ExamSchedules = baseMapper.selectBatchIds(ids); |
|
for(ExamSchedule info : ExamSchedules){ |
|
info.setIsDeleted(1); |
|
} |
|
boolean result = updateBatchById(ExamSchedules); |
|
return result?ExamSchedules.size():0; |
|
} |
|
public int doCancel(List<String> ids){ |
|
List<ExamSchedule> ExamSchedules = baseMapper.selectBatchIds(ids); |
|
for(ExamSchedule info : ExamSchedules){ |
|
info.setPublishStatus(2); |
|
} |
|
boolean result = updateBatchById(ExamSchedules); |
|
return result?ExamSchedules.size():0; |
|
} |
|
|
|
}
|
|
|