| | |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantWithdrawVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.entity.VolunteerCommunityConfig; |
| | | import com.panzhihua.service_community.entity.VolunteerCommunityConfigVO; |
| | | import com.panzhihua.service_community.service.VolunteerCommunityConfigService; |
| | | import com.panzhihua.service_community.service.VolunteerMerchantEvaluateService; |
| | | import com.panzhihua.service_community.service.VolunteerMerchantService; |
| | | import com.panzhihua.service_community.service.VolunteerMerchantWithdrawService; |
| | |
| | | |
| | | |
| | | |
| | | /*************************************************************************************************************** |
| | | * |
| | | * 路北社区系统配置 商家折扣 兑换地点信息 |
| | | * |
| | | ****************************************************************************************************************/ |
| | | |
| | | @Resource |
| | | private VolunteerCommunityConfigService vccService; |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/Community/Config/getData") |
| | | public R ConfiggetData(@RequestParam("communityId") String communityId) |
| | | { |
| | | return vccService.getData(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/Community/Config/insertvo") |
| | | public R Configinsertvo(@RequestBody VolunteerCommunityConfigVO item) |
| | | { |
| | | R<VolunteerCommunityConfig> voR=vccService.getData(item.getCommunityId()); |
| | | if(voR==null) |
| | | { |
| | | return vccService.insertvo(item); |
| | | } |
| | | else |
| | | { |
| | | return vccService.update(item); |
| | | } |
| | | } |
| | | } |