| | |
| | | package com.panzhihua.service_dangjian.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.partybuilding.NewFightIntegral; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.building.IntegratingTaskVO; |
| | | import com.panzhihua.service_dangjian.entity.IntegratingTask; |
| | | import com.panzhihua.service_dangjian.service.NewFightConvenientMerchantService; |
| | | import com.panzhihua.service_dangjian.service.ComActIntegralUsersService; |
| | | import com.panzhihua.service_dangjian.service.NewFightIntegratingTaskService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | { |
| | | @Resource |
| | | private NewFightIntegratingTaskService taskService; |
| | | |
| | | @Resource |
| | | private ComActIntegralUsersService usersService; |
| | | |
| | | /** |
| | | * 列表 |
| | |
| | | return taskService.addData(item); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加或者修改积分 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @PostMapping("/upIntegral") |
| | | public R upIntegral(@RequestBody NewFightIntegral item) |
| | | { |
| | | return usersService.upIntegral(item); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 每日签到记录列表 前15条 |
| | | * @param userId |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/getEverydayList") |
| | | public R getEverydayList(@RequestParam("userId") String userId, |
| | | @RequestParam("communityId") String communityId) |
| | | { |
| | | return R.ok(taskService.getEverydayList(userId,communityId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 每日定时清空 |
| | | */ |
| | | @GetMapping("/everydaYtruncateData") |
| | | public R truncateData() |
| | | { |
| | | return taskService.truncateData(); |
| | | } |
| | | |
| | | |
| | | } |