|
|
|
@ -6,6 +6,7 @@ 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; |
|
|
|
|
|
|
|
|
@ -26,5 +27,32 @@ public class ExamScheduleServiceImpl extends BaseServiceImpl<ExamScheduleMapper, |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|