|
|
@ -19,8 +19,10 @@ import org.jeecg.common.system.base.controller.JeecgController; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.vo.LoginUser; |
|
|
|
import org.jeecg.common.system.vo.LoginUser; |
|
|
|
import org.jeecg.modules.productplan.entity.ZyPlanProcess; |
|
|
|
import org.jeecg.modules.productplan.entity.ZyPlanProcess; |
|
|
|
|
|
|
|
import org.jeecg.modules.productplan.entity.ZyProductPlan; |
|
|
|
import org.jeecg.modules.productplan.entity.vo.ProcessDataVo; |
|
|
|
import org.jeecg.modules.productplan.entity.vo.ProcessDataVo; |
|
|
|
import org.jeecg.modules.productplan.service.IZyPlanProcessService; |
|
|
|
import org.jeecg.modules.productplan.service.IZyPlanProcessService; |
|
|
|
|
|
|
|
import org.jeecg.modules.productplan.service.IZyProductPlanService; |
|
|
|
import org.jeecg.modules.system.entity.SysUser; |
|
|
|
import org.jeecg.modules.system.entity.SysUser; |
|
|
|
import org.jeecg.modules.system.service.ISysUserService; |
|
|
|
import org.jeecg.modules.system.service.ISysUserService; |
|
|
|
import org.jeecg.modules.team.entity.Station; |
|
|
|
import org.jeecg.modules.team.entity.Station; |
|
|
@ -59,6 +61,8 @@ public class ZyPlanProcessController extends JeecgController<ZyPlanProcess, IZyP |
|
|
|
private IStationMachineService iStationMachineService; |
|
|
|
private IStationMachineService iStationMachineService; |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private IStationToolService iStationToolService; |
|
|
|
private IStationToolService iStationToolService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IZyProductPlanService zyProductPlanService; |
|
|
|
|
|
|
|
|
|
|
|
private static Map<String,String> useridstationid = new HashMap<String,String>(){{ |
|
|
|
private static Map<String,String> useridstationid = new HashMap<String,String>(){{ |
|
|
|
put("GW01","1600683844590194690"); |
|
|
|
put("GW01","1600683844590194690"); |
|
|
@ -379,6 +383,11 @@ public class ZyPlanProcessController extends JeecgController<ZyPlanProcess, IZyP |
|
|
|
queryWrapper.eq("station_id",stationid); |
|
|
|
queryWrapper.eq("station_id",stationid); |
|
|
|
Page<ZyPlanProcess> page = new Page<ZyPlanProcess>(pageNo, pageSize); |
|
|
|
Page<ZyPlanProcess> page = new Page<ZyPlanProcess>(pageNo, pageSize); |
|
|
|
IPage<ZyPlanProcess> pageList = zyPlanProcessService.page(page, queryWrapper); |
|
|
|
IPage<ZyPlanProcess> pageList = zyPlanProcessService.page(page, queryWrapper); |
|
|
|
|
|
|
|
for(int i = 0 ; i < pageList.getRecords().size() ; i++){ |
|
|
|
|
|
|
|
ZyProductPlan zyProductPlan = zyProductPlanService.getById(pageList.getRecords().get(i).getPlanId()); |
|
|
|
|
|
|
|
pageList.getRecords().get(i).setProductCode(zyProductPlan.getProductNo()); |
|
|
|
|
|
|
|
pageList.getRecords().get(i).setProductNo(zyProductPlan.getProductCode()); |
|
|
|
|
|
|
|
} |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|