| | |
| | | package com.aps.core.controller.basicData; |
| | | |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import com.aps.common.core.utils.poi.ExcelUtil; |
| | | import com.aps.common.core.web.controller.BaseController; |
| | | import com.aps.common.core.web.domain.AjaxResult; |
| | |
| | | import com.aps.common.log.annotation.Log; |
| | | import com.aps.common.log.enums.BusinessType; |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.common.security.utils.SecurityUtils; |
| | | import com.aps.core.domain.ApsGasPipelineCapacityPlan; |
| | | import com.aps.core.domain.ApsStandardProcess; |
| | | import com.aps.core.service.IApsGasPipelineCapacityPlanService; |
| | |
| | | List<ApsGasPipelineCapacityPlan> list = apsGasPipelineCapacityPlanService.selectApsGasPipelineCapacityPlanList(apsGasPipelineCapacityPlan); |
| | | ApsStandardProcess apsStandardProcess = new ApsStandardProcess(); |
| | | apsStandardProcess.setMajor(apsGasPipelineCapacityPlan.getMajor()); |
| | | apsStandardProcess.setPlant(apsGasPipelineCapacityPlan.getOrgCode()); |
| | | List<ApsStandardProcess> processList = apsStandardProcessService.selectApsStandardProcessListAll(apsStandardProcess); |
| | | if(list.isEmpty()){ |
| | | for(ApsStandardProcess apsStandardProcessTemp : processList){ |
| | |
| | | { |
| | | apsGasPipelineCapacityPlan.forEach(apsGasPipelineCapacityPlanTemp -> { |
| | | if(apsGasPipelineCapacityPlanTemp.getId()==null){ |
| | | apsGasPipelineCapacityPlanTemp.setCreateBy(SecurityUtils.getUsername()); |
| | | apsGasPipelineCapacityPlanTemp.setCreateTime(DateUtils.getNowDate()); |
| | | apsGasPipelineCapacityPlanService.insertApsGasPipelineCapacityPlan(apsGasPipelineCapacityPlanTemp); |
| | | }else{ |
| | | apsGasPipelineCapacityPlanTemp.setUpdateBy(SecurityUtils.getUsername()); |
| | | apsGasPipelineCapacityPlanTemp.setUpdateTime(DateUtils.getNowDate()); |
| | | apsGasPipelineCapacityPlanService.updateApsGasPipelineCapacityPlan(apsGasPipelineCapacityPlanTemp); |
| | | } |
| | | }); |