| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.bracelet.BraceletEarlyWarningDO; |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.JinhuiPageConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientServiceCategoryVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinghuiMerchantEvaluateVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiCoinGeneralTableVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiGoldCoinRecordVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.JinhuiConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.jinhui.*; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.bracelet.CommunityBraceletService; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.jinhui.JinhuiCommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | comActActivityVO.setUserId(this.getLoginUserInfo().getUserId()); |
| | | comActActivityVO.setStatus(2); |
| | | comActActivityVO.setHasPrize(0); |
| | | comActActivityVO.setHaveIntegralReward(0); |
| | | comActActivityVO.setHaveIntegralReward(2); |
| | | return communityService.addActivity(comActActivityVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "办事指南_详情", response = ComActWorkGuideVO.class) |
| | | @GetMapping("/detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") String workGuideId, |
| | | @RequestParam("communityId") String communityId) { |
| | | return jinhuiCommunityService.detailWorkGuide(workGuideId, communityId); |
| | | public R detailWorkGuide(@RequestParam("workGuideId") String workGuideId) { |
| | | return jinhuiCommunityService.detailWorkGuide(workGuideId, getCommunityId() + ""); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation(value = "删除便民服务商家") |
| | | @DeleteMapping("/merchant/delete") |
| | | public R deleteMerchant(@RequestParam("merchantId") String merchantId, |
| | | @RequestParam("operator") String operator) { |
| | | return jinhuiCommunityService.deleteMerchant(merchantId, operator); |
| | | public R deleteMerchant(@RequestParam("merchantId") String merchantId) { |
| | | return jinhuiCommunityService.deleteMerchant(merchantId); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation(value = "分页查询便民服务商家", response = ConvenientMerchantVO.class) |
| | | @PostMapping("/merchant/page") |
| | | public R pageMerchant(@RequestBody PageConvenientMerchantDTO pageConvenientMerchantDTO) |
| | | public R pageMerchant(@RequestBody JinhuiPageConvenientMerchantDTO pageConvenientMerchantDTO) |
| | | { |
| | | pageConvenientMerchantDTO.setAuditType("2"); |
| | | return jinhuiCommunityService.pageMerchant(pageConvenientMerchantDTO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "获取便民服务商家详情", response = ConvenientMerchantVO.class) |
| | | @GetMapping("/merchant/get") |
| | | public R getMerchant(@RequestParam("merchantId") String merchantId) |
| | | { |
| | | public R getMerchant(@RequestParam("merchantId") String merchantId) { |
| | | return jinhuiCommunityService.getMerchant(merchantId); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 分页查询 商家类别 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取便民服务商家类别列表", response = ConvenientServiceCategoryVO.class) |
| | | @GetMapping("/getCategories") |
| | | public R getListCategories(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize) |
| | | { |
| | | return jinhuiCommunityService.getListCategories(pageNum,pageSize); |
| | | @RequestParam("pageSize") int pageSize) { |
| | | return jinhuiCommunityService.getListCategories(pageNum, pageSize); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "便民服务商家入驻") |
| | | @PostMapping("/merchant/addData") |
| | | public R merchantAddData(@RequestBody JinhuiConvenientMerchantVO item) |
| | | { |
| | | item.setAuditType("1"); |
| | | item.setCreatedBy(getUserId()+""); |
| | | return jinhuiCommunityService.merchantAddData(item); |
| | | } |
| | | |
| | | /*************************************************************************************************** |
| | | * |
| | |
| | | **************************************************************************************************/ |
| | | /** |
| | | * 商家评论列表 |
| | | * |
| | | * @param pageNum |
| | | * @param pageSize |
| | | * @param merchantId |
| | |
| | | */ |
| | | @ApiOperation(value = "商家评论列表", response = JinghuiMerchantEvaluateVO.class) |
| | | @GetMapping("/merchantEvaluate/getList") |
| | | public R merchantEvaluateGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("merchantId") String merchantId) |
| | | { |
| | | return jinhuiCommunityService.merchantEvaluateGetList(pageNum,pageSize,merchantId); |
| | | public R merchantEvaluateGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("merchantId") String merchantId) { |
| | | return jinhuiCommunityService.merchantEvaluateGetList(pageNum, pageSize, merchantId); |
| | | } |
| | | |
| | | /** |
| | | * 商家评论列单个详情 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "商家评论列单个详情", response = JinghuiMerchantEvaluateVO.class) |
| | | @GetMapping("/merchantEvaluate/getDetails") |
| | | public R merchantEvaluateGetDetails(@RequestParam("id") String id) |
| | | { |
| | | public R merchantEvaluateGetDetails(@RequestParam("id") String id) { |
| | | return jinhuiCommunityService.merchantEvaluateGetDetails(id); |
| | | } |
| | | |
| | | /** |
| | | * 商家评论列添加 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "商家评论列添加") |
| | | @PostMapping("/merchantEvaluate/addData") |
| | | public R merchantEvaluateAddData(@RequestBody JinghuiMerchantEvaluateVO item) |
| | | { |
| | | public R merchantEvaluateAddData(@RequestBody JinghuiMerchantEvaluateVO item) { |
| | | item.setUserId(getUserId()+""); |
| | | return jinhuiCommunityService.merchantEvaluateAddData(item); |
| | | } |
| | | |
| | | /** |
| | | * 商家评论列编辑 |
| | | * |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "商家评论列编辑") |
| | | @PostMapping("/merchantEvaluate/editData") |
| | | public R merchantEvaluateEditData(@RequestBody JinghuiMerchantEvaluateVO item) |
| | | { |
| | | public R merchantEvaluateEditData(@RequestBody JinghuiMerchantEvaluateVO item) { |
| | | return jinhuiCommunityService.merchantEvaluateEditData(item); |
| | | } |
| | | |
| | | /** |
| | | * 商家评论列删除 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "商家评论列删除") |
| | | @PostMapping("/merchantEvaluate/expurgateData") |
| | | public R merchantEvaluateExpurgateData(@RequestParam("id") String id) |
| | | { |
| | | public R merchantEvaluateExpurgateData(@RequestParam("id") String id) { |
| | | return jinhuiCommunityService.merchantEvaluateExpurgateData(id); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南列表-按分类查询", response = ComActWorkGuideAppletsVO.class) |
| | | @PostMapping("wx/list") |
| | | public R listWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | pageActWorkGuideDTO.setAreaCode(this.getAreaCode()); |
| | | return jinhuiCommunityService.listWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南_分页", response = ComActWorkGuideVO.class) |
| | | @PostMapping("wx/pageworkguide") |
| | | public R detailWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | pageActWorkGuideDTO.setAreaCode(this.getAreaCode()); |
| | | return jinhuiCommunityService.pageWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | | |
| | | /************************************************************************************************ |
| | | * |
| | | * |
| | | * 金汇预约空间模块 |
| | | * |
| | | * |
| | | **********************************************************************************************/ |
| | | /** |
| | | * 金汇空间预约模块分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇空间预约模块分页查询", response = JinhuiInterspaceVO.class) |
| | | @GetMapping("/interspaceGetList") |
| | | public R interspaceGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType", required = false) String intendantType) { |
| | | return jinhuiCommunityService.interspaceGetList(pageNum, pageSize, intendantType); |
| | | } |
| | | |
| | | /** |
| | | * 金汇空间预约模块单个详情 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇空间详情", response = JinhuiInterspaceVO.class) |
| | | @GetMapping("/interspaceGetDetails") |
| | | public R interspaceGetDetails(@RequestParam("id") String id) { |
| | | return jinhuiCommunityService.interspaceGetDetails(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 空间预约分类分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "空间预约分类分页查询", response = JinhuiInterspaceTypeVO.class) |
| | | @GetMapping("/interspaceTypeGetList") |
| | | public R interspaceTypeGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize) |
| | | { |
| | | return jinhuiCommunityService.interspaceTypeGetList(pageNum,pageSize); |
| | | } |
| | | |
| | | |
| | | /*************************************************************************************************************** |
| | | * |
| | | * |
| | | * 空间预约申请 |
| | | * |
| | | * |
| | | **************************************************************************************************************/ |
| | | /** |
| | | * 空间预约申请分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "空间预约申请分页", response = JinhuiInterspaceApplyForVO.class) |
| | | @GetMapping("/applyFor/getList") |
| | | public R applyForGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType", required = false) String intendantType, |
| | | @RequestParam(value = "state", required = false) String state, |
| | | @RequestParam(value = "interspaceTime",required = false) String interspaceTime, |
| | | @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame, |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId, |
| | | @RequestParam(value = "userId",required = false) String userId) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId,userId); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请详情 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "空间预约申请详情", response = JinhuiInterspaceApplyForVO.class) |
| | | @GetMapping("/applyFor/getDetails") |
| | | public R applyForGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.applyForGetDetails(id); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "空间预约申请新增") |
| | | @PostMapping("/applyFor/addData") |
| | | public R applyForAddData(@RequestBody JinhuiInterspaceApplyForVO item) |
| | | { |
| | | return jinhuiCommunityService.applyForAddData(item); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请编辑 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "空间预约申请编辑") |
| | | @PostMapping("/applyFor/editData") |
| | | public R applyForEditData(@RequestBody JinhuiInterspaceApplyForVO item) |
| | | { |
| | | return jinhuiCommunityService.applyForEditData(item); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请删除 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "空间预约申请删除") |
| | | @DeleteMapping("/applyFor/expurgateData") |
| | | public R applyForExpurgateData(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.applyForExpurgateData(id); |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************************** |
| | | * |
| | | * |
| | | * 金汇微心愿 |
| | | * |
| | | * |
| | | ******************************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇微心愿列表", response = JinhuiMicroVolunteeringVO.class) |
| | | @GetMapping("/volunteering/getList") |
| | | public R volunteeringGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "state", required = false)String state) |
| | | { |
| | | return jinhuiCommunityService.volunteeringGetList(pageNum,pageSize,getUserId()+"",state); |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇微心愿详情", response = JinhuiMicroVolunteeringVO.class) |
| | | @GetMapping("/volunteering/getDetails") |
| | | public R volunteeringGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.volunteeringGetDetails(id); |
| | | } |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇微心愿新增") |
| | | @PostMapping("/volunteering/addData") |
| | | public R volunteeringAddData(@RequestBody JinhuiMicroVolunteeringVO item) |
| | | { |
| | | item.setUserId(getUserId()+""); |
| | | return jinhuiCommunityService.volunteeringAddData(item); |
| | | } |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇微心愿编辑") |
| | | @PostMapping("/volunteering/editData") |
| | | public R volunteeringEditData(@RequestBody JinhuiMicroVolunteeringVO item) |
| | | { |
| | | return jinhuiCommunityService.volunteeringEditData(item); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇微心愿删除") |
| | | @DeleteMapping("/volunteering/expurgateData") |
| | | public R volunteeringExpurgateData(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.volunteeringExpurgateData(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇微心愿分类列表", response = JinhuiMicroVolunteeringTypeVO.class) |
| | | @GetMapping("/micro/type/getList") |
| | | public R volunteeringTypeGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize) { |
| | | return jinhuiCommunityService.volunteeringTypeGetList(pageNum, pageSize); |
| | | } |
| | | |
| | | /********************************************************************************************************* |
| | | * |
| | | * |
| | | * 金汇商城商品 |
| | | * |
| | | * |
| | | *********************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇商城商品列表表", response = JinhuiShoppingVO.class) |
| | | @GetMapping("/shoppingGetList") |
| | | public R shoppingGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "goodName", required = false) String goodName, |
| | | @RequestParam(value = "id", required = false) String id) |
| | | { |
| | | return jinhuiCommunityService.shoppingGetList(pageNum,pageSize,goodName,"1",id); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "金汇商城商品详情", response = JinhuiShoppingVO.class) |
| | | @GetMapping("/shoppingGetDetails") |
| | | public R shoppingGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.shoppingGetDetails(id,getCommunityId()+""); |
| | | } |
| | | |
| | | |
| | | |
| | | /******************************************************************************************************** |
| | | * |
| | | * |
| | | * 金汇商城商品订单 |
| | | * |
| | | * |
| | | ********************************************************************************************************/ |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "订单列表", response = JinhuiShoppingOrderVO.class) |
| | | @GetMapping("/orderGetList") |
| | | public R orderGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "goodsId", required = false)String goodsId, |
| | | @RequestParam(value = "orderNumber", required = false)String orderNumber, |
| | | @RequestParam(value = "goodName", required = false)String goodName, |
| | | @RequestParam(value = "name", required = false)String name, |
| | | @RequestParam(value = "cancelType", required = false)String cancelType) |
| | | { |
| | | return jinhuiCommunityService.orderGetList(pageNum,pageSize,getUserId()+"", |
| | | goodsId,orderNumber,goodName,name,cancelType); |
| | | } |
| | | |
| | | /** |
| | | * 分页详情 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "订单详情", response = JinhuiShoppingOrderVO.class) |
| | | @GetMapping("/orderGetDetails") |
| | | public R orderGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.orderGetDetails(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "订单新增") |
| | | @PostMapping("/orderAddData") |
| | | public R orderAddData(@RequestBody JinhuiShoppingOrderVO item) |
| | | { |
| | | return jinhuiCommunityService.orderAddData(item); |
| | | } |
| | | |
| | | /** |
| | | * 取消 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "订单取消") |
| | | @GetMapping("/orderCancelOrder") |
| | | public R orderCancelOrder(@RequestParam("orderId") String orderId) |
| | | { |
| | | return jinhuiCommunityService.orderCancelOrder(orderId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "订单删除") |
| | | @DeleteMapping("/orderExpurgateData") |
| | | public R orderExpurgateData(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.orderExpurgateData(id); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "订单核销") |
| | | @GetMapping("/orderCheck") |
| | | public R orderEditData(@RequestParam("id") String id) |
| | | { |
| | | |
| | | if(StringUtils.isEmpty(id)) |
| | | { |
| | | return R.fail("订单id不能为空"); |
| | | } |
| | | |
| | | JinhuiShoppingOrderVO vo=new JinhuiShoppingOrderVO(); |
| | | vo.setId(id); |
| | | vo.setCancelType("1"); |
| | | vo.setCancelTime(new Date()); |
| | | return jinhuiCommunityService.orderEditData(vo); |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************** |
| | | * |
| | | * 金汇文章 |
| | | * |
| | | *******************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇文章列表", response = JinhuiArticleManagementVO.class) |
| | | @GetMapping("/articleGetList") |
| | | public R articleGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize) |
| | | { |
| | | return jinhuiCommunityService.articleGetList(pageNum,pageSize,"1","1"); |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇文章详情", response = JinhuiArticleManagementVO.class) |
| | | @GetMapping("/articleGetDetails") |
| | | public R articleGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.articleGetDetails(id); |
| | | } |
| | | |
| | | |
| | | |
| | | /************************************************************************************************************* |
| | | * |
| | | * 金汇体验活动 |
| | | * |
| | | ***************************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "体验活动列表", response = JinhuiExperienceActivityVO.class) |
| | | @GetMapping("/experienceGetList") |
| | | public R experienceGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "activityName", required = false) String activityName, |
| | | @RequestParam(value = "activityType", required = false) String activityType, |
| | | @RequestParam(value = "starTime", required = false) Date starTime, |
| | | @RequestParam(value = "endTime", required = false) Date endTime) |
| | | { |
| | | return jinhuiCommunityService.experienceGetList(pageNum,pageSize,activityName,activityType,starTime,endTime); |
| | | } |
| | | |
| | | /** |
| | | * 单个详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "体验活动单个详情", response = JinhuiExperienceActivityVO.class) |
| | | @GetMapping("/experienceGetDetails") |
| | | public R experienceGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.experienceGetDetails(id,getUserId()+""); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /******************************************************************************************************* |
| | | * |
| | | * 金汇报名体验 |
| | | * |
| | | *******************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇报名体验列表", response = JinhuiApplyExperienceVO.class) |
| | | @GetMapping("/applyExperienceGetList") |
| | | public R applyExperienceGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "isFeedback", required = false) String isFeedback, |
| | | @RequestParam(value = "activityId", required = false) String activityId) |
| | | { |
| | | return jinhuiCommunityService.applyExperienceGetList(pageNum,pageSize,getUserId()+"",isFeedback,activityId); |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇报名体验详情", response = JinhuiApplyExperienceVO.class) |
| | | @GetMapping("/applyExperienceGetDetails") |
| | | public R applyExperienceGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.applyExperienceGetDetails(id,null,null); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇报名体验新增") |
| | | @PostMapping("/applyExperienceAddData") |
| | | public R applyExperienceAddData(@RequestBody JinhuiApplyExperienceVO item) |
| | | { |
| | | item.setUserId(getUserId()+""); |
| | | return jinhuiCommunityService.applyExperienceAddData(item); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 填写反馈接口 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇报名体验填写反馈接口") |
| | | @GetMapping("/applyExperienceFilIn") |
| | | public R filIn(@RequestParam("activityId") String activityId, |
| | | @RequestParam("content") String content) |
| | | { |
| | | return jinhuiCommunityService.filIn(getUserId()+"",activityId,content); |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************** |
| | | * |
| | | * 金汇家园 |
| | | * |
| | | *******************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇家园列表", response = JinhuiArticleManagementVO.class) |
| | | @GetMapping("/homeGetList") |
| | | public R homeGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize) |
| | | { |
| | | return jinhuiCommunityService.articleGetList(pageNum,pageSize,null,"2"); |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇家园详情", response = JinhuiArticleManagementVO.class) |
| | | @GetMapping("/homeGetDetails") |
| | | public R homeGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.articleGetDetails(id); |
| | | } |
| | | |
| | | |
| | | /************************************************************************************************************ |
| | | * |
| | | * |
| | | * 用户提交办理 /JinhuiWorkGuide/ |
| | | * |
| | | * |
| | | *******************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "我的提交办事指南列表",response = JinhuiQuestnaireUserAnswerVO.class) |
| | | @GetMapping("/answer/getList") |
| | | public R answerGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "transactType", required = false) String transactType) |
| | | { |
| | | return jinhuiCommunityService.answerGetList(pageNum,pageSize,getUserId()+"",transactType); |
| | | } |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "我的提交办事指南详情",response = JinhuiQuestnaireUserAnswerVO.class) |
| | | @GetMapping("/answer/getDetails") |
| | | public R answerGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.answerGetDetails(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "我的提交办事指南申请办理") |
| | | @PostMapping("/answer/addData") |
| | | public R answerAddData(@RequestBody JinhuiQuestnaireUserAnswerVO item) |
| | | { |
| | | item.setUserId(getUserId()+""); |
| | | item.setTransactType("0"); |
| | | return jinhuiCommunityService.answerAddData(item); |
| | | } |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "我的提交办事指南申请编辑") |
| | | @PostMapping("/answer/editData") |
| | | public R answerEditData(@RequestBody JinhuiQuestnaireUserAnswerVO item) |
| | | { |
| | | return jinhuiCommunityService.answerEditData(item); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "我的提交办事指南申请删除") |
| | | @DeleteMapping("/answer/expurgateData") |
| | | public R answerExpurgateData(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.answerExpurgateData(id); |
| | | } |
| | | |
| | | |
| | | /**************************************************************************************************************** |
| | | * |
| | | * |
| | | * 金汇慈善公益 |
| | | * |
| | | * |
| | | ******************************************************************************************************************/ |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "金汇慈善公益列表",response = JinhuiCharityVO.class) |
| | | @GetMapping("/getCharityList") |
| | | public R getCharityList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "title", required = false) String title, |
| | | @RequestParam(value = "label", required = false) String label, |
| | | @RequestParam(value = "state", required = false) String state) |
| | | { |
| | | return jinhuiCommunityService.getCharityList(pageNum,pageSize,title,label,state); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "金汇慈善公益详情",response = JinhuiCharityVO.class) |
| | | @GetMapping("/getCharityDetails") |
| | | public R getCharityDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.getCharityDetails(id); |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************************** |
| | | * |
| | | * 手环处理 |
| | | * |
| | | *****************************************************************************************************************/ |
| | | |
| | | @Resource |
| | | private CommunityBraceletService communityBraceletService; |
| | | /** |
| | | * 微信处理接口 |
| | | * @param braceletEarlyWarningDO |
| | | * @return |
| | | */ |
| | | @PostMapping("/WXdispose") |
| | | public R WXdispose(@RequestBody BraceletEarlyWarningDO braceletEarlyWarningDO) |
| | | { |
| | | if(com.panzhihua.common.utlis.StringUtils.isEmpty(braceletEarlyWarningDO.getDisposeText())) |
| | | { |
| | | return R.fail("处理内容不能为空"); |
| | | } |
| | | braceletEarlyWarningDO.setDisposeType("2"); |
| | | return communityBraceletService.WXdispose(braceletEarlyWarningDO); |
| | | } |
| | | |
| | | /** |
| | | * 微信我的预警数据 |
| | | * @return |
| | | */ |
| | | @GetMapping("/braceletApi/getEarlyWarningList") |
| | | public R getList(@RequestParam("pageNum") Integer pageNum, |
| | | @RequestParam("pageSize") Integer pageSize, |
| | | @RequestParam(value = "equipmentNumber",required = false) String equipmentNumber, |
| | | @RequestParam(value = "type",required = false) String type, |
| | | @RequestParam(value = "userName",required = false) String userName, |
| | | @RequestParam(value = "phone",required = false) String phone) |
| | | { |
| | | return communityBraceletService.getList(pageNum,pageSize,getCommunityId()+"",equipmentNumber, |
| | | getUserId()+"",type,userName,phone); |
| | | } |
| | | |
| | | |
| | | |
| | | } |