|  | @@ -3,6 +3,8 @@ package com.steerinfo.ems.emsgmpcjh.controller;
 | 
	
		
			
				|  |  |  import com.steerinfo.auth.utils.JwtUtil;
 | 
	
		
			
				|  |  |  import com.steerinfo.ems.Utils.DateUtils;
 | 
	
		
			
				|  |  |  import com.steerinfo.ems.Utils.ExcelToolUtils;
 | 
	
		
			
				|  |  | +import com.steerinfo.ems.chemicalconstituents.model.ChemicalConstituents;
 | 
	
		
			
				|  |  | +import com.steerinfo.ems.chemicalconstituents.service.IChemicalConstituentsService;
 | 
	
		
			
				|  |  |  import com.steerinfo.ems.emsgmpcjh.mapper.EmsGmPcJhMapper;
 | 
	
		
			
				|  |  |  import com.steerinfo.ems.emsgmpcjh.model.EmsGmPcJh;
 | 
	
		
			
				|  |  |  import com.steerinfo.ems.emsgmpcjh.service.IEmsGmPcJhService;
 | 
	
	
		
			
				|  | @@ -55,6 +57,8 @@ public class EmsGmPcJhController extends BaseRESTfulController {
 | 
	
		
			
				|  |  |      EmsProdplanWeightAdjustmentMapper emsProdplanWeightAdjustmentMapper;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      IEmsWebsocketLogService emsWebsocketLogService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    IChemicalConstituentsService chemicalConstituentsService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value="获取列表", notes="分页查询")
 | 
	
		
			
				|  |  |      @ApiImplicitParams({
 | 
	
	
		
			
				|  | @@ -86,6 +90,14 @@ public class EmsGmPcJhController extends BaseRESTfulController {
 | 
	
		
			
				|  |  |              parmas.put("lengthTimesWidth", grades);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          PageList<EmsGmPcJh> list = emsGmPcJhService.queryForPage(parmas, pageNum, pageSize);
 | 
	
		
			
				|  |  | +        //化学成分信息列表
 | 
	
		
			
				|  |  | +        for(Object list1:list.getList()){
 | 
	
		
			
				|  |  | +            EmsGmPcJh d = (EmsGmPcJh) list1;
 | 
	
		
			
				|  |  | +            List<ChemicalConstituents> dataByGmid = chemicalConstituentsService.getDataByGmid(d.getId());
 | 
	
		
			
				|  |  | +            if(dataByGmid.size()>0){
 | 
	
		
			
				|  |  | +                d.setDataByGmid(dataByGmid);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          return success(list);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |