package com.gkhy.safePlatform.specialWork.service.baseService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gkhy.safePlatform.commons.enums.E; import com.gkhy.safePlatform.commons.exception.AusinessException; import com.gkhy.safePlatform.specialWork.entity.WorkMaterialCheckInfo; import com.gkhy.safePlatform.specialWork.repository.WorkMaterialCheckRepository; import com.gkhy.safePlatform.specialWork.service.baseService.WorkMaterialCheckService; import org.apache.commons.collections.CollectionUtils; import org.springframework.stereotype.Service; import org.yaml.snakeyaml.events.Event; import java.util.List; @Service("WorkMaterialCheckService") public class WorkMaterialCheckServiceImpl extends ServiceImpl implements WorkMaterialCheckService { @Override public void saveMaterialCheckBatch(List entities) { if (CollectionUtils.isEmpty(entities)) { throw new AusinessException(E.DATA_PARAM_NULL,"参数不可为空!"); } baseMapper.saveMaterialCheckBatch(entities); } @Override public List getListByWpcIds(List idList) { if(CollectionUtils.isEmpty(idList)){ throw new AusinessException(E.DATA_PARAM_NULL,"作业管理ids不可为空!"); } return baseMapper.getListByWpcIds(idList); } }