| | |
| | | item.setId(id); |
| | | item.setAffirmTime(new Date()); |
| | | item.setAccomplish("1"); |
| | | int num=baseMapper.editData(item); |
| | | baseMapper.editData(item); |
| | | |
| | | |
| | | NewFightCommunityConstructionDTO dto=new NewFightCommunityConstructionDTO(); |
| | | dto.setId(planDTO.getProjectId()); |
| | | if(pNum==accomplishNum) |
| | | { |
| | | //已完成 |
| | | dto.setStatus("3"); |
| | | } |
| | | else |
| | | { |
| | | //进行中 |
| | | dto.setStatus("2"); |
| | | } |
| | | int num=constructionService.editData(dto); |
| | | if(num>0) |
| | | { |
| | | NewFightCommunityConstructionDTO dto=new NewFightCommunityConstructionDTO(); |
| | | dto.setId(planDTO.getProjectId()); |
| | | if(pNum==accomplishNum) |
| | | { |
| | | //已完成 |
| | | dto.setStatus("3"); |
| | | } |
| | | else |
| | | { |
| | | //进行中 |
| | | dto.setStatus("2"); |
| | | } |
| | | return R.ok(constructionService.editData(dto)); |
| | | return R.ok(); |
| | | } |
| | | return R.fail("操作失败"); |
| | | } |