sfd
2025-05-15 03dcd27f41f614dbe9b62b622a94f4635779cc8b
aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsPlanManagementServiceImpl.java
@@ -3,6 +3,7 @@
import java.util.List;
import java.util.Objects;
import cn.hutool.core.util.IdUtil;
import com.aps.common.core.utils.DateUtils;
import com.aps.common.security.utils.SecurityUtils;
import com.aps.core.domain.ApsPlanCycle;
@@ -25,7 +26,7 @@
 */
@Service
public class ApsPlanManagementServiceImpl extends ServiceImpl<ApsPlanManagementMapper, ApsPlanManagement> implements IApsPlanManagementService {
    @Resolve
    @Autowired
    private ApsPlanManagementMapper apsPlanManagementMapper;
    @Autowired
@@ -73,6 +74,7 @@
    public int insertApsPlanManagement(ApsPlanManagement apsPlanManagement) {
        apsPlanManagement.setCreateTime(DateUtils.getNowDate());
        apsPlanManagement.setCreateBy(SecurityUtils.getUsername());
        apsPlanManagement.setId(IdUtil.getSnowflakeNextId());
        return apsPlanManagementMapper.insertApsPlanManagement(apsPlanManagement);
    }
@@ -118,6 +120,7 @@
        if (planCycle == null) {
            apsPlanCycle.setCreateBy(SecurityUtils.getUsername());
            apsPlanCycle.setCreateTime(DateUtils.getNowDate());
            apsPlanCycle.setId(IdUtil.getSnowflakeNextId());
            apsPlanCycleMapper.insert(apsPlanCycle);
        } else {
            BeanUtils.copyProperties(apsPlanCycle, planCycle, "id", "planId");