package org.jeecg.modules.mdc.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.apache.commons.lang3.StringUtils; import org.jeecg.modules.mdc.dto.MdcBigScreenEquipmentDto; import org.jeecg.modules.mdc.entity.MdcWorkshopInfo; import org.jeecg.modules.mdc.mapper.MdcWorkshopInfoMapper; import org.jeecg.modules.mdc.service.IMdcEquipmentTypeService; import org.jeecg.modules.mdc.service.IMdcWorkshopInfoService; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * @Description: 大屏车间信息 * @Author: Lius * @Date: 2023-10-11 * @Version: V1.0 */ @Service public class MdcWorkshopInfoServiceImpl extends ServiceImpl implements IMdcWorkshopInfoService { @Resource private IMdcEquipmentTypeService mdcEquipmentTypeService; /** * 大屏信息 * @param workshopId * @return */ @Override public List getBigScreenInfo(String workshopId) { List list = this.baseMapper.getBigScreenInfo(workshopId); for (MdcBigScreenEquipmentDto mdcBigScreenEquipmentDto : list) { if (StringUtils.isEmpty(mdcBigScreenEquipmentDto.getEquipmentImage())) { mdcBigScreenEquipmentDto.setEquipmentImage(mdcEquipmentTypeService.findEquipmentTypeImage(mdcBigScreenEquipmentDto.getEquipmentType())); } } return list; } }