| | |
| | | |
| | | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class MdcWorkshopInfoServiceImpl extends ServiceImpl<MdcWorkshopInfoMapper, MdcWorkshopInfo> implements IMdcWorkshopInfoService { |
| | | |
| | | @Resource |
| | | private IMdcEquipmentTypeService mdcEquipmentTypeService; |
| | | |
| | | /** |
| | | * 大屏信息 |
| | | * @param workshopId |
| | |
| | | */ |
| | | @Override |
| | | public List<MdcBigScreenEquipmentDto> getBigScreenInfo(String workshopId) { |
| | | List<MdcBigScreenEquipmentDto> list = this.baseMapper.getBigScreenInfo(workshopId); |
| | | for (MdcBigScreenEquipmentDto mdcBigScreenEquipmentDto : list) { |
| | | if (StringUtils.isEmpty(mdcBigScreenEquipmentDto.getEquipmentImage())) { |
| | | mdcBigScreenEquipmentDto.setEquipmentImage(mdcEquipmentTypeService.findEquipmentTypeImage(mdcBigScreenEquipmentDto.getEquipmentType())); |
| | | } |
| | | } |
| | | return list; |
| | | return this.baseMapper.getBigScreenInfo(workshopId); |
| | | } |
| | | } |