| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | |
| | | 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.ApsPlatePlanTemp; |
| | |
| | | public int insertApsPlatePlan(ApsPlatePlan apsPlatePlan) |
| | | { |
| | | apsPlatePlan.setId(IdUtils.fastUUID()); |
| | | apsPlatePlan.setCreateTime(DateUtils.getNowDate()); |
| | | return apsPlatePlanMapper.insertApsPlatePlan(apsPlatePlan); |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | public int confirmPlan(ApsPlatePlanTemp tempPlan) { |
| | | //先删除所有 |
| | | apsPlatePlanMapper.removeAllPlatePlans(); |
| | | //查询临时表数据 |
| | | List<ApsPlatePlanTemp> apsPartPlanTemps=apsPlatePlanTempMapper.selectApsPlatePlanTempList(tempPlan); |
| | | int count=0; |
| | |
| | | ApsPlatePlan platePlan=new ApsPlatePlan(); |
| | | BeanUtils.copyProperties(apsPartPlanTemps.get(i), platePlan); |
| | | platePlan.setId(IdUtils.fastUUID()); |
| | | platePlan.setCreateTime(DateUtils.getNowDate()); |
| | | //插入正式表,并记录 |
| | | apsPlatePlanMapper.insertApsPlatePlan(platePlan); |
| | | count++; |