| | |
| | | |
| | | 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.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; |
| | |
| | | comActActivityVO.setUserId(this.getLoginUserInfo().getUserId()); |
| | | comActActivityVO.setStatus(2); |
| | | comActActivityVO.setHasPrize(0); |
| | | comActActivityVO.setHaveIntegralReward(0); |
| | | comActActivityVO.setHaveIntegralReward(2); |
| | | return communityService.addActivity(comActActivityVO); |
| | | } |
| | | |
| | |
| | | @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 = "interspaceId",required = false) String interspaceId, |
| | | @RequestParam(value = "userId",required = false) String userId) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId); |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId,userId); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("/shoppingGetDetails") |
| | | public R shoppingGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.shoppingGetDetails(id); |
| | | return jinhuiCommunityService.shoppingGetDetails(id,getCommunityId()+""); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************************** |
| | | * |
| | | * 手环处理 |
| | | * |
| | | *****************************************************************************************************************/ |
| | | |
| | | @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); |
| | | } |
| | | |
| | | |
| | | |
| | | } |