过程参数,图形展示修改为使用数据点的paramChartType属性来判断
| | |
| | | while (true) { |
| | | long i = j; |
| | | if (i <= difference) { |
| | | LocalDate needHandleDate = year.equals(currentYear) ? LocalDate.now().plus(difference - i, (TemporalUnit) ChronoUnit.DAYS) : LocalDate.of(year.intValue(), 1, 1).plus(difference - i, (TemporalUnit) ChronoUnit.DAYS); |
| | | LocalDate needHandleDate = year.equals(currentYear) ? LocalDate.now().plus(difference - i, ChronoUnit.DAYS) : LocalDate.of(year.intValue(), 1, 1).plus(difference - i, ChronoUnit.DAYS);// (TemporalUnit) ChronoUnit.DAYS |
| | | LocalDate nextNeedHandleDate = needHandleDate.plus(1L, (TemporalUnit) ChronoUnit.DAYS); |
| | | buildCurrentDayTime(dateDTOList, calendarId, year, dateList, offDay, productionCalendarDaytimeList, productionCalendarDayList, shiftDetailMap, snowflake, curProductionCalendarDayTimeList, needHandleDate); |
| | | handleConflietDayTime(calenadar, year, productionCalendarDaytimeList, todayDateTimeList, curProductionCalendarDayTimeList, difference, i, needHandleDate, nextNeedHandleDate); |
| | |
| | | import com.qianwen.core.tool.api.R; |
| | | import com.qianwen.smartman.modules.cps.dto.WorkstationWcsDmpDTO; |
| | | import com.qianwen.smartman.modules.cps.entity.GlobalWcs; |
| | | import com.qianwen.smartman.modules.mdc.dto.DatapointDTO; |
| | | import com.qianwen.smartman.modules.mdc.dto.ProcessParameterRealVO; |
| | | import com.qianwen.smartman.modules.mdc.service.IProcessParameterService; |
| | | import com.qianwen.smartman.modules.mdc.vo.AllShiftTimeDetail; |
| | |
| | | @GetResource({"/param"}) |
| | | @ApiOperation("åæ°éæ©") |
| | | @PreAuth |
| | | //TODO è°è¯æ°è¿ç¨åæ°å±ç¤ºåå é¤ |
| | | public R<List<WorkstationWcsDmpDTO>> processParam(@RequestParam("workstationId") String workstationId) { |
| | | return R.data(this.processParameterService.processParam(workstationId)); |
| | | } |
| | | |
| | | @ApiOperationSupport(order = RegionCache.VILLAGE_LEVEL) |
| | | @GetResource({"/params"}) |
| | | @ApiOperation("å±ç¤ºæ°æ®ç¹å表") |
| | | @PreAuth |
| | | public R<List<DatapointDTO>> params(@RequestParam("workstationId") String workstationId) { |
| | | return R.data(this.processParameterService.processParams(workstationId)); |
| | | } |
| | | |
| | | @ApiOperationSupport(order = 6) |
| | | @PostResource({"/excel/export"}) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.qianwen.smartman.modules.mdc.dto; |
| | | |
| | | import java.io.Serializable; |
| | | /** |
| | | * æ°æ®ç¹ï¼ç¨äºè·åè¿ç¨åæ°å±ç¤ºé¡¹ |
| | | */ |
| | | public class DatapointDTO implements Serializable { |
| | | private static final long serialVersionUID = -27216320873573146L; |
| | | |
| | | private String dpLabel; |
| | | private String dpName; |
| | | private Boolean isProcessParam; |
| | | /** |
| | | * å±ç¤ºå¾è¡¨ç±»å.âæ²çº¿å¾âï¼å¼lineï¼åâåå¸å¾âï¼å¼distributeï¼ |
| | | */ |
| | | private String paramChartType; |
| | | public String getDpLabel() { |
| | | return dpLabel; |
| | | } |
| | | public void setDpLabel(String dpLabel) { |
| | | this.dpLabel = dpLabel; |
| | | } |
| | | |
| | | public String getDpName() { |
| | | return dpName; |
| | | } |
| | | public void setDpName(String dpName) { |
| | | this.dpName = dpName; |
| | | } |
| | | public String getParamChartType() { |
| | | return paramChartType; |
| | | } |
| | | public void setParamChartType(String paramChartType) { |
| | | this.paramChartType = paramChartType; |
| | | } |
| | | public Boolean getIsProcessParam() { |
| | | return isProcessParam; |
| | | } |
| | | public void setIsProcessParam(Boolean isProcessParam) { |
| | | this.isProcessParam = isProcessParam; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.qianwen.core.oss.model.BladeFile; |
| | | import com.qianwen.smartman.modules.cps.dto.WorkstationWcsDmpDTO; |
| | | import com.qianwen.smartman.modules.cps.entity.GlobalWcs; |
| | | import com.qianwen.smartman.modules.mdc.dto.DatapointDTO; |
| | | import com.qianwen.smartman.modules.mdc.dto.ProcessParameterRealVO; |
| | | import com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO; |
| | | import com.qianwen.smartman.modules.mdc.entity.WorkstationCollectData; |
| | |
| | | IPage<ProcessParameterRealVO> pageProcessParameter(Query query, ProcessParameterItemSearchVO vo); |
| | | |
| | | /** |
| | | * è·åå·¥ä½çææééåæ°å表 |
| | | * è·åå·¥ä½çææééåæ°å表,è°è¯å®æåéè¦å é¤ |
| | | * @param workstationId |
| | | * @return |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | List<WorkstationCollectData> queryLastParameter(long workstationId); |
| | | |
| | | /** |
| | | * è·åå·¥ä½çæææ°æ®ç¹åæ°(å
许è¿ç¨åæ°å±ç¤ºç) |
| | | * @param workstationId å·¥ä½id |
| | | * @return |
| | | */ |
| | | List<DatapointDTO> processParams(String workstationId); |
| | | |
| | | |
| | | } |
| | |
| | | import com.qianwen.smartman.modules.cps.utils.ThrowFun; |
| | | import com.qianwen.smartman.modules.cps.vo.ShiftTimeDetailVO; |
| | | import com.qianwen.smartman.modules.cps.vo.WorkstationDatapointsVO; |
| | | import com.qianwen.smartman.modules.mdc.dto.DatapointDTO; |
| | | import com.qianwen.smartman.modules.mdc.dto.GroupWorkDTO; |
| | | import com.qianwen.smartman.modules.mdc.dto.NewParamDTO; |
| | | import com.qianwen.smartman.modules.mdc.dto.ParamDTO; |
| | |
| | | } |
| | | return dps; |
| | | } |
| | | |
| | | @Override |
| | | public List<DatapointDTO> processParams(String workstationId) { |
| | | //è·åå±ç¤ºå¨è¿ç¨åæ°ä¸çåé |
| | | if(ObjectUtil.isEmpty(workstationId)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | WorkstationDatapointsVO dpVo = dpService.getDatapoints(Long.parseLong(workstationId)); |
| | | if(ObjectUtil.isEmpty(dpVo.getDpConfig())) { |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | //JSONArray dpArrJson = JSONArray.parseArray(dpVo.getDpConfig()); |
| | | List<DatapointDTO> list = JSONObject.parseArray(dpVo.getDpConfig(),DatapointDTO.class); |
| | | |
| | | return list.stream().filter(dp -> dp.getIsProcessParam()!=null && dp.getIsProcessParam()).collect(Collectors.toList()); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public ProParamSheetVO queryProcessParameterSheet(ProcessParameterSearchVO vo, Boolean isFilterProcessParameter) { |
| | |
| | | addresses: http://localhost:8080/xxl-job-admin |
| | | ### xxl-job executor address |
| | | executor: |
| | | appname: phoenix |
| | | appname: smartman |
| | | ip: |
| | | # é¨ç½²39ï¼ä¸´æ¶è°æ´ 7079ori |
| | | port: 7089 |