| | |
| | | |
| | | import com.panzhihua.common.exceptions.PartyBuildingMemberException; |
| | | import com.panzhihua.common.model.dtos.partybuilding.ActivitySignUpDTO; |
| | | import com.panzhihua.common.model.dtos.partybuilding.ComPbServiceTeamDTO; |
| | | import com.panzhihua.common.model.dtos.partybuilding.PageComPbServiceTeamDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.partybuilding.*; |
| | | import com.panzhihua.service_dangjian.service.ComBpActivityService; |
| | | import com.panzhihua.service_dangjian.service.ComPbMemberService; |
| | | import com.panzhihua.service_dangjian.service.ComPbServiceTeamService; |
| | | import com.panzhihua.service_dangjian.service.PartyOrganizationService; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private PartyOrganizationService partyOrganizationService; |
| | | @Resource |
| | | private ComBpActivityService comBpActivityService; |
| | | @Resource |
| | | private ComPbServiceTeamService comPbServiceTeamService; |
| | | |
| | | /** |
| | | * 平台所有的党组织 |
| | |
| | | return comBpActivityService.timedTaskPartyBuildingActivityAll(); |
| | | } |
| | | |
| | | /** |
| | | * 新增服务团队人员 |
| | | * @param comPbServiceTeamDTO 新增内容 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("addserviceteam") |
| | | public R addServiceTeam(@RequestBody ComPbServiceTeamDTO comPbServiceTeamDTO){ |
| | | return comPbServiceTeamService.addServiceTeam(comPbServiceTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 编辑团队人员 |
| | | * @param comPbServiceTeamDTO 编辑内容 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("putserviceteam") |
| | | public R putServiceTeam(@RequestBody ComPbServiceTeamDTO comPbServiceTeamDTO){ |
| | | return comPbServiceTeamService.putServiceTeam(comPbServiceTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询服务团队成员 |
| | | * @param pageComPbServiceTeamDTO 查询参数 |
| | | * @return 查询结果 |
| | | */ |
| | | @PostMapping("pageserviceteam") |
| | | public R pageServiceTeam(@RequestBody PageComPbServiceTeamDTO pageComPbServiceTeamDTO){ |
| | | return comPbServiceTeamService.PageComPbServiceTeamDTO(pageComPbServiceTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除服务团队人员 |
| | | * @param comPbServiceTeamDTO 删除主键 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("deleteserviceteam") |
| | | public R deleteServiceTeam(@RequestBody ComPbServiceTeamDTO comPbServiceTeamDTO){ |
| | | return comPbServiceTeamService.deleteServiceTeam(comPbServiceTeamDTO); |
| | | } |
| | | |
| | | } |