From 4ad4b51a4fb177eafee8a3a355496e7b6c1be662 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期四, 11 七月 2024 16:24:46 +0800 Subject: [PATCH] 花城 小程序签退打卡获取积分详情报错2 --- springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/NewFightProjectPlanServiceImpl.java | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/NewFightProjectPlanServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/NewFightProjectPlanServiceImpl.java index 3a18b56..21de7b3 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/NewFightProjectPlanServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/NewFightProjectPlanServiceImpl.java @@ -25,8 +25,6 @@ public class NewFightProjectPlanServiceImpl extends ServiceImpl<NewFightProjectPlanDAO, NewFightProjectPlanDTO> implements NewFightProjectPlanService { - - @Resource private NewFightCommunityConstructionService constructionService; @@ -47,17 +45,20 @@ @Override public R editProjectPlanAccomplish(String id) { + + NewFightProjectPlanDTO planDTO=baseMapper.getDetails(id); + int pNum=baseMapper.getNum(planDTO.getProjectId(),null); + NewFightProjectPlanDTO item =new NewFightProjectPlanDTO(); item.setId(id); item.setAffirmTime(new Date()); item.setAccomplish("1"); int num=baseMapper.editData(item); + if(num>0) { - NewFightProjectPlanDTO planDTO=baseMapper.getDetails(id); - int pNum=baseMapper.getNum(id,null); - int accomplishNum=baseMapper.getNum(id,"1"); + int accomplishNum=baseMapper.getNum(planDTO.getProjectId(),"1"); NewFightCommunityConstructionDTO dto=new NewFightCommunityConstructionDTO(); dto.setId(planDTO.getProjectId()); if(pNum==accomplishNum) -- Gitblit v1.7.1