sfd
2025-05-26 2a64b537e8e3bce9ce030585a3da17d48379c0ad
aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java
@@ -2,6 +2,7 @@
import java.util.List;
import com.aps.common.core.utils.DateUtils;
import com.aps.common.core.utils.uuid.IdUtils;
import com.aps.core.domain.ApsGasPipingPlanTemp;
import com.aps.core.domain.ApsPartPlan;
@@ -14,6 +15,7 @@
import com.aps.core.mapper.ApsGasPipingPlanMapper;
import com.aps.core.domain.ApsGasPipingPlan;
import com.aps.core.service.IApsGasPipingPlanService;
import org.springframework.transaction.annotation.Transactional;
/**
 * 气体管路计划管理Service业务层处理
@@ -63,6 +65,7 @@
    public int insertApsGasPipingPlan(ApsGasPipingPlan apsGasPipingPlan)
    {
        apsGasPipingPlan.setId(IdUtils.fastUUID());
        apsGasPipingPlan.setCreateTime(DateUtils.getNowDate());
        return apsGasPipingPlanMapper.insertApsGasPipingPlan(apsGasPipingPlan);
    }
@@ -102,8 +105,11 @@
        return apsGasPipingPlanMapper.deleteApsGasPipingPlanById(id);
    }
    @Transactional
    @Override
    public int confirmGasPiping(ApsGasPipingPlanTemp apsGasPipingPlanTemp) {
        //删除所有计划
        apsGasPipingPlanMapper.removeAllPlans();
        //查询临时表数据
        List<ApsGasPipingPlanTemp> apsGasPipingPlanTemps=apsGasPipingPlanTempMapper.selectApsGasPipingPlanTempList(apsGasPipingPlanTemp);
        int count=0;