| | |
| | | |
| | | 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.*; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientServiceCategoryVO; |
| | | 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; |
| | |
| | | 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 |
| | | * @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); |
| | | } |
| | | |
| | | |
| | | |
| | | } |