| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | |
| | | import cn.hutool.core.util.IdUtil; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import com.aps.common.core.utils.uuid.IdUtils; |
| | | import com.aps.common.security.utils.DictUtils; |
| | | import com.aps.core.domain.ApsMaterialStorageManagement; |
| | | import com.aps.core.domain.ApsPlatePlan; |
| | | import com.aps.core.domain.ApsPlatePlanTemp; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import com.aps.core.mapper.ApsPartPlanTempMapper; |
| | | import com.aps.core.mapper.ApsPlatePlanMapper; |
| | | import com.aps.core.mapper.ApsPlatePlanTempMapper; |
| | | import com.aps.core.service.IApsPlatePlanService; |
| | | import com.aps.system.api.domain.SysDictData; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlatePlanMapper; |
| | | import com.aps.core.domain.ApsPlatePlan; |
| | | import com.aps.core.service.IApsPlatePlanService; |
| | | |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | | * 钣金计划管理Service业务层处理 |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-04-08 |
| | | */ |
| | | @Service |
| | | public class ApsPlatePlanServiceImpl implements IApsPlatePlanService |
| | | public class ApsPlatePlanServiceImpl implements IApsPlatePlanService |
| | | { |
| | | @Autowired |
| | | private ApsPlatePlanMapper apsPlatePlanMapper; |
| | |
| | | |
| | | /** |
| | | * 查询钣金计划管理 |
| | | * |
| | | * |
| | | * @param id 钣金计划管理主键 |
| | | * @return 钣金计划管理 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询钣金计划管理列表 |
| | | * |
| | | * |
| | | * @param apsPlatePlan 钣金计划管理 |
| | | * @return 钣金计划管理 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 新增钣金计划管理 |
| | | * |
| | | * |
| | | * @param apsPlatePlan 钣金计划管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertApsPlatePlan(ApsPlatePlan apsPlatePlan) |
| | | { |
| | | apsPlatePlan.setId(IdUtils.fastUUID()); |
| | | apsPlatePlan.setId(IdUtil.getSnowflakeNextId()); |
| | | apsPlatePlan.setCreateTime(DateUtils.getNowDate()); |
| | | return apsPlatePlanMapper.insertApsPlatePlan(apsPlatePlan); |
| | | } |
| | | |
| | | /** |
| | | * 修改钣金计划管理 |
| | | * |
| | | * |
| | | * @param apsPlatePlan 钣金计划管理 |
| | | * @return 结果 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 批量删除钣金计划管理 |
| | | * |
| | | * |
| | | * @param ids 需要删除的钣金计划管理主键 |
| | | * @return 结果 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 删除钣金计划管理信息 |
| | | * |
| | | * |
| | | * @param id 钣金计划管理主键 |
| | | * @return 结果 |
| | | */ |
| | |
| | | ids[i]=apsPartPlanTemps.get(i).getId(); |
| | | ApsPlatePlan platePlan=new ApsPlatePlan(); |
| | | BeanUtils.copyProperties(apsPartPlanTemps.get(i), platePlan); |
| | | platePlan.setId(IdUtils.fastUUID()); |
| | | platePlan.setId(IdUtil.getSnowflakeNextId()); |
| | | platePlan.setCreateTime(DateUtils.getNowDate()); |
| | | //插入正式表,并记录 |
| | | apsPlatePlanMapper.insertApsPlatePlan(platePlan); |
| | |
| | | return Strings.EMPTY; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 钣金冗余工单报表 |
| | | * @param apsPlatePlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ApsPlatePlan> selectPlateRedundantOrderList(ApsPlatePlan apsPlatePlan) { |
| | | return apsPlatePlanMapper.selectPlateRedundantOrderList(apsPlatePlan); |
| | | } |
| | | } |