| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.aps.common.security.utils.DictUtils; |
| | | import com.aps.system.api.domain.SysDictData; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | /** |
| | | * 查询焊缝-临时列表 |
| | | */ |
| | | @RequiresPermissions("weldSeamTemp:weldSeamTemp:list") |
| | | |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsWeldSeamTemp apsWeldSeamTemp) |
| | | { |
| | | // startPage(); |
| | | List<ApsWeldSeamTemp> list = apsWeldSeamTempService.selectApsWeldSeamTempList(apsWeldSeamTemp); |
| | | //工单类型 |
| | | List<SysDictData> workOrderTypes = DictUtils.getDictCache("aps_weld_work_order_type"); |
| | | //分类 |
| | | List<SysDictData> classification = DictUtils.getDictCache("aps_weld_classification"); |
| | | |
| | | list.forEach(tmp->{ |
| | | classification.stream().filter(t->t.getDictValue().equals(tmp.getClassification())) |
| | | .findFirst().ifPresent(t->{ tmp.setClassification(t.getDictLabel());}) ; |
| | | workOrderTypes.stream().filter(t->t.getDictValue().equals(tmp.getWorkOrderType())) |
| | | .findFirst().ifPresent(t->{ tmp.setWorkOrderType(t.getDictLabel());}) ; |
| | | }); |
| | | |
| | | return getDataTable(list); |
| | | } |
| | | |