Merge remote-tracking branch 'origin/partyBuilding_lyq' into hemenkou_dev
# Conflicts:
# springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngVolunteerMngVO.java
# springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
354个文件已修改
2个文件已删除
316个文件已添加
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | import static java.util.Objects.nonNull; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApplyFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApprovalFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EvaluationFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.FeedbackFmsServiceDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActEvaluateVO; |
| | | import com.panzhihua.common.model.vos.community.fms.CascadeCommVO; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsEventAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsServiceAppletsDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsTeamDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsClassroomVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamTypeVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamVO; |
| | | import com.panzhihua.common.model.vos.grid.EventDetailsVO; |
| | | import com.panzhihua.common.model.vos.grid.EventVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.grid.GridService; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @title: ComFmsApi |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务相关接口 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:23 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"五微服务"}) |
| | | @RestController |
| | | @RequestMapping("/fms") |
| | | public class ComFmsApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | @Resource |
| | | private GridService gridService; |
| | | |
| | | @ApiOperation(value = "获取团队类型列表", response = ComFmsTeamTypeVO.class) |
| | | @ApiImplicitParam(name = "communityId", value = "社区id", required = true) |
| | | @GetMapping("/teamType/list") |
| | | public R listFmsTeamType(@RequestParam(value = "communityId", required = false) Long communityId) { |
| | | LoginUserInfoVO userInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (isNull(userInfo) && isNull(communityId)) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | if (nonNull(userInfo)) { |
| | | communityId = userInfo.getCommunityId(); |
| | | } |
| | | return communityService.listFmsTeamType(communityId); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页/全部查询团队信息", response = ComFmsTeamVO.class) |
| | | @PostMapping("/team/page") |
| | | public R pageFmsTeam(@RequestBody PageFmsTeamDTO pageFmsTeamDTO) { |
| | | LoginUserInfoVO userInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (isNull(userInfo) && isNull(pageFmsTeamDTO.getCommunityId())) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | if (nonNull(userInfo)) { |
| | | pageFmsTeamDTO.setCommunityId(userInfo.getCommunityId()); |
| | | } |
| | | return communityService.pageFmsTeamApplets(pageFmsTeamDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询微讲堂", response = ComFmsClassroomVO.class) |
| | | @PostMapping("/classroom/page") |
| | | public R pageFmsClassroom(@RequestBody @Valid PageFmsClassroomAdminDTO adminDTO) { |
| | | LoginUserInfoVO userInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (isNull(userInfo) && isNull(adminDTO.getCommunityId())) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | if (nonNull(userInfo)) { |
| | | adminDTO.setCommunityId(userInfo.getCommunityId()); |
| | | } |
| | | return communityService.pageFmsClassroomAdmin(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取微讲堂详情", response = ComFmsClassroomVO.class) |
| | | @ApiImplicitParam(name = "id", value = "微讲堂id", required = true) |
| | | @GetMapping("/classroom/detail") |
| | | public R detailFmsClassroom(@RequestParam("id") Long id) { |
| | | return communityService.detailFmsClassroomApplets(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询微调节/微防控", response = EventVO.class) |
| | | @PostMapping("/event/page") |
| | | public R pageFmsEvent(@RequestBody @Valid PageFmsEventAdminDTO adminDTO) { |
| | | LoginUserInfoVO userInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (isNull(userInfo) && isNull(adminDTO.getCommunityId())) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | if (nonNull(userInfo)) { |
| | | adminDTO.setCommunityId(userInfo.getCommunityId()); |
| | | } |
| | | return communityService.pageFmsEventApplets(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微调节/微防控事件详情", response = EventDetailsVO.class) |
| | | @ApiImplicitParam(name = "eventId", value = "事件id", required = true) |
| | | @GetMapping("/event/detail") |
| | | public R detailFmsEvent(@RequestParam("eventId") Long eventId) { |
| | | return gridService.eventDetails(eventId); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询微服务", response = ComFmsServiceVO.class) |
| | | @PostMapping("/service/page") |
| | | public R pageFmsService(@RequestBody @Valid PageFmsServiceAppletsDTO adminDTO) { |
| | | LoginUserInfoVO userInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (isNull(userInfo) && isNull(adminDTO.getCommunityId())) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | if (nonNull(userInfo)) { |
| | | adminDTO.setCommunityId(userInfo.getCommunityId()); |
| | | } |
| | | return communityService.pageFmsServiceApplets(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看微服务详情", response = ComFmsServiceVO.class) |
| | | @ApiImplicitParam(name = "serviceId", value = "服务id", required = true) |
| | | @GetMapping("/service/detail") |
| | | public R detailFmsService(@RequestParam("serviceId") Long serviceId) { |
| | | LoginUserInfoVO userInfo = this.getLoginUserInfoSureNoLogin(); |
| | | Long userId = null; |
| | | if (nonNull(userInfo)) { |
| | | userId = userInfo.getUserId(); |
| | | } |
| | | return communityService.detailFmsServiceApplets(serviceId, userId); |
| | | } |
| | | |
| | | @ApiOperation("微服务申请") |
| | | @PostMapping("/service/apply") |
| | | public R applyFmsService(@RequestBody @Valid ApplyFmsServiceDTO adminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | adminDTO.setUserInfo(loginUserInfo); |
| | | return communityService.applyFmsService(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询我的微服务", response = ComFmsServiceVO.class) |
| | | @PostMapping("/service/pageMy") |
| | | public R pageMyFmsService(@RequestBody @Valid PageFmsServiceAppletsDTO adminDTO) { |
| | | adminDTO.setCommunityId(this.getCommunityId()); |
| | | adminDTO.setUserId(this.getUserId()); |
| | | return communityService.pageMyFmsService(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微服务评价") |
| | | @PostMapping("/service/evaluate") |
| | | public R evaluateFmsService(@RequestBody @Valid EvaluationFmsServiceDTO evaluationFmsServiceDTO) { |
| | | evaluationFmsServiceDTO.setUserId(this.getUserId()); |
| | | return communityService.evaluateFmsService(evaluationFmsServiceDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微团队成员分页查询服务处理", response = ComFmsServiceVO.class) |
| | | @PostMapping("/service/pageDeal") |
| | | public R pageDealFmsService(@RequestBody @Valid PageFmsServiceAppletsDTO adminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | adminDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | adminDTO.setUserId(loginUserInfo.getUserId()); |
| | | adminDTO.setUserInfo(loginUserInfo); |
| | | return communityService.pageDealFmsService(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微团队成员服务反馈", response = ComFmsServiceVO.class) |
| | | @PostMapping("/service/feedback") |
| | | public R feedbackFmsService(@RequestBody @Valid FeedbackFmsServiceDTO adminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | adminDTO.setUserId(loginUserInfo.getUserId()); |
| | | adminDTO.setUserInfo(loginUserInfo); |
| | | return communityService.feedbackFmsService(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation("核实微服务") |
| | | @PostMapping("/service/approval") |
| | | public R approvalFmsService(@RequestBody @Valid ApprovalFmsServiceAdminDTO adminDTO) { |
| | | if (adminDTO.getIsPass() && isNull(adminDTO.getMemberId())) { |
| | | return R.fail("未分配服务人员"); |
| | | } |
| | | adminDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.approvalFmsService(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation("后台新增微服务") |
| | | @PostMapping("/service/add") |
| | | public R addFmsService(@RequestBody @Valid AddFmsServiceAdminDTO adminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | adminDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | adminDTO.setCreatedBy(loginUserInfo.getUserId()); |
| | | adminDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.addFmsServiceAdmin(adminDTO); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.service.partybuilding.ComPbCheckUnitFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | | /** |
| | | * title: 党建-报到单位(ComPbCheckUnit) 控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 党建-报到单位 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | |
| | | @Slf4j |
| | | @Api(tags = {"党建-报到单位"}) |
| | | @RestController |
| | | @RequestMapping("/checkUnit") |
| | | public class ComPbCheckUnitApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComPbCheckUnitFeign comPbCheckUnitService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "分页查询报道单位", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | return this.comPbCheckUnitService.queryByPage(comPbCheckUnit); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "查询报道单位", response = ComPbCheckUnitVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comPbCheckUnitService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "查询报道单位列表", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | return this.comPbCheckUnitService.queryByList(comPbCheckUnit); |
| | | } |
| | | } |
| | |
| | | comSwPatrolRecordPageDTO.setPatrolPerson(String.valueOf(this.getLoginUserInfo().getPhone())); |
| | | } |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | comSwPatrolRecordPageDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pagePatrolRecord(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | public R pageDangerReport(@RequestBody ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | comSwPatrolRecordPageDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageDangerReport(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.panzhihua.applets.config.MinioUtil; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import net.coobird.thumbnailator.Thumbnails; |
| | | import org.apache.commons.io.FilenameUtils; |
| | | import org.apache.commons.lang3.RandomUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | @RestController |
| | | @RequestMapping("/common/") |
| | | @Api(tags = {"公共接口"}) |
| | | public class CommonApi { |
| | | public class CommonApi extends BaseController { |
| | | /** |
| | | * 允许的图片文件后缀 |
| | | */ |
| | |
| | | private int port; |
| | | @Value("${ftp.url}") |
| | | private String url; |
| | | @Value("${minio.url}") |
| | | private String minUrl; |
| | | @Resource |
| | | private WxMaConfiguration wxMaConfiguration; |
| | | @Resource |
| | |
| | | @PostMapping(value = "uploadimage", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R uploadImage(@RequestParam MultipartFile file, HttpServletRequest request) throws IOException { |
| | | // 微信图片内容校验 |
| | | WxMaSecCheckService wxMaSecCheckService = wxMaConfiguration.getMaService().getSecCheckService(); |
| | | WxMaSecCheckService wxMaSecCheckService = wxMaConfiguration.getMaService(this.getAppId()).getSecCheckService(); |
| | | String property = System.getProperty("user.dir"); |
| | | |
| | | String fileExtension = ".jpg"; |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "新上传照片压缩接口") |
| | | @PostMapping(value = "/uploadimagescompress", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R uploadImagesComPress(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | try { |
| | | String extension = FilenameUtils.getExtension(file.getOriginalFilename()); |
| | | String uuid=UUID.randomUUID().toString().replaceAll("-", ""); |
| | | String name = uuid + "."+ extension; |
| | | minioUtil.upload(file, name); |
| | | Thumbnails.of(file.getInputStream()).scale(0.3).outputQuality(0.51).outputFormat("jpg").toFile(uuid+"_compress"); |
| | | File file1=new File(uuid+"_compress.jpg"); |
| | | String imageUrl = minioUtil.uploadFile(file1, uuid+"_compress.jpg"); |
| | | return R.ok(imageUrl); |
| | | } catch (Exception e) { |
| | | log.error("上传照片失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "发送验证码") |
| | | @PostMapping(value = "smscode") |
| | | public R smscode(@RequestBody UserPhoneVO userPhoneVO) { |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.PageComMngVolunteerOrgTeamDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComMngVolunteerServiceTypeDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComMngVolunteerSkillDto; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerOrgTeamVo; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerServiceTypeVo; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerSkillVo; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | } |
| | | comActDynVO.setIsTopping(null); |
| | | comActDynVO.setStatus(1); |
| | | comActDynVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageDynamic(comActDynVO); |
| | | } |
| | | |
| | |
| | | comActActivityVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | } |
| | | comActActivityVO.setIsApplets(1); |
| | | comActActivityVO.setAreaCode(this.getAreaCode()); |
| | | Integer status = comActActivityVO.getStatus(); |
| | | if (null != status && status.intValue() == 4) { |
| | | comActActivityVO.setIsIng(1); |
| | |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | comMngVolunteerMngVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | }else{ |
| | | comMngVolunteerMngVO.setCommunityId(pageVolunteerDTO.getCommunityId()); |
| | | } |
| | | // Long communityId = this.getCommunityId(); |
| | | |
| | | // comMngVolunteerMngVO.setCommunityId(communityId); |
| | | comMngVolunteerMngVO.setPageNum(pageVolunteerDTO.getPageNum()); |
| | | comMngVolunteerMngVO.setPageSize(pageVolunteerDTO.getPageSize()); |
| | | return communityService.pageVolunteer(comMngVolunteerMngVO); |
| | |
| | | return communityService.detailVolunteer(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询志愿者组织列表", response = ComMngVolunteerOrgTeamVo.class) |
| | | @GetMapping("/volunteer/org/list") |
| | | public R listVolunteerOrgAdmin() { |
| | | PageComMngVolunteerOrgTeamDto orgTeamDto = new PageComMngVolunteerOrgTeamDto(); |
| | | orgTeamDto.setParentId(0L); |
| | | orgTeamDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.listVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询志愿者服务类型列表", response = ComMngVolunteerServiceTypeVo.class) |
| | | @GetMapping("/volunteer/service/type/list") |
| | | public R listVolunteerServiceTypeAdmin() { |
| | | PageComMngVolunteerServiceTypeDto serviceTypeDto = new PageComMngVolunteerServiceTypeDto(); |
| | | serviceTypeDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.listServiceTypeAdmin(serviceTypeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询志愿者技能列表", response = ComMngVolunteerSkillVo.class) |
| | | @GetMapping("/volunteer/skill/list") |
| | | public R listVolunteerSkillAdmin() { |
| | | PageComMngVolunteerSkillDto volunteerSkillDto = new PageComMngVolunteerSkillDto(); |
| | | volunteerSkillDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.listVolunteerSkillAdmin(volunteerSkillDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆登记") |
| | | @PostMapping("car/register") |
| | | public R addComMngCar(@Validated(AddGroup.class) @RequestBody ComMngCarAppletDTO comMngCarAppletDTO) { |
| | |
| | | if (Objects.isNull(communityId)) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | return communityService.getSuitableServiceCategories(communityId); |
| | | return communityService.getSuitableServiceCategories(communityId,this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页获取热门商家", response = ConvenientMerchantVO.class) |
| | | @PostMapping("/merchant/popular") |
| | | public R getPopularMerchants(@RequestBody @Valid PagePopularMerchantDTO pagePopularMerchantDTO) { |
| | | pagePopularMerchantDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.getPopularMerchants(pagePopularMerchantDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页获取服务类型下商家", response = ConvenientMerchantVO.class) |
| | | @PostMapping("/merchant/classify") |
| | | public R getClassifyMerchants(@RequestBody @Valid PageClassifyMerchantDTO pageClassifyMerchantDTO) { |
| | | pageClassifyMerchantDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.getClassifyMerchants(pageClassifyMerchantDTO); |
| | | } |
| | | |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.switchs.SearchCommunityDTO; |
| | |
| | | @RestController |
| | | @RequestMapping("/switch/") |
| | | @Api(tags = {"切换社区模块"}) |
| | | public class CommunitySwitchApi { |
| | | public class CommunitySwitchApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | |
| | | @ApiOperation(value = "查询所有社区", response = StreetAllAppletsVO.class) |
| | | @GetMapping("/list/noToken") |
| | | public R list() { |
| | | return communityService.communitySwitchList(); |
| | | return communityService.communitySwitchList(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据名字搜索社区", response = CommunitySwitchAllAppletsVO.class) |
| | | @GetMapping("/search/noToken") |
| | | public R search(@RequestParam(value = "name") String name) { |
| | | return communityService.communitySwitchSearchList(name); |
| | | return communityService.communitySwitchSearchList(name,this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据距离搜索社区", response = CommunitySwitchAllAppletsVO.class) |
| | |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | addIdentityAuthDTO.setSubmitUserId(loginUserInfo.getUserId()); |
| | | addIdentityAuthDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | addIdentityAuthDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addIdentityAuth(addIdentityAuthDTO); |
| | | } |
| | | |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.EvaluateEasyDto; |
| | | import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO; |
| | | import com.panzhihua.common.service.community.ComActEasyPhotoEvaluateFeign; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private UserService userService; |
| | | @Resource |
| | | private CheckService checkService; |
| | | @Resource |
| | | private ComActEasyPhotoEvaluateFeign easyPhotoEvaluateFeign; |
| | | |
| | | @ApiOperation(value = "分页展示社区随手拍", response = ComActEasyPhotoVO.class) |
| | | @PostMapping("pageeasyphoto") |
| | |
| | | @ApiOperation(value = "随手拍分类列表", response = ComActEasyPhotoClassifyVO.class) |
| | | @GetMapping("easyphoto/classify/list") |
| | | public R easyPhotoClassifyList() { |
| | | return communityService.listPhotoClassify(); |
| | | return communityService.listPhotoClassify(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "随手拍评价") |
| | | @PostMapping("easyphoto/whistle/evaluate") |
| | | public R evaluateEasyPhotoWhistle(@RequestBody EvaluateEasyDto whistleDto) { |
| | | whistleDto.setUserId(this.getUserId()); |
| | | return easyPhotoEvaluateFeign.evaluateEasyApplets(whistleDto); |
| | | } |
| | | } |
| | |
| | | return R.fail("缺少登录参数"); |
| | | } |
| | | log.info(code); |
| | | WxMaService maService = wxMaConfiguration.getMaService(); |
| | | WxMaService maService = wxMaConfiguration.getMaService(loginRequest.getAppid()); |
| | | WxMaJscode2SessionResult sessionInfo = null; |
| | | try { |
| | | sessionInfo = maService.getUserService().getSessionInfo(code); |
| | |
| | | return r1; |
| | | } |
| | | |
| | | @ApiOperation(value = "仁和区登录", response = LoginReturnVO.class) |
| | | @PostMapping("/renHe/login") |
| | | public R renHeLogin(@RequestBody LoginRequest loginRequest) { |
| | | String code = loginRequest.getCode(); |
| | | if (ObjectUtils.isEmpty(code)) { |
| | | return R.fail("缺少登录参数"); |
| | | } |
| | | log.info(code); |
| | | WxMaService maService = wxMaConfiguration.getMaRhService(); |
| | | WxMaJscode2SessionResult sessionInfo = null; |
| | | try { |
| | | sessionInfo = maService.getUserService().getSessionInfo(code); |
| | | } catch (Exception e) { |
| | | log.error("微信登录失败【{}】", e.getMessage()); |
| | | if (code.equals("22")) { |
| | | sessionInfo = new WxMaJscode2SessionResult(); |
| | | sessionInfo.setOpenid("88888888"); |
| | | sessionInfo.setSessionKey("9999999"); |
| | | } else { |
| | | return R.fail("微信登录失败"); |
| | | } |
| | | } |
| | | log.info("微信登录成功【{}】", JSONObject.toJSONString(sessionInfo)); |
| | | log.info("loginRequest参数【{}】", JSONObject.toJSONString(loginRequest)); |
| | | String openid = sessionInfo.getOpenid(); |
| | | String sessionKey = sessionInfo.getSessionKey(); |
| | | String unionid = sessionInfo.getUnionid(); |
| | | if (ObjectUtils.isEmpty(unionid)) { |
| | | unionid = "无"; |
| | | } |
| | | userService.addOrUpdate(openid, sessionKey, unionid); |
| | | return tokenService.loginApplets(openid); |
| | | } |
| | | |
| | | @ApiOperation(value = "维护用户基本信息(昵称、性别、头像)") |
| | | @PostMapping("updateUserWeiXinInfo") |
| | | public R updateUserWeiXinInfo(@RequestBody LoginRequest loginRequest) { |
| | |
| | | if (empty || empty1) { |
| | | return R.fail("微信用户参数不全"); |
| | | } |
| | | WxMaService maService = wxMaConfiguration.getMaService(); |
| | | WxMaService maService = wxMaConfiguration.getMaService(this.getAppId()); |
| | | Long userId = this.getUserId(); |
| | | R<LoginUserInfoVO> r = userService.getUserInfoByUserId(userId + ""); |
| | | LoginUserInfoVO loginUserInfoVO = r.getData(); |
| | |
| | | return R.fail("缺少登录参数"); |
| | | } |
| | | log.info(code); |
| | | WxMaService maService = wxMaConfiguration.getMaService(); |
| | | WxMaService maService = wxMaConfiguration.getMaService(this.getAppId()); |
| | | WxMaJscode2SessionResult sessionInfo = null; |
| | | try { |
| | | sessionInfo = maService.getUserService().getSessionInfo(code); |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.interfaces.OperLog; |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.service.partybuilding.ComPbCheckUnitFeign; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private UserService userService; |
| | | @Resource |
| | | private CheckService checkService; |
| | | @Resource |
| | | private ComPbCheckUnitFeign pbCheckUnitFeign; |
| | | |
| | | public static void main(String[] args) { |
| | | Date date = new Date(); |
| | |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询社区下所有党员报到单位", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/comPbCheckUnit/list") |
| | | public R getPbCheckUnitList(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | if(comPbCheckUnit.getCommunityId() == null){ |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return pbCheckUnitFeign.queryByList(comPbCheckUnit); |
| | | } |
| | | } |
| | |
| | | public R putUserAuthentication(@RequestBody @Validated(AddGroup.class) LoginUserInfoVO loginUserInfoVO) { |
| | | Long userId = this.getUserId(); |
| | | loginUserInfoVO.setUserId(userId); |
| | | loginUserInfoVO.setCommunityId(this.getCommunityId()); |
| | | R r = userService.putUserAuthentication(loginUserInfoVO); |
| | | if (R.isOk(r)) { |
| | | // 通过发通知 |
| | |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | List<ComActActivityVO> comActActivityVOS = new ArrayList<>(); |
| | | R r = communityService.listActivity(userId, status,type); |
| | | if (R.isOk(r)) { |
| | | if (R.isOk(r)&&r.getData()!=null) { |
| | | comActActivityVOS = (List<ComActActivityVO>)r.getData(); |
| | | } |
| | | R r1 = partyBuildingService.listActivity(userId, communityId, status); |
| | | if (R.isOk(r1)) { |
| | | if (R.isOk(r1)&&r1.getData()!=null) { |
| | | List<ComActActivityVO> data = (List<ComActActivityVO>)r1.getData(); |
| | | comActActivityVOS.addAll(data); |
| | | } |
| | |
| | | @ApiOperation(value = "办事指南_分页", response = ComActWorkGuideVO.class) |
| | | @PostMapping("pageworkguide") |
| | | public R detailWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | pageActWorkGuideDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南列表-按分类查询", response = ComActWorkGuideAppletsVO.class) |
| | | @PostMapping("list") |
| | | public R listWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | pageActWorkGuideDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.listWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.*; |
| | | import java.net.URLEncoder; |
| | | import java.util.UUID; |
| | | |
| | |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | * 文件上传 |
| | | * |
| | | * @param file |
| | | * 要上传的文件 |
| | | * @return |
| | | */ |
| | | public String uploadFile(File file, String name) { |
| | | if (null != file) { |
| | | try { |
| | | UUID uuid = UUID.randomUUID(); |
| | | StringBuilder s = new StringBuilder(); |
| | | s.append(uuid.toString().replace("-", "")).append("/"); |
| | | MinioClient minioClient = new MinioClient(minioProperties.getHost(), minioProperties.getAccessKey(), |
| | | minioProperties.getSecretKey()); |
| | | // bucket 不存在,创建 |
| | | if (!minioClient.bucketExists(minioProperties.getBucket())) { |
| | | minioClient.makeBucket(minioProperties.getBucket()); |
| | | } |
| | | // 得到文件流 |
| | | InputStream input = new FileInputStream(file); |
| | | // 文件名 |
| | | // String fileName = uuid + "/images." + FilenameUtils.getExtension(file.getOriginalFilename()); |
| | | String fileName = s.append(name).toString(); |
| | | minioClient.putObject(minioProperties.getBucket(), fileName, input, ""); |
| | | StringBuilder fileUrl = new StringBuilder(minioProperties.getUrl()); |
| | | String url = fileUrl.append(fileName).toString(); |
| | | return url; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 文件下载 |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.user.SysAppConfigVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import cn.binarywang.wx.miniapp.api.WxMaService; |
| | |
| | | @Resource |
| | | private WxH5Properties wxH5Properties; |
| | | |
| | | public WxMaService getMaService() { |
| | | @Resource |
| | | private WxMaRHProperties wxMaRHProperties; |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | public WxMaService getMaService(String appid) { |
| | | WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl(); |
| | | config.setAppid(properties.getAppid()); |
| | | config.setSecret(properties.getSecret()); |
| | | config.setMsgDataFormat(properties.getMsgDataFormat()); |
| | | if(StringUtils.isNotEmpty(appid)){ |
| | | R<SysAppConfigVO> r=userService.selectByAppid(appid); |
| | | if(R.isOk(r)){ |
| | | SysAppConfigVO sysAppConfigVO= r.getData(); |
| | | config.setAppid(sysAppConfigVO.getAppId()); |
| | | config.setSecret(sysAppConfigVO.getSecret()); |
| | | config.setMsgDataFormat(properties.getMsgDataFormat()); |
| | | } |
| | | } |
| | | else{ |
| | | config.setAppid(properties.getAppid()); |
| | | config.setSecret(properties.getSecret()); |
| | | config.setMsgDataFormat(properties.getMsgDataFormat()); |
| | | } |
| | | WxMaService wxMaService = new WxMaServiceImpl(); |
| | | wxMaService.setWxMaConfig(config); |
| | | return wxMaService; |
| | |
| | | wxMaService.setWxMaConfig(config); |
| | | return wxMaService; |
| | | } |
| | | |
| | | public WxMaService getMaRhService() { |
| | | WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl(); |
| | | config.setAppid(wxMaRHProperties.getAppid()); |
| | | config.setSecret(wxMaRHProperties.getSecret()); |
| | | config.setMsgDataFormat(wxMaRHProperties.getMsgDataFormat()); |
| | | WxMaService wxMaService = new WxMaServiceImpl(); |
| | | wxMaService.setWxMaConfig(config); |
| | | return wxMaService; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets.config; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 微信配置 |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-23 14:52 |
| | | **/ |
| | | @Data |
| | | @Component |
| | | @ConfigurationProperties(prefix = "wx.rh") |
| | | public class WxMaRHProperties { |
| | | |
| | | /** |
| | | * 设置微信小程序的appid |
| | | */ |
| | | private String appid; |
| | | |
| | | /** |
| | | * 设置微信小程序的Secret |
| | | */ |
| | | private String secret; |
| | | |
| | | /** |
| | | * 设置微信小程序消息服务器配置的token |
| | | */ |
| | | private String token; |
| | | |
| | | /** |
| | | * 设置微信小程序消息服务器配置的EncodingAESKey |
| | | */ |
| | | private String aesKey; |
| | | |
| | | /** |
| | | * 消息格式,XML或者JSON |
| | | */ |
| | | private String msgDataFormat; |
| | | |
| | | /** |
| | | * 商户号 |
| | | */ |
| | | private String mchId; |
| | | |
| | | /** |
| | | * 微信支付密钥 |
| | | */ |
| | | private String payKey; |
| | | |
| | | /** |
| | | * 微信支付回调地址 |
| | | */ |
| | | private String notifyUrl; |
| | | } |
| | |
| | | private Long orgId; |
| | | @ApiModelProperty(value = "头像图片路径") |
| | | private String photoPath; |
| | | |
| | | @ApiModelProperty(value = "党员类型(1.预备党员 2.正式党员)") |
| | | private Integer type; |
| | | @ApiModelProperty(value = "报道单位id") |
| | | private Integer checkUnitId; |
| | | @ApiModelProperty(value = "职位") |
| | | private String position; |
| | | @ApiModelProperty(value = "职能") |
| | | private String function; |
| | | @ApiModelProperty(value = "特长类别(1.体育类 2.舞蹈类 3.音乐类 4.美术类 5.其他)") |
| | | private Integer specialtyCategory; |
| | | @ApiModelProperty(value = "特长描述") |
| | | private String specialtyName; |
| | | } |
| | |
| | | @ApiModelProperty(name = "userInfo", value = "用户基本信息") |
| | | WxMaUserInfo userInfo; |
| | | |
| | | @ApiModelProperty("appid") |
| | | String appid; |
| | | } |
| | |
| | | private WxMaConfiguration wxMaConfiguration; |
| | | |
| | | public boolean checkMessage(String msg) { |
| | | WxMaSecCheckService wxMaSecCheckService = wxMaConfiguration.getMaService().getSecCheckService(); |
| | | WxMaSecCheckService wxMaSecCheckService = wxMaConfiguration.getMaService("").getSecCheckService(); |
| | | try { |
| | | boolean b = wxMaSecCheckService.checkMessage(msg); |
| | | return b; |
| | |
| | | operlog.setOperTime(new Date()); // 创建时间 |
| | | operlog.setAccount(loginUserInfoVO.getAccount()); |
| | | Long communityId = loginUserInfoVO.getCommunityId(); |
| | | operlog.setAreaCode(communityId==0 ? "510423" : loginUserInfoVO.getAreaCode()); |
| | | operlog.setCommunityId(null == communityId ? 0 : communityId); |
| | | userService.addOperLog(operlog); |
| | | } catch (Exception e) { |
| | |
| | | @ApiOperation(value = "分页查询社区", response = ComActVO.class) |
| | | @PostMapping("pagecommunity") |
| | | public R pageCommunity(@RequestBody PageComActDTO pageComActDTO) { |
| | | pageComActDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageCommunity(pageComActDTO); |
| | | } |
| | | |
| | |
| | | @PostMapping("/service-category/add") |
| | | public R addServiceCategory(@RequestBody @Validated(AddGroup.class) ConvenientServiceCategoryDTO convenientServiceCategoryDTO) { |
| | | convenientServiceCategoryDTO.setCreatedBy(this.getUserId()); |
| | | convenientServiceCategoryDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addServiceCategory(convenientServiceCategoryDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "分页查询便民服务分类", response = ConvenientServiceCategoryVO.class) |
| | | @PostMapping("/service-category/page") |
| | | public R pageServiceCategory(@RequestBody PageConvenientServiceCategoryDTO pageConvenientServiceCategoryDTO) { |
| | | pageConvenientServiceCategoryDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageServiceCategory(pageConvenientServiceCategoryDTO); |
| | | } |
| | | |
| | |
| | | @PostMapping("/merchant/add") |
| | | public R addMerchant(@RequestBody @Validated(AddGroup.class) ConvenientMerchantDTO convenientMerchantDTO) { |
| | | convenientMerchantDTO.setCreatedBy(this.getUserId()); |
| | | convenientMerchantDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addMerchant(convenientMerchantDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "分页查询便民服务商家", response = ConvenientMerchantVO.class) |
| | | @PostMapping("/merchant/page") |
| | | public R pageMerchant(@RequestBody PageConvenientMerchantDTO pageConvenientMerchantDTO) { |
| | | pageConvenientMerchantDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageMerchant(pageConvenientMerchantDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "社区下拉列表", response = ComActVO.class) |
| | | @GetMapping("/community") |
| | | public R listCommunity() { |
| | | return communityService.listCommunityAll(); |
| | | return communityService.listCommunityAll(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "所有服务分类", response = ConvenientServiceCategoryVO.class) |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return communityService.getAllServiceCategories(); |
| | | return communityService.getAllServiceCategories(this.getAreaCode()); |
| | | } |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.easyPhoto.AddEasyPhotoClassifyDTO; |
| | |
| | | @Api(tags = {"随手拍分类"}) |
| | | @RestController |
| | | @RequestMapping("/classify") |
| | | public class EasyPhotoClassifyApi { |
| | | public class EasyPhotoClassifyApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | |
| | | @ApiOperation(value = "随手拍分类-新增") |
| | | @PostMapping("/add") |
| | | public R addPhotoClassify(@RequestBody AddEasyPhotoClassifyDTO addPhotoClassify) { |
| | | addPhotoClassify.setAreaCode(this.getAreaCode()); |
| | | return communityService.addPhotoClassify(addPhotoClassify); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "随手拍分类-分页") |
| | | @PostMapping("/page") |
| | | public R pagePhotoClassify(@RequestBody AddEasyPhotoClassifyDTO addPhotoClassify) { |
| | | addPhotoClassify.setAreaCode(this.getAreaCode()); |
| | | return communityService.pagePhotoClassify(addPhotoClassify); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "房屋租售-分页查询", response = ComOpsHouseVO.class) |
| | | @PostMapping("pagehouse") |
| | | public R pageHouse(@RequestBody PageComOpsHouseDTO pageComOpsHouseDTO) { |
| | | pageComOpsHouseDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageOpsHouse(pageComOpsHouseDTO); |
| | | } |
| | | |
| | |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.panzhihua.applets_backstage.config.SFTPConfig; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.excel.CustomSheetWriteHandler; |
| | | import com.panzhihua.common.model.dtos.DataKanBansDto; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | |
| | | @Api(tags = {"首页接口"}) |
| | | @RestController |
| | | @RequestMapping("/index/") |
| | | public class IndexApi { |
| | | public class IndexApi extends BaseController { |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | |
| | | @ApiOperation(value = "数据看板", response = IndexDataKanbanVO.class) |
| | | @GetMapping("datakanban") |
| | | public R dataKanban() { |
| | | return userService.dataKanban(); |
| | | return userService.dataKanban(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "数据看板", response = IndexDataKanbanVO.class) |
| | | @PostMapping("datakanbans") |
| | | public R dataKanBans(@RequestBody DataKanBansDto dataKanBansDto) { |
| | | dataKanBansDto.setAreaCode(this.getAreaCode()); |
| | | return userService.dataKanBans(dataKanBansDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "社区通统计数据汇总", response = IndexUserStatisticsVo.class) |
| | | @GetMapping("statistics") |
| | | public R communityStatistics() { |
| | | return userService.communityStatistics(); |
| | | return userService.communityStatistics(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "社区通统计数据导出") |
| | |
| | | String url = sftpConfig.getExcelUrl(); |
| | | String name = "社区通用户统计导出数据.xlsx"; |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | R r = userService.communityStatisticsExport(); |
| | | R r = userService.communityStatisticsExport(this.getAreaCode()); |
| | | if (R.isOk(r)) { |
| | | List<IndexUserStreetExcelExportVo> resultList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), IndexUserStreetExcelExportVo.class); |
| | | try { |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsOrderVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 商业街订单表(McsOrder)表控制层 |
| | | * |
| | | * @author makejava |
| | | * @since 2022-01-04 16:10:07 |
| | | */ |
| | | @Api(tags = {"商业街订单API"}) |
| | | @RestController |
| | | @RequestMapping("mcsOrder") |
| | | public class McsOrderApi extends BaseController { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | | * @param commonPage 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @ApiOperation(value = "分页查询订单",response = McsOrderVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | return communityService.selectAllMscOrder(commonPage); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @ApiOperation(value = "通过主键查询单条数据",response = McsOrderVO.class) |
| | | @GetMapping("{id}") |
| | | public R selectOne(@PathVariable("id") Long id) { |
| | | return communityService.selectOneMscOrder(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param mcsOrderVO 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @ApiOperation("新增数据") |
| | | @PostMapping |
| | | public R insert(@RequestBody McsOrderVO mcsOrderVO) { |
| | | return communityService.insertMscOrder(mcsOrderVO); |
| | | } |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * |
| | | * @param mcsOrderVO 实体对象 |
| | | * @return 修改结果 |
| | | */ |
| | | @ApiOperation("修改订单") |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody McsOrderVO mcsOrderVO) { |
| | | return communityService.updateMscOrder(mcsOrderVO); |
| | | } |
| | | |
| | | /** |
| | | * 微信支付 |
| | | * @param mcsOrderVO |
| | | * @return |
| | | */ |
| | | @ApiOperation("微信支付") |
| | | @PostMapping("/wxPay") |
| | | public R wxPay(@RequestBody McsOrderVO mcsOrderVO){ |
| | | return communityService.wxPayMscOrder(mcsOrderVO); |
| | | } |
| | | |
| | | /** |
| | | * 发送提醒短信 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation("发送提醒短信") |
| | | @GetMapping("/sendContent") |
| | | public R sendContent(@RequestParam("id") Long id){ |
| | | return communityService.sendContentMcsOrder(id); |
| | | } |
| | | |
| | | /** |
| | | *微信支付回调 |
| | | * @param mcsOrderVO |
| | | * @return |
| | | */ |
| | | @ApiOperation("微信支付回调") |
| | | @PostMapping("/notify") |
| | | public R notify(@RequestBody McsOrderVO mcsOrderVO){ |
| | | return communityService.notifyMcsOrder(mcsOrderVO); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsEvaluateDTO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsEvaluateVO; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.DisableOrEnableMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsInformationDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetPopularForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForInfoDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsConfigVO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsGameVO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsInformationVO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsMerchantVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PutGroup; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | /** |
| | | * @title: MicroCommercialStreetApi |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 微商业街相关接口 |
| | | * @author: hans |
| | | * @date: 2021/12/28 14:18 |
| | | */ |
| | | @Api(tags = {"微商业街"}) |
| | | @RestController |
| | | @RequestMapping("/microcommercialstreet") |
| | | public class MicroCommercialStreetApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation(value = "新增数字商业街商家") |
| | | @PostMapping("/merchant/add") |
| | | public R addMcsMerchant(@RequestBody @Validated(AddGroup.class) McsMerchantDTO mcsMerchantDTO) { |
| | | Long userId = this.getUserId(); |
| | | mcsMerchantDTO.setCreatedBy(userId); |
| | | mcsMerchantDTO.setUpdatedBy(userId); |
| | | return communityService.addMcsMerchant(mcsMerchantDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑数字商业街商家") |
| | | @PutMapping("/merchant/put") |
| | | public R putMcsMerchant(@RequestBody @Validated(PutGroup.class) McsMerchantDTO mcsMerchantDTO) { |
| | | mcsMerchantDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.putMcsMerchant(mcsMerchantDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询数字商业街商家详情", response = McsMerchantVO.class) |
| | | @GetMapping("/merchant/get") |
| | | public R getMcsMerchant(@RequestParam("merchantId") Long merchantId) { |
| | | return communityService.getMcsMerchant(merchantId); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除数字商业街商家") |
| | | @DeleteMapping("/merchant/delete") |
| | | public R deleteMcsMerchant(@RequestParam("merchantId") Long merchantId) { |
| | | return communityService.deleteMcsMerchant(merchantId, this.getUserId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询数字商业街商家", response = McsMerchantVO.class) |
| | | @PostMapping("/merchant/page") |
| | | public R pageMcsMerchant(@RequestBody @Valid PageMcsMerchantDTO pageMcsMerchantDTO) { |
| | | return communityService.pageMcsMerchant(pageMcsMerchantDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "禁用/启用数字商业街商家") |
| | | @PutMapping("/merchant/disable-or-enable") |
| | | public R disableOrEnableMcsMerchant(@RequestBody @Valid DisableOrEnableMcsMerchantDTO disableOrEnableMcsMerchantDTO) { |
| | | disableOrEnableMcsMerchantDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.disableOrEnableMcsMerchant(disableOrEnableMcsMerchantDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取所有数字商业街配置", response = McsConfigVO.class) |
| | | @GetMapping("/config/all") |
| | | public R getAllMcsConfig() { |
| | | return communityService.getAllMcsConfig(); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改数字商业街配置") |
| | | @PutMapping("/config/put") |
| | | public R putMcsConfig(@RequestBody List<McsConfigVO> configs) { |
| | | return communityService.putMcsConfig(configs); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询戳戳游戏", response = McsGameVO.class) |
| | | @PostMapping("/game/page") |
| | | public R pageMcsGame(@RequestBody @Valid PageMcsGameDTO pageMcsGameDTO) { |
| | | return communityService.pageMcsGame(pageMcsGameDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "设为/取消游戏热门") |
| | | @PutMapping("/game/setPopular") |
| | | public R setPopularForGame(@RequestBody @Valid SetPopularForGameDTO setPopularForGameDTO) { |
| | | setPopularForGameDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.setPopularForGame(setPopularForGameDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "上架/下架戳戳游戏") |
| | | @PutMapping("/game/setShelf") |
| | | public R setShelfForGame(@RequestBody @Valid SetShelfForGameDTO setShelfForGameDTO) { |
| | | setShelfForGameDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.setShelfForGame(setShelfForGameDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除戳戳游戏") |
| | | @DeleteMapping("/game/delete") |
| | | public R deleteMcsGame(@RequestParam("gameId") Long gameId) { |
| | | return communityService.deleteMcsGame(gameId, this.getUserId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询戳戳资讯", response = McsInformationVO.class) |
| | | @PostMapping("/information/page") |
| | | public R pageMcsInfo(@RequestBody @Valid PageMcsInformationDTO pageMcsInformationDTO) { |
| | | return communityService.pageMcsInfo(pageMcsInformationDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "上架/下架戳戳资讯") |
| | | @PutMapping("/information/setShelf") |
| | | public R setShelfForMcsInfo(@RequestBody @Valid SetShelfForInfoDTO setShelfForInfoDTO) { |
| | | setShelfForInfoDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.setShelfForMcsInfo(setShelfForInfoDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除戳戳资讯") |
| | | @DeleteMapping("/information/delete") |
| | | public R deleteMcsInfo(@RequestParam("infoId") Long infoId) { |
| | | return communityService.deleteMcsInfo(infoId, this.getUserId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询评价记录", response = McsEvaluateVO.class) |
| | | @PostMapping("/evaluate/page") |
| | | public R pageMcsEvaluate(@RequestBody @Valid PageMcsEvaluateDTO pageMcsEvaluateDTO) { |
| | | return communityService.pageMcsEvaluate(pageMcsEvaluateDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询评价记录详情", response = McsEvaluateVO.class) |
| | | @GetMapping("/evaluate/get") |
| | | public R getMcsEvaluate(@RequestParam("evaluateId") Long evaluateId) { |
| | | return communityService.getMcsEvaluate(evaluateId); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除评价记录") |
| | | @DeleteMapping("/evaluate/delete") |
| | | public R deleteMcsEvaluate(@RequestParam("evaluateId") Long evaluateId) { |
| | | return communityService.deleteMcsEvaluate(evaluateId); |
| | | } |
| | | } |
| | |
| | | @ApiOperation(value = "分页查询街道", response = PageComStreetDTO.class) |
| | | @PostMapping("pagestreet") |
| | | public R pageStreet(@RequestBody PageComStreetDTO pageComStreetDTO) { |
| | | pageComStreetDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageStreet(pageComStreetDTO); |
| | | } |
| | | |
| | |
| | | @GetMapping("listrolebackstage") |
| | | public R listRoleBackstage(@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize) { |
| | | Long communityId = 0L; |
| | | return userService.listRoleBackstage(communityId,pageNum,pageSize); |
| | | return userService.listRoleBackstage(communityId,pageNum,pageSize,this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询后台用户", response = AdministratorsUserVO.class) |
| | | @PostMapping("pageuser") |
| | | public R pageUserBackstage(@RequestBody AdministratorsUserVO administratorsUserVO) { |
| | | administratorsUserVO.setCommunityId(0l); |
| | | administratorsUserVO.setAreaCode(this.getAreaCode()); |
| | | return userService.pageUserBackstage(administratorsUserVO); |
| | | } |
| | | |
| | |
| | | roleVO.setCommunityId(communityId); |
| | | roleVO.setCreateBy(userId); |
| | | roleVO.setStatus(0); |
| | | roleVO.setAreaCode(this.getAreaCode()); |
| | | HanyuPinyinHelper hanyuPinyinHelper = new HanyuPinyinHelper(); |
| | | roleVO.setRoleKey(hanyuPinyinHelper.toHanyuPinyin(roleName)); |
| | | R r = userService.addRoleBackstage(roleVO); |
| | |
| | | @PostMapping("pageoperlog") |
| | | public R pageOperLog(@RequestBody SysOperLogVO sysOperLogVO) { |
| | | sysOperLogVO.setCommunityId(0l); |
| | | sysOperLogVO.setAreaCode(this.getAreaCode()); |
| | | return userService.pageOperLog(sysOperLogVO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "分页查询用户意见反馈", response = SysUserFeedbackVO.class) |
| | | @PostMapping("pagefeedback") |
| | | public R pageFeedback(@RequestBody @Validated(PageGroup.class) PageFeedBackDTO pageFeedBackDTO) { |
| | | pageFeedBackDTO.setAreaCode(this.getAreaCode()); |
| | | return userService.pageFeedback(pageFeedBackDTO); |
| | | } |
| | | |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @GetMapping("info") |
| | | public R getUserInfo() { |
| | | Long userId = this.getUserId(); |
| | | return userService.detailUser(userId); |
| | | R<LoginUserInfoVO> r=userService.detailUser(userId); |
| | | if(r.getData()!=null){ |
| | | LoginUserInfoVO loginUserInfoVO=r.getData(); |
| | | if(StringUtils.isNotEmpty(loginUserInfoVO.getAreaCode())){ |
| | | switch (loginUserInfoVO.getAreaCode()){ |
| | | case "510423": loginUserInfoVO.setCommunityName("西区运营后台"); |
| | | break; |
| | | case "510411": loginUserInfoVO.setCommunityName("仁和区运营后台"); |
| | | break; |
| | | case "510402": loginUserInfoVO.setCommunityName("东区运营后台"); |
| | | break; |
| | | default:loginUserInfoVO.setCommunityName("运营后台"); |
| | | } |
| | | } |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | | return R.fail("无用户信息"); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改密码") |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @RestController |
| | | @RequestMapping("/usermanagement/") |
| | | @Api(tags = {"居民用户管理"}) |
| | | public class UserManagementApi { |
| | | public class UserManagementApi extends BaseController { |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | |
| | | @PostMapping("pageuser") |
| | | public R pageUserAppletsBackstage( |
| | | @RequestBody @Validated(PageGroup.class) PageUserAppletsBackstageDTO pageUserAppletsBackstageDTO) { |
| | | pageUserAppletsBackstageDTO.setAreaCode(this.getAreaCode()); |
| | | return userService.pageUserAppletsBackstage(pageUserAppletsBackstageDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "社区下拉列表", response = ComActVO.class) |
| | | @GetMapping("listcommunity") |
| | | public R listCommunity() { |
| | | return communityService.listCommunityAll(); |
| | | return communityService.listCommunityAll(this.getAreaCode()); |
| | | } |
| | | } |
| | |
| | | @ApiOperation(value = "疫苗分类列表", response = VaccinesByAppVO.class) |
| | | @PostMapping("list") |
| | | public R getVaccinesListByAdmin(@RequestBody VaccinesByAdminDTO vaccinesByAdminDTO) { |
| | | vaccinesByAdminDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.getVaccinesListByAdmin(vaccinesByAdminDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "添加疫苗信息") |
| | | @PostMapping("add") |
| | | public R addVaccinesByAdmin(@RequestBody VaccinesByAdminDTO vaccinesByAdminDTO) { |
| | | vaccinesByAdminDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addVaccinesByAdmin(vaccinesByAdminDTO); |
| | | } |
| | | |
| | |
| | | @PostMapping("addworkguide") |
| | | public R addStreet(@RequestBody @Validated(AddGroup.class) ComActWorkGuideVO workGuideVO) { |
| | | LoginUserInfoVO loginUserInfo = getLoginUserInfo(); |
| | | workGuideVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addWorkGuide(workGuideVO, loginUserInfo.getUserId()); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南_分页", response = ComActWorkGuideVO.class) |
| | | @PostMapping("pageworkguide") |
| | | public R detailWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | pageActWorkGuideDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南分类_分页查询", response = ComActWorkGuideClassifyVO.class) |
| | | @PostMapping("classify/apage") |
| | | public R pageWorkGuideClassify(@RequestBody ComActWorkGuideClassifyVO comActWorkGuideClassifyVO) { |
| | | comActWorkGuideClassifyVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageWorkGuideClassify(comActWorkGuideClassifyVO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南分类_新增或修改") |
| | | @PostMapping("classify/add") |
| | | public R addWorkGuideClassify(@RequestBody ComActWorkGuideClassifyVO comActWorkGuideClassifyVO) { |
| | | comActWorkGuideClassifyVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addWorkGuideClassify(comActWorkGuideClassifyVO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "办事指南分类_列表查询") |
| | | @GetMapping("classify/getList") |
| | | public R getWorkGuideClassifyList() { |
| | | return communityService.getWorkGuideClassifyList(); |
| | | return communityService.getWorkGuideClassifyList(this.getAreaCode()); |
| | | } |
| | | |
| | | } |
| | |
| | | LoginReturnVO loginReturnVO = loginService.loginXQDP(account, password); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | | /** |
| | | * 微商业街用户登录 |
| | | * |
| | | * @param account |
| | | * 账户 |
| | | * @param password |
| | | * 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | @PostMapping("/loginMcsUser") |
| | | public R loginMcsUser(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginMcsUser(account, password); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | } |
| | |
| | | * @return 登录结果 |
| | | */ |
| | | LoginReturnVO loginXQDP(String account, String password); |
| | | |
| | | /** |
| | | * 微商业街用户登录 |
| | | * @param account 账户 |
| | | * @param password 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | LoginReturnVO loginMcsUser(String account, String password); |
| | | } |
| | |
| | | loginReturnVO.setRefreshToken(refeshToken); |
| | | return loginReturnVO; |
| | | } |
| | | |
| | | /** |
| | | * 微商业街用户登录 |
| | | * @param account 账户 |
| | | * @param password 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | @Override |
| | | public LoginReturnVO loginMcsUser(String account, String password) { |
| | | Authentication authentication = authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(account + "_11", password)); |
| | | LoginUserInfoVO loginUser = (LoginUserInfoVO)authentication.getPrincipal(); |
| | | String token = JWTTokenUtil.generateToken(loginUser); |
| | | String refeshToken = JWTTokenUtil.generateRefeshToken(loginUser); |
| | | LoginReturnVO loginReturnVO = new LoginReturnVO(); |
| | | loginReturnVO.setToken(token); |
| | | loginReturnVO.setRefreshToken(refeshToken); |
| | | return loginReturnVO; |
| | | } |
| | | } |
| | |
| | | <artifactId>tomcat-embed-core</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>net.coobird</groupId> |
| | | <artifactId>thumbnailator</artifactId> |
| | | <version>0.4.8</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.commons</groupId> |
| | | <artifactId>commons-lang3</artifactId> |
| | | </dependency> |
| | |
| | | <artifactId>commons-net</artifactId> |
| | | <version>3.6</version> |
| | | </dependency> |
| | | <!-- thymeleaf --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| | | </dependency> |
| | | <!--FlyingSaucer--> |
| | | <dependency> |
| | | <groupId>org.xhtmlrenderer</groupId> |
| | | <artifactId>flying-saucer-pdf</artifactId> |
| | | <version>9.1.9</version> |
| | | </dependency> |
| | | <!-- batik --> |
| | | <dependency> |
| | | <groupId>org.apache.xmlgraphics</groupId> |
| | | <artifactId>batik-codec</artifactId> |
| | | <version>1.12</version> |
| | | </dependency> |
| | | <!-- 阿里easyexcel--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | |
| | | |
| | | /** |
| | | * 通用常量信息 |
| | | * |
| | | * |
| | | * @author HUANGHONGFA |
| | | */ |
| | | public class Constants { |
| | |
| | | |
| | | public static final String CLUSTER_MEMBER_ERROR_LIST = "CLUSTER_MEMBER_ERROR_LIST_"; |
| | | |
| | | public static final String COM_MNG_VOLUNTEER_ERROR_LIST = "COM_MNG_VOLUNTEER_ERROR_LIST_"; |
| | | |
| | | public static final String PB_CHECK_UNIT_ERROR_LIST = "PB_CHECK_UNIT_ERROR_LIST_"; |
| | | |
| | | public static final String PB_MEMBER_ROLE_ERROR_LIST = "PB_MEMBER_ROLE_ERROR_LIST_"; |
| | | |
| | | public static final String CLUSTER_MEMBER_DEFAULT_IMAGE_URL = "https://www.psciio.com/files/4822602b68af48bcbbea7842aa463227/a6a7882b3fd24d60ac6809fef42d879d.png"; |
| | | |
| | | public static final String FMS_MEMBER_ERROR_LIST = "FMS_MEMBER_ERROR_LIST_"; |
| | | public static final String FMS_SERVICE_ERROR_LIST = "FMS_SERVICE_ERROR_LIST_"; |
| | | |
| | | /** |
| | | * 高德地图获取天气url |
| | |
| | | * 字典表民族系统配置码key |
| | | */ |
| | | public static final String NATION_DICT_KEY = "nation"; |
| | | /** |
| | | * 党建包名 |
| | | */ |
| | | public static final String SERVICE_PARTYBUILDING = "partybuilding"; |
| | | /** |
| | | * service_community包 |
| | | */ |
| | | public static final String SERVICE_COMMUNITY = "community"; |
| | | } |
| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | |
| | | |
| | | import lombok.SneakyThrows; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | import static org.apache.commons.lang3.StringUtils.isBlank; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | } |
| | | return areaId; |
| | | } |
| | | /** |
| | | * 获取登录对象所在区域编码 |
| | | * |
| | | * @return |
| | | */ |
| | | public String getAreaCode() { |
| | | String appid = this.getRequest().getHeader("appid"); |
| | | if(StringUtils.isNotEmpty(appid)){ |
| | | if(appid.equals("wx08932ba29546ff82")){ |
| | | return "510411"; |
| | | } |
| | | else if(appid.equals("wx50d8c395af50481b")){ |
| | | return "510402"; |
| | | } |
| | | else { |
| | | return "510423"; |
| | | } |
| | | } else { |
| | | LoginUserInfoVO loginUserInfoVO=this.getLoginUserInfo(); |
| | | ComActVO comActVO=loginUserInfoVO.getComActVO(); |
| | | if(isNull(comActVO) || isBlank(comActVO.getAreaCode())){ |
| | | return "510423"; |
| | | } |
| | | return comActVO.getAreaCode(); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取登录token |
| | |
| | | return header; |
| | | } |
| | | |
| | | public String getAppId(){ |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | return loginUserInfo.getAppId(); |
| | | } |
| | | |
| | | public String getAppSecret(){ |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | return loginUserInfo.getAppSecret(); |
| | | } |
| | | /** |
| | | * 获取登录对象所有信息 |
| | | * |
New file |
| | |
| | | package com.panzhihua.common.enums; |
| | | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 党员双报道单位类型枚举 |
| | | */ |
| | | @Getter |
| | | public enum ComPbCheckUnitTypeEnum { |
| | | |
| | | GYQY(1, "国有企业"), GYKGQY(2, "国有控股企业"), WZQY(3, "外资企业") |
| | | , HZQY(4, "合资企业"), SYQY(5, "私营企业"), SYDW(6, "事业单位") |
| | | , GJXZJG(7, "国家行政机关"), ZF(6, "政府"); |
| | | |
| | | private final Integer code; |
| | | private final String name; |
| | | |
| | | ComPbCheckUnitTypeEnum(Integer code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public static int getCodeByName(String name) { |
| | | for (ComPbCheckUnitTypeEnum item : ComPbCheckUnitTypeEnum.values()) { |
| | | if (item.name.equals(name)) { |
| | | return item.getCode(); |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public static String getCnDescByName(Integer code) { |
| | | for (ComPbCheckUnitTypeEnum item : ComPbCheckUnitTypeEnum.values()) { |
| | | if (item.code.equals(code)) { |
| | | return item.getName(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.enums; |
| | | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 党委标签枚举 |
| | | */ |
| | | @Getter |
| | | public enum ComPbMemberRoleTypeEnum { |
| | | |
| | | SQDW(1, "社区党委"), CYDWWY(2, "区域党委委员"); |
| | | |
| | | private final Integer code; |
| | | private final String name; |
| | | |
| | | ComPbMemberRoleTypeEnum(Integer code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public static int getCodeByName(String name) { |
| | | for (ComPbMemberRoleTypeEnum item : ComPbMemberRoleTypeEnum.values()) { |
| | | if (item.name.equals(name)) { |
| | | return item.getCode(); |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public static String getCnDescByName(Integer code) { |
| | | for (ComPbMemberRoleTypeEnum item : ComPbMemberRoleTypeEnum.values()) { |
| | | if (item.code.equals(code)) { |
| | | return item.getName(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | } |
| | |
| | | */ |
| | | @Getter |
| | | public enum PopulPersonTypeEnum { |
| | | HJ(1, "户籍人员"), LS(2, "留守人员"), WD(3, "外地人员"), JW(4, "境外人员"); |
| | | HJ(1, "户籍人口"), LS(2, "留守人员"), WD(3, "外地人员"), JW(4, "境外人员"), |
| | | LD(5, "流动人口"), CZ(6, "常住人口"), ZZ(7, "暂住人口"); |
| | | |
| | | private final Integer code; |
| | | private final String name; |
| | |
| | | * 物业宣传 |
| | | */ |
| | | public static Integer PROPERTY_PUBLICITY = 1; |
| | | /** |
| | | * 五微服务-微讲堂 |
| | | */ |
| | | public static Integer FMS_CLASSROOM = 2; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.listen; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.panzhihua.common.utlis.ValidateUtils; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceImportMistakeExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberImportExcelListen |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微服务导入监听 |
| | | * @author: hans |
| | | * @date: 2022/02/15 10:16 |
| | | */ |
| | | @Slf4j |
| | | public class ComFmsServiceImportExcelListen extends AnalysisEventListener<Map<Integer, String>> { |
| | | /** |
| | | * 每隔5条存储数据库,实际使用中可以3000条,然后清理list ,方便内存回收 |
| | | */ |
| | | private static final int BATCH_COUNT = 5000; |
| | | private static int headSize = 0; |
| | | List<Map<Integer, String>> list = new ArrayList<Map<Integer, String>>(); |
| | | private CommunityService communityService; |
| | | private Long communityId; |
| | | private Long userId; |
| | | private Map<Integer, String> headData; |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | public ComFmsServiceImportExcelListen(CommunityService communityService, Long communityId, Long userId, |
| | | StringRedisTemplate stringRedisTemplate) { |
| | | this.communityService = communityService; |
| | | this.communityId = communityId; |
| | | this.userId = userId; |
| | | this.stringRedisTemplate = stringRedisTemplate; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(Map<Integer, String> data, AnalysisContext context) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | saveData(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 这里会一行行的返回头 |
| | | * |
| | | * @param headMap |
| | | * @param context |
| | | */ |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | headSize = headMap.size(); |
| | | headData = headMap; |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext context) { |
| | | saveData(); |
| | | log.info("所有数据解析完成!"); |
| | | } |
| | | |
| | | /** |
| | | * 不是固定的列只能手动处理 |
| | | */ |
| | | private void saveData() { |
| | | log.info("开始导入微服务数据"); |
| | | log.info("表格总数据:" + list.size()); |
| | | if (list.size() == 0) { |
| | | throw new ServiceException("100", "导入数据为空!"); |
| | | } |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String key = Constants.FMS_SERVICE_ERROR_LIST + communityId; |
| | | |
| | | int index = 2; |
| | | try { |
| | | String[] parsePatterns = new String[] {"yyyy-MM-dd", "yyyy-M-dd", "yyyy-MM-d", "yyyy-M-d", "yyyy/MM/dd", |
| | | "yyyy/M/dd", "yyyy/MM/d", "yyyy/M/d"}; |
| | | ArrayList<ComFmsServiceImportExcelVO> voList = Lists.newArrayList(); |
| | | ArrayList<ComFmsServiceImportMistakeExcelVO> mistakes = Lists.newArrayList(); |
| | | for (Map<Integer, String> oneData : list) { |
| | | ComFmsServiceImportExcelVO vo = new ComFmsServiceImportExcelVO(); |
| | | vo.setUserName(oneData.get(0)); |
| | | if (StringUtils.isNotEmpty(oneData.get(1)) && !ValidateUtils.assertPhoneIsValid(oneData.get(1))) { |
| | | ComFmsServiceImportMistakeExcelVO mistake = new ComFmsServiceImportMistakeExcelVO(); |
| | | index++; |
| | | setServiceImportMistake(oneData, mistake); |
| | | mistake.setMistake("联系电话有误,请检查"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setPhone(oneData.get(1)); |
| | | if (StringUtils.isEmpty(oneData.get(2))) { |
| | | ComFmsServiceImportMistakeExcelVO mistake = new ComFmsServiceImportMistakeExcelVO(); |
| | | index++; |
| | | setServiceImportMistake(oneData, mistake); |
| | | mistake.setMistake("服务时间不可为空,请填写服务时间"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setServiceAt(DateUtil.parse(oneData.get(2).trim(), parsePatterns)); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(3))) { |
| | | ComFmsServiceImportMistakeExcelVO mistake = new ComFmsServiceImportMistakeExcelVO(); |
| | | index++; |
| | | setServiceImportMistake(oneData, mistake); |
| | | mistake.setMistake("服务内容不可为空,请填写服务内容"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setServiceContent(oneData.get(3)); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(4))) { |
| | | ComFmsServiceImportMistakeExcelVO mistake = new ComFmsServiceImportMistakeExcelVO(); |
| | | index++; |
| | | setServiceImportMistake(oneData, mistake); |
| | | mistake.setMistake("服务过程不可为空,请填写服务过程"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setServiceProcess(oneData.get(4)); |
| | | voList.add(vo); |
| | | index++; |
| | | } |
| | | if (!voList.isEmpty()) { |
| | | log.info("开始进入业务层处理逻辑"); |
| | | R r = communityService.listSaveFmsServiceExcelVO(voList, communityId, userId); |
| | | log.info("业务层处理逻辑完成"); |
| | | if (R.isOk(r)) { |
| | | log.info("业务层处理成功"); |
| | | } else { |
| | | log.info("业务层处理逻辑失败"); |
| | | } |
| | | } |
| | | if (!mistakes.isEmpty()) { |
| | | log.info("将错误数据缓存到redis中"); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | log.info("将错误数据缓存到redis中成功"); |
| | | throw new ServiceException("500", key); |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | log.info("处理数据时失败"); |
| | | e.printStackTrace(); |
| | | log.error("数据格式有误,第" + index + "行"); |
| | | throw new ServiceException("500", "导入失败111"); |
| | | } |
| | | } |
| | | |
| | | private void setServiceImportMistake(Map<Integer, String> map, ComFmsServiceImportMistakeExcelVO vo) { |
| | | vo.setUserName(map.get(0)); |
| | | vo.setPhone(map.get(1)); |
| | | vo.setServiceAt(map.get(2)); |
| | | vo.setServiceContent(map.get(3)); |
| | | vo.setServiceProcess(map.get(4)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.listen; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberImportMistakeExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | |
| | | import cn.hutool.core.util.IdcardUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberImportExcelListen |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队成员导入监听 |
| | | * @author: hans |
| | | * @date: 2022/02/15 10:16 |
| | | */ |
| | | @Slf4j |
| | | public class ComFmsTeamMemberImportExcelListen extends AnalysisEventListener<Map<Integer, String>> { |
| | | /** |
| | | * 每隔5条存储数据库,实际使用中可以3000条,然后清理list ,方便内存回收 |
| | | */ |
| | | private static final int BATCH_COUNT = 5000; |
| | | private static int headSize = 0; |
| | | List<Map<Integer, String>> list = new ArrayList<Map<Integer, String>>(); |
| | | private CommunityService communityService; |
| | | private Long communityId; |
| | | private Long userId; |
| | | private Map<Integer, String> headData; |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | public ComFmsTeamMemberImportExcelListen(CommunityService communityService, Long communityId, Long userId, |
| | | StringRedisTemplate stringRedisTemplate) { |
| | | this.communityService = communityService; |
| | | this.communityId = communityId; |
| | | this.userId = userId; |
| | | this.stringRedisTemplate = stringRedisTemplate; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(Map<Integer, String> data, AnalysisContext context) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | saveData(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 这里会一行行的返回头 |
| | | * |
| | | * @param headMap |
| | | * @param context |
| | | */ |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | headSize = headMap.size(); |
| | | headData = headMap; |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext context) { |
| | | saveData(); |
| | | log.info("所有数据解析完成!"); |
| | | } |
| | | |
| | | /** |
| | | * 不是固定的列只能手动处理 |
| | | */ |
| | | private void saveData() { |
| | | log.info("开始导入团队成员数据"); |
| | | log.info("表格总数据:" + list.size()); |
| | | if (list.size() == 0) { |
| | | throw new ServiceException("100", "导入数据为空!"); |
| | | } |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String key = Constants.FMS_MEMBER_ERROR_LIST + communityId; |
| | | |
| | | int index = 2; |
| | | try { |
| | | ArrayList<ComFmsTeamMemberImportExcelVO> voList = Lists.newArrayList(); |
| | | ArrayList<ComFmsTeamMemberImportMistakeExcelVO> mistakes = Lists.newArrayList(); |
| | | for (Map<Integer, String> oneData : list) { |
| | | ComFmsTeamMemberImportExcelVO vo = new ComFmsTeamMemberImportExcelVO(); |
| | | if (StringUtils.isEmpty(oneData.get(0))) { |
| | | ComFmsTeamMemberImportMistakeExcelVO mistake = new ComFmsTeamMemberImportMistakeExcelVO(); |
| | | index++; |
| | | setMemberImportMistake(oneData, mistake); |
| | | mistake.setMistake("团队类型不可为空,请填写团队类型"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setTeamType(oneData.get(0)); |
| | | if (StringUtils.isEmpty(oneData.get(1))) { |
| | | ComFmsTeamMemberImportMistakeExcelVO mistake = new ComFmsTeamMemberImportMistakeExcelVO(); |
| | | index++; |
| | | setMemberImportMistake(oneData, mistake); |
| | | mistake.setMistake("团队名称不可为空,请填写团队名称"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setTeamName(oneData.get(1)); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(2))) { |
| | | ComFmsTeamMemberImportMistakeExcelVO mistake = new ComFmsTeamMemberImportMistakeExcelVO(); |
| | | index++; |
| | | setMemberImportMistake(oneData, mistake); |
| | | mistake.setMistake("团队成员不可为空,请填写团队成员"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setTeamMember(oneData.get(2)); |
| | | |
| | | if (StringUtils.isNotEmpty(oneData.get(3))) { |
| | | // 判断身份证号码位数 |
| | | if (!IdcardUtil.isValidCard(oneData.get(3))) { |
| | | ComFmsTeamMemberImportMistakeExcelVO mistake = new ComFmsTeamMemberImportMistakeExcelVO(); |
| | | index++; |
| | | setMemberImportMistake(oneData, mistake); |
| | | mistake.setMistake("身份证号有误,请检查身份证号码是否正确"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setIdCard(oneData.get(3).toUpperCase()); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(4))) { |
| | | ComFmsTeamMemberImportMistakeExcelVO mistake = new ComFmsTeamMemberImportMistakeExcelVO(); |
| | | index++; |
| | | setMemberImportMistake(oneData, mistake); |
| | | mistake.setMistake("联系电话不可为空,请填写联系电话"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setPhone(oneData.get(4)); |
| | | voList.add(vo); |
| | | index++; |
| | | } |
| | | if (!voList.isEmpty()) { |
| | | log.info("开始进入业务层处理逻辑"); |
| | | R r = communityService.listSaveFmsTeamMemberExcelVO(voList, communityId, userId); |
| | | log.info("业务层处理逻辑完成"); |
| | | if (R.isOk(r)) { |
| | | log.info("业务层处理成功"); |
| | | List<ComFmsTeamMemberImportMistakeExcelVO> list = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComFmsTeamMemberImportMistakeExcelVO.class); |
| | | mistakes.addAll(list); |
| | | } else { |
| | | log.info("业务层处理逻辑失败"); |
| | | } |
| | | } |
| | | if (!mistakes.isEmpty()) { |
| | | log.info("将错误数据存入redis中"); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | log.info("将错误数据存入redis中成功"); |
| | | throw new ServiceException("500", key); |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | log.info("处理数据时失败"); |
| | | e.printStackTrace(); |
| | | log.error("数据格式有误,第" + index + "行"); |
| | | throw new ServiceException("500", "导入失败111"); |
| | | } |
| | | } |
| | | |
| | | private void setMemberImportMistake(Map<Integer, String> map, ComFmsTeamMemberImportMistakeExcelVO vo) { |
| | | vo.setTeamType(map.get(0)); |
| | | vo.setTeamName(map.get(1)); |
| | | vo.setTeamMember(map.get(2)); |
| | | vo.setIdCard(map.get(3)); |
| | | vo.setPhone(map.get(4)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.listen; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.enums.PopulPersonTypeEnum; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComMngPopulationMistakeExcelVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngPopulationServeExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.ListUtils; |
| | | import com.panzhihua.common.utlis.PayUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @title: ComMngPopulationTempFilledExcelListen |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 实有人口临时填充人员类型 |
| | | * @author: hans |
| | | * @date: 2022/01/19 13:33 |
| | | */ |
| | | @Slf4j |
| | | public class ComMngPopulationTempFilledExcelListen extends AnalysisEventListener<Map<Integer, String>> { |
| | | /** |
| | | * 每隔5条存储数据库,实际使用中可以3000条,然后清理list ,方便内存回收 |
| | | */ |
| | | private static final int BATCH_COUNT = 5000; |
| | | private static int headSize = 0; |
| | | List<Map<Integer, String>> list = new ArrayList<Map<Integer, String>>(); |
| | | private CommunityService communityService; |
| | | private Long communityId; |
| | | private Long userId; |
| | | private Map<Integer, String> headData; |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | public ComMngPopulationTempFilledExcelListen(CommunityService communityService, Long communityId, Long userId, |
| | | StringRedisTemplate stringRedisTemplate) { |
| | | this.communityService = communityService; |
| | | this.communityId = communityId; |
| | | this.userId = userId; |
| | | this.stringRedisTemplate = stringRedisTemplate; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(Map<Integer, String> data, AnalysisContext context) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | saveData(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 这里会一行行的返回头 |
| | | * |
| | | * @param headMap |
| | | * @param context |
| | | */ |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | headSize = headMap.size(); |
| | | headData = headMap; |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext context) { |
| | | saveData(); |
| | | log.info("所有数据解析完成!"); |
| | | } |
| | | |
| | | /** |
| | | * 不是固定的列只能手动处理 |
| | | */ |
| | | private void saveData() { |
| | | log.info("开始填充历史数据人员类型"); |
| | | log.info("表格总数据:" + list.size()); |
| | | if (list.size() == 0) { |
| | | throw new ServiceException("000", "数据为空!"); |
| | | } |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String key = "POPULATION_FILLED_ERROR_LIST"; |
| | | |
| | | int index = 2; |
| | | try { |
| | | ArrayList<ComMngPopulationServeExcelVO> voList = Lists.newArrayList(); |
| | | ArrayList<ComMngPopulationMistakeExcelVO> mistakes = Lists.newArrayList(); |
| | | |
| | | for (Map<Integer, String> oneData : list) { |
| | | ComMngPopulationServeExcelVO vo = new ComMngPopulationServeExcelVO(); |
| | | // 姓名和身份证都为空,为空户,无需操作,否则就解析年龄,性别,出生年月日 |
| | | if (StringUtils.isNotEmpty(oneData.get(0)) || StringUtils.isNotEmpty(oneData.get(1))) { |
| | | if (StringUtils.isEmpty(oneData.get(0))) { |
| | | ComMngPopulationMistakeExcelVO mistake = new ComMngPopulationMistakeExcelVO(); |
| | | index++; |
| | | setMistake(oneData, mistake); |
| | | mistake.setMistake("名字不可为空,请填写姓名"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setName(oneData.get(0)); |
| | | if (StringUtils.isEmpty(oneData.get(1))) { |
| | | ComMngPopulationMistakeExcelVO mistake = new ComMngPopulationMistakeExcelVO(); |
| | | index++; |
| | | setMistake(oneData, mistake); |
| | | mistake.setMistake("身份证号不可为空,请填写身份证号"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | |
| | | // 判断身份证号码位数 |
| | | if (oneData.get(1).length() != 18) { |
| | | index++; |
| | | ComMngPopulationMistakeExcelVO mistake = new ComMngPopulationMistakeExcelVO(); |
| | | setMistake(oneData, mistake); |
| | | mistake.setMistake("身份证号位数有误,请检查身份证号码是否正确"); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setCardNo(oneData.get(1).toUpperCase()); |
| | | } |
| | | if (StringUtils.isNotEmpty(oneData.get(2))) { |
| | | Integer isOk = PopulPersonTypeEnum.getCodeByName(oneData.get(2)); |
| | | if (isOk.equals(-1)) { |
| | | index++; |
| | | ComMngPopulationMistakeExcelVO mistake = new ComMngPopulationMistakeExcelVO(); |
| | | setMistake(oneData, mistake); |
| | | mistake.setMistake("您填写的人员类型有误"); |
| | | mistake.setPersonType(oneData.get(2)); |
| | | mistakes.add(mistake); |
| | | continue; |
| | | } |
| | | vo.setPersonType(isOk); |
| | | } |
| | | // 将重复的数据进行MD5加密实现去重 |
| | | String distinct = vo.getName() + vo.getCardNo(); |
| | | try { |
| | | String distinctPass = PayUtil.MD5(distinct); |
| | | if (StringUtils.isNotEmpty(distinctPass)) { |
| | | vo.setDistinctPass(distinctPass); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("组装MD5加密字段失败,数据表格行数:" + index); |
| | | continue; |
| | | } |
| | | voList.add(vo); |
| | | index++; |
| | | } |
| | | // 根据list中的IdCard城市来去重 |
| | | List<ComMngPopulationServeExcelVO> newVoList = |
| | | voList.stream().filter(ListUtils.distinctByKey(ComMngPopulationServeExcelVO::getDistinctPass)) |
| | | .collect(Collectors.toList()); |
| | | log.info("开始进入业务层处理逻辑"); |
| | | R r = communityService.filledPopulationPersonType(newVoList, communityId, userId); |
| | | log.info("业务层处理逻辑完成"); |
| | | if (!R.isOk(r)) { |
| | | log.info("业务层处理成功"); |
| | | List<ComMngPopulationMistakeExcelVO> list = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComMngPopulationMistakeExcelVO.class); |
| | | mistakes.addAll(list); |
| | | log.info("将错误数据存入redis中"); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | log.info("将错误数据存入redis中成功"); |
| | | throw new ServiceException("500", key); |
| | | } else { |
| | | log.info("业务层处理逻辑失败"); |
| | | if (!mistakes.isEmpty()) { |
| | | log.info("业务层处理逻辑失败,将错误数据缓存到redis中"); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | log.info("业务层处理逻辑失败,将错误数据缓存到redis中成功"); |
| | | throw new ServiceException("500", key); |
| | | } |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | log.info("处理数据时失败"); |
| | | e.printStackTrace(); |
| | | log.error("数据格式有误,第" + index + "行"); |
| | | throw new ServiceException("500", "导入失败111"); |
| | | } |
| | | } |
| | | |
| | | private void setMistake(Map<Integer, String> map, ComMngPopulationMistakeExcelVO vo) { |
| | | vo.setName(map.get(0)); |
| | | vo.setCardNo(map.get(1)); |
| | | vo.setNation(map.get(2)); |
| | | vo.setPoliticalOutlook(map.get(3)); |
| | | vo.setIsRent(map.get(4)); |
| | | vo.setRelation(map.get(5)); |
| | | vo.setRoad(map.get(6)); |
| | | vo.setDoorNo(map.get(7)); |
| | | vo.setFloor(map.get(8)); |
| | | vo.setUnitNo(map.get(9)); |
| | | vo.setHouseNo(map.get(10)); |
| | | vo.setBuildPurpose(map.get(11)); |
| | | vo.setBuildArea(map.get(12)); |
| | | vo.setHouseStatus(map.get(13)); |
| | | vo.setHousePurpose(map.get(14)); |
| | | vo.setControlStatus(map.get(15)); |
| | | vo.setPhone(map.get(16)); |
| | | vo.setNativePlace(map.get(17)); |
| | | vo.setCultureLevel(map.get(18)); |
| | | vo.setMarriage(map.get(19)); |
| | | vo.setHealthy(map.get(20)); |
| | | vo.setBloodType(map.get(21)); |
| | | vo.setReligion(map.get(22)); |
| | | vo.setProfession(map.get(23)); |
| | | vo.setWorkCompany(map.get(24)); |
| | | vo.setOutOrLocal(map.get(25)); |
| | | vo.setCensusRegister(map.get(26)); |
| | | vo.setResidence(map.get(27)); |
| | | vo.setPersonType(map.get(28)); |
| | | vo.setCountry(map.get(29)); |
| | | vo.setStringOfDeparture(map.get(30)); |
| | | vo.setPersonStatus(map.get(31)); |
| | | vo.setMonthlyIncome(map.get(32)); |
| | | vo.setFamilyStatus(map.get(33)); |
| | | vo.setGoalInChina(map.get(34)); |
| | | vo.setStringOfArrival(map.get(35)); |
| | | vo.setRemark(map.get(36)); |
| | | vo.setIdCardPositive(map.get(37)); |
| | | vo.setIdCardBack(map.get(38)); |
| | | vo.setHouseHold(map.get(39)); |
| | | vo.setDeath(map.get(40)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.listen; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.ListUtils; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * title: 志愿者导入监听 |
| | | * @author : lyq |
| | | */ |
| | | @Slf4j |
| | | public class ComMngVolunteerExcelListen extends AnalysisEventListener<Map<Integer, String>> { |
| | | /** |
| | | * 每隔5条存储数据库,实际使用中可以3000条,然后清理list ,方便内存回收 |
| | | */ |
| | | private static final int BATCH_COUNT = 3000; |
| | | private static int headSize = 0; |
| | | List<Map<Integer, String>> list = new ArrayList<Map<Integer, String>>(); |
| | | private CommunityService communityService; |
| | | private Long communityId; |
| | | private Long userId; |
| | | private Map<Integer, String> headData; |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | public ComMngVolunteerExcelListen(CommunityService communityService, Long communityId, Long userId, |
| | | StringRedisTemplate stringRedisTemplate) { |
| | | this.communityService = communityService; |
| | | this.communityId = communityId; |
| | | this.userId = userId; |
| | | this.stringRedisTemplate = stringRedisTemplate; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(Map<Integer, String> data, AnalysisContext context) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | saveData(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 这里会一行行的返回头 |
| | | * |
| | | * @param headMap |
| | | * @param context |
| | | */ |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | headSize = headMap.size(); |
| | | headData = headMap; |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext context) { |
| | | saveData(); |
| | | log.info("所有数据解析完成!"); |
| | | } |
| | | |
| | | /** |
| | | * 不是固定的列只能手动处理 |
| | | */ |
| | | private void saveData() { |
| | | log.info("表格总数据:" + list.size()); |
| | | if (list.size() == 0) { |
| | | throw new ServiceException("000", "导入数据为空!"); |
| | | } |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String key = Constants.COM_MNG_VOLUNTEER_ERROR_LIST + communityId; |
| | | int index = 2; |
| | | try { |
| | | ArrayList<ComMngVolunteerExcelVO> voList = Lists.newArrayList(); |
| | | ArrayList<ComMngVolunteerErrorExcelVO> mistakes = Lists.newArrayList(); |
| | | for (Map<Integer, String> oneData : list) { |
| | | ComMngVolunteerExcelVO vo = new ComMngVolunteerExcelVO(); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(0))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者名称不可为空,请填写志愿者名称")); |
| | | continue; |
| | | }else{ |
| | | //判断导入的名字的长度是否超过10 |
| | | if(oneData.get(0).length() > 10){ |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者名称长度不可超过10,请重新填写志愿者名称")); |
| | | continue; |
| | | } |
| | | } |
| | | vo.setName(oneData.get(0)); |
| | | if (StringUtils.isEmpty(oneData.get(1))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者手机号不可为空,请填写志愿者手机号")); |
| | | continue; |
| | | } |
| | | vo.setPhone(oneData.get(1)); |
| | | if (StringUtils.isEmpty(oneData.get(2))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者身份证不可为空,请填写志愿者身份证")); |
| | | continue; |
| | | } |
| | | // 判断身份证号码位数 |
| | | if (oneData.get(2).length() != 18) { |
| | | if (oneData.get(2).length() != 15) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者身份证位数有误,请检查身份证号码是否正确")); |
| | | continue; |
| | | } |
| | | } |
| | | if (oneData.get(2).length() != 15) { |
| | | if (oneData.get(2).length() != 18) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者身份证位数有误,请检查身份证号码是否正确")); |
| | | continue; |
| | | } |
| | | } |
| | | vo.setIdCard(oneData.get(2).toUpperCase()); |
| | | if (StringUtils.isEmpty(oneData.get(3))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者组织不可为空,请填写志愿者组织")); |
| | | continue; |
| | | } |
| | | vo.setOrgName(oneData.get(3)); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(4))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者队伍不可为空,请填写志愿者队伍")); |
| | | continue; |
| | | } |
| | | vo.setTeamName(oneData.get(4)); |
| | | if (StringUtils.isEmpty(oneData.get(5))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"志愿者技能不可为空,请填写志愿者技能")); |
| | | continue; |
| | | } |
| | | vo.setSkillName(oneData.get(5)); |
| | | if (StringUtils.isEmpty(oneData.get(6))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"是否是大学生不可为空,请填写是否是大学生")); |
| | | continue; |
| | | } |
| | | if(!oneData.get(6).equals("1") && !oneData.get(6).equals("2")){ |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"是否是大学生选择错误,请选择是否")); |
| | | continue; |
| | | } |
| | | vo.setIsUniversity(Integer.parseInt(oneData.get(6))); |
| | | voList.add(vo); |
| | | index++; |
| | | } |
| | | List<ComMngVolunteerExcelVO> newVoList = |
| | | voList.stream().filter(ListUtils.distinctByKey(ComMngVolunteerExcelVO::getIdCard)) |
| | | .collect(Collectors.toList()); |
| | | R r = communityService.importVolunteerAdmin(newVoList, communityId, userId); |
| | | if (!R.isOk(r)) { |
| | | List<ComMngVolunteerErrorExcelVO> list = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComMngVolunteerErrorExcelVO.class); |
| | | mistakes.addAll(list); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | throw new ServiceException("500", key); |
| | | } else { |
| | | if (!mistakes.isEmpty()) { |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | throw new ServiceException("500", key); |
| | | } |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | e.printStackTrace(); |
| | | throw new ServiceException("500", "导入失败"); |
| | | } |
| | | } |
| | | |
| | | private void setError(Map<Integer, String> map, ComMngVolunteerErrorExcelVO vo) { |
| | | vo.setName(map.get(0)); |
| | | vo.setPhone(map.get(1)); |
| | | vo.setIdCard(map.get(2)); |
| | | vo.setOrgName(map.get(3)); |
| | | vo.setTeamName(map.get(4)); |
| | | vo.setSkillName(map.get(5)); |
| | | } |
| | | |
| | | /** |
| | | * 组装错误信息 |
| | | * @param oneData 数据表格对象 |
| | | * @param error 错误信息 |
| | | * @return 错误对象 |
| | | */ |
| | | private ComMngVolunteerErrorExcelVO setErrorObject(Map<Integer, String> oneData, String error){ |
| | | ComMngVolunteerErrorExcelVO mistake = new ComMngVolunteerErrorExcelVO(); |
| | | setError(oneData, mistake); |
| | | mistake.setError(error); |
| | | return mistake; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.listen; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.cluster.admin.ComClusterMemberExcelErrorVO; |
| | | import com.panzhihua.common.model.vos.community.cluster.admin.ComClusterMemberExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.partybuilding.ComPbCheckUnitFeign; |
| | | import com.panzhihua.common.utlis.ListUtils; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * title: 党员双报到单位导入监听 |
| | | * @author : lyq |
| | | */ |
| | | @Slf4j |
| | | public class ComPbCheckUnitExcelListen extends AnalysisEventListener<Map<Integer, String>> { |
| | | /** |
| | | * 每隔5条存储数据库,实际使用中可以3000条,然后清理list ,方便内存回收 |
| | | */ |
| | | private static final int BATCH_COUNT = 3000; |
| | | private static int headSize = 0; |
| | | List<Map<Integer, String>> list = new ArrayList<Map<Integer, String>>(); |
| | | private ComPbCheckUnitFeign checkUnitService; |
| | | private Long communityId; |
| | | private Long userId; |
| | | private Map<Integer, String> headData; |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | public ComPbCheckUnitExcelListen(ComPbCheckUnitFeign checkUnitService, Long communityId, Long userId, |
| | | StringRedisTemplate stringRedisTemplate) { |
| | | this.checkUnitService = checkUnitService; |
| | | this.communityId = communityId; |
| | | this.userId = userId; |
| | | this.stringRedisTemplate = stringRedisTemplate; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(Map<Integer, String> data, AnalysisContext context) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | saveData(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 这里会一行行的返回头 |
| | | * |
| | | * @param headMap |
| | | * @param context |
| | | */ |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | headSize = headMap.size(); |
| | | headData = headMap; |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext context) { |
| | | saveData(); |
| | | log.info("所有数据解析完成!"); |
| | | } |
| | | |
| | | /** |
| | | * 不是固定的列只能手动处理 |
| | | */ |
| | | private void saveData() { |
| | | log.info("表格总数据:" + list.size()); |
| | | if (list.size() == 0) { |
| | | throw new ServiceException("000", "导入数据为空!"); |
| | | } |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String key = Constants.PB_CHECK_UNIT_ERROR_LIST + communityId; |
| | | int index = 2; |
| | | try { |
| | | ArrayList<ComPbCheckUnitExcelVO> voList = Lists.newArrayList(); |
| | | ArrayList<ComPbCheckUnitErrorExcelVO> mistakes = Lists.newArrayList(); |
| | | for (Map<Integer, String> oneData : list) { |
| | | ComPbCheckUnitExcelVO vo = new ComPbCheckUnitExcelVO(); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(0))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"单位名称不可为空,请填写单位名称")); |
| | | continue; |
| | | }else{ |
| | | //判断导入的名字的长度是否超过30 |
| | | if(oneData.get(0).length() > 30){ |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"单位名称长度不可超过30,请重新填写单位名称")); |
| | | continue; |
| | | } |
| | | } |
| | | vo.setName(oneData.get(0)); |
| | | if (StringUtils.isEmpty(oneData.get(1))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"单位类别不可为空,请填写单位类别")); |
| | | continue; |
| | | } |
| | | vo.setType(oneData.get(1)); |
| | | if (StringUtils.isNotEmpty(oneData.get(2))) { |
| | | vo.setContacts(oneData.get(2)); |
| | | } |
| | | if (StringUtils.isNotEmpty(oneData.get(3))) { |
| | | //验证手机号正则 |
| | | String regex = "^[1][3,4,5,6,7,8,9][0-9]{9}$"; |
| | | Pattern pattern = Pattern.compile(regex); |
| | | Matcher m = pattern.matcher(oneData.get(3)); |
| | | if(!m.matches()){ |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"联系电话输入错误,请核对联系电话")); |
| | | continue; |
| | | } |
| | | vo.setPhone(oneData.get(3)); |
| | | } |
| | | voList.add(vo); |
| | | index++; |
| | | } |
| | | List<ComPbCheckUnitExcelVO> newVoList = |
| | | voList.stream().filter(ListUtils.distinctByKey(ComPbCheckUnitExcelVO::getName)) |
| | | .collect(Collectors.toList()); |
| | | R r = checkUnitService.importCheckUnit(newVoList, communityId, userId); |
| | | if (!R.isOk(r)) { |
| | | List<ComPbCheckUnitErrorExcelVO> list = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComPbCheckUnitErrorExcelVO.class); |
| | | mistakes.addAll(list); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | throw new ServiceException("500", key); |
| | | } else { |
| | | if (!mistakes.isEmpty()) { |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | throw new ServiceException("500", key); |
| | | } |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | e.printStackTrace(); |
| | | throw new ServiceException("500", "导入失败"); |
| | | } |
| | | } |
| | | |
| | | private void setError(Map<Integer, String> map, ComPbCheckUnitErrorExcelVO vo) { |
| | | vo.setName(map.get(0)); |
| | | vo.setType(map.get(1)); |
| | | vo.setContacts(map.get(2)); |
| | | vo.setPhone(map.get(3)); |
| | | } |
| | | |
| | | /** |
| | | * 组装错误信息 |
| | | * @param oneData 数据表格对象 |
| | | * @param error 错误信息 |
| | | * @return 错误对象 |
| | | */ |
| | | private ComPbCheckUnitErrorExcelVO setErrorObject(Map<Integer, String> oneData, String error){ |
| | | ComPbCheckUnitErrorExcelVO mistake = new ComPbCheckUnitErrorExcelVO(); |
| | | setError(oneData, mistake); |
| | | mistake.setError(error); |
| | | return mistake; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.listen; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbMemberRoleErrorExcelVo; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbMemberRoleExcelVo; |
| | | import com.panzhihua.common.service.partybuilding.ComPbCheckUnitFeign; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.utlis.ListUtils; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * title: 社区党委导入监听 |
| | | * @author : lyq |
| | | */ |
| | | @Slf4j |
| | | public class ComPbMemberRoleExcelListen extends AnalysisEventListener<Map<Integer, String>> { |
| | | /** |
| | | * 每隔5条存储数据库,实际使用中可以3000条,然后清理list ,方便内存回收 |
| | | */ |
| | | private static final int BATCH_COUNT = 3000; |
| | | private static int headSize = 0; |
| | | List<Map<Integer, String>> list = new ArrayList<Map<Integer, String>>(); |
| | | private PartyBuildingService partyBuildingService;; |
| | | private Long communityId; |
| | | private Long userId; |
| | | private Map<Integer, String> headData; |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | public ComPbMemberRoleExcelListen(PartyBuildingService partyBuildingService, Long communityId, Long userId, |
| | | StringRedisTemplate stringRedisTemplate) { |
| | | this.partyBuildingService = partyBuildingService; |
| | | this.communityId = communityId; |
| | | this.userId = userId; |
| | | this.stringRedisTemplate = stringRedisTemplate; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(Map<Integer, String> data, AnalysisContext context) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | saveData(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 这里会一行行的返回头 |
| | | * |
| | | * @param headMap |
| | | * @param context |
| | | */ |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | headSize = headMap.size(); |
| | | headData = headMap; |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext context) { |
| | | saveData(); |
| | | log.info("所有数据解析完成!"); |
| | | } |
| | | |
| | | /** |
| | | * 不是固定的列只能手动处理 |
| | | */ |
| | | private void saveData() { |
| | | log.info("表格总数据:" + list.size()); |
| | | if (list.size() == 0) { |
| | | throw new ServiceException("000", "导入数据为空!"); |
| | | } |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String key = Constants.PB_MEMBER_ROLE_ERROR_LIST + communityId; |
| | | int index = 2; |
| | | try { |
| | | ArrayList<ComPbMemberRoleExcelVo> voList = Lists.newArrayList(); |
| | | ArrayList<ComPbMemberRoleErrorExcelVo> mistakes = Lists.newArrayList(); |
| | | for (Map<Integer, String> oneData : list) { |
| | | ComPbMemberRoleExcelVo vo = new ComPbMemberRoleExcelVo(); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(0))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"党员姓名不可为空,请填写党员姓名")); |
| | | continue; |
| | | }else{ |
| | | //判断导入的名字的长度是否超过30 |
| | | if(oneData.get(0).length() > 10){ |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"党员姓名长度不可超过10,请重新填写党员姓名")); |
| | | continue; |
| | | } |
| | | } |
| | | vo.setName(oneData.get(0)); |
| | | if (StringUtils.isEmpty(oneData.get(1))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"身份证号不可为空,请填写身份证号")); |
| | | continue; |
| | | } |
| | | vo.setIdCard(oneData.get(1)); |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(2))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"手机号不可为空,请填写手机号")); |
| | | continue; |
| | | } |
| | | vo.setPhone(oneData.get(2)); |
| | | |
| | | if (StringUtils.isNotEmpty(oneData.get(3))) { |
| | | vo.setTypeName(oneData.get(3)); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(oneData.get(4))) { |
| | | index++; |
| | | mistakes.add(setErrorObject(oneData,"入党日期不可为空,请填写入党日期")); |
| | | continue; |
| | | } |
| | | vo.setJoinTime(oneData.get(4)); |
| | | |
| | | if (StringUtils.isNotEmpty(oneData.get(5))) { |
| | | vo.setEmploymentTime(oneData.get(5)); |
| | | } |
| | | if (StringUtils.isNotEmpty(oneData.get(6))) { |
| | | vo.setPosition(oneData.get(6)); |
| | | } |
| | | if (StringUtils.isNotEmpty(oneData.get(7))) { |
| | | vo.setJobResponsibilities(oneData.get(7)); |
| | | } |
| | | voList.add(vo); |
| | | index++; |
| | | } |
| | | List<ComPbMemberRoleExcelVo> newVoList = |
| | | voList.stream().filter(ListUtils.distinctByKey(ComPbMemberRoleExcelVo::getIdCard)) |
| | | .collect(Collectors.toList()); |
| | | R r = partyBuildingService.importPbMemberRole(newVoList, communityId, userId); |
| | | if (!R.isOk(r)) { |
| | | List<ComPbMemberRoleErrorExcelVo> list = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComPbMemberRoleErrorExcelVo.class); |
| | | mistakes.addAll(list); |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | throw new ServiceException("500", key); |
| | | } else { |
| | | if (!mistakes.isEmpty()) { |
| | | valueOperations.set(key, JSONArray.toJSONString(mistakes), 1, TimeUnit.HOURS); |
| | | throw new ServiceException("500", key); |
| | | } |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | e.printStackTrace(); |
| | | throw new ServiceException("500", "导入失败"); |
| | | } |
| | | } |
| | | |
| | | private void setError(Map<Integer, String> map, ComPbMemberRoleErrorExcelVo vo) { |
| | | vo.setName(map.get(0)); |
| | | vo.setIdCard(map.get(1)); |
| | | vo.setPhone(map.get(2)); |
| | | vo.setTypeName(map.get(3)); |
| | | vo.setJoinTime(map.get(4)); |
| | | vo.setEmploymentTime(map.get(5)); |
| | | vo.setPosition(map.get(6)); |
| | | vo.setJobResponsibilities(map.get(7)); |
| | | } |
| | | |
| | | /** |
| | | * 组装错误信息 |
| | | * @param oneData 数据表格对象 |
| | | * @param error 错误信息 |
| | | * @return 错误对象 |
| | | */ |
| | | private ComPbMemberRoleErrorExcelVo setErrorObject(Map<Integer, String> oneData, String error){ |
| | | ComPbMemberRoleErrorExcelVo mistake = new ComPbMemberRoleErrorExcelVo(); |
| | | setError(oneData, mistake); |
| | | mistake.setError(error); |
| | | return mistake; |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty("社区用户量统计类型(1.累计用户 2.本月新增)") |
| | | private Integer type; |
| | | |
| | | private String areaCode; |
| | | /** |
| | | * 社区用户量统计类型(1.累计用户 2.本月新增) |
| | | */ |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: PageBaseDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | |
| | | @ApiModelProperty(value = "查询参数id", example = "10") |
| | | private Long paramId; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | @ApiModelProperty(value = "字符串类型查询参数", example = "10") |
| | | private String param2; |
| | | |
| | | @ApiModelProperty(value = "数字类型查询参数", example = "10") |
| | | private Integer param3; |
| | | |
| | | @ApiModelProperty(value = "单个社区id") |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "社区id列表") |
| | | private List<Long> communityIds; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增随手拍、微心愿评价表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增随手拍、微心愿评价表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增随手拍、微心愿评价表请求参数") |
| | | public class AddComActEasyPhotoEvaluateDto { |
| | | |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 业务记录id |
| | | */ |
| | | @ApiModelProperty(value = "业务记录id") |
| | | private Long serviceId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 评分 |
| | | */ |
| | | @ApiModelProperty(value = "评分") |
| | | private Integer score; |
| | | |
| | | /** |
| | | * 评价内容 |
| | | */ |
| | | @ApiModelProperty(value = "评价内容") |
| | | private String content; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 业务分类(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务分类(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增随手拍、微心愿处理人绑定表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增随手拍、微心愿处理人绑定表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增随手拍、微心愿处理人绑定表请求参数") |
| | | public class AddComActEasyPhotoHandlerDto { |
| | | |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 处理人id |
| | | */ |
| | | @ApiModelProperty(value = "处理人id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 业务id |
| | | */ |
| | | @ApiModelProperty(value = "业务id") |
| | | private Long serviceId; |
| | | |
| | | /** |
| | | * 人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员) |
| | | */ |
| | | @ApiModelProperty(value = "人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 业务类型(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务类型(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 新增志愿者组织队伍表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:04:49 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增志愿者组织队伍表请求参数") |
| | | public class AddComMngVolunteerOrgTeamDto { |
| | | |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 父级id,为0时则为组织,不为0则为队伍 |
| | | */ |
| | | @ApiModelProperty(value = "父级id,为0时则为组织,不为0则为队伍") |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 服务类型 |
| | | */ |
| | | @ApiModelProperty(value = "服务类型") |
| | | private Long serviceTypeId; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 新增志愿者服务类型表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增志愿者服务类型表请求参数") |
| | | public class AddComMngVolunteerServiceTypeDto { |
| | | |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 新增志愿者技能表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增志愿者技能表请求参数") |
| | | public class AddComMngVolunteerSkillDto { |
| | | |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增党建-报到单位请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增党建-报到单位请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增党建-报到单位请求参数") |
| | | public class AddComPbCheckUnitDto { |
| | | |
| | | |
| | | /** |
| | | * 单位名称 |
| | | */ |
| | | @ApiModelProperty(value = "单位名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府) |
| | | */ |
| | | @ApiModelProperty(value = "单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @ApiModelProperty(value = "负责人") |
| | | private String contacts; |
| | | |
| | | /** |
| | | * 负责人联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "负责人联系电话") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑随手拍、微心愿评价表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑随手拍、微心愿评价表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑随手拍、微心愿评价表请求参数") |
| | | public class EditComActEasyPhotoEvaluateDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 业务记录id |
| | | */ |
| | | @ApiModelProperty(value = "业务记录id") |
| | | private Long serviceId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 评分 |
| | | */ |
| | | @ApiModelProperty(value = "评分") |
| | | private Integer score; |
| | | /** |
| | | * 评价内容 |
| | | */ |
| | | @ApiModelProperty(value = "评价内容") |
| | | private String content; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 业务分类(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务分类(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑随手拍、微心愿处理人绑定表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑随手拍、微心愿处理人绑定表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑随手拍、微心愿处理人绑定表请求参数") |
| | | public class EditComActEasyPhotoHandlerDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 处理人id |
| | | */ |
| | | @ApiModelProperty(value = "处理人id") |
| | | private Long userId; |
| | | /** |
| | | * 业务id |
| | | */ |
| | | @ApiModelProperty(value = "业务id") |
| | | private Long serviceId; |
| | | /** |
| | | * 人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员) |
| | | */ |
| | | @ApiModelProperty(value = "人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)") |
| | | private Integer type; |
| | | /** |
| | | * 业务类型(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务类型(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 编辑志愿者组织队伍表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:04:50 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑志愿者组织队伍表请求参数") |
| | | public class EditComMngVolunteerOrgTeamDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 父级id,为0时则为组织,不为0则为队伍 |
| | | */ |
| | | @ApiModelProperty(value = "父级id,为0时则为组织,不为0则为队伍") |
| | | private Long parentId; |
| | | /** |
| | | * 服务类型 |
| | | */ |
| | | @ApiModelProperty(value = "服务类型") |
| | | private Long serviceTypeId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 编辑志愿者服务类型表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑志愿者服务类型表请求参数") |
| | | public class EditComMngVolunteerServiceTypeDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 编辑志愿者技能表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑志愿者技能表请求参数") |
| | | public class EditComMngVolunteerSkillDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑党建-报到单位请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑党建-报到单位请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑党建-报到单位请求参数") |
| | | public class EditComPbCheckUnitDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 单位名称 |
| | | */ |
| | | @ApiModelProperty(value = "单位名称") |
| | | private String name; |
| | | /** |
| | | * 单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府) |
| | | */ |
| | | @ApiModelProperty(value = "单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府)") |
| | | private Integer type; |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @ApiModelProperty(value = "负责人") |
| | | private String contacts; |
| | | /** |
| | | * 负责人联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "负责人联系电话") |
| | | private String phone; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 随手拍、微心愿评价请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("随手拍、微心愿评价请求参数") |
| | | public class EvaluateEasyDto { |
| | | |
| | | @ApiModelProperty(value = "id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "评论内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "评分") |
| | | private Integer score; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询随手拍、微心愿评价表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询随手拍、微心愿评价表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:24 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询随手拍、微心愿评价表请求参数") |
| | | public class PageComActEasyPhotoEvaluateDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 业务记录id |
| | | */ |
| | | @ApiModelProperty(value = "业务记录id") |
| | | private Long serviceId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 评分 |
| | | */ |
| | | @ApiModelProperty(value = "评分") |
| | | private Integer score; |
| | | /** |
| | | * 评价内容 |
| | | */ |
| | | @ApiModelProperty(value = "评价内容") |
| | | private String content; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 业务分类(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务分类(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询随手拍、微心愿处理人绑定表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询随手拍、微心愿处理人绑定表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:11 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询随手拍、微心愿处理人绑定表请求参数") |
| | | public class PageComActEasyPhotoHandlerDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 处理人id |
| | | */ |
| | | @ApiModelProperty(value = "处理人id") |
| | | private Long userId; |
| | | /** |
| | | * 业务id |
| | | */ |
| | | @ApiModelProperty(value = "业务id") |
| | | private Long serviceId; |
| | | /** |
| | | * 人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员) |
| | | */ |
| | | @ApiModelProperty(value = "人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)") |
| | | private Integer type; |
| | | /** |
| | | * 业务类型(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务类型(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 分页查询志愿者组织队伍表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:04:48 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询志愿者组织队伍表请求参数") |
| | | public class PageComMngVolunteerOrgTeamDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 父级id,为0时则为组织,不为0则为队伍 |
| | | */ |
| | | @ApiModelProperty(value = "父级id,为0时则为组织,不为0则为队伍") |
| | | private Long parentId; |
| | | /** |
| | | * 服务类型 |
| | | */ |
| | | @ApiModelProperty(value = "服务类型") |
| | | private Long serviceTypeId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 分页查询志愿者服务类型表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询志愿者服务类型表请求参数") |
| | | public class PageComMngVolunteerServiceTypeDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 分页查询志愿者技能表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询志愿者技能表请求参数") |
| | | public class PageComMngVolunteerSkillDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询党建-报到单位请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询党建-报到单位请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:26 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询党建-报到单位请求参数") |
| | | public class PageComPbCheckUnitDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 单位名称 |
| | | */ |
| | | @ApiModelProperty(value = "单位名称") |
| | | private String name; |
| | | /** |
| | | * 单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府) |
| | | */ |
| | | @ApiModelProperty(value = "单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府)") |
| | | private Integer type; |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @ApiModelProperty(value = "负责人") |
| | | private String contacts; |
| | | /** |
| | | * 负责人联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "负责人联系电话") |
| | | private String phone; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | @ApiModelProperty("认证期数") |
| | | private String authPeriod; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | @NotBlank(message = "投票结果不能为空", groups = {PutGroup.class}) |
| | | private String publishResult; |
| | | |
| | | @ApiModelProperty("议事内容类型(1.社区议事 2.院落议事 3.党群议事)") |
| | | private Integer contentType; |
| | | |
| | | /** |
| | | * 类型 1 议事 2 投票 |
| | | */ |
| | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | private String areaCode; |
| | | |
| | | private List<ComActWorkGuideMaterialVO> materials = Lists.newArrayList(); |
| | | } |
| | |
| | | @ApiModelProperty("等级是否查询全部(1.是 2.否)") |
| | | private Integer levelIsAll; |
| | | |
| | | @ApiModelProperty("是否死亡人员 (1.是 2.否)") |
| | | @ApiModelProperty("是否死亡人员 (1.是 0.否)") |
| | | private Integer isDeath; |
| | | |
| | | @ApiModelProperty("人员类型(1、户籍人口2、留守人员3、外地人员4、境外人员5、流动人口6、常住人口7、暂住人口)") |
| | | private String personType; |
| | | |
| | | private Integer type; |
| | | |
| | | private String searchKey; |
| | | public interface levelIsAll{ |
| | | int yes = 1; |
| | | int no = 2; |
| | |
| | | @ApiModelProperty("健康状况") |
| | | private String healthy; |
| | | |
| | | @ApiModelProperty("人员类型(1、户籍人口2、留守人员3、外地人员4、境外人员5、流动人口6、常住人口7、暂住人口)") |
| | | private String personType; |
| | | |
| | | @ApiModelProperty("房屋信息请求参数") |
| | | private List<ComMngPopulationHouseEditDTO> houseEditDTOList; |
| | | |
| | |
| | | @ApiModelProperty("查看人(1.全部 2.只看我的)") |
| | | private Integer selectPerson; |
| | | |
| | | @ApiModelProperty("区域编码") |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "用户ID", hidden = true, example = "") |
| | | private Long userId; |
| | | |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "操作人", hidden = true) |
| | | private Long userId; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "展示状态,小程序获取不同状态的投票列表 1.进行中 2.已结束", allowableValues = "1,2") |
| | | private Integer displayStatus; |
| | | |
| | | @ApiModelProperty("议事内容类型(1.社区议事 2.院落议事 3.党群议事)") |
| | | private Integer contentType; |
| | | } |
| | |
| | | @ApiModelProperty("关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "联系方式") |
| | | private String mobile; |
| | | |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty("areaCode") |
| | | private String areaCode; |
| | | } |
| | |
| | | @Min(value = 1, groups = {PageGroup.class}, message = "每页记录数不能为空") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | } |
| | |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty("咨询电话") |
| | | @Pattern(groups = {AddGroup.class}, message = "咨询电话格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("商家地址") |
| | |
| | | @ApiModelProperty(value = "更新人", hidden = true) |
| | | private Long updatedBy; |
| | | |
| | | private String areaCode; |
| | | |
| | | public String getPeriod() { |
| | | return period.name(); |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "更新人", hidden = true) |
| | | private Long updatedBy; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | private String areaCode; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台新增微讲堂请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/16 11:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台新增微讲堂请求参数类") |
| | | public class AddFmsClassroomAdminDTO { |
| | | |
| | | @ApiModelProperty("标题") |
| | | @NotBlank |
| | | @Size(min = 1, max = 30) |
| | | private String title; |
| | | |
| | | @ApiModelProperty("参与学习人数") |
| | | private Integer scholars; |
| | | |
| | | @ApiModelProperty("封面") |
| | | @NotBlank |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("内容") |
| | | @NotBlank |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "创建者", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Pattern; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台新增微服务请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/16 11:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台新增微服务请求参数类") |
| | | public class AddFmsServiceAdminDTO { |
| | | |
| | | @ApiModelProperty("服务用户") |
| | | @NotBlank |
| | | @Size(min = 1, max = 10) |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("联系电话") |
| | | @NotBlank(message = "联系电话不能为空") |
| | | @Pattern(message = "联系电话格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("服务时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @NotNull |
| | | private Date serviceAt; |
| | | |
| | | @ApiModelProperty("服务内容") |
| | | @NotBlank(message = "服务内容不能为空") |
| | | private String serviceContent; |
| | | |
| | | @ApiModelProperty("服务内容图片,多张逗号隔开") |
| | | private String serviceImage; |
| | | |
| | | @ApiModelProperty("服务过程") |
| | | @NotBlank(message = "服务过程不能为空") |
| | | private String serviceProcess; |
| | | |
| | | @ApiModelProperty("服务过程图片,多张逗号隔开") |
| | | private String processImage; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "创建者", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 新增团队请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增团队请求参数类") |
| | | public class AddTeamDTO { |
| | | |
| | | @ApiModelProperty("团队名称") |
| | | @NotBlank |
| | | @Size(min = 1, max = 20) |
| | | private String name; |
| | | |
| | | @ApiModelProperty("所属团队类型") |
| | | @NotNull |
| | | private Long teamType; |
| | | |
| | | @ApiModelProperty("服务电话") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("团队照片") |
| | | @NotBlank |
| | | private String image; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "创建者", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.Pattern; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 新增团队成员请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增团队成员请求参数类") |
| | | public class AddTeamMemberDTO { |
| | | |
| | | @ApiModelProperty("成员姓名") |
| | | @NotBlank |
| | | @Size(min = 1, max = 10) |
| | | private String name; |
| | | |
| | | @ApiModelProperty("所属团队") |
| | | @NotEmpty |
| | | private List<Long> teamIds; |
| | | |
| | | @ApiModelProperty("联系电话") |
| | | @NotBlank(message = "联系电话不能为空") |
| | | @Pattern(message = "联系电话格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "创建者", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 团队类型新增请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("团队类型新增请求参数类") |
| | | public class AddTeamTypeDTO { |
| | | |
| | | @ApiModelProperty("团队类型名称") |
| | | @NotBlank |
| | | @Size(min = 1, max = 10) |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "创建者", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ApplyFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 申请微服务请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/19 13:42 |
| | | */ |
| | | @Data |
| | | @ApiModel("申请微服务请求参数类") |
| | | public class ApplyFmsServiceDTO { |
| | | |
| | | @ApiModelProperty("申请服务内容") |
| | | @NotBlank(message = "申请服务内容不能为空") |
| | | @Size(min = 1, max = 200) |
| | | private String serviceContent; |
| | | |
| | | @ApiModelProperty("服务内容图片,多张逗号隔开") |
| | | private String serviceImage; |
| | | |
| | | @ApiModelProperty(value = "创建者", hidden = true) |
| | | private LoginUserInfoVO userInfo; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * @title: AddFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台核实微服务请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/16 11:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台核实微服务请求参数类") |
| | | public class ApprovalFmsServiceAdminDTO { |
| | | |
| | | @ApiModelProperty("服务id") |
| | | @NotNull |
| | | private Long serviceId; |
| | | |
| | | @ApiModelProperty("反馈内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("是否通过(TRUE-通过,FALSE-不通过)") |
| | | @NotNull |
| | | private Boolean isPass; |
| | | |
| | | @ApiModelProperty("分派服务人员id") |
| | | private Long memberId; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 团队成员删除请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("团队成员删除请求参数类") |
| | | public class DeleteTeamMemberDTO { |
| | | |
| | | @ApiModelProperty("成员id") |
| | | @NotNull |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("所属团队") |
| | | @NotNull |
| | | private Long teamId; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台编辑微讲堂请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/16 11:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台编辑微讲堂请求参数类") |
| | | public class EditFmsClassroomAdminDTO { |
| | | |
| | | @ApiModelProperty("讲堂id") |
| | | @NotNull |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("标题") |
| | | @NotBlank |
| | | @Size(min = 1, max = 30) |
| | | private String title; |
| | | |
| | | @ApiModelProperty("参与学习人数") |
| | | private Integer scholars; |
| | | |
| | | @ApiModelProperty("封面") |
| | | @NotBlank |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("内容") |
| | | @NotBlank |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 团队信息编辑请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("团队信息编辑请求参数类") |
| | | public class EditTeamDTO { |
| | | |
| | | @ApiModelProperty("团队id") |
| | | @NotNull |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("团队名称") |
| | | @NotBlank |
| | | @Size(min = 1, max = 20) |
| | | private String name; |
| | | |
| | | @ApiModelProperty("所属团队类型") |
| | | @NotNull |
| | | private Long teamType; |
| | | |
| | | @ApiModelProperty("服务电话") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("团队照片") |
| | | @NotBlank |
| | | private String image; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Pattern; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 团队成员编辑请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("团队成员编辑请求参数类") |
| | | public class EditTeamMemberDTO { |
| | | |
| | | @ApiModelProperty("成员id") |
| | | @NotNull |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("成员姓名") |
| | | @NotBlank |
| | | @Size(min = 1, max = 10) |
| | | private String name; |
| | | |
| | | @ApiModelProperty("所属团队") |
| | | @NotEmpty |
| | | private List<Long> teamIds; |
| | | |
| | | @ApiModelProperty("联系电话") |
| | | @NotBlank(message = "联系电话不能为空") |
| | | @Pattern(message = "联系电话格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: AddTeamTypeDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 团队类型编辑请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("团队类型编辑请求参数类") |
| | | public class EditTeamTypeDTO { |
| | | |
| | | @ApiModelProperty("团队类型id") |
| | | @NotNull |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("团队类型名称") |
| | | @NotBlank |
| | | @Size(min = 1, max = 10) |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "所属社区", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "由谁更新", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: EvaluationFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 服务评价请求参数类 |
| | | * @author: hans |
| | | * @date: 2022/02/19 14:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("服务评价请求参数类") |
| | | public class EvaluationFmsServiceDTO { |
| | | |
| | | @ApiModelProperty("服务id") |
| | | @NotNull |
| | | private Long serviceId; |
| | | |
| | | @ApiModelProperty("评分星级(1.非常差2.差3.一般4.满意5.非常满意)") |
| | | @NotNull |
| | | private Integer starLevel; |
| | | |
| | | @ApiModelProperty("评价内容") |
| | | private String evaluateContent; |
| | | |
| | | @ApiModelProperty("图片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty(value = "用户", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: FeedbackFmsServiceDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 服务反馈微服务信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/19 14:52 |
| | | */ |
| | | @Data |
| | | @ApiModel("服务反馈微服务信息请求参数") |
| | | public class FeedbackFmsServiceDTO { |
| | | |
| | | @ApiModelProperty(value = "服务id") |
| | | @NotNull |
| | | private Long serviceId; |
| | | |
| | | @ApiModelProperty(value = "反馈内容") |
| | | private String feedbackContent; |
| | | |
| | | @ApiModelProperty(value = "反馈图片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty("结束服务(TRUE-是,FALSE-否)") |
| | | @NotNull |
| | | private Boolean isEnd; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户信息", hidden = true) |
| | | private LoginUserInfoVO userInfo; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageFmsClassroomAdminDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台分页查询微讲堂信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/17 14:15 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台分页查询微讲堂信息请求参数") |
| | | public class PageFmsClassroomAdminDTO { |
| | | |
| | | @ApiModelProperty(value = "关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty("发布时间-起") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAtBegin; |
| | | |
| | | @ApiModelProperty("发布时间-止") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAtEnd; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageFmsClassroomAdminDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台分页查询微调节/微防控信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/17 14:15 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台分页查询微调节/微防控信息请求参数") |
| | | public class PageFmsEventAdminDTO { |
| | | |
| | | @ApiModelProperty(value = "关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "事件类型") |
| | | private String eventClazz; |
| | | |
| | | @ApiModelProperty(value = "状态(1.待处理2.已解决)") |
| | | private Integer eventProcessStatus; |
| | | |
| | | @ApiModelProperty(value = "查询类型(1.微调节数据2.微防控数)") |
| | | @NotNull(message = "查询类型不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageFmsServiceAdminDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 后台分页查询微服务信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/16 14:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台分页查询微服务信息请求参数") |
| | | public class PageFmsServiceAdminDTO { |
| | | |
| | | @ApiModelProperty(value = "关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "服务状态(1.待核实2.进行中3.待评价4.已完成5.未通过)") |
| | | private Integer serviceStatus; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageFmsServiceAdminDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 小程序分页查询微服务信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/16 14:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("小程序分页查询微服务信息请求参数") |
| | | public class PageFmsServiceAppletsDTO { |
| | | |
| | | @ApiModelProperty(value = "此状态和服务状态不一致(1.已完成2.进行中)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "微服务处理状态(1.待我服务2.待核实3.已完成)") |
| | | private Integer dealStatus; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户信息", hidden = true) |
| | | private LoginUserInfoVO userInfo; |
| | | |
| | | @ApiModelProperty(value = "成员id", hidden = true) |
| | | private Long memberId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageFmsTeamDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询团队信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/18 10:16 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询团队信息请求参数") |
| | | public class PageFmsTeamDTO { |
| | | |
| | | @ApiModelProperty(value = "关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "团队类型") |
| | | private Long teamType; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.fms; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageTeamMemberDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询团队成员信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/02/14 15:28 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询团队成员信息请求参数") |
| | | public class PageTeamMemberDTO { |
| | | |
| | | @ApiModelProperty(value = "关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "团队类型") |
| | | private Long teamType; |
| | | |
| | | @ApiModelProperty(value = "所属团队") |
| | | private Long teamId; |
| | | |
| | | @ApiModelProperty(value = "性别(1.男2.女3.未知)") |
| | | private Integer gender; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Pattern; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: BindUserPhoneDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 商业街用户绑定手机号 |
| | | * @author: hans |
| | | * @date: 2022/01/13 10:58 |
| | | */ |
| | | @Data |
| | | @ApiModel("商业街用户绑定手机号") |
| | | public class BindUserPhoneDTO { |
| | | |
| | | @ApiModelProperty("手机号") |
| | | @NotBlank(message = "手机号不能为空") |
| | | @Pattern(message = "手机号格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("验证码") |
| | | @NotBlank(message = "验证码不能为空") |
| | | private String code; |
| | | |
| | | @ApiModelProperty("openId") |
| | | @NotBlank(message = "openId不能为空") |
| | | private String openId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: DeleteProductDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 删除产品信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/01/11 16:24 |
| | | */ |
| | | @Data |
| | | @ApiModel("删除产品信息请求参数") |
| | | public class DeleteProductDTO { |
| | | |
| | | @ApiModelProperty(value = "产品id列表", required = true) |
| | | @NotEmpty(message = "产品id列表不能为空") |
| | | private List<Long> productIds; |
| | | |
| | | @ApiModelProperty(value = "处理人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: DisableOrEnableMcsMerchantDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 禁用/启用数字商业街商家请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/29 14:35 |
| | | */ |
| | | @Data |
| | | @ApiModel("禁用/启用数字商业街商家请求参数") |
| | | public class DisableOrEnableMcsMerchantDTO { |
| | | |
| | | @ApiModelProperty(value = "处理类型(1.启用 2.禁用)", required = true, allowableValues = "1,2") |
| | | @NotNull(message = "处理类型不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "商家id", required = true) |
| | | @NotNull(message = "商家id不能为空") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty(value = "处理人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Pattern; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: LoginWithPhoneDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 手机号登录请求参数 |
| | | * @author: hans |
| | | * @date: 2022/01/06 16:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("手机号登录请求参数") |
| | | public class LoginWithPhoneDTO { |
| | | |
| | | @ApiModelProperty("手机号") |
| | | @NotBlank(message = "手机号不能为空") |
| | | @Pattern(message = "手机号格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("验证码") |
| | | @NotBlank(message = "验证码不能为空") |
| | | private String code; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsEvaluateDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 评价记录请求 |
| | | * @author: hans |
| | | * @date: 2022/01/08 13:13 |
| | | */ |
| | | @Data |
| | | @ApiModel("评价记录请求") |
| | | public class McsEvaluateDTO { |
| | | |
| | | @ApiModelProperty("戳戳券码id") |
| | | @NotNull(groups = {AddGroup.class}, message = "戳戳券码id不能为空") |
| | | private Long couponId; |
| | | |
| | | @ApiModelProperty("评分(1.差 2.一般 3.还不错 4.很满意 5.强烈推荐)") |
| | | @NotNull(groups = {AddGroup.class}, message = "评分不能为空") |
| | | private Integer star; |
| | | |
| | | @ApiModelProperty("评价内容") |
| | | @NotBlank(groups = {AddGroup.class}, message = "评价内容不能为空") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("评价图片(多张逗号隔开)") |
| | | @NotBlank(groups = {AddGroup.class}, message = "评价图片不能为空") |
| | | private String photos; |
| | | |
| | | @ApiModelProperty(value = "创建人", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PutGroup; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsGameDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 新增/编辑戳戳游戏 |
| | | * @author: hans |
| | | * @date: 2021/12/31 15:42 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增/编辑戳戳游戏") |
| | | public class McsGameDTO { |
| | | |
| | | @ApiModelProperty("游戏ID") |
| | | @NotNull(groups = {PutGroup.class}, message = "游戏ID不能为空") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("游戏名称") |
| | | @NotBlank(groups = {AddGroup.class}, message = "游戏名称不能为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("戳戳卷数量") |
| | | @NotNull(groups = {AddGroup.class}, message = "戳戳卷数量不能为空") |
| | | private Integer coupons; |
| | | |
| | | @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") |
| | | @NotNull(groups = {AddGroup.class}, message = "游戏类别不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("奖励类型(1.免费领 2.产品试用 3.消费赠礼 4.优惠券)") |
| | | private Integer awardType; |
| | | |
| | | @ApiModelProperty("戳戳币分配方式(1.随机分配 2.平均分配)") |
| | | private Integer allocation; |
| | | |
| | | @ApiModelProperty("戳戳币数量") |
| | | private Integer coins; |
| | | |
| | | @ApiModelProperty("地址") |
| | | @NotBlank(groups = {AddGroup.class}, message = "地址不能为空") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | @NotBlank(groups = {AddGroup.class}, message = "纬度不能为空") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | @NotBlank(groups = {AddGroup.class}, message = "经度不能为空") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("失效时间") |
| | | @NotNull(groups = {AddGroup.class}, message = "失效时间不能为空") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date expireAt; |
| | | |
| | | @ApiModelProperty("封面") |
| | | @NotBlank(groups = {AddGroup.class}, message = "封面不能为空") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("其他图片(多张图片以逗号隔开)") |
| | | private String otherImages; |
| | | |
| | | @ApiModelProperty("游戏介绍") |
| | | @NotBlank(groups = {AddGroup.class}, message = "游戏介绍不能为空") |
| | | private String introduction; |
| | | |
| | | @ApiModelProperty(value = "创建人", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "更新人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PutGroup; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsInfoDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 新增/编辑戳戳资讯 |
| | | * @author: hans |
| | | * @date: 2022/01/05 10:06 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增/编辑戳戳资讯") |
| | | public class McsInfoDTO { |
| | | |
| | | @ApiModelProperty("资讯ID") |
| | | @NotNull(groups = {PutGroup.class}, message = "资讯ID不能为空") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("资讯标题") |
| | | @NotBlank(groups = {AddGroup.class}, message = "资讯标题不能为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("地址") |
| | | @NotBlank(groups = {AddGroup.class}, message = "地址不能为空") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | @NotBlank(groups = {AddGroup.class}, message = "纬度不能为空") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | @NotBlank(groups = {AddGroup.class}, message = "经度不能为空") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("封面") |
| | | @NotBlank(groups = {AddGroup.class}, message = "封面不能为空") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("资讯内容") |
| | | @NotBlank(groups = {AddGroup.class}, message = "资讯内容不能为空") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "创建人", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "更新人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Pattern; |
| | | |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PutGroup; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsMerchantDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: |
| | | * @author: hans |
| | | * @date: 2021/12/28 14:32 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增/编辑微商业街商家") |
| | | public class McsMerchantDTO { |
| | | |
| | | @ApiModelProperty("微商业街商家ID") |
| | | @NotNull(groups = {PutGroup.class}, message = "微商业街商家ID不能为空") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("商家名称") |
| | | @NotBlank(groups = {AddGroup.class}, message = "商家名称不能为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("手机号") |
| | | @Pattern(groups = {AddGroup.class}, message = "手机号格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("商家级别(1.临时商家 2.合作商家)") |
| | | @NotNull(groups = {AddGroup.class}, message = "商家级别不能为空") |
| | | private Integer level; |
| | | |
| | | @ApiModelProperty("点亮天数") |
| | | @NotNull(groups = {AddGroup.class}, message = "点亮天数不能为空") |
| | | private Integer litDays; |
| | | |
| | | @ApiModelProperty("商家账号") |
| | | @NotBlank(groups = {AddGroup.class}, message = "商家账号不能为空") |
| | | private String account; |
| | | |
| | | @ApiModelProperty("密码") |
| | | // @Pattern(groups = {AddGroup.class}, message = "请输入8-12位密码,由英文,数字和特殊符号组成", |
| | | // regexp = "^(?=.*[A-Za-z])(?=(.*[\\d]){1,})(?=(.*[\\W]){1,})(?!.*\\s).{8,12}$") |
| | | @NotBlank(groups = {AddGroup.class}, message = "密码不能为空") |
| | | private String password; |
| | | |
| | | @ApiModelProperty("账号状态(1.启用 2.禁用)") |
| | | @NotNull(groups = {AddGroup.class}, message = "账号状态不能为空") |
| | | private Integer accountStatus; |
| | | |
| | | @ApiModelProperty("商家logo") |
| | | private String logo; |
| | | |
| | | @ApiModelProperty("戳戳点亮上限(发布次数上限)") |
| | | private Integer publishLimit; |
| | | |
| | | @ApiModelProperty("商家地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("商家介绍") |
| | | private String introduction; |
| | | |
| | | @ApiModelProperty(value = "创建人", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "更新人", hidden = true) |
| | | private Long updatedBy; |
| | | |
| | | @ApiModelProperty(value = "所属商家", hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户头像", hidden = true) |
| | | private String imageUrl; |
| | | |
| | | @ApiModelProperty(value = "openId", hidden = true) |
| | | private String openId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PutGroup; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: McsProductDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 新增/编辑产品信息 |
| | | * @author: hans |
| | | * @date: 2022/01/05 11:25 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增/编辑产品信息") |
| | | public class McsProductDTO { |
| | | |
| | | @ApiModelProperty("产品ID") |
| | | @NotNull(groups = {PutGroup.class}, message = "产品ID不能为空") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("产品名称") |
| | | @NotBlank(groups = {AddGroup.class}, message = "产品名称不能为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("产品图片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty("产品介绍") |
| | | private String introduction; |
| | | |
| | | @ApiModelProperty("产品标签id列表") |
| | | private List<Long> labelIds; |
| | | |
| | | @ApiModelProperty(value = "创建人", hidden = true) |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty(value = "更新人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageMyCouponDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询我的评价-参与游戏列表 |
| | | * @author: hans |
| | | * @date: 2022/01/08 12:34 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询我的评价-参与游戏列表") |
| | | public class PageJoinGameListDTO { |
| | | |
| | | @ApiModelProperty("关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageMcsEvaluateDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询戳戳评价记录请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/31 13:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询戳戳评价记录请求参数") |
| | | public class PageMcsEvaluateDTO { |
| | | |
| | | @ApiModelProperty("关键词") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty("1.我的评价") |
| | | private Integer isMy; |
| | | |
| | | @ApiModelProperty("戳戳游戏id") |
| | | private Long gameId; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageMcsGameDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询戳戳游戏请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/30 15:20 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询戳戳游戏请求参数") |
| | | public class PageMcsGameDTO { |
| | | |
| | | @ApiModelProperty("关键词") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("状态(1.未发布 2.进行中 3.已下架 4.已结束)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("距离(千米)") |
| | | private Integer distance; |
| | | |
| | | @ApiModelProperty("商家id") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageMcsInformationDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询戳戳资讯请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/30 17:44 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询戳戳资讯请求参数") |
| | | public class PageMcsInformationDTO { |
| | | |
| | | @ApiModelProperty("关键词") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty("状态(1.未发布 2.已发布 3.已下架)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("距离(千米)") |
| | | private Integer distance; |
| | | |
| | | @ApiModelProperty("商家id") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageMcsMerchantDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询微商业街商家请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/29 14:31 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询微商业街商家请求参数") |
| | | public class PageMcsMerchantDTO { |
| | | |
| | | @ApiModelProperty("关键词") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty("账号状态(1.启用 2.禁用)") |
| | | private Integer accountStatus; |
| | | |
| | | @ApiModelProperty("商家级别(1.临时商家 2.合作商家)") |
| | | private Integer level; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty("查询类型(1.戳戳游戏 2.戳戳资讯)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("距离,单位km") |
| | | private Integer distance; |
| | | |
| | | @ApiModelProperty("x km以上时,此值为1") |
| | | private Integer isMore; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PageMcsProductDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询产品信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/01/05 11:30 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询产品信息请求参数") |
| | | public class PageMcsProductDTO { |
| | | |
| | | @ApiModelProperty("关键词") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty("状态(1.上架中 2.已下架)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @title: PageVerifyRecordDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 分页查询核销记录 |
| | | * @author: hans |
| | | * @date: 2022/01/08 14:53 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询核销记录") |
| | | public class PageVerifyRecordDTO { |
| | | |
| | | @ApiModelProperty("关键字") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("核销时间-起") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date verifiedBegin; |
| | | |
| | | @ApiModelProperty("核销时间-止") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date verifiedEnd; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | @NotNull(message = "分页参数不能为空") |
| | | @Min(value = 1) |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: PutUserInfoDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 修改用戶信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/01/08 16:24 |
| | | */ |
| | | @Data |
| | | @ApiModel("修改用戶信息请求参数") |
| | | public class PutUserInfoDTO { |
| | | |
| | | @ApiModelProperty("头像") |
| | | private String imageUrl; |
| | | |
| | | @ApiModelProperty("昵称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: SetPopularForGameDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 设为/取消游戏热门请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/30 16:29 |
| | | */ |
| | | @Data |
| | | @ApiModel("设为/取消游戏热门请求参数") |
| | | public class SetPopularForGameDTO { |
| | | |
| | | @ApiModelProperty(value = "处理类型(1.设为热门 2.取消热门)", required = true, allowableValues = "1,2") |
| | | @NotNull(message = "处理类型不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "游戏id", required = true) |
| | | @NotNull(message = "游戏id不能为空") |
| | | private Long gameId; |
| | | |
| | | @ApiModelProperty(value = "处理人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: SetPopularForGameDTO1 |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 上架/下架戳戳游戏请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/30 16:43 |
| | | */ |
| | | @Data |
| | | @ApiModel("上架/下架戳戳游戏请求参数") |
| | | public class SetShelfForGameDTO { |
| | | |
| | | @ApiModelProperty(value = "处理类型(1.上架 2.下架)", required = true, allowableValues = "1,2") |
| | | @NotNull(message = "处理类型不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "游戏id", required = true) |
| | | @NotNull(message = "游戏id不能为空") |
| | | private Long gameId; |
| | | |
| | | @ApiModelProperty(value = "处理人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: SetShelfForInfoDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 上架/下架戳戳资讯请求参数 |
| | | * @author: hans |
| | | * @date: 2021/12/30 17:45 |
| | | */ |
| | | @Data |
| | | @ApiModel("上架/下架戳戳资讯请求参数") |
| | | public class SetShelfForInfoDTO { |
| | | |
| | | @ApiModelProperty(value = "处理类型(1.上架 2.下架)", required = true, allowableValues = "1,2") |
| | | @NotNull(message = "处理类型不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "资讯id", required = true) |
| | | @NotNull(message = "资讯id不能为空") |
| | | private Long infoId; |
| | | |
| | | @ApiModelProperty(value = "处理人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.microCommercialStreet; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: SetShelfForProductDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 上架/下架产品信息请求参数 |
| | | * @author: hans |
| | | * @date: 2022/01/05 11:27 |
| | | */ |
| | | @Data |
| | | @ApiModel("上架/下架产品信息请求参数") |
| | | public class SetShelfForProductDTO { |
| | | |
| | | @ApiModelProperty(value = "处理类型(1.上架 2.下架)", required = true, allowableValues = "1,2") |
| | | @NotNull(message = "处理类型不能为空") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "产品id列表", required = true) |
| | | @NotEmpty(message = "产品id列表不能为空") |
| | | private List<Long> productIds; |
| | | |
| | | @ApiModelProperty(value = "处理人", hidden = true) |
| | | private Long updatedBy; |
| | | } |
| | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | private String areaCode; |
| | | |
| | | /** |
| | | * 预约状态(1.同意 2.拒绝) |
| | | */ |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | |
| | | private String areaCode; |
| | | |
| | | private Integer isWjw; |
| | | } |
| | |
| | | @ApiModelProperty(value = "来攀/离攀结束时间") |
| | | private String stopTime; |
| | | |
| | | @ApiModelProperty(value = "类型 1燃气 2防火") |
| | | private Integer pdfType; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "距离(千米)", required = true) |
| | | private Integer distance; |
| | | |
| | | private String areaCode; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.partybuilding; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 查询党建数据统计请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("查询党建数据统计请求参数") |
| | | public class ComDataStatisticsOrgDto { |
| | | |
| | | @ApiModelProperty(value = "党员列表分页参数-当前页数") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "党员列表分页参数-每页记录数") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "党组织id",required = true) |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "查询年份",required = true) |
| | | private Integer year; |
| | | |
| | | @ApiModelProperty(value = "查询开始时间",hidden = true) |
| | | private String startTime; |
| | | |
| | | @ApiModelProperty(value = "查询结束时间",hidden = true) |
| | | private String endTime; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.partybuilding; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 分页查询党建数据统计请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询党建数据统计请求参数") |
| | | public class PageComDataStatisticsMemberDto { |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "年份") |
| | | private Integer month; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | } |
| | |
| | | private Integer paramId2; |
| | | @ApiModelProperty("社区id") |
| | | private Long communityId; |
| | | @ApiModelProperty("商家id") |
| | | private Long merchantId; |
| | | @ApiModelProperty("街道id") |
| | | private Long streetId; |
| | | @ApiModelProperty("分类2") |
| | |
| | | private String name; |
| | | @ApiModelProperty(value = "手机号", example = "") |
| | | private String phone; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | @NotNull(groups = {PutGroup.class}, message = "用户主键不能为空") |
| | | @Min(value = 1, groups = {PutGroup.class}, message = "用户主键不能为空") |
| | | private Long userId; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("疫苗描述") |
| | | private String describe; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | private String refreshToken; |
| | | @ApiModelProperty("communityId") |
| | | private Long communityId; |
| | | @ApiModelProperty("openId") |
| | | private String openId; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("是否物业工作人员 1.是 2.否") |
| | | private Integer isPropertyWorker; |
| | | |
| | | @ApiModelProperty("是否微团队成员 1.是 2.否") |
| | | private Integer isFmsMember; |
| | | |
| | | @ApiModelProperty("appid") |
| | | private String appId; |
| | | @ApiModelProperty("appSecret") |
| | | private String appSecret; |
| | | @ApiModelProperty("areaCode") |
| | | private String areaCode; |
| | | @ApiModelProperty("街道id") |
| | | private Long streetId; |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿评价表返回参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿评价表返回参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("随手拍、微心愿评价表返回参数") |
| | | public class ComActEasyPhotoEvaluateVo { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 业务记录id |
| | | */ |
| | | @ApiModelProperty(value = "业务记录id") |
| | | private Long serviceId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 评分 |
| | | */ |
| | | @ApiModelProperty(value = "评分") |
| | | private Integer score; |
| | | /** |
| | | * 评价内容 |
| | | */ |
| | | @ApiModelProperty(value = "评价内容") |
| | | private String content; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 业务分类(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务分类(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿处理人绑定表返回参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿处理人绑定表返回参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @Data |
| | | @ApiModel("随手拍、微心愿处理人绑定表返回参数") |
| | | public class ComActEasyPhotoHandlerVo { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 处理人id |
| | | */ |
| | | @ApiModelProperty(value = "处理人id") |
| | | private Long userId; |
| | | /** |
| | | * 业务id |
| | | */ |
| | | @ApiModelProperty(value = "业务id") |
| | | private Long serviceId; |
| | | /** |
| | | * 人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员) |
| | | */ |
| | | @ApiModelProperty(value = "人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)") |
| | | private Integer type; |
| | | /** |
| | | * 业务类型(1.随手拍 2.微心愿) |
| | | */ |
| | | @ApiModelProperty(value = "业务类型(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 志愿者组织队伍表返回参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:06:57 |
| | | */ |
| | | @Data |
| | | @ApiModel("志愿者组织队伍表返回参数") |
| | | public class ComMngVolunteerOrgTeamVo { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 父级id,为0时则为组织,不为0则为队伍 |
| | | */ |
| | | @ApiModelProperty(value = "父级id,为0时则为组织,不为0则为队伍") |
| | | private Long parentId; |
| | | /** |
| | | * 服务类型 |
| | | */ |
| | | @ApiModelProperty(value = "服务类型") |
| | | private Long serviceTypeId; |
| | | /** |
| | | * 服务类型名称 |
| | | */ |
| | | @ApiModelProperty(value = "服务类型名称") |
| | | private String serviceTypeName; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | @ApiModelProperty(value = "组织下队伍列表") |
| | | private List<ComMngVolunteerOrgTeamVo> childList; |
| | | |
| | | @ApiModelProperty(value = "创建人名字") |
| | | private String createByName; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 志愿者服务类型表返回参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("志愿者服务类型表返回参数") |
| | | public class ComMngVolunteerServiceTypeVo { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 创建人名称 |
| | | */ |
| | | @ApiModelProperty(value = "创建人名称") |
| | | private String createByName; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 志愿者技能表返回参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("志愿者技能表返回参数") |
| | | public class ComMngVolunteerSkillVo { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 创建人名称 |
| | | */ |
| | | @ApiModelProperty(value = "创建人名称") |
| | | private String createByName; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | |
| | | /** |
| | | * 志愿者组织统计返回参数 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:06:57 |
| | | */ |
| | | @Data |
| | | @ApiModel("志愿者组织统计返回参数") |
| | | public class ComMngVolunteerStatisticsVo { |
| | | |
| | | @ApiModelProperty(value = "组织数量") |
| | | private Integer orgTotal; |
| | | |
| | | @ApiModelProperty(value = "队伍数量") |
| | | private Integer teamTotal; |
| | | |
| | | @ApiModelProperty(value = "志愿者数量") |
| | | private Integer volunteerTotal; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 党建-报到单位返回参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 党建-报到单位返回参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("党建-报到单位返回参数") |
| | | public class ComPbCheckUnitVo { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 单位名称 |
| | | */ |
| | | @ApiModelProperty(value = "单位名称") |
| | | private String name; |
| | | /** |
| | | * 单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府) |
| | | */ |
| | | @ApiModelProperty(value = "单位类别(1.国有企业 2.国有控股企业 3.外资企业 4.合资企业 5.私营企业 6.事业单位 7.国家行政机关 8.政府)") |
| | | private Integer type; |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @ApiModelProperty(value = "负责人") |
| | | private String contacts; |
| | | /** |
| | | * 负责人联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "负责人联系电话") |
| | | private String phone; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | } |
| | |
| | | private String contactName; |
| | | |
| | | @ApiModelProperty("联系人电话") |
| | | @NotBlank(groups = AddGroup.class, message = "联系人电话不可为空") |
| | | private String contactPhone; |
| | | |
| | | @ApiModelProperty("是否签到 1 是 0否") |
| | |
| | | @ApiModelProperty("活动类型") |
| | | @NotBlank(groups = AddGroup.class, message = "活动类型不能为空") |
| | | private String activityType; |
| | | |
| | | |
| | | private String areaCode; |
| | | |
| | | @ApiModelProperty("单次活动时长(小时)") |
| | | private Integer duration; |
| | | |
| | | @ApiModelProperty("项目Id") |
| | | private Long projectId; |
| | | |
| | |
| | | @ApiModelProperty("已投票记录列表") |
| | | private List<ComActDiscussOptionUserVO> comActDiscussOptionUserVOList; |
| | | |
| | | @ApiModelProperty("议事内容类型(1.社区议事 2.院落议事 3.党群议事)") |
| | | private Integer contentType; |
| | | |
| | | @ApiModelProperty("已参与投票人数") |
| | | private Integer votedPersonNum; |
| | | |
| | |
| | | |
| | | @ApiModelProperty("跳转状态") |
| | | private Integer jumpType; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | @ApiModelProperty("发起人头像") |
| | | private String imageUrl; |
| | | |
| | | @ApiModelProperty("状态 1待审核 2进行中 3已驳回 4已完成") |
| | | @ApiModelProperty("状态 1待审核 2进行中 3已驳回 4待评价 5.已完成") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("处理人id") |
| | |
| | | @ApiModelProperty(value = "单张图片高度") |
| | | private BigDecimal imgHeight; |
| | | |
| | | @ApiModelProperty(value = "评价时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date evaluateDate; |
| | | |
| | | @ApiModelProperty(value = "评价分数") |
| | | private Integer score; |
| | | |
| | | @ApiModelProperty(value = "评价内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "微心愿分配人员集合") |
| | | private List<ComActMicroWishHandleVO> handleList; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 微心愿处理人请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("微心愿处理人请求参数") |
| | | public class ComActMicroWishHandleVO { |
| | | |
| | | @ApiModelProperty("用户id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty("处理人类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)") |
| | | private Integer type; |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "微心愿分配人id集合") |
| | | private List<Long> handleIds; |
| | | |
| | | @ApiModelProperty(value = "微心愿分配人员集合") |
| | | private List<ComActMicroWishHandleVO> handleList; |
| | | |
| | | @ApiModelProperty(value = "微心愿处理人id,多个以逗号隔开") |
| | | private String handleId; |
| | | } |
| | |
| | | private String name; |
| | | @ApiModelProperty("预约内容") |
| | | private String content; |
| | | @ApiModelProperty("填报记录id") |
| | | private Long recordId; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | private String areaCode; |
| | | |
| | | private List<ComActWorkGuideMaterialVO> materials = Lists.newArrayList(); |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | |
| | | @ExcelProperty(value = "身份证号码", index = 1) |
| | | private String cardNo; |
| | | |
| | | @ExcelProperty(value = "人员标签", index = 2) |
| | | @ExcelProperty(value = "人员类型", index = 2) |
| | | private String personType; |
| | | |
| | | @ExcelProperty(value = "人员标签", index = 3) |
| | | private String label; |
| | | |
| | | @ExcelProperty(value = "居住地址", index = 3) |
| | | @ExcelProperty(value = "居住地址", index = 4) |
| | | private String address; |
| | | |
| | | @ExcelProperty(value = "性别", index = 4) |
| | | @ExcelProperty(value = "性别", index = 5) |
| | | private String sex; |
| | | |
| | | @ExcelProperty(value = "民族", index = 5) |
| | | @ExcelProperty(value = "民族", index = 6) |
| | | private String nation; |
| | | |
| | | @ExcelProperty(value = "政治面貌", index = 6) |
| | | @ExcelProperty(value = "政治面貌", index = 7) |
| | | private String politicalOutlook; |
| | | |
| | | @ExcelProperty(value = "出生年月日", index = 7) |
| | | @ExcelProperty(value = "出生年月日", index = 8) |
| | | private String birthday; |
| | | |
| | | @ExcelProperty(value = "年龄", index = 8) |
| | | @ExcelProperty(value = "年龄", index = 9) |
| | | private Integer age; |
| | | |
| | | @ExcelProperty(value = "联系方式", index = 9) |
| | | @ExcelProperty(value = "联系方式", index = 10) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "籍贯", index = 10) |
| | | @ExcelProperty(value = "籍贯", index = 11) |
| | | private String nativePlace; |
| | | |
| | | @ExcelProperty(value = "本地外地", index = 11) |
| | | @ExcelProperty(value = "本地外地", index = 12) |
| | | private String outOrLacal; |
| | | |
| | | @ExcelProperty(value = "文化程度", index = 12) |
| | | @ExcelProperty(value = "文化程度", index = 13) |
| | | private String cultureLevel; |
| | | |
| | | @ExcelProperty(value = "婚姻状况", index = 13) |
| | | @ExcelProperty(value = "婚姻状况", index = 14) |
| | | private String marriage; |
| | | |
| | | @ExcelProperty(value = "健康状况", index = 14) |
| | | @ExcelProperty(value = "健康状况", index = 15) |
| | | private String healthy; |
| | | |
| | | @ExcelProperty(value = "工作单位", index = 15) |
| | | @ExcelProperty(value = "工作单位", index = 16) |
| | | private String workCompany; |
| | | } |
| | |
| | | // @ExcelProperty(value = "居住地址", index = 28) |
| | | // private String address; |
| | | |
| | | @ExcelProperty(value = "人员类型(户籍人员/留守人员/外地人员/境外人员)", index = 28) |
| | | @ExcelProperty(value = "人员类型(户籍人口/留守人员/外地人员/境外人员/流动人口/常住人口/暂住人口)", index = 28) |
| | | private String personType; |
| | | |
| | | @ExcelProperty(value = "国家", index = 29) |
| | |
| | | @ExcelProperty(value = "居住地址", index = 28) |
| | | private String address; |
| | | |
| | | @ExcelProperty(value = "人员类型(1、户籍人员2、留守人员3、外地人员4、境外人员)", index = 29) |
| | | @ExcelProperty(value = "人员类型(1、户籍人口2、留守人员3、外地人员4、境外人员5、流动人口6、常住人口7、暂住人口)", index = 29) |
| | | private Integer personType; |
| | | |
| | | @ExcelProperty(value = "国家", index = 30) |
| | |
| | | @ApiModelProperty("楼栋数") |
| | | private Integer buildNum; |
| | | |
| | | @ApiModelProperty("户籍人口") |
| | | private Integer houseRegTotal; |
| | | |
| | | @ApiModelProperty("流动人口") |
| | | private Integer floatingTotal; |
| | | |
| | | @ApiModelProperty("常住人口") |
| | | private Integer permanentTotal; |
| | | |
| | | @ApiModelProperty("暂住人口") |
| | | private Integer temporaryTotal; |
| | | |
| | | @ApiModelProperty("外地人员") |
| | | private Integer outOfTownTotal; |
| | | |
| | | @ApiModelProperty("留守人员") |
| | | private Integer leftTotal; |
| | | |
| | | @ApiModelProperty("境外人员") |
| | | private Integer overseasTotal; |
| | | } |
| | |
| | | @ApiModelProperty("身份证无加密字段") |
| | | private String cardNoStr; |
| | | |
| | | @ApiModelProperty("是否健在 0是 、1否") |
| | | private Integer death; |
| | | |
| | | @ApiModelProperty("人员类型 1 80-89 2 90-99 3 100以上") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("人员类型(1、户籍人口2、留守人员3、外地人员4、境外人员5、流动人口6、常住人口7、暂住人口)") |
| | | private String personType; |
| | | |
| | | @ApiModelProperty("房屋列表") |
| | | private List<ComMngHouseVo> houseList; |
| | | |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | private Long submitUserId; |
| | | |
| | | private Long streetId; |
| | | |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty(value = "组织id") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "队伍id") |
| | | private Long teamId; |
| | | |
| | | @ApiModelProperty(value = "技能id") |
| | | private Long skillId; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "组织名称") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "队伍名称") |
| | | private String teamName; |
| | | |
| | | @ApiModelProperty(value = "技能名称") |
| | | private String skillName; |
| | | |
| | | @ApiModelProperty(value = "服务类型id") |
| | | private Long serviceTypeId; |
| | | |
| | | @ApiModelProperty(value = "服务类型名称") |
| | | private String serviceTypeName; |
| | | |
| | | @ApiModelProperty(value = "是否是在校大学生(1.是 2.否)") |
| | | private Integer isUniversity; |
| | | |
| | | @Length(max = 30) |
| | | @ApiModelProperty(value = "大学名称") |
| | | private String universityName; |
| | | } |
| | |
| | | private List<String> nextIds; |
| | | |
| | | private Long communityId; |
| | | |
| | | private String areaCode; |
| | | } |
| | |
| | | private Integer y; |
| | | @ApiModelProperty("累计数") |
| | | private Integer countY; |
| | | |
| | | private String year; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.bigscreen; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.community.StatisticsCommVO; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: BigScreenResidentActStatisticsInfo |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 居民活动大屏统计数据 |
| | | * @author: hans |
| | | * @date: 2021/12/24 15:06 |
| | | */ |
| | | @Data |
| | | @ApiModel("居民活动大屏统计数据") |
| | | public class BigScreenResidentActStatisticsInfo { |
| | | |
| | | @ApiModelProperty("居民活动发布次数") |
| | | private Integer publishNum = 0; |
| | | |
| | | @ApiModelProperty("居民活动参与人数") |
| | | private Integer joinNum = 0; |
| | | |
| | | @ApiModelProperty(value = "居民活动饼图数据") |
| | | private List<StatisticsCommVO> actCircleData; |
| | | |
| | | @ApiModelProperty(value = "居民活动新增折线数据") |
| | | private List<StatisticsCommVO> actAddPolylineData; |
| | | |
| | | @ApiModelProperty(value = "居民活动累计折线数据") |
| | | private List<StatisticsCommVO> actTotalPolylineData; |
| | | } |
| | |
| | | private Integer homeCount; |
| | | @ApiModelProperty("总量") |
| | | private Integer count; |
| | | |
| | | private String year; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.bigscreen; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.community.StatisticsCommVO; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: BigScreenVolunteerActStatisticsInfo |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 志愿者活动大屏统计数据 |
| | | * @author: hans |
| | | * @date: 2021/12/24 16:25 |
| | | */ |
| | | @Data |
| | | @ApiModel("志愿者活动大屏统计数据") |
| | | public class BigScreenVolunteerActStatisticsInfo { |
| | | |
| | | @ApiModelProperty("志愿者活动发布次数") |
| | | private Integer publishNum = 0; |
| | | |
| | | @ApiModelProperty("志愿者活动参与人数") |
| | | private Integer joinNum = 0; |
| | | |
| | | @ApiModelProperty(value = "志愿者活动饼图数据") |
| | | private List<StatisticsCommVO> actCircleData; |
| | | |
| | | @ApiModelProperty(value = "志愿者活动新增折线数据") |
| | | private List<StatisticsCommVO> actAddPolylineData; |
| | | |
| | | @ApiModelProperty(value = "志愿者活动累计折线数据") |
| | | private List<StatisticsCommVO> actTotalPolylineData; |
| | | } |
| | |
| | | package com.panzhihua.common.model.vos.community.bigscreen; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.community.StatisticsCommVO; |
| | | import com.panzhihua.common.model.vos.community.screen.civil.CivilVillageStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventGridIncidentStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventGridStatisticsVO; |
| | | import com.panzhihua.common.model.vos.screen.ScreenDrawEventPopulationTotalVO; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: GridsGovernanceStatisticsVO |
| | |
| | | |
| | | @ApiModelProperty("小区列表数据") |
| | | private List<CivilVillageStatisticsVO> villageStatisticsList; |
| | | |
| | | @ApiModelProperty("社区事件数据") |
| | | private List<EventGridIncidentStatisticsVO> gridIncidentList; |
| | | |
| | | @ApiModelProperty("人口统计") |
| | | private ScreenDrawEventPopulationTotalVO drawEventPopulationTotalVO; |
| | |
| | | @ApiModelProperty(value = "业主委员会小区覆盖率") |
| | | private BigDecimal areaCoverPercent; |
| | | |
| | | @ApiModelProperty(value = "业主委员会党员占比大于50%数量") |
| | | private Integer committeeMostlyTotal = 0; |
| | | |
| | | @ApiModelProperty(value = "业主委员会党员占比") |
| | | private List<StatisticsCommVO> committeePartyPercent; |
| | | |
| | | @ApiModelProperty(value = "议事投票本月总数") |
| | | private Integer discussCurrentMonCount; |
| | | |
| | |
| | | |
| | | @ApiModelProperty(value = "爱心义仓捐赠物品图片") |
| | | private List<String> warehouseImages; |
| | | |
| | | @ApiModelProperty(value = "居民活动本月总数") |
| | | private Integer residentActCurrentMonCount; |
| | | |
| | | @ApiModelProperty(value = "居民活动总数") |
| | | private Integer residentActTotalCount; |
| | | |
| | | @ApiModelProperty(value = "居民活动分类柱状统计") |
| | | private List<StatisticsCommVO> residentActHistogram; |
| | | |
| | | @ApiModelProperty(value = "居民自治组织数") |
| | | private Integer residentAutonomyOrgCount = 0; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: CascadeCommVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 级联数据公共类 |
| | | * @author: hans |
| | | * @date: 2022/02/14 11:13 |
| | | */ |
| | | @Data |
| | | @ApiModel("级联数据公共类") |
| | | public class CascadeCommVO { |
| | | |
| | | @ApiModelProperty("value") |
| | | private Long value; |
| | | |
| | | @ApiModelProperty("parentId") |
| | | private Long parentId; |
| | | |
| | | @ApiModelProperty("label") |
| | | private String label; |
| | | |
| | | @ApiModelProperty("children") |
| | | private List<CascadeCommVO> children; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsClassroomVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微讲堂信息 |
| | | * @author: hans |
| | | * @date: 2022/02/17 14:16 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微讲堂信息") |
| | | public class ComFmsClassroomVO { |
| | | |
| | | @ApiModelProperty("主键") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("标题") |
| | | private String title; |
| | | |
| | | @ApiModelProperty("参与学习人数") |
| | | private Integer scholars; |
| | | |
| | | @ApiModelProperty("封面") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("浏览量") |
| | | private Integer viewNum; |
| | | |
| | | @ApiModelProperty("发布时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAt; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsServiceVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-评论详情 |
| | | * @author: hans |
| | | * @date: 2022/02/16 14:13 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-评论详情") |
| | | public class ComFmsServiceEvaluateVO { |
| | | |
| | | @ApiModelProperty("主键") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("服务关联id") |
| | | private Long serviceId; |
| | | |
| | | @ApiModelProperty("评分星级(1.非常差2.差3.一般4.满意5.非常满意)") |
| | | private String starLevel; |
| | | |
| | | @ApiModelProperty("内") |
| | | private String evaluateContent; |
| | | |
| | | @ApiModelProperty("图片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAt; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberImportExcelVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微服务导入信息 |
| | | * @author: hans |
| | | * @date: 2022/02/15 10:36 |
| | | */ |
| | | @Data |
| | | public class ComFmsServiceImportExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "服务用户", index = 0) |
| | | private String userName; |
| | | |
| | | @ExcelProperty(value = "联系电话", index = 1) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "服务时间", index = 2) |
| | | private Date serviceAt; |
| | | |
| | | @ExcelProperty(value = "服务内容", index = 3) |
| | | private String serviceContent; |
| | | |
| | | @ExcelProperty(value = "服务过程", index = 4) |
| | | private String serviceProcess; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberImportExcelVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微服务导入错误反馈信息 |
| | | * @author: hans |
| | | * @date: 2022/02/15 10:36 |
| | | */ |
| | | @Data |
| | | public class ComFmsServiceImportMistakeExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "服务用户", index = 0) |
| | | private String userName; |
| | | |
| | | @ExcelProperty(value = "联系电话", index = 1) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "服务时间", index = 2) |
| | | private String serviceAt; |
| | | |
| | | @ExcelProperty(value = "服务内容", index = 3) |
| | | private String serviceContent; |
| | | |
| | | @ExcelProperty(value = "服务过程", index = 4) |
| | | private String serviceProcess; |
| | | |
| | | @ExcelProperty(value = "错误信息", index = 5) |
| | | private String mistake; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsServiceVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微服务记录 |
| | | * @author: hans |
| | | * @date: 2022/02/16 14:13 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微服务记录") |
| | | public class ComFmsServiceRecordVO { |
| | | |
| | | @ApiModelProperty("主键") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("服务关联id") |
| | | private Long serviceId; |
| | | |
| | | @ApiModelProperty("服务阶段") |
| | | private String stage; |
| | | |
| | | @ApiModelProperty("内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("图片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAt; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsServiceVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微服务信息 |
| | | * @author: hans |
| | | * @date: 2022/02/16 14:13 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微服务信息") |
| | | public class ComFmsServiceVO { |
| | | |
| | | @ApiModelProperty("主键") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("用户姓名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("真实姓名") |
| | | private String realName; |
| | | |
| | | @ApiModelProperty("用户关联id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty("联系电话") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("服务内容") |
| | | private String serviceContent; |
| | | |
| | | @ApiModelProperty("服务内容图片") |
| | | private String serviceImage; |
| | | |
| | | @ApiModelProperty("反馈内容") |
| | | private String approvalContent; |
| | | |
| | | @ApiModelProperty("审核时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date approvalAt; |
| | | |
| | | @ApiModelProperty("团队服务人员关联id") |
| | | private Long memberId; |
| | | |
| | | @ApiModelProperty("服务人员") |
| | | private String serviceMember; |
| | | |
| | | @ApiModelProperty("服务评价") |
| | | private Integer starLevel; |
| | | |
| | | @ApiModelProperty("服务状态(1.待核实2.进行中3.待评价4.已完成5.未通过)") |
| | | private Integer serviceStatus; |
| | | |
| | | @ApiModelProperty("服务时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date serviceAt; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAt; |
| | | |
| | | @ApiModelProperty("创建者") |
| | | private Long createdBy; |
| | | |
| | | @ApiModelProperty("更新时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updatedAt; |
| | | |
| | | @ApiModelProperty("由谁更新") |
| | | private Long updatedBy; |
| | | |
| | | @ApiModelProperty("所属社区") |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty("服务进度") |
| | | private List<ComFmsServiceRecordVO> serviceRecords; |
| | | |
| | | @ApiModelProperty("小程序用户昵称") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty("小程序用户头像") |
| | | private String imageUrl; |
| | | |
| | | @ApiModelProperty("服务评价") |
| | | private ComFmsServiceEvaluateVO evaluateVO; |
| | | |
| | | @ApiModelProperty("是否本人") |
| | | private Boolean isMyself; |
| | | |
| | | @ApiModelProperty("自动评价倒计时") |
| | | private Long autoEvaluateAt; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberExportExcleVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队成员导出信息 |
| | | * @author: hans |
| | | * @date: 2022/02/16 10:34 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-团队成员导出信息") |
| | | public class ComFmsTeamMemberExportExcelVO { |
| | | |
| | | @ExcelProperty(value = "团队类型", index = 0) |
| | | private String teamType; |
| | | |
| | | @ExcelProperty(value = "团队名称", index = 1) |
| | | private String teamName; |
| | | |
| | | @ExcelProperty(value = "团队成员", index = 2) |
| | | private String teamMember; |
| | | |
| | | @ExcelProperty(value = "身份证号", index = 3) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "性别", index = 4) |
| | | private String gender; |
| | | |
| | | @ExcelProperty(value = "年龄", index = 5) |
| | | private String age; |
| | | |
| | | @ExcelProperty(value = "联系电话", index = 6) |
| | | private String phone; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberImportExcelVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队成员导入信息 |
| | | * @author: hans |
| | | * @date: 2022/02/15 10:36 |
| | | */ |
| | | @Data |
| | | public class ComFmsTeamMemberImportExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "团队类型", index = 0) |
| | | private String teamType; |
| | | |
| | | @ExcelProperty(value = "团队名称", index = 1) |
| | | private String teamName; |
| | | |
| | | @ExcelProperty(value = "团队成员", index = 2) |
| | | private String teamMember; |
| | | |
| | | @ExcelProperty(value = "身份证号(非必填)", index = 3) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "联系电话", index = 4) |
| | | private String phone; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamMemberImportExcelVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队成员导入错误反馈信息 |
| | | * @author: hans |
| | | * @date: 2022/02/15 10:36 |
| | | */ |
| | | @Data |
| | | public class ComFmsTeamMemberImportMistakeExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "团队类型", index = 0) |
| | | private String teamType; |
| | | |
| | | @ExcelProperty(value = "团队名称", index = 1) |
| | | private String teamName; |
| | | |
| | | @ExcelProperty(value = "团队成员", index = 2) |
| | | private String teamMember; |
| | | |
| | | @ExcelProperty(value = "身份证号(非必填)", index = 3) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "联系电话", index = 4) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "错误信息", index = 5) |
| | | private String mistake; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamTypeVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队成员信息 |
| | | * @author: hans |
| | | * @date: 2022/02/11 14:54 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-团队成员信息") |
| | | public class ComFmsTeamMemberVO { |
| | | |
| | | @ApiModelProperty("团队成员id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("成员姓名") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("联系电话") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("身份证号") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty("所属团队类型") |
| | | private Long teamType; |
| | | |
| | | @ApiModelProperty("所属团队类型名称") |
| | | private String teamTypeName; |
| | | |
| | | @ApiModelProperty("所属团队") |
| | | private Long teamId; |
| | | |
| | | @ApiModelProperty("所属团队名称") |
| | | private String teamName; |
| | | |
| | | @ApiModelProperty("性别(1.男2.女3.未知)") |
| | | private Integer gender; |
| | | |
| | | @ApiModelProperty("年龄") |
| | | private Integer age; |
| | | |
| | | @ApiModelProperty("团队级联关系") |
| | | private String cascadeIds; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamTypeVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队类型信息 |
| | | * @author: hans |
| | | * @date: 2022/02/11 14:54 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-团队类型信息") |
| | | public class ComFmsTeamTypeVO { |
| | | |
| | | @ApiModelProperty("团队类型id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("团队类型名称") |
| | | private String name; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamTypeVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-团队信息 |
| | | * @author: hans |
| | | * @date: 2022/02/11 14:54 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-团队信息") |
| | | public class ComFmsTeamVO { |
| | | |
| | | @ApiModelProperty("团队id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("团队名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("服务电话") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("所属团队类型") |
| | | private Long teamType; |
| | | |
| | | @ApiModelProperty("团队照片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty("团队成员总数") |
| | | private Integer teamMemberTotal; |
| | | |
| | | @ApiModelProperty("团队成员列表") |
| | | private List<ComFmsTeamMemberVO> memberList; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: FmsServiceTopStatisticsVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微讲堂顶部统计 |
| | | * @author: hans |
| | | * @date: 2022/02/17 10:11 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微讲堂顶部统计") |
| | | public class FmsClassroomTopStatisticsVO { |
| | | |
| | | @ApiModelProperty("开课次数") |
| | | private Integer classroomCount; |
| | | |
| | | @ApiModelProperty("学习人数") |
| | | private Integer learnCount; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: FmsServiceTopStatisticsVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微调节/微防控顶部统计 |
| | | * @author: hans |
| | | * @date: 2022/02/17 10:11 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微调节/微防控顶部统计") |
| | | public class FmsEventTopStatisticsVO { |
| | | |
| | | @ApiModelProperty("待处理") |
| | | private Integer unHandledCount; |
| | | |
| | | @ApiModelProperty("已解决") |
| | | private Integer handledCount; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsClassroomVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-事件信息 |
| | | * @author: hans |
| | | * @date: 2022/02/17 14:16 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-事件信息") |
| | | public class FmsEventVO { |
| | | |
| | | @ApiModelProperty("事件id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("事件类型") |
| | | private String eventClazz; |
| | | |
| | | @ApiModelProperty("发生区域") |
| | | private String gridName; |
| | | |
| | | @ApiModelProperty("发生地经纬度") |
| | | private String happentLatLng; |
| | | |
| | | @ApiModelProperty("发生时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date happenTime; |
| | | |
| | | @ApiModelProperty("事件描述") |
| | | private String eventDes; |
| | | |
| | | @ApiModelProperty("危险级别") |
| | | private Integer dangerLevel; |
| | | |
| | | @ApiModelProperty("是否紧急") |
| | | private Boolean urgent; |
| | | |
| | | @ApiModelProperty("是否重大") |
| | | private Boolean major; |
| | | |
| | | @ApiModelProperty("状态") |
| | | private Integer eventProcessStatus; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: FmsServiceTopStatisticsVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微服务顶部统计 |
| | | * @author: hans |
| | | * @date: 2022/02/17 10:11 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微服务顶部统计") |
| | | public class FmsServiceTopStatisticsVO { |
| | | |
| | | @ApiModelProperty("已完成") |
| | | private Integer completedCount; |
| | | |
| | | @ApiModelProperty("待核实") |
| | | private Integer unVerifiedCount; |
| | | |
| | | @ApiModelProperty("进行中") |
| | | private Integer inProgressCount; |
| | | |
| | | @ApiModelProperty("待评价") |
| | | private Integer unEvaluateCount; |
| | | |
| | | @ApiModelProperty("未通过") |
| | | private Integer unPassCount; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.fms; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: ComFmsTeamTypeVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务-微团队顶部统计 |
| | | * @author: hans |
| | | * @date: 2022/02/11 14:54 |
| | | */ |
| | | @Data |
| | | @ApiModel("五微服务-微团队顶部统计") |
| | | public class TeamMemberTopStatisticsVO { |
| | | |
| | | @ApiModelProperty("团队数量") |
| | | private Integer teamCount; |
| | | |
| | | @ApiModelProperty("团队成员") |
| | | private Integer memberCount; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: GameStatisticsVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 游戏统计信息 |
| | | * @author: hans |
| | | * @date: 2022/01/08 15:12 |
| | | */ |
| | | @Data |
| | | @ApiModel("游戏统计信息") |
| | | public class GameStatisticsVO { |
| | | |
| | | @ApiModelProperty("游戏总数") |
| | | private Integer gameTotal; |
| | | |
| | | @ApiModelProperty("发放核销码") |
| | | private Integer sendCouponTotal; |
| | | |
| | | @ApiModelProperty("领取数占比") |
| | | private BigDecimal appliedPercent; |
| | | |
| | | @ApiModelProperty("未领取数占比") |
| | | private BigDecimal unAppliedPercent; |
| | | |
| | | @ApiModelProperty("核销人数占比") |
| | | private BigDecimal verifiedPercent; |
| | | |
| | | @ApiModelProperty("未核销数占比") |
| | | private BigDecimal unVerifiedPercent; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: IndexTopStatisticsVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 首页顶部数据 |
| | | * @author: hans |
| | | * @date: 2022/01/07 14:04 |
| | | */ |
| | | @Data |
| | | @ApiModel("首页顶部数据") |
| | | public class IndexTopStatisticsVO { |
| | | |
| | | @ApiModelProperty("戳戳币总额") |
| | | private Integer coinTotal; |
| | | |
| | | @ApiModelProperty("今日已领戳戳币") |
| | | private Integer appliedTotal; |
| | | |
| | | @ApiModelProperty("游戏总数") |
| | | private Integer gameTotal; |
| | | |
| | | @ApiModelProperty("全部资讯") |
| | | private Integer infoTotal; |
| | | |
| | | @ApiModelProperty("热门戳戳") |
| | | private McsGameVO popularGame; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsConfigVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 数字商业街配置信息 |
| | | * @author: hans |
| | | * @date: 2021/12/30 11:15 |
| | | */ |
| | | @Data |
| | | @ApiModel("数字商业街配置信息") |
| | | public class McsConfigVO { |
| | | |
| | | @ApiModelProperty("配置id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("配置名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("key") |
| | | private String key; |
| | | |
| | | @ApiModelProperty("配置内容") |
| | | private String value; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @title: CouponApplyReturnVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 戳戳卷信息 |
| | | * @author: hans |
| | | * @date: 2022/01/07 17:27 |
| | | */ |
| | | @Data |
| | | @ApiModel("戳戳卷信息") |
| | | public class McsCouponVO { |
| | | |
| | | @ApiModelProperty("戳戳卷id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("优惠券包含奖励") |
| | | private String award; |
| | | |
| | | @ApiModelProperty("戳戳卷二维码") |
| | | private String qrCode; |
| | | |
| | | @ApiModelProperty("是否核验") |
| | | private Boolean isVerified; |
| | | |
| | | @ApiModelProperty("游戏名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("是否评论(1.是 2.否)") |
| | | private Integer isEvaluate; |
| | | |
| | | @ApiModelProperty("评论id") |
| | | private Long evaluateId; |
| | | |
| | | @ApiModelProperty("游戏id") |
| | | private Long gameId; |
| | | |
| | | @ApiModelProperty("失效时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date expireAt; |
| | | |
| | | @ApiModelProperty("游戏封面") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("奖励类型(1.免费领 2.产品试用 3.消费赠礼 4.优惠券)") |
| | | private Integer awardType; |
| | | |
| | | @ApiModelProperty("戳戳币分配方式(1.随机分配 2.平均分配)") |
| | | private Integer allocation; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsEvaluateVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 戳戳评价记录信息 |
| | | * @author: hans |
| | | * @date: 2021/12/31 13:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("戳戳评价记录信息") |
| | | public class McsEvaluateVO { |
| | | |
| | | @ApiModelProperty("评价记录id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("评分(1.差 2.一般 3.还不错 4.很满意 5.强烈推荐)") |
| | | private Integer star; |
| | | |
| | | @ApiModelProperty("评价内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("评价图片(多张逗号隔开)") |
| | | private String photos; |
| | | |
| | | @ApiModelProperty("评价时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createdAt; |
| | | |
| | | @ApiModelProperty("用户") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty("用户头像") |
| | | private String imageUrl; |
| | | |
| | | @ApiModelProperty("手机号码") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("评价游戏") |
| | | private String gameName; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsGameVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 戳戳游戏信息 |
| | | * @author: hans |
| | | * @date: 2021/12/30 13:50 |
| | | */ |
| | | @Data |
| | | @ApiModel("戳戳游戏信息") |
| | | public class McsGameVO { |
| | | |
| | | @ApiModelProperty("游戏id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("游戏名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("戳戳卷数量") |
| | | private Integer coupons; |
| | | |
| | | @ApiModelProperty("剩余戳戳卷数量") |
| | | private Integer surplusCoupons; |
| | | |
| | | @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("奖励类型(1.免费领 2.产品试用 3.消费赠礼 4.优惠券)") |
| | | private Integer awardType; |
| | | |
| | | @ApiModelProperty("戳戳币分配方式(1.随机分配 2.平均分配)") |
| | | private Integer allocation; |
| | | |
| | | @ApiModelProperty("戳戳币总额") |
| | | private Integer coins; |
| | | |
| | | @ApiModelProperty("戳戳币剩余数量") |
| | | private Integer surplusCoins; |
| | | |
| | | @ApiModelProperty("地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("失效时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date expireAt; |
| | | |
| | | @ApiModelProperty("封面") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("其他图片(多张图片以逗号隔开)") |
| | | private String otherImages; |
| | | |
| | | @ApiModelProperty("游戏介绍") |
| | | private String introduction; |
| | | |
| | | @ApiModelProperty("状态(1.未发布 2.进行中 3.已下架 4.已结束)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("是否热门") |
| | | private Boolean isPopular; |
| | | |
| | | @ApiModelProperty("发布时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date publishAt; |
| | | |
| | | @ApiModelProperty("所属商家") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty("所属商家名称") |
| | | private String merchantName; |
| | | |
| | | @ApiModelProperty("商家logo") |
| | | private String logo; |
| | | |
| | | @ApiModelProperty("所属商家下游戏总数") |
| | | private Integer gameCount; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsInformationVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 戳戳资讯信息 |
| | | * @author: hans |
| | | * @date: 2021/12/30 17:43 |
| | | */ |
| | | @Data |
| | | @ApiModel("戳戳资讯信息") |
| | | public class McsInformationVO { |
| | | |
| | | @ApiModelProperty("资讯id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("资讯标题") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("封面") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("资讯内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("状态(1.未发布 2.已发布 3.已下架)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("发布时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date publishAt; |
| | | |
| | | @ApiModelProperty("所属商家") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty("资讯内容") |
| | | private String merchantName; |
| | | |
| | | @ApiModelProperty("商家信息") |
| | | private McsMerchantVO merchantInfo; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsLabelVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 产品标签信息 |
| | | * @author: hans |
| | | * @date: 2022/01/05 14:54 |
| | | */ |
| | | @Data |
| | | @ApiModel("产品标签信息") |
| | | public class McsLabelVO { |
| | | |
| | | @ApiModelProperty("标签id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("标签名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("说明") |
| | | private String introduction; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsLoginUserInfoVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 微商业街用户登录信息 |
| | | * @author: hans |
| | | * @date: 2022/01/06 13:12 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "微商业街用户登录信息") |
| | | public class McsLoginUserInfoVO extends LoginUserInfoVO { |
| | | @ApiModelProperty("商家信息") |
| | | private McsMerchantVO mcsMerchantVO; |
| | | |
| | | private String plaintextPassword; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsMerchantVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 数字商业街商家信息 |
| | | * @author: hans |
| | | * @date: 2021/12/29 10:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("数字商业街商家信息") |
| | | public class McsMerchantVO { |
| | | |
| | | @ApiModelProperty("商家id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("商家名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("手机号") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("商家账号") |
| | | private String account; |
| | | |
| | | @ApiModelProperty("商家logo") |
| | | private String logo; |
| | | |
| | | @ApiModelProperty("商家级别(1.临时商家 2.合作商家)") |
| | | private Integer level; |
| | | |
| | | @ApiModelProperty("戳戳点亮上限(发布次数上限)") |
| | | private Integer publishLimit; |
| | | |
| | | @ApiModelProperty("到期时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date expireAt; |
| | | |
| | | @ApiModelProperty("商家地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty("商家简介") |
| | | private String introduction; |
| | | |
| | | @ApiModelProperty("首次点亮时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date firstLitAt; |
| | | |
| | | @ApiModelProperty("剩余点亮天数") |
| | | private Integer surplusLitDays; |
| | | |
| | | @ApiModelProperty("账号状态(1.启用 2.禁用)") |
| | | private Integer accountStatus; |
| | | |
| | | @ApiModelProperty("空闲戳戳点") |
| | | private Integer idleTotal; |
| | | |
| | | @ApiModelProperty("距离") |
| | | private Double distance; |
| | | |
| | | @ApiModelProperty("客服电话") |
| | | private String customPhone; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | @Data |
| | | @ApiModel("商业街订单表") |
| | | public class McsOrderVO { |
| | | private Long id; |
| | | |
| | | /** |
| | | * 订单编号 |
| | | */ |
| | | @ApiModelProperty(value = "订单编号") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 支付配置id |
| | | */ |
| | | @ApiModelProperty(value = "支付配置id") |
| | | private Long configId; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value = "数量") |
| | | private Integer num; |
| | | |
| | | /** |
| | | * 支付状态 0 待支付 1已支付 2 已取消 3 已退款 |
| | | */ |
| | | @ApiModelProperty(value = "支付状态 0 待支付 1已支付 2 已取消 3 已退款") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "支付金额") |
| | | private BigDecimal money; |
| | | |
| | | /** |
| | | * 支付时间 |
| | | */ |
| | | @ApiModelProperty(value = "支付时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date payTime; |
| | | |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long merchantId; |
| | | |
| | | /** |
| | | * 支付流水号 |
| | | */ |
| | | @ApiModelProperty(value = "支付流水号") |
| | | private String payNo; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 商家名称 |
| | | */ |
| | | @ApiModelProperty("商家名称") |
| | | private String merchantName; |
| | | /** |
| | | * 付费名称 |
| | | */ |
| | | @ApiModelProperty("付费名称") |
| | | private String payName; |
| | | /** |
| | | * 商家账号 |
| | | */ |
| | | @ApiModelProperty("商家账号") |
| | | private String merchantAccount; |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createTime; |
| | | @ApiModelProperty("交易类型 MWEB-->h5支付 NATIVE-->pc端支付 JSAPI-->小程序支付") |
| | | private String tradeType; |
| | | |
| | | @ApiModelProperty("openid") |
| | | private String openId; |
| | | |
| | | @ApiModelProperty("订单取消剩余倒计时") |
| | | private Long cancelCountdown; |
| | | |
| | | @ApiModelProperty("支付方式") |
| | | private String paymentMethod; |
| | | |
| | | @ApiModelProperty("商家地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty("经度") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty(value = "用户真实ip", hidden = true) |
| | | private String clientIp; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: McsProductVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: |
| | | * @author: hans |
| | | * @date: 2022/01/05 11:29 |
| | | */ |
| | | @Data |
| | | @ApiModel("产品信息") |
| | | public class McsProductVO { |
| | | |
| | | @ApiModelProperty("产品id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("产品名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("产品图片") |
| | | private String image; |
| | | |
| | | @ApiModelProperty("产品介绍") |
| | | private String introduction; |
| | | |
| | | @ApiModelProperty("浏览量") |
| | | private Integer viewNum; |
| | | |
| | | @ApiModelProperty("状态(1.上架中 2.已下架)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("产品标签") |
| | | private String productLabel; |
| | | |
| | | @ApiModelProperty("所属商家") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty("所属商家名称") |
| | | private Long merchantName; |
| | | |
| | | @ApiModelProperty("产品标签ids") |
| | | private List<Long> labelIds; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: McsVerifyRecordVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 戳戳卷核验记录信息 |
| | | * @author: hans |
| | | * @date: 2022/01/08 14:56 |
| | | */ |
| | | @Data |
| | | @ApiModel("戳戳卷核验记录信息") |
| | | public class McsVerifyRecordVO { |
| | | |
| | | @ApiModelProperty("核验记录id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("核验码") |
| | | private Long couponId; |
| | | |
| | | @ApiModelProperty("游戏名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("获得奖励") |
| | | private String award; |
| | | |
| | | @ApiModelProperty("核验时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date verifiedAt; |
| | | |
| | | @ApiModelProperty("用户昵称") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") |
| | | private Integer type; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: MyCouponVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 我的戳戳卷信息 |
| | | * @author: hans |
| | | * @date: 2022/01/08 12:26 |
| | | */ |
| | | @Data |
| | | @ApiModel("我的戳戳卷信息") |
| | | public class MyCouponVO { |
| | | |
| | | @ApiModelProperty("已获得的戳戳币") |
| | | private Integer obtainedTotal; |
| | | |
| | | @ApiModelProperty("免费体验次") |
| | | private Integer trialTotal; |
| | | |
| | | @ApiModelProperty("参与游戏数") |
| | | private Integer joinGameTotal; |
| | | |
| | | @ApiModelProperty("待核销券码") |
| | | private Integer unVerifiedTotal; |
| | | |
| | | @ApiModelProperty("戳戳卷列表") |
| | | private List<McsCouponVO> couponList; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: TopStatisticsVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 统计信息 |
| | | * @author: hans |
| | | * @date: 2022/01/04 17:58 |
| | | */ |
| | | @Data |
| | | @ApiModel("统计信息") |
| | | public class TopStatisticsVO { |
| | | |
| | | @ApiModelProperty("到期时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date expireAt; |
| | | |
| | | @ApiModelProperty("剩余点亮天数") |
| | | private Integer surplusLitDays; |
| | | |
| | | @ApiModelProperty("领取人数") |
| | | private Integer appliedTotal; |
| | | |
| | | @ApiModelProperty("核销人数") |
| | | private Integer verifiedTotal; |
| | | |
| | | @ApiModelProperty("空闲戳戳点") |
| | | private Integer idleTotal; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.microCommercialStreet; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: VerifiedReturnVO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 戳戳卷核验返回参数 |
| | | * @author: hans |
| | | * @date: 2022/01/08 14:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("戳戳卷核验返回参数") |
| | | public class VerifiedReturnVO { |
| | | |
| | | @ApiModelProperty("用户") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty("奖励") |
| | | private String award; |
| | | |
| | | @ApiModelProperty("券码") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long couponId; |
| | | |
| | | @ApiModelProperty("核销时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date verifiedAt; |
| | | |
| | | @ApiModelProperty("游戏名称") |
| | | private String gameName; |
| | | |
| | | @ApiModelProperty("游戏封面") |
| | | private String cover; |
| | | |
| | | @ApiModelProperty("奖励类型(1.免费领 2.产品试用 3.消费赠礼 4.优惠券)") |
| | | private Integer awardType; |
| | | } |
| | |
| | | int input = 8; |
| | | int name = 9; |
| | | int imgselect = 10; |
| | | int address=14; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.reserve; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ReservePdfExportVO { |
| | | private String name; |
| | | private String time; |
| | | private String phone; |
| | | private String sign; |
| | | private String communityPhone; |
| | | private String address; |
| | | } |
| | |
| | | package com.panzhihua.common.model.vos.community.screen.event; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | |
| | |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("事件创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date createAt; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("发生区域") |
| | | private String gridName; |
| | | |
| | | @ApiModelProperty("处理意见") |
| | | private String processDesc; |
| | | |
| | | @ApiModelProperty(value = "音频") |
| | | private List<EventResourceVO> audios; |
| | | |
| | |
| | | @ApiModelProperty("发生区域") |
| | | private String gridName; |
| | | |
| | | @ApiModelProperty("处理意见") |
| | | private String processDesc; |
| | | |
| | | @ApiModelProperty(value = "音频") |
| | | private List<EventResourceVO> audios; |
| | | |
| | |
| | | @ApiModel("大屏首页实有人口年龄段数据统计返回参数") |
| | | public class IndexPopulationAgeStatisticsVO { |
| | | |
| | | @ApiModelProperty("年龄段(1、0-16 2、16-27 3、27-35 4、35-45 5、45-55 6、55以上)") |
| | | @ApiModelProperty("年龄段(1、0-18 2、19-30 3、31-40 4、41-50 5、51-59 7、60-79 8.80-89 6.89以上)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("数量") |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.volunteer; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @description: 批量导入志愿者请求参数 |
| | | * @author : lyq |
| | | */ |
| | | @Data |
| | | public class ComMngVolunteerErrorExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "志愿者名称", index = 0) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "志愿者手机号", index = 1) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "志愿者身份证", index = 2) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "志愿者组织", index = 3) |
| | | private String orgName; |
| | | |
| | | @ExcelProperty(value = "志愿者队伍", index = 4) |
| | | private String teamName; |
| | | |
| | | @ExcelProperty(value = "技能", index = 5) |
| | | private String skillName; |
| | | |
| | | @ExcelProperty(value = "是否是大学生", index = 6) |
| | | private Integer isUniversity; |
| | | |
| | | @ExcelProperty(value = "错误信息", index = 7) |
| | | private String error; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.volunteer; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @description: 批量导入志愿者请求参数 |
| | | * @author : lyq |
| | | */ |
| | | @Data |
| | | public class ComMngVolunteerExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "志愿者名称", index = 0) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "志愿者手机号", index = 1) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "志愿者身份证", index = 2) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "志愿者组织", index = 3) |
| | | private String orgName; |
| | | |
| | | @ExcelProperty(value = "志愿者队伍", index = 4) |
| | | private String teamName; |
| | | |
| | | @ExcelProperty(value = "技能", index = 5) |
| | | private String skillName; |
| | | |
| | | @ExcelProperty(value = "是否是大学生", index = 6) |
| | | private Integer isUniversity; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "网格绑定社区id") |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "撤销人") |
| | | private String revoke; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("话题名称") |
| | | private String topicName; |
| | | |
| | | @ApiModelProperty("头像") |
| | | private String imageUrl; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 查询党建数据统计党组织返回参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("查询党建数据统计党组织返回参数") |
| | | public class ComDataStatisticsHeaderOrgVo { |
| | | |
| | | @ApiModelProperty(value = "党组织数量") |
| | | private Integer orgNum = 0; |
| | | |
| | | @ApiModelProperty(value = "党组织绑定小区数量") |
| | | private Integer areaNum = 0; |
| | | |
| | | @ApiModelProperty(value = "社区下小区数量") |
| | | private Integer villageNum = 0; |
| | | |
| | | @ApiModelProperty(value = "小区覆盖率") |
| | | private BigDecimal villageRate = BigDecimal.ZERO; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 分页查询党建数据统计返回参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询党建数据统计返回参数") |
| | | public class ComDataStatisticsMemberVo { |
| | | |
| | | @ApiModelProperty(value = "党员id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "党员姓名") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "党员头像url") |
| | | private String photoPath; |
| | | |
| | | @ApiModelProperty(value = "是否是党委(1.是 2.否)") |
| | | private Integer isRole; |
| | | |
| | | @ApiModelProperty(value = "党员类型(1.预备党员 2.正式党员)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "性别(1.是 2.否)") |
| | | private Integer sex; |
| | | |
| | | @ApiModelProperty(value = "年龄") |
| | | private Integer age; |
| | | |
| | | @ApiModelProperty(value = "党龄") |
| | | private Integer partyAge; |
| | | |
| | | @ApiModelProperty(value = "职能") |
| | | private String function; |
| | | |
| | | @ApiModelProperty(value = "特长类别(1.体育类 2.舞蹈类 3.音乐类 4.美术类 5.其他)") |
| | | private Integer specialtyCategory; |
| | | |
| | | @ApiModelProperty(value = "特长描述") |
| | | private String specialtyName; |
| | | |
| | | @ApiModelProperty(value = "职位") |
| | | private String position; |
| | | |
| | | @ApiModelProperty(value = "职位2") |
| | | private String positionTwo; |
| | | |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "报道单位id") |
| | | private Long checkUnitId; |
| | | |
| | | @ApiModelProperty(value = "报道单位名称") |
| | | private String checkUnitName; |
| | | |
| | | @ApiModelProperty(value = "所属党组织id") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "所属党组织名称") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "总活动次数") |
| | | private Integer activityCount; |
| | | |
| | | @ApiModelProperty(value = "总活动时长(小时)") |
| | | private Integer activityDuration; |
| | | |
| | | @ApiModelProperty(value = "党员活动次数") |
| | | private Integer partyActivityCount; |
| | | |
| | | @ApiModelProperty(value = "党员活动时长(小时)") |
| | | private Integer partyActivityDuration = 0; |
| | | |
| | | @ApiModelProperty(value = "党员活动积分数量") |
| | | private Integer partyActivityIntegral; |
| | | |
| | | @ApiModelProperty(value = "志愿者活动次数") |
| | | private Integer volunteerActivityCount; |
| | | |
| | | @ApiModelProperty(value = "志愿者活动时长(小时)") |
| | | private Integer volunteerActivityDuration; |
| | | |
| | | @ApiModelProperty(value = "志愿者活动积分数量") |
| | | private Integer volunteerActivityIntegral; |
| | | |
| | | @ApiModelProperty(value = "完成微心愿数量") |
| | | private Integer wishCount; |
| | | |
| | | @ApiModelProperty(value = "完成随手拍数量") |
| | | private Integer easyCount; |
| | | |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 查询党建数据统计党组织返回参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("查询党建数据统计党组织返回参数") |
| | | public class ComDataStatisticsOrgVo { |
| | | |
| | | @ApiModelProperty(value = "党员人数") |
| | | private Integer partyMemberNum; |
| | | |
| | | @ApiModelProperty(value = "正式党员人数") |
| | | private Integer formalPartyMemberNum; |
| | | |
| | | @ApiModelProperty(value = "预备党员人数") |
| | | private Integer preparePartyMemberNum; |
| | | |
| | | @ApiModelProperty(value = "体育类党员人数") |
| | | private Integer tyNum; |
| | | |
| | | @ApiModelProperty(value = "美术类党员人数") |
| | | private Integer msNum; |
| | | |
| | | @ApiModelProperty(value = "音乐类党员人数") |
| | | private Integer yyNum; |
| | | |
| | | @ApiModelProperty(value = "舞蹈类党员人数") |
| | | private Integer wdNum; |
| | | |
| | | @ApiModelProperty(value = "其他类党员人数") |
| | | private Integer qtNum; |
| | | |
| | | @ApiModelProperty(value = "无类型党员人数") |
| | | private Integer wuNum; |
| | | |
| | | @ApiModelProperty(value = "党员列表") |
| | | private List<PartyBuildingMemberVO> partyMemberList; |
| | | |
| | | @ApiModelProperty(value = "参与活动次数") |
| | | private Integer participateActivityNum; |
| | | |
| | | @ApiModelProperty(value = "参与活动时长") |
| | | private Integer participateActivityDuration; |
| | | |
| | | @ApiModelProperty(value = "参与志愿者活动次数") |
| | | private Integer participateVolunteerActivityNum; |
| | | |
| | | @ApiModelProperty(value = "参与志愿者活动时长") |
| | | private Integer participateVolunteerActivityDuration; |
| | | |
| | | @ApiModelProperty(value = "参与党员活动次数") |
| | | private Integer participatePartyActivityNum; |
| | | |
| | | @ApiModelProperty(value = "参与党员活动时长") |
| | | private Integer participatePartyActivityDuration; |
| | | |
| | | @ApiModelProperty(value = "月份统计list") |
| | | private List<String> monthList; |
| | | |
| | | @ApiModelProperty(value = "完成微心愿折线统计数据") |
| | | private List<String> completeWishList; |
| | | |
| | | @ApiModelProperty(value = "累计微心愿折线统计数据") |
| | | private List<String> cumulativeWishList; |
| | | |
| | | @ApiModelProperty(value = "完成随手拍折线统计数据") |
| | | private List<String> completeEasyList; |
| | | |
| | | @ApiModelProperty(value = "累计随手拍折线统计数据") |
| | | private List<String> cumulativeEasyList; |
| | | |
| | | @ApiModelProperty(value = "完成微心愿数量") |
| | | private String wishNum = "0"; |
| | | |
| | | @ApiModelProperty(value = "完成随手拍数量") |
| | | private String easyNum = "0"; |
| | | } |
| | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "党员类型(1.预备党员 2.正式党员)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "报道单位id") |
| | | private Long checkUnitId; |
| | | |
| | | @ApiModelProperty(value = "特长类别(1.体育类 2.舞蹈类 3.音乐类 4.美术类 5.其他)") |
| | | private Long specialtyCategory; |
| | | } |
| | |
| | | private String refuseReason; |
| | | @ApiModelProperty(value = "是否党员 1是 2否") |
| | | private Integer isPb; |
| | | |
| | | @ApiModelProperty(value = "党员类型(1.预备党员 2.正式党员)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "职位") |
| | | private String position; |
| | | |
| | | @ApiModelProperty(value = "报道单位id") |
| | | private Long checkUnitId; |
| | | |
| | | @ApiModelProperty(value = "报道单位名称") |
| | | private String checkUnitName; |
| | | |
| | | @ApiModelProperty(value = "职能") |
| | | private String function; |
| | | |
| | | @ApiModelProperty(value = "特长类别(1.体育类 2.舞蹈类 3.音乐类 4.美术类 5.其他)") |
| | | private Integer specialtyCategory; |
| | | |
| | | @ApiModelProperty(value = "特长描述") |
| | | private String specialtyName; |
| | | |
| | | @ApiModelProperty(value = "职位2") |
| | | private String positionTwo; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "每页记录数") |
| | | private Long pageSize; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "党委标签(1.社区党委 2.区域党委委员)") |
| | | private Integer type; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "入党时间") |
| | | private Date joinTime; |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "转正时间") |
| | | private Date employmentTime; |
| | | |
| | | @ApiModelProperty(value = "职能") |
| | | private String function; |
| | | |
| | | @ApiModelProperty(value = "特长类别(1.体育类 2.舞蹈类 3.音乐类 4.美术类 5.其他)") |
| | | private Integer specialtyCategory; |
| | | |
| | | @ApiModelProperty(value = "特长描述") |
| | | private String specialtyName; |
| | | |
| | | @ApiModelProperty(value = "报道单位id") |
| | | private Long checkUnitId; |
| | | |
| | | @ApiModelProperty(value = "报道单位名称") |
| | | private Long checkUnitName; |
| | | |
| | | @ApiModelProperty(value = "负责党组织id") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "负责党组织名字") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "身份证") |
| | | private String idCard; |
| | | } |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding; |
| | | |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | private Long pageNum = 1L; |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize = 10L; |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "上级id") |
| | | private Long parentId; |
| | | @ApiModelProperty(value = "组织类别(1.基层党委 2.二级基层党委 3.党总支 4.党支部 5.党小组)") |
| | | private Integer type; |
| | | @ApiModelProperty(value = "组织隶属(1.乡镇 2.机关 3.域市街道 3.域市社区(居委会) 4.农村社区居委会 5.建制村 6.国有经济控制 7.集体经济控制 8.非公有经济控制 9.事业单位 10.社会组织 11.其他)") |
| | | private Integer subjection; |
| | | @ApiModelProperty(value = "小区id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long areaId; |
| | | @ApiModelProperty(value = "楼栋id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long buildId; |
| | | @ApiModelProperty(value = "楼栋名称") |
| | | private String buildName; |
| | | @ApiModelProperty(value = "所属小区名字") |
| | | private String areaName; |
| | | @ApiModelProperty(value = "组织地址") |
| | | private String address; |
| | | @ApiModelProperty(value = "经度") |
| | | private String longitude; |
| | | @ApiModelProperty(value = "纬度") |
| | | private String latitude; |
| | | @ApiModelProperty(value = "一级id") |
| | | private Long oneId; |
| | | @ApiModelProperty(value = "二级id") |
| | | private Long twoId; |
| | | @ApiModelProperty(value = "三级id") |
| | | private Long thirdId; |
| | | @ApiModelProperty(value = "四级id") |
| | | private Long fourId; |
| | | @ApiModelProperty(value = "五级id") |
| | | private Long fiveId; |
| | | |
| | | @ApiModelProperty(value = "党组织负责人名称") |
| | | private String userName; |
| | | @ApiModelProperty(value = "党组织负责人联系电话") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "党组织下子组织") |
| | | private List<PartyOrganizationVO> childList; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 分页查询党建数据统计返回参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询党建数据统计返回参数") |
| | | public class ComDataStatisticsMemberExcelVo { |
| | | |
| | | @ExcelProperty(value = "序号", index = 0) |
| | | private Long id; |
| | | |
| | | @ExcelProperty(value = "党员姓名", index = 1) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "党龄", index = 2) |
| | | private Integer partyAge; |
| | | |
| | | @ExcelProperty(value = "联系电话", index = 3) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "身份证号", index = 4) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "职能", index = 5) |
| | | private String function; |
| | | |
| | | @ExcelProperty(value = "特长", index = 6) |
| | | private String specialtyName; |
| | | |
| | | @ExcelProperty(value = "双报道单位", index = 7) |
| | | private String checkUnitName; |
| | | |
| | | @ExcelProperty(value = "总参与活动次数", index = 8) |
| | | private Integer activityCount; |
| | | |
| | | @ExcelProperty(value = "总参与活动时长(小时)", index = 9) |
| | | private Integer activityDuration; |
| | | |
| | | @ExcelProperty(value = "参与党员活动次数", index = 10) |
| | | private Integer partyActivityCount; |
| | | |
| | | @ExcelProperty(value = "参与党员活动时长(小时)", index = 11) |
| | | private Integer partyActivityDuration; |
| | | |
| | | @ExcelProperty(value = "参与党员活动积分", index = 12) |
| | | private Integer partyActivityIntegral; |
| | | |
| | | @ExcelProperty(value = "参与志愿者活动次数", index = 13) |
| | | private Integer volunteerActivityCount; |
| | | |
| | | @ExcelProperty(value = "参与志愿者活动时长(小时)", index = 14) |
| | | private Integer volunteerActivityDuration; |
| | | |
| | | @ExcelProperty(value = "参与志愿者活动积分", index = 15) |
| | | private Integer volunteerActivityIntegral; |
| | | |
| | | @ExcelProperty(value = "完成微心愿数量", index = 16) |
| | | private Integer wishCount; |
| | | |
| | | @ExcelProperty(value = "完成随手拍数量", index = 17) |
| | | private Integer easyCount; |
| | | |
| | | private Long communityId; |
| | | |
| | | private Long userId; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @description: 批量导入党员双报道单位 |
| | | * @author : lyq |
| | | */ |
| | | @Data |
| | | public class ComPbCheckUnitErrorExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "单位名称", index = 0) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "单位类别", index = 1) |
| | | private String type; |
| | | |
| | | @ExcelProperty(value = "单位负责人", index = 2) |
| | | private String contacts; |
| | | |
| | | @ExcelProperty(value = "负责人联系电话", index = 3) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "错误信息", index = 4) |
| | | private String error; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @description: 批量导入党员双报道单位 |
| | | * @author : lyq |
| | | */ |
| | | @Data |
| | | public class ComPbCheckUnitExcelVO implements Serializable { |
| | | |
| | | @ExcelProperty(value = "单位名称", index = 0) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "单位类别", index = 1) |
| | | private String type; |
| | | |
| | | @ExcelProperty(value = "单位负责人", index = 2) |
| | | private String contacts; |
| | | |
| | | @ExcelProperty(value = "负责人联系电话", index = 3) |
| | | private String phone; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 分页查询党建数据统计返回参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询党建数据统计返回参数") |
| | | public class ComPbMemberRoleErrorExcelVo { |
| | | |
| | | |
| | | @ExcelProperty(value = "*党员姓名", index = 0) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "*身份证号", index = 1) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "*手机号", index = 2) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "党委标签(社区党委/区域党委委员)", index = 3) |
| | | private String typeName; |
| | | |
| | | @ExcelProperty(value = "*入党日期(格式:年-月-日)", index = 4) |
| | | private String joinTime; |
| | | |
| | | @ExcelProperty(value = "转正日期(格式:年-月-日)", index = 5) |
| | | private String employmentTime; |
| | | |
| | | @ExcelProperty(value = "职位", index = 6) |
| | | private String position; |
| | | |
| | | @ExcelProperty(value = "岗位职责", index = 7) |
| | | private String jobResponsibilities; |
| | | |
| | | @ExcelProperty(value = "错误信息", index = 8) |
| | | private String error; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 分页查询党建数据统计返回参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询党建数据统计返回参数") |
| | | public class ComPbMemberRoleExcelVo { |
| | | |
| | | |
| | | @ExcelProperty(value = "党员姓名", index = 0) |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "身份证号", index = 1) |
| | | private String idCard; |
| | | |
| | | @ExcelProperty(value = "手机号", index = 2) |
| | | private String phone; |
| | | |
| | | @ExcelProperty(value = "党委标签(社区党委/区域党委委员)", index = 3) |
| | | private String typeName; |
| | | |
| | | @ExcelProperty(value = "入党日期", index = 4) |
| | | private String joinTime; |
| | | |
| | | @ExcelProperty(value = "转正日期", index = 5) |
| | | private String employmentTime; |
| | | |
| | | @ExcelProperty(value = "职位", index = 6) |
| | | private String position; |
| | | |
| | | @ExcelProperty(value = "岗位职责", index = 7) |
| | | private String jobResponsibilities; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "身份证") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty("头像") |
| | | private String imageUrl; |
| | | |
| | | private String areaCode; |
| | | |
| | | @ApiModelProperty(value = "街道id") |
| | | private Long streetId; |
| | | |
| | |
| | | private String roleName; |
| | | @ApiModelProperty(value = "所在社区", hidden = true) |
| | | private Long communityId; |
| | | private String areaCode; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("社区id") |
| | | private Long communityId; |
| | | |
| | | private String areaCode; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.user; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | |
| | | /** |
| | | * (SysAppConfig)表实体类 |
| | | * |
| | | * @author makejava |
| | | * @since 2022-01-13 10:10:15 |
| | | */ |
| | | @Data |
| | | @Builder |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @ApiModel("") |
| | | public class SysAppConfigVO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -90981038076389842L; |
| | | |
| | | private Long id; |
| | | |
| | | /** |
| | | * appid |
| | | */ |
| | | @ApiModelProperty(value = "appid") |
| | | private String appId; |
| | | |
| | | /** |
| | | * secret |
| | | */ |
| | | @ApiModelProperty(value = "secret") |
| | | private String secret; |
| | | |
| | | /** |
| | | * 小程序名字 |
| | | */ |
| | | @ApiModelProperty(value = "小程序名字") |
| | | private String name; |
| | | |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("每页记录数") |
| | | private Long pageSize; |
| | | |
| | | private String areaCode; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.user; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | |
| | | /** |
| | | * (SysTemplateConfig)表实体类 |
| | | * |
| | | * @author makejava |
| | | * @since 2022-01-13 14:29:55 |
| | | */ |
| | | @Data |
| | | @Builder |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @ApiModel("") |
| | | public class SysTemplateConfigVO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -29178409799302189L; |
| | | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模板id |
| | | */ |
| | | @ApiModelProperty(value = "模板id") |
| | | private String templateId; |
| | | |
| | | /** |
| | | * 模板类型 1活动变更 2留言回复 3活动取消 4审核状态 5认证审核 6调研问卷 7奖励发放 8报名成功 9活动即将开始 10预约提醒 |
| | | */ |
| | | @ApiModelProperty(value = "模板类型 1活动变更 2留言回复 3活动取消 4审核状态 5认证审核 6调研问卷 7奖励发放 8报名成功 9活动即将开始 10预约提醒 ") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 区域编码 |
| | | */ |
| | | @ApiModelProperty(value = "区域编码") |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/loginXQDP") |
| | | R loginXQDP(@RequestParam("account") String account, @RequestParam("password") String password); |
| | | |
| | | /** |
| | | * 微商业街用户登录 |
| | | * |
| | | * @param account |
| | | * 账户 |
| | | * @param password |
| | | * 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | @PostMapping("/loginMcsUser") |
| | | R loginMcsUser(@RequestParam("account") String account, @RequestParam("password") String password); |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.service.community; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿评价表业务层接口 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿评价表业务层接口 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_COMMUNITY, contextId = "comActEasyPhotoEvaluate", path = "comActEasyPhotoEvaluate") |
| | | public interface ComActEasyPhotoEvaluateFeign { |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 分页查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @PostMapping("/page") |
| | | R queryByPage(@RequestBody PageComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate); |
| | | |
| | | /** |
| | | * description insert 新增数据 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @PostMapping("/add") |
| | | R insert(@RequestBody AddComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate); |
| | | |
| | | /** |
| | | * description update 修改数据 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 修改结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @PutMapping("/edit") |
| | | R update(@RequestBody EditComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate); |
| | | |
| | | /** |
| | | * description deleteById 通过主键删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @GetMapping("/delete") |
| | | R deleteById(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @GetMapping("/detail") |
| | | R detailById(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 随手拍评价 |
| | | * @param whistleDto 请求参数 |
| | | * @return 评价结果 |
| | | */ |
| | | @PostMapping("/easy/evaluate") |
| | | R evaluateEasyApplets(@RequestBody EvaluateEasyDto whistleDto); |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.service.community; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿处理人绑定表业务层接口 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿处理人绑定表业务层接口 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_COMMUNITY, contextId = "comActEasyPhotoHandler", path = "comActEasyPhotoHandler") |
| | | public interface ComActEasyPhotoHandlerFeign { |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 分页查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @PostMapping("/page") |
| | | R queryByPage(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | |
| | | /** |
| | | * description insert 新增数据 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @PostMapping("/add") |
| | | R insert(@RequestBody AddComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | |
| | | /** |
| | | * description update 修改数据 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 修改结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @PutMapping("/edit") |
| | | R update(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | |
| | | /** |
| | | * description deleteById 通过主键删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @GetMapping("/delete") |
| | | R deleteById(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @GetMapping("/detail") |
| | | R detailById(@RequestParam("id") Long id); |
| | | |
| | | } |
| | |
| | | package com.panzhihua.common.service.community; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import com.panzhihua.common.model.dtos.AppletesBackstageConfigDTO; |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | | import com.panzhihua.common.model.dtos.PageDTO; |
| | | import com.panzhihua.common.model.dtos.advertisement.ComOpsAdvDTO; |
| | | import com.panzhihua.common.model.dtos.advertisement.PageComOpsAdvDTO; |
| | | import com.panzhihua.common.model.dtos.civil.ComActSocialWorkerAddDTO; |
| | | import com.panzhihua.common.model.dtos.civil.ComActSocialWorkerDeleteDTO; |
| | | import com.panzhihua.common.model.dtos.civil.ComActSocialWorkerEditDTO; |
| | | import com.panzhihua.common.model.dtos.civil.ComActSocialWorkerExcelVO; |
| | | import com.panzhihua.common.model.dtos.civil.PageComActSocialWorkerDTO; |
| | | import com.panzhihua.common.model.dtos.common.AddComMngVolunteerOrgTeamDto; |
| | | import com.panzhihua.common.model.dtos.common.AddComMngVolunteerServiceTypeDto; |
| | | import com.panzhihua.common.model.dtos.common.AddComMngVolunteerSkillDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComMngVolunteerOrgTeamDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComMngVolunteerServiceTypeDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComMngVolunteerSkillDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComMngVolunteerOrgTeamDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComMngVolunteerServiceTypeDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComMngVolunteerSkillDto; |
| | | import com.panzhihua.common.model.dtos.community.AddComActDynTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.AddIdentityAuthDTO; |
| | | import com.panzhihua.common.model.dtos.community.CancelRecordDTO; |
| | |
| | | import com.panzhihua.common.model.dtos.community.elder.PageElderAuthStatisticDTO; |
| | | import com.panzhihua.common.model.dtos.community.elder.PagePensionAuthStatisticDTO; |
| | | import com.panzhihua.common.model.dtos.community.elder.SignElderAuthStatisticDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApplyFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApprovalFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.DeleteTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EvaluationFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.FeedbackFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsEventAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsServiceAppletsDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.EditComActIntegralRuleDTO; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.PageComActIntegralRuleDTO; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.PageComActIntegralTradeDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.DeleteProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.DisableOrEnableMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.LoginWithPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsEvaluateDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageJoinGameListDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsEvaluateDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsInformationDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageVerifyRecordDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PutUserInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetPopularForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.questnaire.StatisticsSummaryDTO; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.*; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.NearbyDTO; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.PageRentingHouseRegisterDTO; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.PageRentingHousesConfigDTO; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.ReleaseOrCancelHouseDTO; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.RentingHouseRegisterDTO; |
| | | import com.panzhihua.common.model.dtos.community.rentingHouses.RentingHousesConfigDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.AddReserveAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.CancelReserveRecordDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.ComActReserveMakeStatisticsDTO; |
| | |
| | | import com.panzhihua.common.model.dtos.vaccines.VaccinesEnrollByAppDTO; |
| | | import com.panzhihua.common.model.dtos.vaccines.VaccinesEnrollUserByAppDTO; |
| | | import com.panzhihua.common.model.dtos.vaccines.VaccinesInoculationByAdminDTO; |
| | | import com.panzhihua.common.model.vos.BcDictionaryItemVO; |
| | | import com.panzhihua.common.model.vos.BcDictionaryVO; |
| | | import com.panzhihua.common.model.vos.ComActSocialMemberVO; |
| | | import com.panzhihua.common.model.vos.DictionaryVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.SystemmanagementConfigVO; |
| | | import com.panzhihua.common.model.vos.civil.ComActSocialWorkerDetailsVO; |
| | | import com.panzhihua.common.model.vos.community.ActivitySignVO; |
| | | import com.panzhihua.common.model.vos.community.BatchhouseVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActEvaluateVO; |
| | |
| | | import com.panzhihua.common.model.vos.community.bigscreen.PartyBuildingMemberVO; |
| | | import com.panzhihua.common.model.vos.community.cluster.admin.ComClusterMemberExcelVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsConfigVO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsOrderVO; |
| | | import com.panzhihua.common.model.vos.community.questnaire.EditComActQuestnaireVo; |
| | | import com.panzhihua.common.model.vos.community.questnaire.QuestnaireVO; |
| | | import com.panzhihua.common.model.vos.community.questnaire.UsersAnswerQuestnaireVO; |
| | | import com.panzhihua.common.model.vos.community.raffle.ComActRaffleRecordVO; |
| | | import com.panzhihua.common.model.vos.community.raffle.ComActRaffleVO; |
| | | import com.panzhihua.common.model.vos.community.rentHouse.RentingHourseOrderVO; |
| | | import com.panzhihua.common.model.vos.community.rentHouse.RentingHoursePreOrderVO; |
| | | import com.panzhihua.common.model.vos.community.rentHouse.WxPayNotifyOrderVO; |
| | | import com.panzhihua.common.model.vos.community.rentHouse.WxPayOrderVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveDetailAdminVO; |
| | | import com.panzhihua.common.model.vos.community.social.ComActSocialProjectMemberVO; |
| | | import com.panzhihua.common.model.vos.community.social.ComActSocialProjectPublicityVO; |
| | | import com.panzhihua.common.model.vos.community.social.ComActSocialProjectScheduleVO; |
| | | import com.panzhihua.common.model.vos.community.social.ComActSocialWorkerServiceVO; |
| | | import com.panzhihua.common.model.vos.community.social.SocialProjectVO; |
| | | import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO; |
| | | import com.panzhihua.common.model.vos.community.warehouse.ComActWarehouseApplyVO; |
| | | import com.panzhihua.common.model.vos.community.warehouse.ComActWarehouseBaseVO; |
| | | import com.panzhihua.common.model.vos.community.warehouse.QRCodeVO; |
| | |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @param status |
| | | * @return 活动列表 |
| | | */ |
| | | @PostMapping("listactivity") |
| | |
| | | * @return 社区集合 按照创建顺序倒序排列 |
| | | */ |
| | | @PostMapping("listcommunityall") |
| | | R listCommunityAll(); |
| | | R listCommunityAll(@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 首页广告banner |
| | |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/addstreet") |
| | | R<ComStreetVO> addStreet(@RequestBody ComStreetVO comStreetVOO); |
| | | R addStreet(@RequestBody ComStreetVO comStreetVOO); |
| | | |
| | | /** |
| | | * 删除街道 |
| | |
| | | */ |
| | | @PostMapping("/common/data/population/page") |
| | | R pagePopulation(ComMngPopulationDTO comMngPopulationVO); |
| | | |
| | | /** |
| | | * 导出老人 |
| | | * |
| | | * @param comMngPopulationVO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | | */ |
| | | @PostMapping("/common/data/population/exportOld") |
| | | R exportOld(ComMngPopulationDTO comMngPopulationVO); |
| | | |
| | | |
| | | /** |
| | | * 根据身份证查询实有人口信息 |
| | |
| | | * @date 2021/8/31 15:03 |
| | | */ |
| | | @GetMapping("/workGuide/classify/getList") |
| | | R getWorkGuideClassifyList(); |
| | | R getWorkGuideClassifyList(@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 分页查询邻里圈 |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | R getWestCommunityLists(); |
| | | R getWestCommunityLists(@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 综治app-小区列表 |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/switch/community/all/list") |
| | | R communitySwitchList(); |
| | | R communitySwitchList(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 根据名字查询所有社区列表 |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/switch/community/search/list") |
| | | R communitySwitchSearchList(@RequestParam(value = "name") String name); |
| | | R communitySwitchSearchList(@RequestParam(value = "name") String name,@RequestParam(value = "areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 根据经纬度以及距离搜索附近社区列表 |
| | |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | @GetMapping("/classify/admin/list") |
| | | R listPhotoClassify(); |
| | | R listPhotoClassify(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 社区后台-切换随手拍公示状态 |
| | |
| | | * @return 预约登记详情 |
| | | */ |
| | | @GetMapping("/reserve/admin/detail") |
| | | R detailReserveAdmin(@RequestParam("reserveId") Long reserveId); |
| | | R<ComActReserveDetailAdminVO> detailReserveAdmin(@RequestParam("reserveId") Long reserveId); |
| | | |
| | | /** |
| | | * 社区后台-根据社区id统计预约类数据 |
| | |
| | | R exportRegisterAdmin(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO); |
| | | |
| | | /** |
| | | * 查询预约登记题目下属选择项列表 |
| | | * |
| | | * @param reserveSubId |
| | | * 预约登记id |
| | | * @return 查询预约登记题目下属选择项列表 |
| | | */ |
| | | @GetMapping("/reserve/admin/subject/selection/list") |
| | | List<String> subjectSelectionListAdmin(@RequestParam("reserveSubId") Long reserveSubId); |
| | | /** |
| | | * 查询预约登记题目列表 |
| | | * @param reserveId 预约登记id |
| | | * @return 约登记题目列表 |
| | |
| | | */ |
| | | @PostMapping("/reserve/admin/register/detailed/list") |
| | | R registerDetailedListAdmin(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO); |
| | | |
| | | /** |
| | | * 导出登记明细列表 |
| | | * @param detailedAdminDTO 请求参数 |
| | | * @return 登记明细列表 |
| | | */ |
| | | @PostMapping("/reserve/admin/register/detailed/list/export") |
| | | R registerDetailedListAdminExport(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO); |
| | | |
| | | /** |
| | | * 查询登记详情记录 |
| | |
| | | * @return 菜单列表 |
| | | */ |
| | | @PostMapping("/common/data/population/second/listBack") |
| | | public R getSecondHouse(@RequestBody CascadeHouseDTO cascadeHouseDTO); |
| | | R getSecondHouse(@RequestBody CascadeHouseDTO cascadeHouseDTO); |
| | | |
| | | /** |
| | | * 微心愿处理人列表 |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/service-category/all") |
| | | R getAllServiceCategories(); |
| | | R getAllServiceCategories(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 获取用户便民服务商家详情 |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/service-category/suitable") |
| | | R getSuitableServiceCategories(@RequestParam("communityId") Long communityId); |
| | | R getSuitableServiceCategories(@RequestParam("communityId") Long communityId,@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 获取该社区下的热门商家 |
| | |
| | | |
| | | /** |
| | | * 党员积分前3 |
| | | * @param communityId |
| | | * @param pageBigScreenStatisticPartyOrg |
| | | * @return |
| | | */ |
| | | @GetMapping("/bigscreen/party/partyActivityTop") |
| | | R partyActivityTop(@RequestParam("communityId")Long communityId); |
| | | @PostMapping("/bigscreen/party/partyActivityTop") |
| | | R partyActivityTop(@RequestBody PageBigScreenStatisticPartyOrg pageBigScreenStatisticPartyOrg); |
| | | |
| | | /** |
| | | * 社区服务大屏数据分析接口 |
| | |
| | | */ |
| | | @PostMapping("/screen/index/questionnaireList") |
| | | R indexQuestionnaireList(@RequestBody PageBaseDTO pageBaseDTO); |
| | | |
| | | /** |
| | | * 首页二级页面-居民活动 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/screen/index/residentAct") |
| | | R indexResidentAct(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 首页二级页面-居民活动展示列表 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/screen/index/residentActList") |
| | | R indexResidentActList(@RequestBody PageBaseDTO pageBaseDTO); |
| | | |
| | | /** |
| | | * 首页二级页面-志愿者活动 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/screen/index/volunteerAct") |
| | | R indexVolunteerAct(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 首页二级页面-志愿者活动展示列表 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/screen/index/volunteerActList") |
| | | R indexVolunteerActList(@RequestBody PageBaseDTO pageBaseDTO); |
| | | |
| | | /** |
| | | * 清网治格-根据事件分类获取近1月的社区事件数据 |
| | | * @param type |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/screen/event/list") |
| | | R getEventList(@RequestParam(value = "type") Integer type, @RequestParam(value = "communityId") Long communityId); |
| | | |
| | | /** |
| | | * 清网治格-社区事件数据分页 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/screen/event/page") |
| | | R pageEventList(@RequestBody PageBaseDTO pageBaseDTO); |
| | | |
| | | /** |
| | | * 新增数字商业街商家 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/merchant/add") |
| | | R addMcsMerchant(@RequestBody McsMerchantDTO mcsMerchantDTO); |
| | | |
| | | /** |
| | | * 编辑数字商业街商家 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/merchant/put") |
| | | R putMcsMerchant(@RequestBody McsMerchantDTO mcsMerchantDTO); |
| | | |
| | | /** |
| | | * 查询数字商业街商家详情 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/merchant/get") |
| | | R getMcsMerchant(@RequestParam("merchantId") Long merchantId); |
| | | |
| | | /** |
| | | * 删除数字商业街商家 |
| | | * @param merchantId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/merchant/delete") |
| | | R deleteMcsMerchant(@RequestParam("merchantId") Long merchantId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 分页查询数字商业街商家 |
| | | * @param pageMcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/merchant/page") |
| | | R pageMcsMerchant(@RequestBody PageMcsMerchantDTO pageMcsMerchantDTO); |
| | | |
| | | /** |
| | | * 禁用/启用数字商业街商家 |
| | | * @param disableOrEnableMcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/merchant/disable-or-enable") |
| | | R disableOrEnableMcsMerchant(@RequestBody DisableOrEnableMcsMerchantDTO disableOrEnableMcsMerchantDTO); |
| | | |
| | | /** |
| | | * 获取所有数字商业街配置 |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/config/all") |
| | | R getAllMcsConfig(); |
| | | |
| | | /** |
| | | * 修改数字商业街配置 |
| | | * @param configs |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/config/put") |
| | | R putMcsConfig(@RequestBody List<McsConfigVO> configs); |
| | | |
| | | /** |
| | | * 分页查询戳戳游戏 |
| | | * @param pageMcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/game/page") |
| | | R pageMcsGame(@RequestBody PageMcsGameDTO pageMcsGameDTO); |
| | | |
| | | /** |
| | | * 设为/取消游戏热门 |
| | | * @param setPopularForGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/game/setPopular") |
| | | R setPopularForGame(@RequestBody SetPopularForGameDTO setPopularForGameDTO); |
| | | |
| | | /** |
| | | * 上架/下架戳戳游戏 |
| | | * @param setShelfForGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/game/setShelf") |
| | | R setShelfForGame(@RequestBody SetShelfForGameDTO setShelfForGameDTO); |
| | | |
| | | /** |
| | | * 删除戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/game/delete") |
| | | R deleteMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 分页查询戳戳资讯 |
| | | * @param pageMcsInformationDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/information/page") |
| | | R pageMcsInfo(@RequestBody PageMcsInformationDTO pageMcsInformationDTO); |
| | | |
| | | /** |
| | | * 上架/下架戳戳资讯 |
| | | * @param setShelfForInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/information/setShelf") |
| | | R setShelfForMcsInfo(@RequestBody SetShelfForInfoDTO setShelfForInfoDTO); |
| | | |
| | | /** |
| | | * 删除戳戳资讯 |
| | | * @param infoId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/information/delete") |
| | | R deleteMcsInfo(@RequestParam("infoId") Long infoId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 分页查询评价记录 |
| | | * @param pageMcsEvaluateDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/evaluate/page") |
| | | R pageMcsEvaluate(@RequestBody PageMcsEvaluateDTO pageMcsEvaluateDTO); |
| | | |
| | | /** |
| | | * 查询评价记录详情 |
| | | * @param evaluateId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/evaluate/get") |
| | | R getMcsEvaluate(@RequestParam("evaluateId") Long evaluateId); |
| | | |
| | | /** |
| | | * 删除评价记录 |
| | | * @param evaluateId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/evaluate/delete") |
| | | R deleteMcsEvaluate(@RequestParam("evaluateId") Long evaluateId); |
| | | |
| | | /** |
| | | * 新增戳戳游戏 |
| | | * @param mcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/game/add") |
| | | R addMcsGame(@RequestBody McsGameDTO mcsGameDTO); |
| | | |
| | | /** |
| | | * 编辑戳戳游戏 |
| | | * @param mcsGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/game/put") |
| | | R putMcsGame(@RequestBody McsGameDTO mcsGameDTO); |
| | | |
| | | /** |
| | | * 发布戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/game/publish") |
| | | R publishMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 结束戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/game/finish") |
| | | R finishMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 戳戳游戏/资讯顶部统计数据 |
| | | * @param type |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/statistics/top") |
| | | R getTopStatistics(@RequestParam("type") Integer type, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 新增戳戳资讯 |
| | | * @param mcsInfoDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/information/add") |
| | | R addMcsInfo(@RequestBody McsInfoDTO mcsInfoDTO); |
| | | |
| | | /** |
| | | * 编辑戳戳资讯 |
| | | * @param mcsInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/information/put") |
| | | R putMcsInfo(@RequestBody McsInfoDTO mcsInfoDTO); |
| | | |
| | | /** |
| | | * 发布戳戳资讯 |
| | | * @param infoId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/information/publish") |
| | | R publishMcsInfo(@RequestParam("infoId") Long infoId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 新增产品信息 |
| | | * @param mcsProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/product/add") |
| | | R addMcsProduct(@RequestBody McsProductDTO mcsProductDTO); |
| | | |
| | | /** |
| | | * 编辑产品信息 |
| | | * @param mcsProductDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/product/put") |
| | | R putMcsProduct(@RequestBody McsProductDTO mcsProductDTO); |
| | | |
| | | /** |
| | | * 删除产品信息 |
| | | * @param deleteProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/product/delete") |
| | | R deleteMcsProduct(@RequestBody DeleteProductDTO deleteProductDTO); |
| | | |
| | | /** |
| | | * 上架/下架产品信息 |
| | | * @param setShelfForProductDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/product/setShelf") |
| | | R setShelfForMcsProduct(@RequestBody SetShelfForProductDTO setShelfForProductDTO); |
| | | |
| | | /** |
| | | * 分页查询产品信息 |
| | | * @param pageMcsProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/product/page") |
| | | R pageMcsProduct(@RequestBody PageMcsProductDTO pageMcsProductDTO); |
| | | |
| | | /** |
| | | * 获取产品标签列表 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/label/list") |
| | | R getMcsLabelList(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * check商家/店铺是否有效 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/shop/checkStoreIsValid") |
| | | R checkStoreIsValid(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 根据account查询微商业街商家信息 |
| | | * @param account |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/getMcsMerchantByAccount") |
| | | R getMcsMerchantByAccount(@RequestParam("account") String account); |
| | | |
| | | /** |
| | | * 完成订单更新/新增商家信息 |
| | | * @param merchantName |
| | | * @param configId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/updateAfterOrder") |
| | | R updateMcsMerchantAfterOrder(@RequestParam(value = "merchantName", required = false) String merchantName, |
| | | @RequestParam("configId") Long configId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | | * @param commonPage 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping("/mcsOrder/queryAll") |
| | | R selectAllMscOrder(@RequestBody CommonPage commonPage); |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @GetMapping("/mcsOrder/{id}") |
| | | R selectOneMscOrder(@PathVariable("id") Long id); |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param mcsOrderVO 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/mcsOrder") |
| | | R insertMscOrder(@RequestBody McsOrderVO mcsOrderVO); |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * |
| | | * @param mcsOrderVO 实体对象 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("/mcsOrder/update") |
| | | R updateMscOrder(@RequestBody McsOrderVO mcsOrderVO); |
| | | |
| | | /** |
| | | * 微信支付 |
| | | * @param mcsOrderVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/mcsOrder/wxPay") |
| | | R wxPayMscOrder(McsOrderVO mcsOrderVO); |
| | | |
| | | /** |
| | | * 发送提醒短信 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/mcsOrder/sendContent") |
| | | R sendContentMcsOrder(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | *微信支付回调 |
| | | * @param mcsOrderVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/mcsOrder/notify") |
| | | R notifyMcsOrder(@RequestBody McsOrderVO mcsOrderVO); |
| | | |
| | | /** |
| | | * 验证码登录 |
| | | * @param loginDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/loginWithPhone") |
| | | R loginWithPhone(@RequestBody LoginWithPhoneDTO loginDTO); |
| | | |
| | | /** |
| | | * 首页顶部数据 |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/index/topData") |
| | | R getMcsIndexTopData(); |
| | | |
| | | /** |
| | | * 戳戳卷领取 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/coupon/apply") |
| | | R applyMcsCoupon(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * h5分页查询戳戳资讯 |
| | | * @param pageMcsInformationDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/information/pageH5") |
| | | R pageH5McsInfo(@RequestBody PageMcsInformationDTO pageMcsInformationDTO); |
| | | |
| | | /** |
| | | * h5分页查询戳戳游戏 |
| | | * @param pageMcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/game/pageH5") |
| | | R pageH5McsGame(@RequestBody PageMcsGameDTO pageMcsGameDTO); |
| | | |
| | | /** |
| | | * 游戏详情 |
| | | * @param gameId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/game/get") |
| | | R getMcsGame(@RequestParam("gameId") Long gameId); |
| | | |
| | | /** |
| | | * 资讯详情 |
| | | * @param infoId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/info/get") |
| | | R getMcsInfo(@RequestParam("infoId") Long infoId); |
| | | |
| | | /** |
| | | * H5分页查询数字商业街商家 |
| | | * @param pageMcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/merchant/pageH5") |
| | | R pageH5McsMerchant(@RequestBody PageMcsMerchantDTO pageMcsMerchantDTO); |
| | | |
| | | /** |
| | | * 我的戳戳卷 |
| | | * @param type |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/myCoupon") |
| | | R getMyCoupon(@RequestParam(value = "type", required = false) Integer type, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 新增评价记录 |
| | | * @param mcsEvaluateDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/evaluate/add") |
| | | R addMcsEvaluate(@RequestBody McsEvaluateDTO mcsEvaluateDTO); |
| | | |
| | | /** |
| | | * 我的评价-参与游戏列表 |
| | | * @param pageJoinGameListDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/joinGame/page") |
| | | R getJoinGameList(@RequestBody PageJoinGameListDTO pageJoinGameListDTO); |
| | | |
| | | /** |
| | | * 戳戳卷核销 |
| | | * @param couponId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/coupon/verify") |
| | | R verifyMcsCoupon(@RequestParam("couponId") Long couponId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 分页查询核销记录 |
| | | * @param pageVerifyRecordDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/verifyRecord/page") |
| | | R pageMcsVerifyRecord(@RequestBody PageVerifyRecordDTO pageVerifyRecordDTO); |
| | | |
| | | /** |
| | | * 游戏统计 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/game/statistics") |
| | | R getMcsGameStatistics(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 修改用戶信息 |
| | | * @param putUserInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/putUserInfo") |
| | | R putUserInfo(@RequestBody PutUserInfoDTO putUserInfoDTO); |
| | | |
| | | /** |
| | | * 根据userId获取商家信息 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/retrieveMcsMerchantInfoByUserId") |
| | | R retrieveMcsMerchantInfoByUserId(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 定时任务-每隔5分钟执行一次,将已到期的微商业街商家旗下所有的游戏/资讯全部下架 |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/offResourceForMcsMerchant") |
| | | R offResourceForMcsMerchant(); |
| | | |
| | | /** |
| | | * 获取产品信息详情 |
| | | * @param productId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/product/get") |
| | | R getMcsProduct(@RequestParam("productId") Long productId); |
| | | |
| | | /** |
| | | * 定时任务-每隔5分钟执行一次,将已到期的微商业街游戏结束 |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/endStatusForMcsGame") |
| | | R endStatusForMcsGame(); |
| | | |
| | | @GetMapping("/reserve/record/delete") |
| | | R deleteRecord(@RequestParam("recordId")Long recordId); |
| | | |
| | | /** |
| | | * 历史数据人员类型填充 |
| | | * @param newVoList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/common/data/history/filled") |
| | | R filledPopulationPersonType(@RequestBody List<ComMngPopulationServeExcelVO> newVoList, |
| | | @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 社区后台-分页查询志愿者组织队伍 |
| | | * |
| | | * @param orgTeamDto 请求参数 |
| | | * @return 志愿者组织队伍 |
| | | */ |
| | | @PostMapping("/comMngVolunteerOrgTeam/page") |
| | | R pageVolunteerOrgAdmin(@RequestBody PageComMngVolunteerOrgTeamDto orgTeamDto); |
| | | |
| | | /** |
| | | * 社区后台-新增志愿者组织队伍 |
| | | * |
| | | * @param orgTeamDto 请求参数 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/comMngVolunteerOrgTeam/add") |
| | | R addVolunteerOrgAdmin(@RequestBody AddComMngVolunteerOrgTeamDto orgTeamDto); |
| | | |
| | | /** |
| | | * 社区后台-编辑志愿者组织队伍 |
| | | * |
| | | * @param orgTeamDto 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PutMapping("/comMngVolunteerOrgTeam/edit") |
| | | R editVolunteerOrgAdmin(@RequestBody EditComMngVolunteerOrgTeamDto orgTeamDto); |
| | | |
| | | /** |
| | | * 社区后台-删除志愿者组织队伍 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | */ |
| | | @GetMapping("/comMngVolunteerOrgTeam/delete") |
| | | R deleteVolunteerOrgAdmin(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 社区后台-查询志愿者组织列表 |
| | | * |
| | | * @param orgTeamDto 请求参数 |
| | | * @return 志愿者组织列表 |
| | | */ |
| | | @PostMapping("/comMngVolunteerOrgTeam/list") |
| | | R listVolunteerOrgAdmin(@RequestBody PageComMngVolunteerOrgTeamDto orgTeamDto); |
| | | |
| | | /** |
| | | * 社区后台-分页查询服务类型 |
| | | * |
| | | * @param serviceTypeDto 请求参数 |
| | | * @return 服务类型列表 |
| | | */ |
| | | @PostMapping("/comMngVolunteerServiceType/page") |
| | | R pageServiceTypeAdmin(@RequestBody PageComMngVolunteerServiceTypeDto serviceTypeDto); |
| | | |
| | | /** |
| | | * 社区后台-新增服务类型 |
| | | * |
| | | * @param serviceTypeDto 请求参数 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/comMngVolunteerServiceType/add") |
| | | R addServiceTypeAdmin(@RequestBody AddComMngVolunteerServiceTypeDto serviceTypeDto); |
| | | |
| | | /** |
| | | * 社区后台-编辑服务类型 |
| | | * |
| | | * @param serviceTypeDto 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PutMapping("/comMngVolunteerServiceType/edit") |
| | | R editServiceTypeAdmin(@RequestBody EditComMngVolunteerServiceTypeDto serviceTypeDto); |
| | | |
| | | /** |
| | | * 社区后台-删除服务类型 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | */ |
| | | @GetMapping("/comMngVolunteerServiceType/delete") |
| | | R deleteServiceTypeAdmin(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 社区后台-分页查询志愿者技能列表 |
| | | * |
| | | * @param volunteerSkillDto 请求参数 |
| | | * @return 志愿者技能列表 |
| | | */ |
| | | @PostMapping("/comMngVolunteerSkill/page") |
| | | R pageVolunteerSkillAdmin(@RequestBody PageComMngVolunteerSkillDto volunteerSkillDto); |
| | | |
| | | /** |
| | | * 社区后台-新增志愿者技能 |
| | | * |
| | | * @param volunteerSkillDto 请求参数 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/comMngVolunteerSkill/add") |
| | | R addVolunteerSkillAdmin(@RequestBody AddComMngVolunteerSkillDto volunteerSkillDto); |
| | | |
| | | /** |
| | | * 社区后台-编辑志愿者技能 |
| | | * |
| | | * @param volunteerSkillDto 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PutMapping("/comMngVolunteerSkill/edit") |
| | | R editVolunteerSkillAdmin(@RequestBody EditComMngVolunteerSkillDto volunteerSkillDto); |
| | | |
| | | /** |
| | | * 社区后台-删除志愿者技能 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | */ |
| | | @GetMapping("/comMngVolunteerSkill/delete") |
| | | R deleteVolunteerSkillAdmin(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 社区后台-查询志愿者服务类型列表 |
| | | * |
| | | * @param serviceTypeDto 请求参数 |
| | | * @return 志愿者服务列表 |
| | | */ |
| | | @PostMapping("/comMngVolunteerServiceType/list") |
| | | R listServiceTypeAdmin(@RequestBody PageComMngVolunteerServiceTypeDto serviceTypeDto); |
| | | |
| | | /** |
| | | * 社区后台-查询志愿者技能列表 |
| | | * |
| | | * @param volunteerSkillDto 请求参数 |
| | | * @return 志愿者技能列表 |
| | | */ |
| | | @PostMapping("/comMngVolunteerSkill/list") |
| | | R listVolunteerSkillAdmin(@RequestBody PageComMngVolunteerSkillDto volunteerSkillDto); |
| | | |
| | | /** |
| | | * 社区后台-志愿者组织统计 |
| | | * |
| | | * @param communityId 社区id |
| | | * @return 志愿者组织统计 |
| | | */ |
| | | @GetMapping("/comMngVolunteerOrgTeam/statistics") |
| | | R statisticsVolunteerOrgAdmin(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 志愿者导入 |
| | | * |
| | | * @param list 志愿者数据列表 |
| | | * @param communityId 社区id |
| | | * @param userId 用户id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("/volunteer/import/admin") |
| | | R importVolunteerAdmin(@RequestBody List<ComMngVolunteerExcelVO> list, |
| | | @RequestParam(value = "communityId") Long communityId, @RequestParam(value = "userId") Long userId); |
| | | |
| | | @PostMapping("/screen/hmk/baseInfo") |
| | | R hmkBaseInfo(@RequestBody CommonPage commonPage); |
| | |
| | | @PostMapping("/comActRaffleRecord/export") |
| | | R exportComActRaffleRecord(@RequestBody CommonPage commonPage); |
| | | |
| | | /** |
| | | * [方法描述] 根据社区ID查询所属城市所在区区域代码, |
| | | * |
| | | * @param communityId |
| | | * 社区ID |
| | | * @return String 区域code |
| | | * @author manailin |
| | | * @date 2022/2/17 10:09 |
| | | */ |
| | | @GetMapping("act/getActBelongRegionCode") |
| | | String getActBelongRegionCode(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 新增团队类型 |
| | | * @param addTeamTypeDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamType/add") |
| | | R addFmsTeamType(@RequestBody AddTeamTypeDTO addTeamTypeDTO); |
| | | |
| | | /** |
| | | * 修改团队类型 |
| | | * @param editTeamTypeDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamType/edit") |
| | | R editFmsTeamType(@RequestBody EditTeamTypeDTO editTeamTypeDTO); |
| | | |
| | | /** |
| | | * 删除团队类型 |
| | | * @param teamTypeId |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/fms/teamType/delete") |
| | | R deleteFmsTeamType(@RequestParam("teamTypeId") Long teamTypeId, |
| | | @RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 获取团队类型列表 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/teamType/list") |
| | | R listFmsTeamType(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 新增团队 |
| | | * @param addTeamDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/team/add") |
| | | R addFmsTeam(@RequestBody AddTeamDTO addTeamDTO); |
| | | |
| | | /** |
| | | * 修改团队信息 |
| | | * @param editTeamDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/team/edit") |
| | | R editFmsTeam(@RequestBody EditTeamDTO editTeamDTO); |
| | | |
| | | /** |
| | | * 删除团队 |
| | | * @param teamId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/fms/team/delete") |
| | | R deleteFmsTeam(@RequestParam("teamId") Long teamId); |
| | | |
| | | /** |
| | | * 获取团队列表 |
| | | * @param teamTypeId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/team/list") |
| | | R listFmsTeam(@RequestParam("teamTypeId") Long teamTypeId); |
| | | |
| | | /** |
| | | * 获取团队详情 |
| | | * @param teamId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/team/detail") |
| | | R detailFmsTeam(@RequestParam("teamId") Long teamId); |
| | | |
| | | /** |
| | | * 级联查询团队数据 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/team/cascade") |
| | | R retrieveFmsTeamCascade(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 新增团队成员 |
| | | * @param addTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamMember/add") |
| | | R addFmsTeamMember(@RequestBody AddTeamMemberDTO addTeamMemberDTO); |
| | | |
| | | /** |
| | | * 编辑团队成员 |
| | | * @param editTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamMember/edit") |
| | | R editFmsTeamMember(@RequestBody EditTeamMemberDTO editTeamMemberDTO); |
| | | |
| | | /** |
| | | * 删除团队成员 |
| | | * @param deleteTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamMember/delete") |
| | | R deleteFmsTeamMember(@RequestBody DeleteTeamMemberDTO deleteTeamMemberDTO); |
| | | |
| | | /** |
| | | * 分页查询团队成员 |
| | | * @param pageTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamMember/page") |
| | | R pageFmsTeamMember(@RequestBody PageTeamMemberDTO pageTeamMemberDTO); |
| | | |
| | | /** |
| | | * 微团队顶部统计 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/teamMember/statistics") |
| | | R statisticsFmsTeamMember(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 批量导入团队成员 |
| | | * @param voList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamMember/import") |
| | | R listSaveFmsTeamMemberExcelVO(@RequestBody List<ComFmsTeamMemberImportExcelVO> voList, |
| | | @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 团队人员导出 |
| | | * @param pageTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/teamMember/export") |
| | | R exportTeamMember(@RequestBody PageTeamMemberDTO pageTeamMemberDTO); |
| | | |
| | | /** |
| | | * 后台新增微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/adminAdd") |
| | | R addFmsServiceAdmin(@RequestBody AddFmsServiceAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 后台分页查询微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/adminPage") |
| | | R pageFmsServiceAdmin(@RequestBody PageFmsServiceAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 后台核实微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/approval") |
| | | R approvalFmsService(@RequestBody ApprovalFmsServiceAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 级联查询团队服务人员 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/teamMember/cascade") |
| | | R retrieveFmsTeamMemberCascade(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 后台查看微服务详情 |
| | | * @param serviceId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/service/detailAdmin") |
| | | R detailFmsServiceAdmin(@RequestParam("serviceId") Long serviceId); |
| | | |
| | | /** |
| | | * 后台删除微服务 |
| | | * @param serviceId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/fms/service/delete") |
| | | R deleteFmsServiceAdmin(@RequestParam("serviceId") Long serviceId); |
| | | |
| | | /** |
| | | * 微服务顶部统计 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/service/statistics") |
| | | R statisticsFmsService(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 后台导入微服务数据 |
| | | * @param voList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/import") |
| | | R listSaveFmsServiceExcelVO(@RequestBody List<ComFmsServiceImportExcelVO> voList, |
| | | @RequestParam("communityId") Long communityId, |
| | | @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 后台新增微讲堂 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/classroom/add") |
| | | R addFmsClassroom(@RequestBody AddFmsClassroomAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 后台编辑微讲堂 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/classroom/edit") |
| | | R editFmsClassroom(@RequestBody EditFmsClassroomAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 后台删除微讲堂 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/fms/classroom/delete") |
| | | R deleteFmsClassroom(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 后台获取微讲堂详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/classroom/detail") |
| | | R detailFmsClassroom(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 后台分页查询微讲堂 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/classroom/pageAdmin") |
| | | R pageFmsClassroomAdmin(@RequestBody PageFmsClassroomAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 微讲堂顶部统计 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/classroom/statistics") |
| | | R statisticsFmsClassroom(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 后台分页查询微调节/微防控 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/event/page") |
| | | R pageFmsEvent(@RequestBody PageFmsEventAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 微调节/微防控顶部统计 |
| | | * @param type |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/event/statistics") |
| | | R statisticsFmsEvent(@RequestParam("type") Integer type, @RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 微调节/微防控事件详情 |
| | | * @param eventId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/event/detail") |
| | | R detailFmsEvent(@RequestParam("eventId") Long eventId); |
| | | |
| | | /** |
| | | * 小程序分页查询团队信息 |
| | | * @param pageFmsTeamDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/team/pageApplets") |
| | | R pageFmsTeamApplets(@RequestBody PageFmsTeamDTO pageFmsTeamDTO); |
| | | |
| | | /** |
| | | * 获取微讲堂详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/classroom/detailApplets") |
| | | R detailFmsClassroomApplets(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 小程序分页查询微调节/微防控 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/event/pageApplets") |
| | | R pageFmsEventApplets(@RequestBody PageFmsEventAdminDTO adminDTO); |
| | | |
| | | /** |
| | | * 小程序分页查询微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/pageApplets") |
| | | R pageFmsServiceApplets(@RequestBody PageFmsServiceAppletsDTO adminDTO); |
| | | |
| | | /** |
| | | * 小程序查看微服务详情 |
| | | * @param serviceId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/fms/service/detailApplets") |
| | | R detailFmsServiceApplets(@RequestParam("serviceId") Long serviceId, @RequestParam(value = "userId", required = false) Long userId); |
| | | |
| | | /** |
| | | * 微服务申请 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/apply") |
| | | R applyFmsService(@RequestBody ApplyFmsServiceDTO adminDTO); |
| | | |
| | | /** |
| | | * 分页查询我的微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/pageMy") |
| | | R pageMyFmsService(@RequestBody PageFmsServiceAppletsDTO adminDTO); |
| | | |
| | | /** |
| | | * 微服务评价 |
| | | * @param evaluationFmsServiceDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/evaluate") |
| | | R evaluateFmsService(@RequestBody EvaluationFmsServiceDTO evaluationFmsServiceDTO); |
| | | |
| | | /** |
| | | * 微团队成员分页查询服务处理 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/pageDeal") |
| | | R pageDealFmsService(@RequestBody PageFmsServiceAppletsDTO adminDTO); |
| | | |
| | | /** |
| | | * 微团队成员服务反馈 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/feedback") |
| | | R feedbackFmsService(@RequestBody FeedbackFmsServiceDTO adminDTO); |
| | | |
| | | /** |
| | | * 定时任务针对服务结束后3天还未评价的用户默认好评 |
| | | * @return |
| | | */ |
| | | @PostMapping("/fms/service/defaultPraise") |
| | | R timedTaskFmsServiceDefaultPraise(); |
| | | |
| | | @GetMapping("/activity/partyMemberCount") |
| | | R partyMemberCount(@RequestParam("communityId")Long communityId,@RequestParam("year")String year); |
| | | |
| | | /** |
| | | * 根据小区id查询楼栋列表 |
| | | * @param villageId 小区id |
| | | * @return 查询楼栋列表 |
| | | */ |
| | | @GetMapping("/building/getBuildListByVillageId") |
| | | R getBuildListByVillageId(@RequestParam(value = "villageId") Long villageId); |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.service.partybuilding; |
| | | |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.model.dtos.common.AddComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * title: 党建-数据统计业务层接口 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 党建-数据统计业务层接口 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_PARTYBUILDING, contextId = "comDataStatistics", path = "comDataStatistics") |
| | | public interface ComDataStatisticsFeign { |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 分页查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @PostMapping("/page") |
| | | R pageDataStatisticsMember(@RequestBody PageComPbCheckUnitDto comPbCheckUnit); |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.service.partybuilding; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * title: 党建-报到单位业务层接口 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 党建-报到单位业务层接口 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_PARTYBUILDING, contextId = "comPbCheckUnit", path = "comPbCheckUnit") |
| | | public interface ComPbCheckUnitFeign { |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 分页查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @PostMapping("/page") |
| | | R queryByPage(@RequestBody PageComPbCheckUnitDto comPbCheckUnit); |
| | | |
| | | /** |
| | | * description insert 新增数据 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @PostMapping("/add") |
| | | R insert(@RequestBody AddComPbCheckUnitDto comPbCheckUnit); |
| | | |
| | | /** |
| | | * description update 修改数据 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 修改结果 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @PutMapping("/edit") |
| | | R update(@RequestBody EditComPbCheckUnitDto comPbCheckUnit); |
| | | |
| | | /** |
| | | * description deleteById 通过主键删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @GetMapping("/delete") |
| | | R deleteById(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @GetMapping("/detail") |
| | | R detailById(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * description queryByList 查询列表 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @PostMapping("/list") |
| | | R queryByList(@RequestBody PageComPbCheckUnitDto comPbCheckUnit); |
| | | |
| | | /** |
| | | * 批量导入报道单位 |
| | | * @param list 导入数据 |
| | | * @param communityId 社区id |
| | | * @param userId 用户id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("/importCheckUnit") |
| | | R importCheckUnit(@RequestBody List<ComPbCheckUnitExcelVO> list,@RequestParam(value = "communityId") Long communityId |
| | | ,@RequestParam(value = "userId") Long userId); |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbMemberRoleExcelVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | public interface PartyBuildingService { |
| | | /** |
| | | * 新增党员 |
| | | * |
| | | * |
| | | * @param partyBuildingMemberVO |
| | | * 党员基本信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 社区所有启用的党组织列表 |
| | | * |
| | | * |
| | | * @return 党组织集合 |
| | | */ |
| | | @PostMapping("/partybuildIng/listpartyorganization") |
| | | R listPartyOrganization(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 社区所有的党组织列表 |
| | | * |
| | | * 分页查询所有的党组织列表 |
| | | * |
| | | * @return 党组织集合 |
| | | */ |
| | | @PostMapping("/partybuildIng/listpartyorganizationAll") |
| | | R listPartyOrganizationAll(@RequestBody PartyOrganizationVO partyOrganizationVO); |
| | | |
| | | /** |
| | | * 查询所有党组织列表 |
| | | * @param partyOrganizationVO 请求参数 |
| | | * @return 党组织列表 |
| | | */ |
| | | @PostMapping("/partybuildIng/getPbOrgAllList") |
| | | R getPbOrgAllList(@RequestBody PartyOrganizationVO partyOrganizationVO); |
| | | |
| | | /** |
| | | * 新增党支部 |
| | | * |
| | | * |
| | | * @param partyOrganizationVO |
| | | * 党支部基本信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑党支部 |
| | | * |
| | | * |
| | | * @param partyOrganizationVO |
| | | * 党支部基本信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 启用,禁用党支部 |
| | | * |
| | | * |
| | | * @param partyOrganizationVO |
| | | * 党支部基本信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 删除党支部 |
| | | * |
| | | * |
| | | * @param partyOrganizationVO |
| | | * 党支部基本信息 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 批量新增党员 |
| | | * |
| | | * |
| | | * @param list |
| | | * 党员集合 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 分页查询党员信息 |
| | | * |
| | | * |
| | | * @param pagePartyOrganizationVO |
| | | * 查询信息 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 党员活动 |
| | | * |
| | | * |
| | | * @param partyBuildingActivityVO |
| | | * 党员活动查询参数 |
| | | * @return 参加的所有活动 |
| | |
| | | |
| | | /** |
| | | * 活动报名名单分页查询 |
| | | * |
| | | * |
| | | * @param pageActivityMembersVO |
| | | * 查询参数 手机号 名字 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 编辑党员信息 新增字段均可编辑 |
| | | * |
| | | * |
| | | * @param partyBuildingMemberVO |
| | | * 编辑字段 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 党员活动详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 活动id |
| | | * @return 活动详情内容 |
| | |
| | | |
| | | /** |
| | | * 查询指定社区的所有党员 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 党员列表 |
| | |
| | | |
| | | /** |
| | | * 社区下拉选择身份 |
| | | * |
| | | * |
| | | * @return 身份集合 |
| | | */ |
| | | @PostMapping("/partybuildIng/listidentity") |
| | |
| | | |
| | | /** |
| | | * 新增党委 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 新增信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑党委 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 编辑信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 删除党委 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 删除id |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 分页社区党委查询 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 新建党建动态 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 动态内容 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑动态 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 编辑内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 动态详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 动态主键 |
| | | * @return 详情 |
| | |
| | | |
| | | /** |
| | | * 分页查询党员动态/政策文件 |
| | | * |
| | | * |
| | | * @param partyBuildingComPbDynVO |
| | | * 查询参数 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 删除动态 |
| | | * |
| | | * |
| | | * @param id |
| | | * 动态主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 新增党员活动 |
| | | * |
| | | * |
| | | * @param partyBuildingActivityVO |
| | | * 参数 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑党员活动 |
| | | * |
| | | * |
| | | * @param partyBuildingActivityVO |
| | | * 编辑内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 发布党员活动 |
| | | * |
| | | * |
| | | * @param id |
| | | * 主键id |
| | | * @return 发布结果 |
| | |
| | | |
| | | /** |
| | | * 删除党员活动 |
| | | * |
| | | * |
| | | * @param id |
| | | * 主键id |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询党员活动 |
| | | * |
| | | * |
| | | * @param partyBuildingActivityVO |
| | | * 查询条件 |
| | | * @return 查询结果 |
| | |
| | | |
| | | /** |
| | | * 增加阅读记录 |
| | | * |
| | | * |
| | | * @param comPbDynUserVO |
| | | * 记录内容 |
| | | * @return 增加结果 |
| | |
| | | |
| | | /** |
| | | * 删除党员 |
| | | * |
| | | * |
| | | * @param id |
| | | * 党员主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 取消活动 |
| | | * |
| | | * |
| | | * @param partyBuildingActivityVO |
| | | * 取消原因 |
| | | * @return 操作结果 |
| | |
| | | |
| | | /** |
| | | * 用户的所有党建活动 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 党员活动人员参入列表 |
| | | * |
| | | * |
| | | * @param id |
| | | * 活动id |
| | | * @return 党员集合 |
| | |
| | | |
| | | /** |
| | | * 报名、取消报名党员活动 |
| | | * |
| | | * |
| | | * @param activitySignUpDTO |
| | | * 操作参数 |
| | | * @return 操作结果 |
| | |
| | | |
| | | /** |
| | | * 获取党建活动所有参入人员的id集合 |
| | | * |
| | | * |
| | | * @param id |
| | | * 党建活动id |
| | | * @return 人员id集合 |
| | |
| | | |
| | | /** |
| | | * 定时任务刷新党建动态发布状态 |
| | | * |
| | | * |
| | | * @return 刷新数据数量 |
| | | */ |
| | | @PostMapping("/partybuildIng/timedtaskpartybuildingstatus") |
| | |
| | | |
| | | /** |
| | | * 定时任务取消党建活动 |
| | | * |
| | | * |
| | | * @return 需要取消的所有党建活动 |
| | | */ |
| | | @PostMapping("/partybuildIng/timedtaskpartybuildingactivity") |
| | |
| | | |
| | | /** |
| | | * 定时任务刷新党建活动的各个状态 除取消外 |
| | | * |
| | | * |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("/partybuildIng/timedtaskpartybuildingactivityall") |
| | |
| | | |
| | | /** |
| | | * 新增服务团队人员 |
| | | * |
| | | * |
| | | * @param comPbServiceTeamDTO |
| | | * 新增内容 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑团队人员 |
| | | * |
| | | * |
| | | * @param comPbServiceTeamDTO |
| | | * 编辑内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 删除服务团队人员 |
| | | * |
| | | * |
| | | * @param comPbServiceTeamDTO |
| | | * 删除主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询服务团队成员 |
| | | * |
| | | * |
| | | * @param pageComPbServiceTeamDTO |
| | | * 查询参数 |
| | | * @return 查询结果 |
| | |
| | | |
| | | /** |
| | | * 创建党员活动 小程序创建党员活动 |
| | | * |
| | | * |
| | | * @param comPbActivityDTO |
| | | * 创建内容 |
| | | * @return 创建结果 |
| | |
| | | |
| | | /** |
| | | * 查询用户党员认证信息 |
| | | * |
| | | * |
| | | * @param id |
| | | * 用户ID |
| | | * @return 查询结果 |
| | |
| | | |
| | | /** |
| | | * 查询待认证党员信息 |
| | | * |
| | | * |
| | | * @param pagePartyBuildingMemberVO |
| | | * 查询参数 |
| | | * @return 查询结果 |
| | |
| | | |
| | | /** |
| | | * 根据身份证号码查询党员信息 |
| | | * |
| | | * |
| | | * @param idCard |
| | | * 身份证号码 |
| | | * @return 党员信息 |
| | |
| | | |
| | | /** |
| | | * 社区所有启用的党组织列表 |
| | | * |
| | | * |
| | | * @return 党组织集合 |
| | | */ |
| | | @PostMapping("/partybuildIng/listpartyorganizationByApp") |
| | |
| | | |
| | | /** |
| | | * 根据id删除党员认证 |
| | | * |
| | | * |
| | | * @param id |
| | | * 党员认证id |
| | | * @return 党员认证id |
| | |
| | | |
| | | /** |
| | | * 导出党员信息 |
| | | * |
| | | * |
| | | * @param organizationVO |
| | | * 请求参数 |
| | | * @return 党员信息列表 |
| | |
| | | |
| | | /** |
| | | * 选择人员 |
| | | * |
| | | * |
| | | * @param param |
| | | * 查询条件 |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 根据党员活动id查询活动下报名人员 |
| | | * |
| | | * |
| | | * @param activityId |
| | | * 党员活动id |
| | | * @return 活动下报名人员 |
| | | */ |
| | | @PostMapping("/partybuildIng/getTaskPbActivityPeopleList") |
| | | R getTaskPbActivityPeopleList(@RequestParam("activityId") Long activityId); |
| | | |
| | | /** |
| | | * 分页查询党员数据统计 |
| | | * @param statisticsMemberDto 请求参数 |
| | | * @return 党员数据统计 |
| | | */ |
| | | @PostMapping("/partybuildIng/pageDataStatisticsMember") |
| | | R pageDataStatisticsMember(@RequestBody PageComDataStatisticsMemberDto statisticsMemberDto); |
| | | |
| | | /** |
| | | * 根据组织id查询组织下统计数据 |
| | | * @param statisticsOrgDto 请求参数 |
| | | * @return 组织下统计数据 |
| | | */ |
| | | @PostMapping("/partybuildIng/getOrgDataStatistics") |
| | | R getOrgDataStatistics(@RequestBody ComDataStatisticsOrgDto statisticsOrgDto); |
| | | |
| | | /** |
| | | * 查询党组织表头统计数据 |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 党组织表头统计数据 |
| | | */ |
| | | @GetMapping("/partybuildIng/getHeaderOrgDataStatistics") |
| | | R getHeaderOrgDataStatistics(@RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 党员数据统计-党员导出数据查询 |
| | | * @param statisticsMemberDto 请求参数 |
| | | * @return 党员导出数据 |
| | | */ |
| | | @PostMapping("/partybuildIng/exportDataStatisticsMember") |
| | | R exportDataStatisticsMember(@RequestBody PageComDataStatisticsMemberDto statisticsMemberDto); |
| | | |
| | | /** |
| | | * 党委导入接口 |
| | | * @param memberRoleExcelVoList 数据列表 |
| | | * @param communityId 社区id |
| | | * @param userId 用户id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("/partybuildIng/importPbMemberRole") |
| | | R importPbMemberRole(@RequestBody List<ComPbMemberRoleExcelVo> memberRoleExcelVoList,@RequestParam("communityId") Long communityId,@RequestParam("userId") Long userId); |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.DataKanBansDto; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.BindUserPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.LoginWithPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | import com.panzhihua.common.model.vos.*; |
| | | import com.panzhihua.common.model.vos.shop.ShopStoreVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | * @return 人员详情 |
| | | */ |
| | | @PostMapping("detailuser") |
| | | R detailUser(@RequestParam("userId") Long userId); |
| | | R<LoginUserInfoVO> detailUser(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 设置用户标签 |
| | |
| | | * @return 角色集合 |
| | | */ |
| | | @PostMapping("/role/listrolebackstage") |
| | | R listRoleBackstage(@RequestParam("communityId") Long communityId,@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize); |
| | | R listRoleBackstage(@RequestParam("communityId") Long communityId,@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize,@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 分页查询后台用户 |
| | |
| | | * @return 运营后台数据看板 |
| | | */ |
| | | @PostMapping("datakanban") |
| | | R dataKanban(); |
| | | R dataKanban(@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 用户菜单获取 |
| | |
| | | * @return 用户数据统计汇总 |
| | | */ |
| | | @GetMapping("community/statistics") |
| | | R communityStatistics(); |
| | | R communityStatistics(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 运营后台-用户数据统计导出 |
| | | * @return 用户数据 |
| | | */ |
| | | @GetMapping("community/statistics/export") |
| | | R communityStatisticsExport(); |
| | | R communityStatisticsExport(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 通过UnionId获取用户信息 |
| | |
| | | */ |
| | | @GetMapping("/getByUnionId") |
| | | R getUserInfoByUnionId(@RequestParam("unionId") String unionId); |
| | | |
| | | /** |
| | | * 小程序id获取相关信息 |
| | | * @param appId |
| | | * @return |
| | | */ |
| | | @GetMapping("/sysAppConfig/selectByAppid") |
| | | R<SysAppConfigVO> selectByAppid(@RequestParam("appId")String appId); |
| | | |
| | | /** |
| | | * 通过区域编码 类型获取动态模板id |
| | | * @param areaCode |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/sysTemplateConfig/selectTemplate") |
| | | R<SysTemplateConfigVO> selectTemplate(@RequestParam("areaCode")String areaCode,@RequestParam("type")Integer type); |
| | | |
| | | /** |
| | | * 微商业街新增商家账号 |
| | | * @param mcsMerchantDTO |
| | | * @return 商家用户id |
| | | */ |
| | | @PostMapping("insertMcsMerchantAccount") |
| | | R addMcsMerchantUser(@RequestBody McsMerchantDTO mcsMerchantDTO); |
| | | |
| | | /** |
| | | * 微商业街修改商家账号 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("putMcsMerchantUser") |
| | | R putMcsMerchantUser(@RequestBody McsMerchantDTO mcsMerchantDTO); |
| | | |
| | | /** |
| | | * 检查用户是否有效 |
| | | * @param userId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @PutMapping("checkUserIsValid") |
| | | Boolean checkUserIsValid(@RequestParam("userId") Long userId, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 根据手机号、用户类型查询用户 |
| | | * @param phone |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/getSysUserByPhone") |
| | | R getSysUserByPhone(@RequestParam("phone") String phone, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 发送验证码 |
| | | * @param phone 手机号 |
| | | * @param clientIP 用户ip |
| | | * @param prefixKey redis Key 前缀 |
| | | * @param limit 获取次数限制 |
| | | * @param timeout 超次数获取时间等待 |
| | | * @return |
| | | */ |
| | | @GetMapping("/sendMessageCode") |
| | | R sendMessageCode(@RequestParam("phone") String phone, |
| | | @RequestParam(value = "clientIP", required = false) String clientIP, |
| | | @RequestParam("prefixKey") String prefixKey, |
| | | @RequestParam("limit") Integer limit, |
| | | @RequestParam("timeout") Integer timeout); |
| | | |
| | | /** |
| | | * 根据openId获取微商业街用户 |
| | | * @param openid |
| | | * @return |
| | | */ |
| | | @GetMapping("/getMcsUserByOpenId") |
| | | R getMcsUserByOpenId(@RequestParam("openid") String openid); |
| | | |
| | | /** |
| | | * 商业街用户微信授权-绑定手机号 |
| | | * @param bindUserPhoneDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/mcs/bindPhone") |
| | | R bindOrAddMcsUser(@RequestBody @Valid BindUserPhoneDTO bindUserPhoneDTO); |
| | | } |
| | |
| | | Boolean isOldDuo = false; |
| | | StringBuffer sb = new StringBuffer(); |
| | | if (answerContentVOList != null && answerContentVOList.size() > 0) { |
| | | int a=0; |
| | | for (ComActQuestnaireAnswerContentVO userAnswers : answerContentVOList) { |
| | | a++; |
| | | if(answerContentVOList.size()==26&&a==9){ |
| | | userData.add(" "); |
| | | } |
| | | //判断是文字描述直接跳过 |
| | | if (userAnswers.getOptionType().equals(5) || userAnswers.getOptionType().equals(11) |
| | | if (userAnswers.getOptionType().equals(5) |
| | | || (StringUtils.isNotEmpty(userAnswers.getAnswerContent()) && userAnswers.getAnswerContent().contains(noExport))) { |
| | | continue; |
| | | } |
| | |
| | | if(userAnswers.getOptionType().equals(11)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent())){ |
| | | if(userAnswers.getAnswerContent().contains("_compress")){ |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | } |
| | | else { |
| | | URL url=new URL(userAnswers.getAnswerContent().substring(0,userAnswers.getAnswerContent().lastIndexOf("."))+"_compress.jpg"); |
| | | if(url.getContent()!=null){ |
| | | userData.add(url); |
| | | } |
| | | else { |
| | | userData.add(userAnswers.getAnswerContent()); |
| | | } |
| | | } |
| | | //userData.add(new File("/workspace/minio/data/files/"+userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf("files/")+6))); |
| | | } |
| | | else { |
| | | userData.add(" "); |
| | | } |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | e.printStackTrace(); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | |
| | | if(userAnswers.getOptionType().equals(11)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent())){ |
| | | if(userAnswers.getAnswerContent().contains("_compress")){ |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | } |
| | | else { |
| | | URL url=new URL(userAnswers.getAnswerContent().substring(0,userAnswers.getAnswerContent().lastIndexOf("."))+"_compress.jpg"); |
| | | if(url.getContent()!=null){ |
| | | userData.add(url); |
| | | } |
| | | else { |
| | | userData.add(userAnswers.getAnswerContent()); |
| | | } |
| | | |
| | | } |
| | | //userData.add(new File("/workspace/minio/data/files/"+userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf("files/")+6))); |
| | | } |
| | | else { |
| | | userData.add(" "); |
| | | } |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | //判断当前组件类型是否签名 |
| | | if(userAnswers.getOptionType().equals(12)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | //userData.add(new URL("http://image.panzhihua.nhys.cdnhxx.com//idcard/967dbdef3ef3465a9169fbea204f9aa7.jpg")); |
| | | userData.add(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf(",") + 1))); |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | if(userAnswers.getOptionType().equals(1)){ |
| | | isOldDuo = true; |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | | continue; |
| | | }else{ |
| | | if(isOldDuo){ |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | isOldDuo = false; |
| | | } |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | } |
| | | } |
| | | if(isOldDuo){ |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | } |
| | | resultList.add(userData); |
| | | } |
| | | return resultList; |
| | | } |
| | | |
| | | public static List<List<Object>> ReserveDataNoImage(List<ComActQuestnaireAnswerContentVO> answerContentVOList) { |
| | | //结果数据集合 |
| | | List<List<Object>> resultList = new ArrayList<>(); |
| | | //构建单个用户数据 |
| | | List<Object> userData = new ArrayList<>(); |
| | | |
| | | String noExport = "以上信息仅用于"; |
| | | //遍历答案列表 |
| | | Long reserveRecordId = 0L; |
| | | Long reserveSubId = 0L; |
| | | Boolean isOldDuo = false; |
| | | StringBuffer sb = new StringBuffer(); |
| | | if (answerContentVOList != null && answerContentVOList.size() > 0) { |
| | | int a=0; |
| | | for (ComActQuestnaireAnswerContentVO userAnswers : answerContentVOList) { |
| | | a++; |
| | | if(answerContentVOList.size()==26&&a==9){ |
| | | userData.add(" "); |
| | | } |
| | | //判断是文字描述直接跳过 |
| | | if (userAnswers.getOptionType().equals(5) ||userAnswers.getOptionType().equals(11) |
| | | || (StringUtils.isNotEmpty(userAnswers.getAnswerContent()) && userAnswers.getAnswerContent().contains(noExport))) { |
| | | continue; |
| | | } |
| | | //判断reserveRecordId为空则为第一条记录,默认加上昵称和灯谜是 |
| | | if (reserveRecordId.equals(0L)) { |
| | | reserveRecordId = userAnswers.getReserveRecordId(); |
| | | userData.add(userAnswers.getNickName()); |
| | | userData.add(DateUtils.format(userAnswers.getTime(), DateUtils.ymdhms_format)); |
| | | } |
| | | //根据reserveRecordId判断是否是第二条填报记录 |
| | | if (!reserveRecordId.equals(userAnswers.getReserveRecordId())) { |
| | | reserveSubId = 0L; |
| | | |
| | | if(isOldDuo){ |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | isOldDuo = false; |
| | | } |
| | | resultList.add(userData); |
| | | userData = new ArrayList<>(); |
| | | reserveRecordId = userAnswers.getReserveRecordId(); |
| | | userData.add(userAnswers.getNickName()); |
| | | userData.add(DateUtils.format(userAnswers.getTime(), DateUtils.ymdhms_format)); |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent())){ |
| | | userData.add(userAnswers.getAnswerContent()); |
| | | }else{ |
| | | userData.add(" "); |
| | | } |
| | | }else{ |
| | | if(reserveSubId.equals(0L)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | } |
| | | |
| | | if(!reserveSubId.equals(userAnswers.getReserveSubId())){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | |
| | | //如果是承诺字段则不导出 |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent()) && userAnswers.getAnswerContent().contains(noExport)){ |
| | | continue; |
| | | } |
| | | |
| | | //判断当前的组件类型是否是图片上传,导出时需要导出图片 |
| | | if(userAnswers.getOptionType().equals(11)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent())){ |
| | | if(userAnswers.getAnswerContent().contains("_compress")){ |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | } |
| | | else { |
| | | URL url=new URL(userAnswers.getAnswerContent().substring(0,userAnswers.getAnswerContent().lastIndexOf("."))+"_compress.jpg"); |
| | | if(url.getContent()!=null){ |
| | | userData.add(url); |
| | | } |
| | | else { |
| | | userData.add(userAnswers.getAnswerContent()); |
| | | } |
| | | } |
| | | //userData.add(new File("/workspace/minio/data/files/"+userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf("files/")+6))); |
| | | } |
| | | else { |
| | | userData.add(" "); |
| | | } |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | e.printStackTrace(); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | //判断当前组件类型是否签名 |
| | | if(userAnswers.getOptionType().equals(12)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf(",") + 1))); |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | | if(userAnswers.getOptionType().equals(1)){ |
| | | isOldDuo = true; |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | | continue; |
| | | }else{ |
| | | if(isOldDuo){ |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | isOldDuo = false; |
| | | } |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | }else{ |
| | | //如果是承诺字段则不导出 |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent()) && userAnswers.getAnswerContent().contains(noExport)){ |
| | | continue; |
| | | } |
| | | //判断当前的组件类型是否是图片上传,导出时需要导出图片 |
| | | if(userAnswers.getOptionType().equals(11)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | if(StringUtils.isNotEmpty(userAnswers.getAnswerContent())){ |
| | | if(userAnswers.getAnswerContent().contains("_compress")){ |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | } |
| | | else { |
| | | URL url=new URL(userAnswers.getAnswerContent().substring(0,userAnswers.getAnswerContent().lastIndexOf("."))+"_compress.jpg"); |
| | | if(url.getContent()!=null){ |
| | | userData.add(url); |
| | | } |
| | | else { |
| | | userData.add(userAnswers.getAnswerContent()); |
| | | } |
| | | |
| | | } |
| | | //userData.add(new File("/workspace/minio/data/files/"+userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf("files/")+6))); |
| | | } |
| | | else { |
| | | userData.add(" "); |
| | | } |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | |
| | | public static SimpleDateFormat yyyyMM_format = new SimpleDateFormat("yyyy-MM"); |
| | | public static SimpleDateFormat format_yyymmdd = new SimpleDateFormat("yyyyMMdd"); |
| | | public static SimpleDateFormat format_yyyy = new SimpleDateFormat("yyyy"); |
| | | public static SimpleDateFormat format_yyyyMMddHHmmss = new SimpleDateFormat("yyyyMMddHHmmss"); |
| | | private static DateTimeFormatter format_ymdhmssss = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS"); |
| | | private static DateTimeFormatter format_ymds = DateTimeFormatter.ofPattern("yyyyMMdd"); |
| | | private static DateTimeFormatter format_yms = DateTimeFormatter.ofPattern("yyyyMM"); |
| | |
| | | |
| | | /** |
| | | * 字符串转date |
| | | * |
| | | * |
| | | * @param date |
| | | * 时间戳 |
| | | * @param format |
| | |
| | | |
| | | /** |
| | | * 字符串转date |
| | | * |
| | | * |
| | | * @param date |
| | | * 时间戳 |
| | | * @return 时间 |
| | |
| | | |
| | | /** |
| | | * 字符串转date |
| | | * |
| | | * |
| | | * @param date |
| | | * 时间戳 |
| | | * @return 时间 |
| | |
| | | |
| | | /** |
| | | * 获取当前时间 |
| | | * |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 返回当前事件的时间戳 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static Long getCurrentDateTimeStamp() { |
| | |
| | | |
| | | /** |
| | | * 获取当前时间字符串,格式为yyyy-MM-dd HH:mm:ss |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCurrentDateStr() { |
| | |
| | | |
| | | /** |
| | | * 获取当前时间字符串,格式为yyyyMMdd |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCurrentDateString() { |
| | |
| | | |
| | | /** |
| | | * 获取当前时间字符串,格式为yyyy-MM-dd |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCurrentDateStrymd() { |
| | |
| | | |
| | | /** |
| | | * 获取当前时间long值 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static long getCurrentDataLong() { |
| | |
| | | |
| | | /** |
| | | * 获取当前时间 |
| | | * |
| | | * |
| | | * @param format |
| | | * @return |
| | | * @throws Exception |
| | |
| | | |
| | | /** |
| | | * 对日期进行加法操作 |
| | | * |
| | | * |
| | | * @param date |
| | | * @param hours |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 对日期的分钟进行加法操作 |
| | | * |
| | | * |
| | | * @param date |
| | | * @param minutes |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 计算两个日期先差多少秒 |
| | | * |
| | | * |
| | | * @param pre |
| | | * 前一个日期 |
| | | * @param after |
| | |
| | | |
| | | /** |
| | | * 计算两个时间相差的天数 |
| | | * |
| | | * |
| | | * @param stardate |
| | | * @param enddate |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 结束时间与当前时间计算相差的月数 |
| | | * |
| | | * |
| | | * @param enddate |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 获取某个时间段之前的时间点 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getSomeTimeStapStr(String sign) { |
| | |
| | | |
| | | /** |
| | | * 获取失效时间点(在什么时间失效) |
| | | * |
| | | * |
| | | * @param minutes |
| | | * 有效分钟数 |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 获取当前年份 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCurrentYear() { |
| | |
| | | |
| | | /** |
| | | * 获取当前月份 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCurrentMonth() { |
| | |
| | | |
| | | /** |
| | | * 获取无符号的当前时间 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCurrentDateStrNoSignal() { |
| | |
| | | |
| | | /** |
| | | * 获取前几个小时的时间 |
| | | * |
| | | * |
| | | * @param hours |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 小时取整 |
| | | * |
| | | * |
| | | * @param date |
| | | * @param hour |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 分钟取整 以十分钟为单位 ,去除尾端,加上 参数 46->40+minutes*10 |
| | | * |
| | | * |
| | | * @param date |
| | | * @param minutes |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 天数取整 |
| | | * |
| | | * |
| | | * @param date |
| | | * @param day |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 日期相加减 |
| | | * |
| | | * |
| | | * @param time |
| | | * 时间字符串 yyyy-MM-dd HH:mm:ss |
| | | * @param num |
| | |
| | | |
| | | /** |
| | | * 获取当前月第一天 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static Date getFirstDayOfMonth() { |
| | |
| | | |
| | | /** |
| | | * 获取当前年月的第一天时间 |
| | | * |
| | | * |
| | | * @param year |
| | | * 年份 |
| | | * @param month |
| | |
| | | |
| | | /** |
| | | * 获取当前年月的最后一天时间 |
| | | * |
| | | * |
| | | * @param year |
| | | * 年份 |
| | | * @param month |
| | |
| | | |
| | | /** |
| | | * date2比date1多的天数 |
| | | * |
| | | * |
| | | * @param date1 |
| | | * @param date2 |
| | | * @return |
| | |
| | | } |
| | | |
| | | /** |
| | | * 计算剩余天数,不足一天按一天算 |
| | | * @param expireDate |
| | | * @return |
| | | */ |
| | | public static int retrieveRemainingDays(Date expireDate) { |
| | | Date nowDate = new Date(); |
| | | Calendar startDate = Calendar.getInstance(); |
| | | startDate.setTime(nowDate); |
| | | Calendar endDate = Calendar.getInstance(); |
| | | endDate.setTime(expireDate); |
| | | Calendar date = (Calendar) startDate.clone(); |
| | | int daysBetween = 0; |
| | | while (date.before(endDate)) { |
| | | date.add(Calendar.DAY_OF_MONTH, 1); |
| | | daysBetween++; |
| | | } |
| | | return daysBetween; |
| | | } |
| | | |
| | | /** |
| | | * 获取当前月第一天 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getFirstDayOfMonthString() { |
| | |
| | | |
| | | /** |
| | | * 获取当前月最后一天 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getLastDayOfMonthString() { |
| | |
| | | |
| | | /** |
| | | * 获取当前时间(年月日) |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getDayOfMonthString() { |
| | |
| | | } |
| | | return dates; |
| | | } |
| | | |
| | | /** |
| | | * 获取上月最后一天时间 |
| | | * @return 上月最后一天时间 |
| | | */ |
| | | public static String getOldMonthLastDay(){ |
| | | Calendar calendar=Calendar.getInstance(); |
| | | int month=calendar.get(Calendar.MONTH); |
| | | calendar.set(Calendar.MONTH, month-1); |
| | | calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH)); |
| | | return format_yyymmdd.format(calendar.getTime()); |
| | | } |
| | | |
| | | /** |
| | | * 获取上月第一天时间 |
| | | * @return 上月第一天时间 |
| | | */ |
| | | public static String getOldMonthFirstDay(){ |
| | | Calendar calendar=Calendar.getInstance(); |
| | | calendar.add(Calendar.MONTH, -1); |
| | | calendar.set(Calendar.DAY_OF_MONTH, 1); |
| | | return format_yyymmdd.format(calendar.getTime()); |
| | | } |
| | | |
| | | /** |
| | | * 获取某年的月份最后一天时间 |
| | | * @param year 年份 |
| | | * @return 月份list |
| | | */ |
| | | public static List<String> getYearLastMonths(Integer year){ |
| | | List<String> list = new ArrayList<>(); |
| | | list.add(getLastDayOfMonth(year,1)); |
| | | list.add(getLastDayOfMonth(year,2)); |
| | | list.add(getLastDayOfMonth(year,3)); |
| | | list.add(getLastDayOfMonth(year,4)); |
| | | list.add(getLastDayOfMonth(year,5)); |
| | | list.add(getLastDayOfMonth(year,6)); |
| | | list.add(getLastDayOfMonth(year,7)); |
| | | list.add(getLastDayOfMonth(year,8)); |
| | | list.add(getLastDayOfMonth(year,9)); |
| | | list.add(getLastDayOfMonth(year,10)); |
| | | list.add(getLastDayOfMonth(year,11)); |
| | | list.add(getLastDayOfMonth(year,12)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 获取某年的月份第一天时间 |
| | | * @param year 年份 |
| | | * @return 月份list |
| | | */ |
| | | public static List<String> getYearFirstMonths(Integer year){ |
| | | List<String> list = new ArrayList<>(); |
| | | list.add(getFirstDayOfMonth(year,1)); |
| | | list.add(getFirstDayOfMonth(year,2)); |
| | | list.add(getFirstDayOfMonth(year,3)); |
| | | list.add(getFirstDayOfMonth(year,4)); |
| | | list.add(getFirstDayOfMonth(year,5)); |
| | | list.add(getFirstDayOfMonth(year,6)); |
| | | list.add(getFirstDayOfMonth(year,7)); |
| | | list.add(getFirstDayOfMonth(year,8)); |
| | | list.add(getFirstDayOfMonth(year,9)); |
| | | list.add(getFirstDayOfMonth(year,10)); |
| | | list.add(getFirstDayOfMonth(year,11)); |
| | | list.add(getFirstDayOfMonth(year,12)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 获取某年某月最后一天 |
| | | * @param year 年份 |
| | | * @param month 月份 |
| | | * @return 某年某月最后一天 |
| | | */ |
| | | public static String getLastDayOfMonth(int year,int month) |
| | | { |
| | | Calendar cal = Calendar.getInstance(); |
| | | //设置年份 |
| | | cal.set(Calendar.YEAR,year); |
| | | //设置月份 |
| | | cal.set(Calendar.MONTH, month-1); |
| | | //获取某月最大天数 |
| | | int lastDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH); |
| | | //设置日历中月份的最大天数 |
| | | cal.set(Calendar.DAY_OF_MONTH, lastDay); |
| | | //格式化日期 |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String lastDayOfMonth = sdf.format(cal.getTime()); |
| | | return lastDayOfMonth; |
| | | } |
| | | |
| | | /** |
| | | * 获取某年某月的第一天 |
| | | * @param year 年份 |
| | | * @param month 月份 |
| | | * @return 某年某月第一天 |
| | | */ |
| | | public static String getFirstDayOfMonth(int year,int month) |
| | | { |
| | | Calendar cal = Calendar.getInstance(); |
| | | //设置年份 |
| | | cal.set(Calendar.YEAR,year); |
| | | //设置月份 |
| | | cal.set(Calendar.MONTH, month-1); |
| | | //获取某月最小天数 |
| | | int firstDay = cal.getActualMinimum(Calendar.DAY_OF_MONTH); |
| | | //设置日历中月份的最小天数 |
| | | cal.set(Calendar.DAY_OF_MONTH, firstDay); |
| | | //格式化日期 |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String firstDayOfMonth = sdf.format(cal.getTime()); |
| | | |
| | | return firstDayOfMonth; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.utlis; |
| | | |
| | | /** |
| | | * 应用模块名称 |
| | | * <p> |
| | | * 代码描述 |
| | | * <p> |
| | | * Copyright: Copyright (C) 2022 XXX, Inc. All rights reserved. |
| | | * <p> |
| | | * Company: 成都呐喊信息技术有限公司 |
| | | * <p> |
| | | * |
| | | * @author manailin |
| | | * @since 2022/2/17 14:33 |
| | | */ |
| | | import java.util.Objects; |
| | | import java.util.function.BiConsumer; |
| | | |
| | | /** |
| | | * |
| | | * @author yangzhilong |
| | | * @date 7/15/2019 |
| | | */ |
| | | public class ForEachUtils { |
| | | |
| | | /** |
| | | * |
| | | * @param <T> |
| | | * @param startIndex |
| | | * 开始遍历的索引 |
| | | * @param elements |
| | | * 集合 |
| | | * @param action |
| | | */ |
| | | public static <T> void forEach(int startIndex, Iterable<? extends T> elements, |
| | | BiConsumer<Integer, ? super T> action) { |
| | | Objects.requireNonNull(elements); |
| | | Objects.requireNonNull(action); |
| | | if (startIndex < 0) { |
| | | startIndex = 0; |
| | | } |
| | | int index = 0; |
| | | for (T element : elements) { |
| | | index++; |
| | | if (index <= startIndex) { |
| | | continue; |
| | | } |
| | | |
| | | action.accept(index - 1, element); |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.utlis; |
| | | |
| | | import org.json.JSONObject; |
| | | import org.json.XML; |
| | | public class SmsUtil { |
| | | |
| | | private final static String URL = "https://106.ihuyi.com/webservice/sms.php?method=Submit"; |
| | | private final static String ACCOUNT="C87595580"; |
| | | private final static String PASSWORD="b66d918a598ad126b85b13e82a38e165"; |
| | | private final static String CONTENT="您有一笔订单还未付款,超时未付款订单将自动取消。"; |
| | | public static int sendCode(String mobile, String code){ |
| | | try { |
| | | String requestUrl=URL+"&account="+ACCOUNT+"&password="+PayUtil.MD5(PASSWORD)+"&mobile="+mobile+"&content="+"您的验证码是:"+code+"。请不要把验证码泄露给其他人。"; |
| | | String res=HttpClientUtil.httpGet(requestUrl, null,null); |
| | | JSONObject jsonObject=XML.toJSONObject(res); |
| | | if(jsonObject.get("SubmitResult")!=null){ |
| | | JSONObject result= (JSONObject) jsonObject.get("SubmitResult"); |
| | | if(result.get("code").equals(2)){ |
| | | return 1; |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public int sendContent(String mobile){ |
| | | try { |
| | | String requestUrl=URL+"&account="+ACCOUNT+"&password="+PayUtil.MD5(PASSWORD)+"&mobile="+mobile+"&content="+CONTENT; |
| | | String res=HttpClientUtil.httpGet(requestUrl, null,null); |
| | | JSONObject jsonObject=XML.toJSONObject(res); |
| | | if(jsonObject.get("SubmitResult")!=null){ |
| | | JSONObject result= (JSONObject) jsonObject.get("SubmitResult"); |
| | | if(result.get("code").equals(2)){ |
| | | return 1; |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return 0; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.utlis; |
| | | |
| | | import java.util.regex.Pattern; |
| | | |
| | | /** |
| | | * @title: ValidateUtils |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 验证相关工具类 |
| | | * @author: hans |
| | | * @date: 2022/02/11 15:16 |
| | | */ |
| | | public class ValidateUtils { |
| | | |
| | | private static final String PHONE_REGEX = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$"; |
| | | |
| | | public static Boolean assertPhoneIsValid(String phone) { |
| | | return Pattern.matches(PHONE_REGEX, phone); |
| | | } |
| | | } |
| | |
| | | parameters.put("paySign", sign); |
| | | return parameters; |
| | | } |
| | | public static String h5pay(String appid, String mchId, String payKey, String notifyUrl, String body, |
| | | String openid, String outTradeNo, BigDecimal money, String tradeType, String clientIp) { |
| | | String nonceStr = PayUtil.makeUUID(32); |
| | | SortedMap<Object, Object> params = new TreeMap<>(); |
| | | params.put("appid", appid); |
| | | params.put("body", body); |
| | | params.put("mch_id", mchId); |
| | | params.put("nonce_str", nonceStr); |
| | | params.put("notify_url", notifyUrl); |
| | | params.put("openid", openid); |
| | | params.put("out_trade_no", outTradeNo);// 商品订单号 |
| | | params.put("spbill_create_ip", clientIp);// 用户真实ip |
| | | params.put("total_fee", PayUtil.moneyToIntegerStr(money));// 费用的参数转型 |
| | | params.put("trade_type", tradeType);// 对接类型 |
| | | params.put("sign", PayUtil.createSign(PayCpmstant.DEFAULT_ENCODING, params, payKey));// MD5签名 |
| | | // 转换成xml |
| | | String xmlData = PayUtil.getRequestXml(params); |
| | | // 请求微信后台,获取支付id |
| | | String resXml = HttpClientUtil.httpsRequest(PayCpmstant.UNIFIEDORDER_URL, xmlData); |
| | | log.info("请求微信支付返回参数:" + resXml); |
| | | |
| | | org.json.JSONObject resultData = XML.toJSONObject(resXml); |
| | | JSONObject data = JSON.parseObject(resultData.get("xml").toString()); |
| | | JSONObject result = new JSONObject(); |
| | | |
| | | if (data.get("return_msg").equals(PayCpmstant.RETURN_MSG) |
| | | && data.get("return_code").equals(PayCpmstant.RETURN_CODE)) { |
| | | // 将微信统一下单成功的参数拼接再签名 |
| | | // 统一下单返回prepay_id |
| | | if(tradeType.equals("JSAPI")) { |
| | | String prepayId = "prepay_id=" + data.getString("prepay_id"); |
| | | // 时间戳 |
| | | Long timeStamp = System.currentTimeMillis() / 1000; |
| | | // 封装需要签名的字段 |
| | | SortedMap<Object, Object> payParams = new TreeMap<>(); |
| | | payParams.put("appId", appid); |
| | | payParams.put("nonceStr", nonceStr); |
| | | payParams.put("package", prepayId); |
| | | payParams.put("signType", PayCpmstant.SIGN_TYPE); |
| | | payParams.put("timeStamp", timeStamp); |
| | | // 将参数以及签名计算完成封装返回给前端 |
| | | result.put("timeStamp", timeStamp); |
| | | result.put("nonceStr", nonceStr); |
| | | result.put("package", prepayId); |
| | | result.put("signType", PayCpmstant.SIGN_TYPE); |
| | | result.put("paySign", PayUtil.createSign(PayCpmstant.DEFAULT_ENCODING, payParams, payKey)); |
| | | } |
| | | else if(tradeType.equals("NATIVE")) { |
| | | result.put("codeUrl",data.getString("code_url")); |
| | | } else if(tradeType.equals("MWEB")) { |
| | | result.put("mWebUrl",data.getString("mweb_url")); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | return result.toJSONString(); |
| | | } |
| | | } |
| | |
| | | * 备注说明 |
| | | */ |
| | | public static void sendSubscribeJLDZ(String openId, String accessToken, String name, BigDecimal amount, |
| | | String remark) { |
| | | String remark,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.JLFF_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动名称 |
| | | paras.add(new TemplateParam("amount3", amount.toString()));// 奖励金额 |
| | |
| | | * 审核结果 |
| | | */ |
| | | public static void sendSubscribeRZSH(String openId, String accessToken, String name, String applyTime, |
| | | String result) { |
| | | String result,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.EZSH_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing2", name));// 认证内容 |
| | | paras.add(new TemplateParam("phrase1", result));// 审核结果 |
| | |
| | | * 审核时间 |
| | | */ |
| | | public static void sendSubscribeSHZT(String openId, String accessToken, String name, String applyTime, |
| | | String result) { |
| | | String result,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.SHZT_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 审核项目 |
| | | paras.add(new TemplateParam("phrase2", result));// 审核状态 |
| | |
| | | * @param time |
| | | * 活动时间 |
| | | */ |
| | | public static void sendSubscribeHDQX(String openId, String accessToken, String name, String time) { |
| | | public static void sendSubscribeHDQX(String openId, String accessToken, String name, String time,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.HDQX_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动标题 |
| | | paras.add(new TemplateParam("date2", time));// 活动时间 |
| | |
| | | * @param content |
| | | * 回复内容 |
| | | */ |
| | | public static void sendSubscribeLYHF(String openId, String accessToken, String name, String time, String content) { |
| | | public static void sendSubscribeLYHF(String openId, String accessToken, String name, String time, String content,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.LYHF_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing3", content));// 回复内容 |
| | | paras.add(new TemplateParam("name1", name));// 回复者 |
| | |
| | | * 活动地点 |
| | | */ |
| | | public static void sendSubscribeHDBG(String openId, String accessToken, String name, String changeTime, |
| | | String changeAddress, String time, String address) { |
| | | String changeAddress, String time, String address,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.HDBG_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动名称 |
| | | paras.add(new TemplateParam("time2", changeTime));// 活动时间变更 |
| | |
| | | * 活动参加人数 |
| | | */ |
| | | public static void sendSubscribeHDJJKS(String openId, String accessToken, String name, String time, String address, |
| | | String num) { |
| | | String num,String templateId) { |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.HDJJKS_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras = new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("thing1", name));// 活动名称 |
| | | paras.add(new TemplateParam("date2", time));// 活动时间 |
| | |
| | | * @param name 预约人 |
| | | * @param time 预约时间 |
| | | */ |
| | | public static void sendSubscribeYYTX(String openId, String accessToken, String result, String title, String name,String time){ |
| | | public static void sendSubscribeYYTX(String openId, String accessToken, String result, String title, String name,String time,String templateId){ |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(WxSubscribeConstants.YYTX_ID); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | List<TemplateParam> paras=new ArrayList<TemplateParam>(); |
| | | paras.add(new TemplateParam("phrase8",result));//预约结果 |
| | | paras.add(new TemplateParam("thing23",title));//预约主题 |
| | |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Map; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import org.apache.commons.fileupload.FileItem; |
| | | import org.apache.commons.fileupload.FileItemFactory; |
| | | import org.apache.commons.fileupload.disk.DiskFileItemFactory; |
| | |
| | | |
| | | @Slf4j |
| | | @Component |
| | | public class WxXCXTempSend { |
| | | public class WxXCXTempSend extends BaseController { |
| | | |
| | | public static final String APP_ID = "wx0cef797390444b75"; |
| | | private static final String APP_SECRET = "c7ea9aaa7e391a487e8a5b9ba61045d1"; |
| | |
| | | try { |
| | | // 此处APP_ID APP_SECRET 在微信小程序后端可见 |
| | | // String accessTokenUrl = String.format(TEMP_URL, APP_ID, APP_SECRET); |
| | | String appId = getAppId(); |
| | | String appSecret = getAppSecret(); |
| | | if(StringUtils.isEmpty(appId)){ |
| | | appId = APP_ID; |
| | | } |
| | | if(StringUtils.isEmpty(appSecret)){ |
| | | appSecret = APP_SECRET; |
| | | } |
| | | log.info("获取微信token参数:appid=" + appId + ",appSecret=" + appSecret); |
| | | String accessTokenUrl = ACCESS_TOKEN_URL + "&appid=" + appId + "&secret=" + appSecret; |
| | | String result = HttpClientUtil.httpGet(accessTokenUrl, null, null); |
| | | Map<String, Object> resultMap = JSON.parseObject(result, Map.class); |
| | | if (resultMap.containsKey("access_token")) { |
| | | accessToken = resultMap.get("access_token").toString(); |
| | | } |
| | | } catch (IOException ioe) { |
| | | log.error("小程序http请求异常"); |
| | | ioe.printStackTrace(); |
| | | } |
| | | return accessToken; |
| | | } |
| | | |
| | | /** |
| | | * 获取西区社区通微信token |
| | | * @return 西区社区通微信token |
| | | * @throws Exception 异常 |
| | | */ |
| | | public String getXQAppAccessToken() throws Exception { |
| | | String accessToken = "0"; |
| | | try { |
| | | // 此处APP_ID APP_SECRET 在微信小程序后端可见 |
| | | // String accessTokenUrl = String.format(TEMP_URL, APP_ID, APP_SECRET); |
| | | String accessTokenUrl = ACCESS_TOKEN_URL + "&appid=" + APP_ID + "&secret=" + APP_SECRET; |
| | | String result = HttpClientUtil.httpGet(accessTokenUrl, null, null); |
| | | Map<String, Object> resultMap = JSON.parseObject(result, Map.class); |
New file |
| | |
| | | package com.panzhihua.community_backstage.aop; |
| | | |
| | | import java.net.URL; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import javax.xml.bind.DatatypeConverter; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActQuestnaireAnswerContentVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @author lyq 前端H5组件库工具类 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class RenheAssemblyUtils { |
| | | |
| | | @Autowired |
| | | private CommunityService communityService; |
| | | |
| | | private static List<String> automaticDataCompletion(List<String> chooseList, String selected) { |
| | | if (chooseList == null) { |
| | | chooseList = new ArrayList<>(); |
| | | chooseList.add("是"); |
| | | chooseList.add("否"); |
| | | } |
| | | List<String> list = new ArrayList<>(); |
| | | for (String item : chooseList) { |
| | | if (item.equals(selected)) { |
| | | list.add("√"); |
| | | } else { |
| | | list.add(""); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 数据转换--登记明细用户填写答案导出数据格式转换 |
| | | * |
| | | * @param answerContentVOList |
| | | * 用户答题记录 |
| | | * @return 用户填写答案数据 |
| | | */ |
| | | public List<List<Object>> ReserveData(List<ComActQuestnaireAnswerContentVO> answerContentVOList) { |
| | | // 结果数据集合 |
| | | List<List<Object>> resultList = new ArrayList<>(); |
| | | // 构建单个用户数据 |
| | | List<Object> userData = new ArrayList<>(); |
| | | |
| | | String noExport = "以上信息仅用于"; |
| | | // 遍历答案列表 |
| | | Long reserveRecordId = 0L; |
| | | Long reserveSubId = 0L; |
| | | Boolean isOldDuo = false; |
| | | StringBuffer sb = new StringBuffer(); |
| | | if (answerContentVOList != null && answerContentVOList.size() > 0) { |
| | | int a = 0; |
| | | for (ComActQuestnaireAnswerContentVO userAnswers : answerContentVOList) { |
| | | a++; |
| | | if (answerContentVOList.size() == 26 && a == 9) { |
| | | userData.add(" "); |
| | | } |
| | | // 判断是文字描述直接跳过 |
| | | if (userAnswers.getOptionType().equals(5) || (StringUtils.isNotEmpty(userAnswers.getAnswerContent()) |
| | | && userAnswers.getAnswerContent().contains(noExport))) { |
| | | continue; |
| | | } |
| | | // 判断reserveRecordId为空则为第一条记录,默认加上昵称和灯谜是 |
| | | if (reserveRecordId.equals(0L)) { |
| | | reserveRecordId = userAnswers.getReserveRecordId(); |
| | | // userData.add(userAnswers.getNickName()); |
| | | // userData.add(DateUtils.format(userAnswers.getTime(), DateUtils.ymdhms_format)); |
| | | } |
| | | // 根据reserveRecordId判断是否是第二条填报记录 |
| | | if (!reserveRecordId.equals(userAnswers.getReserveRecordId())) { |
| | | reserveSubId = 0L; |
| | | |
| | | if (isOldDuo) { |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | isOldDuo = false; |
| | | } |
| | | userData.add(0, " "); |
| | | userData.add(1, " "); |
| | | userData.add(2, " "); |
| | | userData.add(28, " "); |
| | | resultList.add(userData); |
| | | userData = new ArrayList<>(); |
| | | reserveRecordId = userAnswers.getReserveRecordId(); |
| | | // userData.add(userAnswers.getNickName()); |
| | | // userData.add(DateUtils.format(userAnswers.getTime(), DateUtils.ymdhms_format)); |
| | | if (StringUtils.isNotEmpty(userAnswers.getAnswerContent())) { |
| | | userData.add(userAnswers.getAnswerContent()); |
| | | } else { |
| | | userData.add(" "); |
| | | } |
| | | } else { |
| | | if (reserveSubId.equals(0L)) { |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | } |
| | | |
| | | if (!reserveSubId.equals(userAnswers.getReserveSubId())) { |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | |
| | | // 如果是承诺字段则不导出 |
| | | if (StringUtils.isNotEmpty(userAnswers.getAnswerContent()) |
| | | && userAnswers.getAnswerContent().contains(noExport)) { |
| | | continue; |
| | | } |
| | | |
| | | // 判断当前的组件类型是否是图片上传,导出时需要导出图片 |
| | | if (userAnswers.getOptionType().equals(11)) { |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | if (StringUtils.isNotEmpty(userAnswers.getAnswerContent())) { |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | // userData.add(new |
| | | // File("/workspace/minio/data/files/"+userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf("files/")+6))); |
| | | } else { |
| | | userData.add(" "); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!" + "/workspace/minio/data/files/" + userAnswers.getAnswerContent() |
| | | .substring(userAnswers.getAnswerContent().indexOf("files/") + 6)); |
| | | } |
| | | continue; |
| | | } |
| | | // 如果是多选 |
| | | if (userAnswers.getOptionType().equals(1)) { |
| | | List<String> selectionList = |
| | | communityService.subjectSelectionListAdmin(userAnswers.getReserveSubId()); |
| | | List<String> completionList = |
| | | automaticDataCompletion(selectionList, userAnswers.getAnswerContent()); |
| | | userData.addAll(completionList); |
| | | continue; |
| | | } |
| | | // 如果是单选 |
| | | if (userAnswers.getOptionType().equals(0)) { |
| | | if (userAnswers.getAnswerContent().equals("男") |
| | | || userAnswers.getAnswerContent().equals("女")) { |
| | | |
| | | } else { |
| | | List<String> completionList = |
| | | automaticDataCompletion(null, userAnswers.getAnswerContent()); |
| | | userData.addAll(completionList); |
| | | continue; |
| | | } |
| | | } |
| | | // 判断当前组件类型是否签名 |
| | | if (userAnswers.getOptionType().equals(12)) { |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent() |
| | | .substring(userAnswers.getAnswerContent().indexOf(",") + 1))); |
| | | } catch (Exception e) { |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | | if (userAnswers.getOptionType().equals(1)) { |
| | | isOldDuo = true; |
| | | sb.append( |
| | | userAnswers.getAnswerContent() == null ? "无" : userAnswers.getAnswerContent() + ","); |
| | | continue; |
| | | } else { |
| | | if (isOldDuo) { |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | isOldDuo = false; |
| | | } |
| | | sb.append(userAnswers.getAnswerContent() == null ? "无" : userAnswers.getAnswerContent() + ","); |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } else { |
| | | // 如果是承诺字段则不导出 |
| | | if (StringUtils.isNotEmpty(userAnswers.getAnswerContent()) |
| | | && userAnswers.getAnswerContent().contains(noExport)) { |
| | | continue; |
| | | } |
| | | // 判断当前的组件类型是否是图片上传,导出时需要导出图片 |
| | | if (userAnswers.getOptionType().equals(11)) { |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(new URL(userAnswers.getAnswerContent())); |
| | | } catch (Exception e) { |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | // 如果是多选 |
| | | if (userAnswers.getOptionType().equals(1)) { |
| | | List<String> selectionList = |
| | | communityService.subjectSelectionListAdmin(userAnswers.getReserveSubId()); |
| | | List<String> completionList = |
| | | automaticDataCompletion(selectionList, userAnswers.getAnswerContent()); |
| | | userData.addAll(completionList); |
| | | continue; |
| | | } |
| | | // 如果是单选 |
| | | if (userAnswers.getOptionType().equals(0)) { |
| | | if (userAnswers.getAnswerContent().equals("男") |
| | | || userAnswers.getAnswerContent().equals("女")) { |
| | | |
| | | } else { |
| | | List<String> completionList = |
| | | automaticDataCompletion(null, userAnswers.getAnswerContent()); |
| | | userData.addAll(completionList); |
| | | continue; |
| | | } |
| | | } |
| | | // 判断当前组件类型是否签名 |
| | | if (userAnswers.getOptionType().equals(12)) { |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | // userData.add(new |
| | | // URL("http://image.panzhihua.nhys.cdnhxx.com//idcard/967dbdef3ef3465a9169fbea204f9aa7.jpg")); |
| | | userData.add(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent() |
| | | .substring(userAnswers.getAnswerContent().indexOf(",") + 1))); |
| | | } catch (Exception e) { |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | | } |
| | | continue; |
| | | } |
| | | if (userAnswers.getOptionType().equals(1)) { |
| | | isOldDuo = true; |
| | | sb.append( |
| | | userAnswers.getAnswerContent() == null ? "无" : userAnswers.getAnswerContent() + ","); |
| | | continue; |
| | | } else { |
| | | if (isOldDuo) { |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | isOldDuo = false; |
| | | } |
| | | sb.append(userAnswers.getAnswerContent() == null ? "无" : userAnswers.getAnswerContent() + ","); |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | } |
| | | } |
| | | if (isOldDuo) { |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | } |
| | | |
| | | userData.add(0, " "); |
| | | userData.add(1, " "); |
| | | userData.add(2, " "); |
| | | userData.add(28, " "); |
| | | resultList.add(userData); |
| | | } |
| | | return resultList; |
| | | } |
| | | } |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | |
| | | @Slf4j |
| | | @Api(tags = {"社区动态分类模块"}) |
| | | @RestController |
| | |
| | | @ApiOperation(value = "分页查询社区动态列表", response = ComActDynTypeVO.class) |
| | | @PostMapping("/page") |
| | | public R page(@RequestBody PageComActDynTypeDTO comActDynTypeDTO) { |
| | | Long communityId = this.getCommunityId(); |
| | | comActDynTypeDTO.setCommunityId(communityId); |
| | | if (isNull(comActDynTypeDTO.getCommunityId())) { |
| | | comActDynTypeDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.pageDynTypeByAdmin(comActDynTypeDTO); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "党员积分前3", response = BigScreenActivityTop.class) |
| | | @GetMapping("/partyActivityTop") |
| | | public R partyActivityTop(){ |
| | | return communityService.partyActivityTop(this.getCommunityId()); |
| | | @PostMapping("/partyActivityTop") |
| | | public R partyActivityTop(@RequestBody PageBigScreenStatisticPartyOrg pageBigScreenStatisticPartyOrg){ |
| | | pageBigScreenStatisticPartyOrg.setCommunityId(this.getCommunityId()); |
| | | return communityService.partyActivityTop(pageBigScreenStatisticPartyOrg); |
| | | } |
| | | } |
| | |
| | | package com.panzhihua.community_backstage.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import static java.util.Objects.isNull; |
| | | |
| | | import cn.hutool.http.HttpUtil; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActActivityVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenResidentActStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenVolunteerActStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventGridIncidentStatisticsVO; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.constants.HttpConstant; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.event.ScreenDrawEventListDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.event.ScreenEventListDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PagePopularMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenStatisticPartyOrg; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.WestScreenStatics; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingComPbDynVO; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.model.vos.community.ComActDynVO; |
| | | import com.panzhihua.common.model.vos.community.ComActEasyPhotoVO; |
| | | import com.panzhihua.common.model.vos.community.ComActMicroWishVO; |
| | | import com.panzhihua.common.model.vos.community.ComActQuestnaireVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenCommunityStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenDynStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenEasyPhotoStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenMerchantStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenMicroWishStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenNeighborStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenQuestionnaireStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenServiceData; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenServiceUser; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenStatisticPartyOrg; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.GridsGovernanceStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.IndexInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.ResidentAutonomyStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.WestScreenStatics; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.*; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleAdminVO; |
| | | import com.panzhihua.common.utlis.HttpClientUtil; |
| | | import com.panzhihua.common.utlis.HttpUtils; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.event.ScreenDrawEventListDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.event.ScreenEventListDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.screen.civil.CivilStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.*; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventComprehensiveGovernanceStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventGridMemberVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventGridStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventListVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventNewStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventPopulationStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventPopulationStreetVO; |
| | | import com.panzhihua.common.model.vos.community.screen.event.EventStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.screen.index.IndexStatisticsVO; |
| | | import com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleAdminVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingComPbDynVO; |
| | | import com.panzhihua.common.model.vos.community.switchs.StreetAllAppletsVO; |
| | | import com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleAdminVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingComPbDynVO; |
| | | import com.panzhihua.common.model.vos.screen.ScreenDrawEventPopulationTotalVO; |
| | | import com.panzhihua.common.model.vos.screen.ScreenDrawEventVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.grid.GridService; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.HttpClientUtil; |
| | | import com.panzhihua.common.utlis.HttpUtils; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | |
| | | @Slf4j |
| | | @Api(tags = {"大屏统计数据模块"}) |
| | |
| | | @ApiOperation(value = "首页二级页面-社区动态展示列表", response = ComActDynVO.class) |
| | | @PostMapping("/index/dynList") |
| | | public R indexDynList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | if (isNull(pageBaseDTO.getCommunityId())) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.indexDynList(pageBaseDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "首页二级页面-邻里圈展示列表", response = ComActNeighborCircleAdminVO.class) |
| | | @PostMapping("/index/neighborList") |
| | | public R indexNeighborList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | if (isNull(pageBaseDTO.getCommunityId())) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.indexNeighborList(pageBaseDTO); |
| | | } |
| | | |
| | |
| | | return R.fail(401, "请先登录"); |
| | | } |
| | | pagePopularMerchantDTO.setCommunityId(communityId); |
| | | pagePopularMerchantDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.getScreenPopularMerchants(pagePopularMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-居民活动 |
| | | */ |
| | | @ApiOperation(value = "首页二级页面-居民活动", response = BigScreenResidentActStatisticsInfo.class) |
| | | @GetMapping("/index/residentAct") |
| | | public R indexResidentAct() { |
| | | return communityService.indexResidentAct(this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-居民活动展示列表 |
| | | */ |
| | | @ApiOperation(value = "首页二级页面-居民活动展示列表", response = ComActActivityVO.class) |
| | | @PostMapping("/index/residentActList") |
| | | public R indexResidentActList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | if (isNull(pageBaseDTO.getCommunityId())) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.indexResidentActList(pageBaseDTO); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-志愿者活动 |
| | | */ |
| | | @ApiOperation(value = "首页二级页面-志愿者活动", response = BigScreenVolunteerActStatisticsInfo.class) |
| | | @GetMapping("/index/volunteerAct") |
| | | public R indexVolunteerAct() { |
| | | return communityService.indexVolunteerAct(this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-志愿者活动展示列表 |
| | | */ |
| | | @ApiOperation(value = "首页二级页面-志愿者活动展示列表", response = ComActActivityVO.class) |
| | | @PostMapping("/index/volunteerActList") |
| | | public R indexVolunteerActList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | if (isNull(pageBaseDTO.getCommunityId())) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.indexVolunteerActList(pageBaseDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有社区", response = StreetAllAppletsVO.class) |
| | | @GetMapping("/list/act") |
| | | public R list() { |
| | | return communityService.communitySwitchList(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "清网治格-根据事件分类获取近1月的社区事件数据", response = EventGridIncidentStatisticsVO.class) |
| | | @ApiImplicitParam(name = "type", value = "事件状态(1治安防控、2民生服务、3矛盾劝解、4不稳定因素、5突发事件报告、6特殊人群服务、9防灾减灾、10其他", required = true) |
| | | @GetMapping("/event/list") |
| | | public R getEventList(@RequestParam(value = "type") Integer type) { |
| | | return communityService.getEventList(type, this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "清网治格-社区事件数据分页", response = EventGridIncidentStatisticsVO.class) |
| | | @PostMapping("/event/page") |
| | | public R pageEventList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | if (isNull(pageBaseDTO.getCommunityId())) { |
| | | pageBaseDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.pageEventList(pageBaseDTO); |
| | | } |
| | | @ApiOperation(value = "河门口大屏首页", response = BigScreenHmkBaseInfo.class) |
| | | @PostMapping("/hmk/baseInfo") |
| | | public R getHmkBaseInfo(@RequestBody CommonPage commonPage){ |
| | |
| | | return communityService.pageBuildingAdmin(pageBuildingListDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据小区id查询楼栋列表") |
| | | @GetMapping("/getBuildList") |
| | | public R getBuildListByVillageId(@RequestParam(value = "villageId") Long villageId) { |
| | | return communityService.getBuildListByVillageId(villageId); |
| | | } |
| | | |
| | | @ApiOperation(value = "楼栋列表表头统计", response = BuildingListHeaderStatisticsAdminVo.class) |
| | | @GetMapping("/header/statistics") |
| | | public R headerStatistics() { |
| | |
| | | |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.net.URL; |
| | | import java.net.URLConnection; |
| | | import java.util.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActReserveCommitVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.HomeQuarantineRegisterExportVO; |
| | | import com.panzhihua.community_backstage.util.MyAESUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.apache.poi.ss.usermodel.BorderStyle; |
| | | import org.apache.poi.ss.usermodel.HorizontalAlignment; |
| | | import org.apache.poi.ss.usermodel.VerticalAlignment; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.thymeleaf.TemplateEngine; |
| | | import org.thymeleaf.context.Context; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.enums.ReserveRecordStatusEnum; |
| | | import com.panzhihua.common.model.dtos.community.QuestnaireAnswersDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.AddReserveAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.CancelReserveRecordDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.ComActReserveMakeStatisticsDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.ComActReserveRegisterStatisticsDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.EditComActReserveInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.EditComActReserveStatusDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.EditReserveAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.MakeHandleAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.PageReserveAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.PageReserveMakeAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.PageReserveMakeHandleAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.PageReserveRegisterDetailedAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.*; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActQuestnaireSubVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveListAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeDetailAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeDetailedExcelAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeHandleExcelAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeHandleListAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeListAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeRightExcelAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeRightStatisticsAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeStatisticsAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterDetailedVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterExcelAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterStatisticsAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveSubListVO; |
| | | import com.panzhihua.common.model.vos.community.ComActReserveCommitVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.*; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.AssemblyUtils; |
| | | import com.panzhihua.common.utlis.HomeQuarantineUtil; |
| | | import com.panzhihua.common.utlis.ForEachUtils; |
| | | import com.panzhihua.common.utlis.SFTPUtil; |
| | | import com.panzhihua.community_backstage.aop.RenheAssemblyUtils; |
| | | import com.panzhihua.community_backstage.config.SFTPConfig; |
| | | import com.panzhihua.community_backstage.excel.CustemSecondhandler; |
| | | import com.panzhihua.community_backstage.excel.Custemhandler; |
| | | import com.panzhihua.community_backstage.excel.CustomSheetWriteHandler; |
| | | import com.panzhihua.community_backstage.util.HtmlToPdfUtil; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @RestController |
| | | @RequestMapping("/reserve") |
| | | public class ComActReserveApi extends BaseController { |
| | | private static final String key="nahankeji1234567"; |
| | | private static final String key = "nahankeji1234567"; |
| | | |
| | | @Value("${minio.url}") |
| | | private String minioUrl; |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | |
| | | private UserService userService; |
| | | @Resource |
| | | private SFTPConfig sftpConfig; |
| | | @Resource |
| | | private TemplateEngine templateEngine; |
| | | @Resource |
| | | private RenheAssemblyUtils assemblyUtils; |
| | | |
| | | @ApiOperation(value = "分页查询预约登记列表", response = ComActReserveListAdminVO.class) |
| | | @PostMapping("/page") |
| | | public R page(@RequestBody PageReserveAdminDTO pageReserveDTO) { |
| | | if(pageReserveDTO.getCommunityId()==null){ |
| | | if (pageReserveDTO.getCommunityId() == null) { |
| | | Long communityId = this.getCommunityId(); |
| | | pageReserveDTO.setCommunityId(communityId); |
| | | } |
| | | pageReserveDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageReserveAdmin(pageReserveDTO); |
| | | } |
| | | |
| | |
| | | R r = communityService.makeStatisticsExportAdmin(makeStatisticsDTO); |
| | | if (R.isOk(r)) { |
| | | List<ComActReserveMakeRightExcelAdminVO> resultList = new ArrayList<>(); |
| | | List<ComActReserveMakeRightStatisticsAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeRightStatisticsAdminVO.class); |
| | | List<ComActReserveMakeRightStatisticsAdminVO> rightStatisticsList = JSONArray |
| | | .parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeRightStatisticsAdminVO.class); |
| | | rightStatisticsList.forEach(rightStatistics -> { |
| | | ComActReserveMakeRightExcelAdminVO makeRightExcelAdminVO = new ComActReserveMakeRightExcelAdminVO(); |
| | | BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); |
| | | resultList.add(makeRightExcelAdminVO); |
| | | }); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComActReserveMakeRightExcelAdminVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("预约登记统计汇总导出数据").build(); |
| | | excelWriter.write(resultList, writeSheet); |
| | | excelWriter.finish(); |
| | |
| | | R r = communityService.exportMakeAdmin(pageMakeDTO); |
| | | if (R.isOk(r)) { |
| | | List<ComActReserveMakeDetailedExcelAdminVO> resultList = new ArrayList<>(); |
| | | List<ComActReserveMakeListAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeListAdminVO.class); |
| | | List<ComActReserveMakeListAdminVO> rightStatisticsList = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeListAdminVO.class); |
| | | rightStatisticsList.forEach(rightStatistics -> { |
| | | ComActReserveMakeDetailedExcelAdminVO makeRightExcelAdminVO = new ComActReserveMakeDetailedExcelAdminVO(); |
| | | ComActReserveMakeDetailedExcelAdminVO makeRightExcelAdminVO = |
| | | new ComActReserveMakeDetailedExcelAdminVO(); |
| | | BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); |
| | | resultList.add(makeRightExcelAdminVO); |
| | | }); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComActReserveMakeDetailedExcelAdminVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("预约明细导出数据").build(); |
| | | excelWriter.write(resultList, writeSheet); |
| | | excelWriter.finish(); |
| | |
| | | R r = communityService.registerStatisticsExportAdmin(registerStatisticsDTO); |
| | | if (R.isOk(r)) { |
| | | List<ComActReserveRegisterExcelAdminVO> resultList = new ArrayList<>(); |
| | | List<ComActReserveRegisterStatisticsAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveRegisterStatisticsAdminVO.class); |
| | | List<ComActReserveRegisterStatisticsAdminVO> rightStatisticsList = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveRegisterStatisticsAdminVO.class); |
| | | rightStatisticsList.forEach(rightStatistics -> { |
| | | ComActReserveRegisterExcelAdminVO makeRightExcelAdminVO = new ComActReserveRegisterExcelAdminVO(); |
| | | BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); |
| | | resultList.add(makeRightExcelAdminVO); |
| | | }); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComActReserveRegisterExcelAdminVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("登记统计汇总导出数据").build(); |
| | | excelWriter.write(resultList, writeSheet); |
| | | excelWriter.finish(); |
| | |
| | | return R.fail("请先登录"); |
| | | } |
| | | makeHandleDTO.setUserId(loginUserInfo.getUserId()); |
| | | makeHandleDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.makeHandleAdmin(makeHandleDTO); |
| | | } |
| | | |
| | |
| | | R r = communityService.exportMakeHandleAdmin(pageMakeHandleDTO); |
| | | if (R.isOk(r)) { |
| | | List<ComActReserveMakeHandleExcelAdminVO> resultList = new ArrayList<>(); |
| | | List<ComActReserveMakeHandleListAdminVO> rightStatisticsList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeHandleListAdminVO.class); |
| | | List<ComActReserveMakeHandleListAdminVO> rightStatisticsList = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActReserveMakeHandleListAdminVO.class); |
| | | rightStatisticsList.forEach(rightStatistics -> { |
| | | ComActReserveMakeHandleExcelAdminVO makeRightExcelAdminVO = new ComActReserveMakeHandleExcelAdminVO(); |
| | | BeanUtils.copyProperties(rightStatistics, makeRightExcelAdminVO); |
| | |
| | | resultList.add(makeRightExcelAdminVO); |
| | | }); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComActReserveMakeHandleExcelAdminVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("预约处理列表导出数据").build(); |
| | | excelWriter.write(resultList, writeSheet); |
| | | excelWriter.finish(); |
| | |
| | | @ApiOperation(value = "导出登记明细") |
| | | @PostMapping("/register/list/export") |
| | | public R exportRegister(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | if (loginUserInfo == null) { |
| | | return R.fail("请先登录"); |
| | | } |
| | | String regionCode = communityService.getActBelongRegionCode(loginUserInfo.getCommunityId()); |
| | | if (regionCode.equals("510411")) { |
| | | ComActReserveDetailAdminVO reserverRecord = |
| | | communityService.detailReserveAdmin(pageReserveRegisterDetailedAdminDTO.getReserveId()).getData(); |
| | | if (reserverRecord.getTitle().equals("返攀登记")) { |
| | | return renheExportRegister(pageReserveRegisterDetailedAdminDTO); |
| | | } |
| | | } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "登记明细导出数据.xlsx"; |
| | | String noHaed = "承诺"; |
| | |
| | | head1.add("登记时间"); |
| | | headList.add(head1); |
| | | subVOList.forEach(sub -> { |
| | | if (sub.getType() != 5 && sub.getType() != 11) { |
| | | if (sub.getType() != 5) { |
| | | List<String> headn = new ArrayList<>(); |
| | | headn.add(firstRowContent); |
| | | if(!sub.getContent().equals(noHaed)){ |
| | | if(!sub.getContent().equals(noHaed)&& StringUtils.isNotEmpty(sub.getContent())){ |
| | | if(sub.getType() == 11){ |
| | | headn.add(sub.getContent().substring(0, sub.getContent().indexOf("("))); |
| | | if(sub.getContent().contains("(")){ |
| | | headn.add(sub.getContent().substring(0, sub.getContent().indexOf("("))); |
| | | } |
| | | else { |
| | | headn.add(sub.getContent()); |
| | | } |
| | | }else{ |
| | | headn.add(sub.getContent()); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "导出居家隔离统计") |
| | | @PostMapping("/register/list/export/homeQuarantine") |
| | | public R exportRegisterHomeQuarantineStatistics(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO) { |
| | | String name= "居家隔离统计表.xlsx"; |
| | | @ApiOperation(value = "导出登记明细不带图片") |
| | | @PostMapping("/register/list/exportNoImage") |
| | | public R exportRegisterNoImage(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | if (loginUserInfo == null) { |
| | | return R.fail("请先登录"); |
| | | } |
| | | String regionCode = communityService.getActBelongRegionCode(loginUserInfo.getCommunityId()); |
| | | if (regionCode.equals("510411")) { |
| | | ComActReserveDetailAdminVO reserverRecord = |
| | | communityService.detailReserveAdmin(pageReserveRegisterDetailedAdminDTO.getReserveId()).getData(); |
| | | if (reserverRecord.getTitle().equals("返攀登记")) { |
| | | return renheExportRegister(pageReserveRegisterDetailedAdminDTO); |
| | | } |
| | | } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "登记明细导出数据.xlsx"; |
| | | String noHaed = "承诺"; |
| | | List<List<Object>> datalist = new ArrayList<>(); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | sftp.login(); |
| | |
| | | * 组合导出数据 |
| | | * 用户问卷答案 |
| | | */ |
| | | R exportResultR = communityService.exportHomeQuarantine(pageReserveRegisterDetailedAdminDTO); |
| | | HomeQuarantineRegisterExportVO exportVO = JSON.parseObject(JSON.toJSONString(exportResultR.getData()), HomeQuarantineRegisterExportVO.class); |
| | | List<ComActQuestnaireSubVO> subVOList = exportVO.getSubs(); |
| | | R QuestnaireAnswersDTOR = communityService.exportRegisterAdmin(pageReserveRegisterDetailedAdminDTO); |
| | | QuestnaireAnswersDTO questnaireAnswersDTOS = JSON.parseObject(JSON.toJSONString(QuestnaireAnswersDTOR.getData()), QuestnaireAnswersDTO.class); |
| | | |
| | | List<ComActQuestnaireSubVO> subVOList = questnaireAnswersDTOS.getSubs(); |
| | | //构造表头 |
| | | List<List<String>> headList = new ArrayList<List<String>>(); |
| | | String firstRowContent = "重点地区或高风险地区来攀返攀人员信息统计表(居家隔离表)"; |
| | | String firstRowContent = "登记明细"; |
| | | List<String> head0 = new ArrayList<>(); |
| | | head0.add(firstRowContent); |
| | | head0.add("登记人昵称"); |
| | |
| | | head1.add("登记时间"); |
| | | headList.add(head1); |
| | | subVOList.forEach(sub -> { |
| | | if (sub.getType() != 5 && sub.getType() != 11 && !sub.getContent().contains("今日上午") && |
| | | !sub.getContent().contains("今日下午") && !sub.getContent().contains("今日隔离情况")) { |
| | | if (sub.getType() != 5&&sub.getType() != 11) { |
| | | List<String> headn = new ArrayList<>(); |
| | | headn.add(firstRowContent); |
| | | if(!sub.getContent().equals(noHaed)){ |
| | | if(!sub.getContent().equals(noHaed)&& StringUtils.isNotEmpty(sub.getContent())){ |
| | | if(sub.getType() == 11){ |
| | | headn.add(sub.getContent().substring(0, sub.getContent().indexOf("("))); |
| | | if(sub.getContent().contains("(")){ |
| | | headn.add(sub.getContent().substring(0, sub.getContent().indexOf("("))); |
| | | } |
| | | else { |
| | | headn.add(sub.getContent()); |
| | | } |
| | | }else{ |
| | | headn.add(sub.getContent()); |
| | | } |
| | |
| | | } |
| | | } |
| | | }); |
| | | List<String> head2 = new ArrayList<>(); |
| | | head2.add(firstRowContent); |
| | | head2.add("隔离体温情况"); |
| | | headList.add(head2); |
| | | //数据转换 |
| | | datalist = exportVO.getDataList(); |
| | | List<List<Object>> datalist = AssemblyUtils.ReserveDataNoImage(questnaireAnswersDTOS.getAnswers()); |
| | | |
| | | WriteCellStyle headWriteCellStyle = new WriteCellStyle(); |
| | | //设置头居中 |
| | | headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | |
| | | WriteFont writeFont = new WriteFont(); |
| | | writeFont.setFontHeightInPoints((short)6); |
| | | //设置 水平居中 |
| | | contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.LEFT); |
| | | contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | //设置 垂直居中 |
| | | contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER); |
| | | contentWriteCellStyle.setWriteFont(writeFont); |
| | |
| | | |
| | | |
| | | excelWriter = EasyExcel.write(fileName) |
| | | .registerWriteHandler(horizontalCellStyleStrategy).registerWriteHandler(new CustemSecondhandler()) |
| | | .build(); |
| | | .registerWriteHandler(horizontalCellStyleStrategy).registerWriteHandler(new Custemhandler()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("登记明细导出数据").head(headList).build(); |
| | | excelWriter.write(datalist, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(sftpConfig.getExcelUrl() + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 仁和区离攀返攀特别定制excel方法。对于其他区不适用。 |
| | | * |
| | | * @param pageReserveRegisterDetailedAdminDTO |
| | | * @return |
| | | */ |
| | | public R renheExportRegister(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO) { |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "仁和区入攀返攀人员信息统计表模板.xlsx"; |
| | | String noHaed = "承诺"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | /** |
| | | * 组合导出数据 用户问卷答案new FileInputStream |
| | | */ |
| | | R QuestnaireAnswersDTOR = communityService.exportRegisterAdmin(pageReserveRegisterDetailedAdminDTO); |
| | | QuestnaireAnswersDTO questnaireAnswersDTOS = JSON |
| | | .parseObject(JSON.toJSONString(QuestnaireAnswersDTOR.getData()), QuestnaireAnswersDTO.class); |
| | | // 数据转换 |
| | | List<List<Object>> datalist = assemblyUtils.ReserveData(questnaireAnswersDTOS.getAnswers()); |
| | | ForEachUtils.forEach(0, datalist, (index, data) -> { |
| | | data.set(0, index + 1); |
| | | ForEachUtils.forEach(1, data, (indexitem, item) -> { |
| | | if (indexitem == 18 && item.equals("√")) { |
| | | String number = "√ /".concat(data.get(20).toString()); |
| | | data.set(18, number); |
| | | } |
| | | }); |
| | | data.remove(20); |
| | | }); |
| | | WriteCellStyle headWriteCellStyle = new WriteCellStyle(); |
| | | // 设置头居中 |
| | | headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | // 设置头字体 |
| | | WriteFont headWriteFont = new WriteFont(); |
| | | headWriteFont.setFontHeightInPoints((short)8); |
| | | headWriteFont.setBold(true); |
| | | headWriteCellStyle.setWriteFont(headWriteFont); |
| | | |
| | | WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); |
| | | // 设置表格内容字体 |
| | | WriteFont writeFont = new WriteFont(); |
| | | writeFont.setFontHeightInPoints((short)11); |
| | | // 设置 水平居中 |
| | | contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | // 设置 垂直居中 |
| | | contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER); |
| | | contentWriteCellStyle.setWriteFont(writeFont); |
| | | // 设置边框 |
| | | // 下边框 |
| | | contentWriteCellStyle.setBorderBottom(BorderStyle.THIN); |
| | | // 左边框 |
| | | contentWriteCellStyle.setBorderLeft(BorderStyle.THIN); |
| | | // 上边框 |
| | | contentWriteCellStyle.setBorderTop(BorderStyle.THIN); |
| | | // 右边框 |
| | | contentWriteCellStyle.setBorderRight(BorderStyle.THIN); |
| | | contentWriteCellStyle.setWrapped(true); |
| | | HorizontalCellStyleStrategy horizontalCellStyleStrategy = |
| | | new HorizontalCellStyleStrategy(headWriteCellStyle, contentWriteCellStyle); |
| | | |
| | | URL url = new URL(minioUrl.replace("files/", "web/excel/仁和区入攀返攀人员信息统计表.xlsx")); |
| | | // 打开连接 |
| | | URLConnection con = url.openConnection(); |
| | | // 输入流 |
| | | InputStream is = con.getInputStream(); |
| | | excelWriter = EasyExcel.write(fileName).withTemplate(is) |
| | | .registerWriteHandler(horizontalCellStyleStrategy).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("登记明细导出数据").build(); |
| | | writeSheet.setRelativeHeadRowIndex(0); |
| | | excelWriter.write(datalist, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(sftpConfig.getExcelUrl() + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | @ApiOperation(value = "导出居家隔离统计") |
| | | @PostMapping("/register/list/export/homeQuarantine") |
| | | public R exportRegisterHomeQuarantineStatistics( |
| | | @RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO) { |
| | | String name = "居家隔离统计表.xlsx"; |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String noHaed = "承诺"; |
| | | List<List<Object>> datalist = new ArrayList<>(); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | /** |
| | | * 组合导出数据 用户问卷答案 |
| | | */ |
| | | R exportResultR = communityService.exportHomeQuarantine(pageReserveRegisterDetailedAdminDTO); |
| | | HomeQuarantineRegisterExportVO exportVO = JSON |
| | | .parseObject(JSON.toJSONString(exportResultR.getData()), HomeQuarantineRegisterExportVO.class); |
| | | List<ComActQuestnaireSubVO> subVOList = exportVO.getSubs(); |
| | | // 构造表头 |
| | | List<List<String>> headList = new ArrayList<List<String>>(); |
| | | String firstRowContent = "重点地区或高风险地区来攀返攀人员信息统计表(居家隔离表)"; |
| | | List<String> head0 = new ArrayList<>(); |
| | | head0.add(firstRowContent); |
| | | head0.add("登记人昵称"); |
| | | headList.add(head0); |
| | | List<String> head1 = new ArrayList<>(); |
| | | head1.add(firstRowContent); |
| | | head1.add("登记时间"); |
| | | headList.add(head1); |
| | | subVOList.forEach(sub -> { |
| | | if (sub.getType() != 5 && sub.getType() != 11 && !sub.getContent().contains("今日上午") |
| | | && !sub.getContent().contains("今日下午") && !sub.getContent().contains("今日隔离情况")) { |
| | | List<String> headn = new ArrayList<>(); |
| | | headn.add(firstRowContent); |
| | | if (!sub.getContent().equals(noHaed)) { |
| | | if (sub.getType() == 11) { |
| | | headn.add(sub.getContent().substring(0, sub.getContent().indexOf("("))); |
| | | } else { |
| | | headn.add(sub.getContent()); |
| | | } |
| | | headList.add(headn); |
| | | } |
| | | } |
| | | }); |
| | | List<String> head2 = new ArrayList<>(); |
| | | head2.add(firstRowContent); |
| | | head2.add("隔离体温情况"); |
| | | headList.add(head2); |
| | | // 数据转换 |
| | | datalist = exportVO.getDataList(); |
| | | WriteCellStyle headWriteCellStyle = new WriteCellStyle(); |
| | | // 设置头居中 |
| | | headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | // 设置头字体 |
| | | WriteFont headWriteFont = new WriteFont(); |
| | | headWriteFont.setFontHeightInPoints((short)6); |
| | | headWriteFont.setBold(true); |
| | | headWriteCellStyle.setWriteFont(headWriteFont); |
| | | |
| | | WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); |
| | | // 设置表格内容字体 |
| | | WriteFont writeFont = new WriteFont(); |
| | | writeFont.setFontHeightInPoints((short)6); |
| | | // 设置 水平居中 |
| | | contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.LEFT); |
| | | // 设置 垂直居中 |
| | | contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER); |
| | | contentWriteCellStyle.setWriteFont(writeFont); |
| | | |
| | | contentWriteCellStyle.setWrapped(true); |
| | | HorizontalCellStyleStrategy horizontalCellStyleStrategy = |
| | | new HorizontalCellStyleStrategy(headWriteCellStyle, contentWriteCellStyle); |
| | | |
| | | excelWriter = EasyExcel.write(fileName).registerWriteHandler(horizontalCellStyleStrategy) |
| | | .registerWriteHandler(new CustemSecondhandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("居家隔离统计表").head(headList).build(); |
| | | excelWriter.write(datalist, writeSheet); |
| | | excelWriter.finish(); |
| | |
| | | return communityService.registerDetailedListAdmin(detailedAdminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出登记明细列表", response = ComActReserveRegisterDetailedVO.class) |
| | | @PostMapping("/register/detailed/list/export") |
| | | public R registerDetailedListExport(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO) { |
| | | R r = communityService.registerDetailedListAdminExport(detailedAdminDTO); |
| | | if (r.getData() != null) { |
| | | List<ReservePdfExportVO> reservePdfExportVOS = (List<ReservePdfExportVO>)r.getData(); |
| | | if (!reservePdfExportVOS.isEmpty() && reservePdfExportVOS.size() <= 100) { |
| | | String name = "承诺书.pdf"; |
| | | String uuid = UUID.randomUUID().toString().replace("-", ""); |
| | | String ftpUrl = "/mnt/data/web/excel/" + uuid + "/"; |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), |
| | | sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | Map<String, Object> model = new HashMap<>(); |
| | | model.put("reservePdfExportVOS", reservePdfExportVOS); |
| | | Context ctx = new Context(); |
| | | ctx.setVariables(model); |
| | | String htmlcontext = null; |
| | | if (detailedAdminDTO.getPdfType() == 1) { |
| | | htmlcontext = templateEngine.process("/gasSafety", ctx); |
| | | } |
| | | if (detailedAdminDTO.getPdfType() == 2) { |
| | | htmlcontext = templateEngine.process("/forestFire", ctx); |
| | | } |
| | | InputStream inputStream = null; |
| | | try { |
| | | HtmlToPdfUtil.topdf(htmlcontext, fileName); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除pdf【{}】结果【{}】", absolutePath, delete); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | try { |
| | | inputStream.close(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return R.ok(sftpConfig.getExcelUrl() + uuid + "/" + name); |
| | | } |
| | | } |
| | | return R.ok(null, "当前数据量太大,请根据筛选条件优化到100条以内"); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询登记明细详情", response = ComActReserveRegisterDetailedVO.class) |
| | | @PostMapping("/register/detailed/detail") |
| | | public R registerDetailedDetail(@RequestParam("reserveRecordId") Long reserveRecordId) { |
| | |
| | | |
| | | @ApiOperation("对外用户提交数据") |
| | | @PostMapping("/commit/noToken") |
| | | public R commitNoToken(@RequestBody ComActReserveCommitVO comActReserveCommitVO){ |
| | | public R commitNoToken(@RequestBody ComActReserveCommitVO comActReserveCommitVO) { |
| | | return communityService.reserveCommitNoToken(comActReserveCommitVO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询西区社区列表") |
| | | @GetMapping("/westList/noToken") |
| | | public R getWestCommunityLists() { |
| | | return communityService.getWestCommunityLists(); |
| | | return communityService.getWestCommunityLists(null); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除预约登记记录") |
| | | @GetMapping("/record/delete") |
| | | public R deleteRecord(@RequestParam("recordId") Long recordId) { |
| | | return communityService.deleteRecord(recordId); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.community_backstage.api; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | import static org.apache.commons.lang3.StringUtils.isNotBlank; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.enums.PresetPictureType; |
| | | import com.panzhihua.common.listen.ComFmsServiceImportExcelListen; |
| | | import com.panzhihua.common.listen.ComFmsTeamMemberImportExcelListen; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApprovalFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.DeleteTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsEventAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageTeamMemberDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActPictureLibraryVO; |
| | | import com.panzhihua.common.model.vos.community.fms.CascadeCommVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsClassroomVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceImportMistakeExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberExportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberImportMistakeExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamTypeVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamVO; |
| | | import com.panzhihua.common.model.vos.community.fms.FmsClassroomTopStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.fms.FmsEventTopStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.fms.FmsEventVO; |
| | | import com.panzhihua.common.model.vos.community.fms.FmsServiceTopStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.fms.TeamMemberTopStatisticsVO; |
| | | import com.panzhihua.common.model.vos.grid.EventDetailsVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.grid.GridService; |
| | | import com.panzhihua.common.utlis.DateUtils; |
| | | import com.panzhihua.common.utlis.SFTPUtil; |
| | | import com.panzhihua.common.utlis.ValidateUtils; |
| | | import com.panzhihua.community_backstage.excel.CustomSheetWriteHandler; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @title: ComFmsApi |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务相关接口 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:23 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"五微服务"}) |
| | | @RestController |
| | | @RequestMapping("/fms") |
| | | public class ComFmsApi extends BaseController { |
| | | |
| | | // FTP 登录用户名 |
| | | @Value("${ftp.username}") |
| | | private String userName; |
| | | // FTP 登录密码 |
| | | @Value("${ftp.password}") |
| | | private String password; |
| | | // FTP 服务器地址IP地址 |
| | | @Value("${ftp.host}") |
| | | private String host; |
| | | // FTP 端口 |
| | | @Value("${ftp.port}") |
| | | private int port; |
| | | @Value("${ftp.url}") |
| | | private String url; |
| | | @Value("${excel.userurl}") |
| | | private String excelUrl; |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | @Resource |
| | | private GridService gridService; |
| | | |
| | | @ApiOperation("新增团队类型") |
| | | @PostMapping("/teamType/add") |
| | | public R addFmsTeamType(@RequestBody @Valid AddTeamTypeDTO addTeamTypeDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | addTeamTypeDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | addTeamTypeDTO.setCreatedBy(loginUserInfo.getUserId()); |
| | | addTeamTypeDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.addFmsTeamType(addTeamTypeDTO); |
| | | } |
| | | |
| | | @ApiOperation("修改团队类型") |
| | | @PostMapping("/teamType/edit") |
| | | public R editFmsTeamType(@RequestBody @Valid EditTeamTypeDTO editTeamTypeDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | editTeamTypeDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | editTeamTypeDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.editFmsTeamType(editTeamTypeDTO); |
| | | } |
| | | |
| | | @ApiOperation("删除团队类型") |
| | | @ApiImplicitParam(name = "teamTypeId", value = "团队类型id", required = true) |
| | | @DeleteMapping("/teamType/delete") |
| | | public R deleteFmsTeamType(@RequestParam("teamTypeId") Long teamTypeId) { |
| | | return communityService.deleteFmsTeamType(teamTypeId, this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取团队类型列表", response = ComFmsTeamTypeVO.class) |
| | | @GetMapping("/teamType/list") |
| | | public R listFmsTeamType() { |
| | | return communityService.listFmsTeamType(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation("新增团队") |
| | | @PostMapping("/team/add") |
| | | public R addFmsTeam(@RequestBody @Valid AddTeamDTO addTeamDTO) { |
| | | if (isNotBlank(addTeamDTO.getPhone()) && !ValidateUtils.assertPhoneIsValid(addTeamDTO.getPhone())) { |
| | | return R.fail("手机号格式错误"); |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | addTeamDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | addTeamDTO.setCreatedBy(loginUserInfo.getUserId()); |
| | | addTeamDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.addFmsTeam(addTeamDTO); |
| | | } |
| | | |
| | | @ApiOperation("修改团队信息") |
| | | @PostMapping("/team/edit") |
| | | public R editFmsTeam(@RequestBody @Valid EditTeamDTO editTeamDTO) { |
| | | if (isNotBlank(editTeamDTO.getPhone()) && !ValidateUtils.assertPhoneIsValid(editTeamDTO.getPhone())) { |
| | | return R.fail("手机号格式错误"); |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | editTeamDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | editTeamDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.editFmsTeam(editTeamDTO); |
| | | } |
| | | |
| | | @ApiOperation("删除团队") |
| | | @ApiImplicitParam(name = "teamId", value = "团队id", required = true) |
| | | @DeleteMapping("/team/delete") |
| | | public R deleteFmsTeam(@RequestParam("teamId") Long teamId) { |
| | | return communityService.deleteFmsTeam(teamId); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取团队列表", response = ComFmsTeamVO.class) |
| | | @ApiImplicitParam(name = "teamTypeId", value = "团队类型id", required = true) |
| | | @GetMapping("/team/list") |
| | | public R listFmsTeam(@RequestParam("teamTypeId") Long teamTypeId) { |
| | | return communityService.listFmsTeam(teamTypeId); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取团队详情", response = ComFmsTeamVO.class) |
| | | @ApiImplicitParam(name = "teamId", value = "团队id", required = true) |
| | | @GetMapping("/team/detail") |
| | | public R detailFmsTeam(@RequestParam("teamId") Long teamId) { |
| | | return communityService.detailFmsTeam(teamId); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "级联查询团队数据", response = CascadeCommVO.class) |
| | | @GetMapping("/team/cascade") |
| | | public R retrieveFmsTeamCascade() { |
| | | return communityService.retrieveFmsTeamCascade(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation("新增团队成员") |
| | | @PostMapping("/teamMember/add") |
| | | public R addFmsTeamMember(@RequestBody @Valid AddTeamMemberDTO addTeamMemberDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | addTeamMemberDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | addTeamMemberDTO.setCreatedBy(loginUserInfo.getUserId()); |
| | | addTeamMemberDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.addFmsTeamMember(addTeamMemberDTO); |
| | | } |
| | | |
| | | @ApiOperation("编辑团队成员") |
| | | @PostMapping("/teamMember/edit") |
| | | public R editFmsTeamMember(@RequestBody @Valid EditTeamMemberDTO editTeamMemberDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | editTeamMemberDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | editTeamMemberDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.editFmsTeamMember(editTeamMemberDTO); |
| | | } |
| | | |
| | | @ApiOperation("删除团队成员") |
| | | @PostMapping("/teamMember/delete") |
| | | public R deleteFmsTeamMember(@RequestBody @Valid DeleteTeamMemberDTO deleteTeamMemberDTO) { |
| | | deleteTeamMemberDTO.setCommunityId(this.getCommunityId()); |
| | | return communityService.deleteFmsTeamMember(deleteTeamMemberDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询团队成员", response = ComFmsTeamMemberVO.class) |
| | | @PostMapping("/teamMember/page") |
| | | public R pageFmsTeamMember(@RequestBody @Valid PageTeamMemberDTO pageTeamMemberDTO) { |
| | | pageTeamMemberDTO.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageFmsTeamMember(pageTeamMemberDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微团队顶部统计", response = TeamMemberTopStatisticsVO.class) |
| | | @GetMapping("/teamMember/statistics") |
| | | public R statisticsFmsTeamMember() { |
| | | return communityService.statisticsFmsTeamMember(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载团队成员导入模板") |
| | | @GetMapping("/teamMember/template") |
| | | public R getTeamMemberTemplate() { |
| | | // 生成动态模板excel通过ftp工具上传到主节点,然后返回模板下载地址 |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "团队成员导入模板.xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | List<List<String>> list = new ArrayList<>(); |
| | | list = headDataFilling(); |
| | | EasyExcel.write(fileName).head(list).sheet("团队成员导入模板").doWrite(null); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(excelUrl + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "excel导入团队成员") |
| | | @PostMapping(value = "/teamMember/import", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R importTeamMember(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | // 获取文件名 |
| | | String fileName = file.getOriginalFilename(); |
| | | log.info("传入文件名字【{}】", fileName); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | ComFmsTeamMemberImportExcelListen comFmsTeamMemberImportExcelListen = new ComFmsTeamMemberImportExcelListen( |
| | | communityService, this.getCommunityId(), this.getLoginUserInfo().getUserId(), stringRedisTemplate); |
| | | EasyExcel.read(inputStream, null, comFmsTeamMemberImportExcelListen).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | log.error("导入失败【{}】", e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出团队成员") |
| | | @PostMapping(value = "/teamMember/export") |
| | | public R exportTeamMember(@RequestBody PageTeamMemberDTO pageTeamMemberDTO) { |
| | | Long communityId = this.getLoginUserInfo().getCommunityId(); |
| | | pageTeamMemberDTO.setCommunityId(communityId); |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String nowDate = DateUtils.getCurrentDateString(); |
| | | String name = "团队成员导出数据" + nowDate + ".xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | R r = communityService.exportTeamMember(pageTeamMemberDTO); |
| | | List<ComFmsTeamMemberExportExcelVO> list = new ArrayList<>(); |
| | | if (R.isOk(r)) { |
| | | list = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComFmsTeamMemberExportExcelVO.class); |
| | | } |
| | | excelWriter = EasyExcel.write(fileName, ComFmsTeamMemberExportExcelVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("团队成员导出数据").build(); |
| | | excelWriter.write(list, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(excelUrl + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("后台新增微服务") |
| | | @PostMapping("/service/add") |
| | | public R addFmsService(@RequestBody @Valid AddFmsServiceAdminDTO adminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | adminDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | adminDTO.setCreatedBy(loginUserInfo.getUserId()); |
| | | adminDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.addFmsServiceAdmin(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "后台分页查询微服务", response = ComFmsServiceVO.class) |
| | | @PostMapping("/service/page") |
| | | public R pageFmsService(@RequestBody @Valid PageFmsServiceAdminDTO adminDTO) { |
| | | adminDTO.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageFmsServiceAdmin(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation("后台核实微服务") |
| | | @PostMapping("/service/approval") |
| | | public R approvalFmsService(@RequestBody @Valid ApprovalFmsServiceAdminDTO adminDTO) { |
| | | if (adminDTO.getIsPass() && isNull(adminDTO.getMemberId())) { |
| | | return R.fail("未分配服务人员"); |
| | | } |
| | | adminDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.approvalFmsService(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "级联查询团队服务人员", response = CascadeCommVO.class) |
| | | @GetMapping("/teamMember/cascade") |
| | | public R retrieveFmsTeamMemberCascade() { |
| | | return communityService.retrieveFmsTeamMemberCascade(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "后台查看微服务详情", response = ComFmsServiceVO.class) |
| | | @ApiImplicitParam(name = "serviceId", value = "服务id", required = true) |
| | | @GetMapping("/service/detail") |
| | | public R detailFmsService(@RequestParam("serviceId") Long serviceId) { |
| | | return communityService.detailFmsServiceAdmin(serviceId); |
| | | } |
| | | |
| | | @ApiOperation(value = "后台删除微服务") |
| | | @ApiImplicitParam(name = "serviceId", value = "服务id", required = true) |
| | | @DeleteMapping("/service/delete") |
| | | public R deleteFmsService(@RequestParam("serviceId") Long serviceId) { |
| | | return communityService.deleteFmsServiceAdmin(serviceId); |
| | | } |
| | | |
| | | @ApiOperation(value = "微服务顶部统计", response = FmsServiceTopStatisticsVO.class) |
| | | @GetMapping("/service/statistics") |
| | | public R statisticsFmsService() { |
| | | return communityService.statisticsFmsService(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载微服务导入模板") |
| | | @GetMapping("/service/template") |
| | | public R getServiceTemplate() { |
| | | // 生成动态模板excel通过ftp工具上传到主节点,然后返回模板下载地址 |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "微服务导入模板.xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | List<List<String>> list = new ArrayList<>(); |
| | | list = fmsServiceHeadDataFilling(); |
| | | EasyExcel.write(fileName).head(list).sheet("微服务导入模板").doWrite(null); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(excelUrl + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "excel导入微服务") |
| | | @PostMapping(value = "/service/import", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R importFmsService(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | // 获取文件名 |
| | | String fileName = file.getOriginalFilename(); |
| | | log.info("传入文件名字【{}】", fileName); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | ComFmsServiceImportExcelListen fmsServiceImportExcelListen = new ComFmsServiceImportExcelListen( |
| | | communityService, this.getCommunityId(), this.getLoginUserInfo().getUserId(), stringRedisTemplate); |
| | | EasyExcel.read(inputStream, null, fmsServiceImportExcelListen).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | log.error("导入失败【{}】", e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation("后台新增微讲堂") |
| | | @PostMapping("/classroom/add") |
| | | public R addFmsClassroom(@RequestBody @Valid AddFmsClassroomAdminDTO adminDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | adminDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | adminDTO.setCreatedBy(loginUserInfo.getUserId()); |
| | | adminDTO.setUpdatedBy(loginUserInfo.getUserId()); |
| | | return communityService.addFmsClassroom(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation("后台编辑微讲堂") |
| | | @PostMapping("/classroom/edit") |
| | | public R editFmsClassroom(@RequestBody @Valid EditFmsClassroomAdminDTO adminDTO) { |
| | | adminDTO.setUpdatedBy(this.getUserId()); |
| | | return communityService.editFmsClassroom(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation("后台删除微讲堂") |
| | | @ApiImplicitParam(name = "id", value = "微讲堂id", required = true) |
| | | @DeleteMapping("/classroom/delete") |
| | | public R deleteFmsClassroom(@RequestParam("id") Long id) { |
| | | return communityService.deleteFmsClassroom(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "后台获取微讲堂详情", response = ComFmsClassroomVO.class) |
| | | @ApiImplicitParam(name = "id", value = "微讲堂id", required = true) |
| | | @GetMapping("/classroom/detail") |
| | | public R detailFmsClassroom(@RequestParam("id") Long id) { |
| | | return communityService.detailFmsClassroom(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "后台分页查询微讲堂", response = ComFmsClassroomVO.class) |
| | | @PostMapping("/classroom/page") |
| | | public R pageFmsClassroom(@RequestBody @Valid PageFmsClassroomAdminDTO adminDTO) { |
| | | adminDTO.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageFmsClassroomAdmin(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微讲堂顶部统计", response = FmsClassroomTopStatisticsVO.class) |
| | | @GetMapping("/classroom/statistics") |
| | | public R statisticsFmsClassroom() { |
| | | return communityService.statisticsFmsClassroom(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取预设图库",response = ComActPictureLibraryVO.class) |
| | | @GetMapping("/picture/library") |
| | | public R getPresetPictureLibrary() { |
| | | return communityService.getPresetPictureLibrary(PresetPictureType.FMS_CLASSROOM, 0); |
| | | } |
| | | |
| | | @ApiOperation(value = "后台分页查询微调节/微防控", response = FmsEventVO.class) |
| | | @PostMapping("/event/page") |
| | | public R pageFmsEvent(@RequestBody @Valid PageFmsEventAdminDTO adminDTO) { |
| | | adminDTO.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageFmsEvent(adminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "微调节/微防控顶部统计", response = FmsEventTopStatisticsVO.class) |
| | | @ApiImplicitParam(name = "type", value = "查询类型(1.微调节数据2.微防控数)", required = true) |
| | | @GetMapping("/event/statistics") |
| | | public R statisticsFmsEvent(@RequestParam("type") Integer type) { |
| | | return communityService.statisticsFmsEvent(type, this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "微调节/微防控事件详情", response = EventDetailsVO.class) |
| | | @ApiImplicitParam(name = "eventId", value = "事件id", required = true) |
| | | @GetMapping("/event/detail") |
| | | public R detailFmsEvent(@RequestParam("eventId") Long eventId) { |
| | | return gridService.eventDetails(eventId); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载导入错误数据") |
| | | @PostMapping("/download/import/error") |
| | | public R downloadErrorAuthRecord(@RequestParam(value = "key") String key) { |
| | | String baseName = "导入错误数据"; |
| | | Class clazz = null; |
| | | if (key.contains(Constants.FMS_MEMBER_ERROR_LIST)) { |
| | | baseName = "团队成员导入错误数据"; |
| | | clazz = ComFmsTeamMemberImportMistakeExcelVO.class; |
| | | } else if (key.contains(Constants.FMS_SERVICE_ERROR_LIST)) { |
| | | baseName = "微服务导入错误数据"; |
| | | clazz = ComFmsServiceImportMistakeExcelVO.class; |
| | | } |
| | | List list = new ArrayList<>(); |
| | | Boolean isExits = stringRedisTemplate.hasKey(key); |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | if (isExits) { |
| | | String json = valueOperations.get(key); |
| | | list = JSONArray.parseArray(json, clazz); |
| | | } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String nowDate = DateUtils.getCurrentDateString(); |
| | | String name = baseName + nowDate + ".xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, clazz) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet(baseName).build(); |
| | | excelWriter.write(list, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(excelUrl + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "手动触发微服务自动评价定时任务") |
| | | @PostMapping("/service/timeJob") |
| | | public R timeJobFmsService() { |
| | | return communityService.timedTaskFmsServiceDefaultPraise(); |
| | | } |
| | | |
| | | /** |
| | | * 表头构建 |
| | | * @return 表头数据 |
| | | */ |
| | | private List<List<String>> headDataFilling() { |
| | | List<List<String>> list = new ArrayList<List<String>>(); |
| | | List<String> head0 = new ArrayList<String>(); |
| | | head0.add("团队类型"); |
| | | List<String> head1 = new ArrayList<String>(); |
| | | head1.add("团队名称"); |
| | | List<String> head2 = new ArrayList<String>(); |
| | | head2.add("团队成员"); |
| | | List<String> head3 = new ArrayList<String>(); |
| | | head3.add("身份证号(非必填)"); |
| | | List<String> head4 = new ArrayList<String>(); |
| | | head4.add("联系电话"); |
| | | list.add(head0); |
| | | list.add(head1); |
| | | list.add(head2); |
| | | list.add(head3); |
| | | list.add(head4); |
| | | return list; |
| | | } |
| | | |
| | | private List<List<String>> fmsServiceHeadDataFilling() { |
| | | List<List<String>> list = new ArrayList<List<String>>(); |
| | | List<String> head0 = new ArrayList<String>(); |
| | | head0.add("服务用户"); |
| | | List<String> head1 = new ArrayList<String>(); |
| | | head1.add("联系电话"); |
| | | List<String> head2 = new ArrayList<String>(); |
| | | head2.add("服务时间"); |
| | | List<String> head3 = new ArrayList<String>(); |
| | | head3.add("服务内容"); |
| | | List<String> head4 = new ArrayList<String>(); |
| | | head4.add("服务过程"); |
| | | list.add(head0); |
| | | list.add(head1); |
| | | list.add(head2); |
| | | list.add(head3); |
| | | list.add(head4); |
| | | return list; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.community_backstage.api; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.listen.ComMngPopulationServeExcelListen; |
| | | import com.panzhihua.common.listen.ComPbCheckUnitExcelListen; |
| | | import com.panzhihua.common.model.dtos.FtpConfig; |
| | | import com.panzhihua.common.model.dtos.common.AddComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import com.panzhihua.common.service.partybuilding.ComPbCheckUnitFeign; |
| | | import com.panzhihua.common.utlis.DateUtils; |
| | | import com.panzhihua.common.utlis.SFTPUtil; |
| | | import com.panzhihua.community_backstage.config.SFTPConfig; |
| | | import com.panzhihua.community_backstage.excel.CustomSheetWriteHandler; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * title: 党建-报到单位(ComPbCheckUnit) 控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 党建-报到单位 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | |
| | | @Slf4j |
| | | @Api(tags = {"党建-报到单位"}) |
| | | @RestController |
| | | @RequestMapping("/checkUnit") |
| | | public class ComPbCheckUnitApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComPbCheckUnitFeign comPbCheckUnitService; |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | @Resource |
| | | private SFTPConfig sftpConfig; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "分页查询报道单位", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | return this.comPbCheckUnitService.queryByPage(comPbCheckUnit); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "新增报道单位") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | comPbCheckUnit.setCreateBy(this.getUserId()); |
| | | comPbCheckUnit.setCreateAt(new Date()); |
| | | return this.comPbCheckUnitService.insert(comPbCheckUnit); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "编辑报道单位") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | comPbCheckUnit.setUpdateBy(this.getUserId()); |
| | | comPbCheckUnit.setUpdateAt(new Date()); |
| | | return this.comPbCheckUnitService.update(comPbCheckUnit); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "删除报道单位") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comPbCheckUnitService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "查询报道单位", response = ComPbCheckUnitVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comPbCheckUnitService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comPbCheckUnit 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:18 |
| | | */ |
| | | @ApiOperation(value = "查询报道单位列表", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | return this.comPbCheckUnitService.queryByList(comPbCheckUnit); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量新增党员报道单位导入excel") |
| | | @PostMapping(value = "/import", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R downloadTemplate(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | log.info("传入文件名字【{}】", file.getOriginalFilename()); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | EasyExcel.read(inputStream, null, |
| | | new ComPbCheckUnitExcelListen(comPbCheckUnitService,this.getCommunityId(),this.getUserId(),stringRedisTemplate)).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | log.error("导入模板失败【{}】", e.getMessage()); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载导入失败党员报道单位数据") |
| | | @GetMapping("/download/error/populationDrug") |
| | | public R downloadErrorDrugPopulation(@RequestParam(value = "key") String key) { |
| | | List<ComPbCheckUnitErrorExcelVO> list = new ArrayList<>(); |
| | | Boolean isExits = stringRedisTemplate.hasKey(key); |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | if (isExits) { |
| | | String json = valueOperations.get(key); |
| | | list = JSONArray.parseArray(json, ComPbCheckUnitErrorExcelVO.class); |
| | | } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String nowDate = DateUtils.getCurrentDateString(); |
| | | String name = "党员报道单位错误数据" + nowDate + ".xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComPbCheckUnitErrorExcelVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("党员报道单位错误数据").build(); |
| | | excelWriter.write(list, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(sftpConfig.getExcelUrl() + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "党员双报到单位-下载模板") |
| | | @GetMapping("/export/elder") |
| | | public R exportElder() { |
| | | return R.ok(sftpConfig.getExcelUrl() + "党员双报到单位导入模板.xlsx"); |
| | | } |
| | | } |
| | |
| | | @ApiOperation(value = "分页查询所有数据",response = ComPropertyVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | commonPage.setParamId(this.getCommunityId()); |
| | | return this.propertyService.comPropertyHelpSelectAll(commonPage); |
| | | } |
| | | |
| | |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | } |
| | | comSwPatrolRecordPageDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pagePatrolRecord(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | } |
| | | if(StringUtils.isNotEmpty(this.getAreaCode())){ |
| | | comSwPatrolRecordPageDTO.setAreaCode(this.getAreaCode()); |
| | | } |
| | | return communityService.pageSafetyWorkRecord(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | } |
| | | comSwPatrolRecordPageDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.pageDangerReport(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | import javax.validation.Valid; |
| | | |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityTypeVO; |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | if (R.isOk(r2)) { |
| | | log.info("新增取消社区活动通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); |
| | | } |
| | | |
| | | R<SysTemplateConfigVO> r4=userService.selectTemplate(this.getAreaCode(),3); |
| | | // 取消社区活动推送订阅消息给用户 |
| | | WxUtil.sendSubscribeHDQX(activitySignVO1.getOpenid(), accessToken, |
| | | comActActivityVO.getActivityName(), |
| | | DateUtils.format(comActActivityVO.getBeginAt(), DateUtils.ymdhms_format)); |
| | | DateUtils.format(comActActivityVO.getBeginAt(), DateUtils.ymdhms_format),r4.getData().getTemplateId()); |
| | | }); |
| | | } catch (Exception e) { |
| | | log.error("新增取消社区活动通知失败,错误原因:" + e.getMessage()); |
| | |
| | | @ApiOperation(value = "查询西区社区列表") |
| | | @GetMapping("community/westList") |
| | | public R getWestCommunityLists() { |
| | | return communityService.getWestCommunityLists(); |
| | | return communityService.getWestCommunityLists(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "随手拍详情", response = ComActEasyPhotoVO.class) |
| | |
| | | result = result.substring(0, 4); |
| | | result += "…"; |
| | | } |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),4); |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAppAccessToken(), "微心愿", |
| | | DateUtils.format(comActMicroWishVO1.getExamineAt(), DateUtils.ymdhms_format), |
| | | result); |
| | | result,sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | if (R.isOk(userResult)) { |
| | | String openid = userResult.getData().toString(); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),4); |
| | | try { |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAppAccessToken(), "微心愿", |
| | | DateUtils.format(comActMicroWishVO1.getExamineAt(), DateUtils.ymdhms_format), |
| | | "审核通过"); |
| | | "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | if(comActEasyPhotoVO.getHandlerId() == null){ |
| | | comActEasyPhotoVO.setHandlerId(userId); |
| | | } |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),4); |
| | | R r = communityService.putEasypHotoStatus(comActEasyPhotoVO); |
| | | if (R.isOk(r)) { |
| | | R r1 = communityService.detailEasyPhoto(id, userId); |
| | |
| | | result += "…"; |
| | | } |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAppAccessToken(), "随手拍", |
| | | DateUtils.format(comActEasyPhotoVO1.getExamineAt(), DateUtils.ymdhms_format), result); |
| | | DateUtils.format(comActEasyPhotoVO1.getExamineAt(), DateUtils.ymdhms_format), result,sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAppAccessToken(), "随手拍", |
| | | DateUtils.format(comActEasyPhotoVO1.getExamineAt(), DateUtils.ymdhms_format), "审核通过"); |
| | | DateUtils.format(comActEasyPhotoVO1.getExamineAt(), DateUtils.ymdhms_format), "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | @PostMapping("grantReward") |
| | | public R grantReward(@Valid @RequestBody GrantRewardDTO grantRewardDTO) { |
| | | grantRewardDTO.setUserId(this.getUserId()); |
| | | grantRewardDTO.setAreaCode(this.getAreaCode()); |
| | | if (grantRewardDTO.getAmount() == null || grantRewardDTO.getAmount().compareTo(BigDecimal.ZERO) < -1) { |
| | | return R.fail("您输入的发放金额有误"); |
| | | } |
| | |
| | | @ApiOperation(value = "随手拍分类列表", response = ComActEasyPhotoClassifyVO.class) |
| | | @GetMapping("easyphoto/classify/list") |
| | | public R easyPhotoClassifyList() { |
| | | return communityService.listPhotoClassify(); |
| | | return communityService.listPhotoClassify(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "随手拍切换公示状态", response = ComActEasyPhotoClassifyVO.class) |
| | |
| | | |
| | | @ApiOperation(value = "查询微心愿处理人列表接口") |
| | | @GetMapping("wish/handle/list") |
| | | @ApiImplicitParam(name = "type", value = "处理人类型(1.后台用户 2.党员 3.志愿者)", required = true) |
| | | @ApiImplicitParam(name = "type", value = "处理人类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)", required = true) |
| | | public R wishHandleListAdmin(@RequestParam("type") Integer type) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | if (loginUserInfo == null) { |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "获取活动类型(目前只有志愿者活动需要获取)", response = ComActActivityTypeVO.class) |
| | | @ApiImplicitParam(name = "type", value = "活动类型(1.志愿者 2.居民 3.党员)", required = true) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "type", value = "活动类型(1.志愿者 2.居民 3.党员)", required = true), |
| | | @ApiImplicitParam(name = "communityId", value = "社区id", required = false) |
| | | }) |
| | | @GetMapping("activity/type/list") |
| | | public R listActivityType(@RequestParam("type") Integer type) { |
| | | return communityService.listActivityType(getCommunityId(), type); |
| | | public R listActivityType(@RequestParam("type") Integer type, |
| | | @RequestParam(value = "communityId", required = false) Long communityId) { |
| | | if (isNull(communityId)) { |
| | | communityId = getCommunityId(); |
| | | } |
| | | return communityService.listActivityType(communityId, type); |
| | | } |
| | | |
| | | |
| | |
| | | @ApiOperation(value = "社区下拉列表", response = ComActVO.class) |
| | | @GetMapping("/community") |
| | | public R listCommunity() { |
| | | return communityService.listCommunityAll(); |
| | | return communityService.listCommunityAll(this.getAreaCode()); |
| | | } |
| | | |
| | | @Deprecated |
| | |
| | | @ApiOperation(value = "所有服务分类", response = ConvenientServiceCategoryVO.class) |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return communityService.getAllServiceCategories(); |
| | | return communityService.getAllServiceCategories(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "便民服务商家导出") |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | |
| | | if (R.isOk(userResult)) { |
| | | String openid = userResult.getData().toString(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),5); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | | WxUtil.sendSubscribeRZSH(openid, util.getAppAccessToken(), "志愿者认证", |
| | | DateUtils.format(comMngVolunteerMngVO1.getCreateAt(), DateUtils.ymdhms_format), "审核通过"); |
| | | DateUtils.format(comMngVolunteerMngVO1.getCreateAt(), DateUtils.ymdhms_format), "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | |
| | | if (R.isOk(userResult)) { |
| | | String openid = userResult.getData().toString(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),5); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | | WxUtil.sendSubscribeRZSH(openid, util.getAppAccessToken(), "志愿者认证", |
| | | DateUtils.format(comMngVolunteerMngVO1.getCreateAt(), DateUtils.ymdhms_format), |
| | | "审核驳回,驳回原因:" + comMngVolunteerMngVO1.getRejectReson()); |
| | | "审核驳回,驳回原因:" + comMngVolunteerMngVO1.getRejectReson(),sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.panzhihua.common.listen.ComPbCheckUnitExcelListen; |
| | | import com.panzhihua.common.listen.ComPbMemberRoleExcelListen; |
| | | import com.panzhihua.common.model.dtos.partybuilding.ComDataStatisticsOrgDto; |
| | | import com.panzhihua.common.model.dtos.partybuilding.PageComDataStatisticsMemberDto; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeRightExcelAdminVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveMakeRightStatisticsAdminVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComDataStatisticsMemberExcelVo; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbMemberRoleErrorExcelVo; |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import com.panzhihua.common.service.partybuilding.ComDataStatisticsFeign; |
| | | import com.panzhihua.community_backstage.config.MinioUtil; |
| | | import com.panzhihua.community_backstage.config.SFTPConfig; |
| | | import org.apache.commons.io.FilenameUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private int port; |
| | | @Value("${ftp.url}") |
| | | private String url; |
| | | @Resource |
| | | private SFTPConfig sftpConfig; |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | @Resource |
| | | private MinioUtil minioUtil; |
| | | @Resource |
| | | private ComDataStatisticsFeign dataStatisticsService; |
| | | |
| | | @ApiOperation(value = "社区所有启用的党组织列表", response = PartyOrganizationVO.class) |
| | | @GetMapping("listpartyorganization") |
| | |
| | | return partyBuildingService.listPartyOrganization(communityId); |
| | | } |
| | | |
| | | @ApiOperation(value = "社区所有党组织列表", response = PartyOrganizationVO.class) |
| | | @ApiOperation(value = "分页查询社区所有党组织列表", response = PartyOrganizationVO.class) |
| | | @PostMapping("listpartyorganizationAll") |
| | | public R listPartyOrganizationAll(@RequestBody PartyOrganizationVO partyOrganizationVO) { |
| | | Long communityId = this.getCommunityId(); |
| | | partyOrganizationVO.setCommunityId(communityId); |
| | | log.info("社区所有党组织社区id【{}】", communityId); |
| | | return partyBuildingService.listPartyOrganizationAll(partyOrganizationVO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询社区所有党组织列表", response = PartyOrganizationVO.class) |
| | | @PostMapping("getPbOrgAllList") |
| | | public R getPbOrgAllList(@RequestBody PartyOrganizationVO partyOrganizationVO) { |
| | | Long communityId = this.getCommunityId(); |
| | | partyOrganizationVO.setCommunityId(communityId); |
| | | log.info("社区所有党组织社区id【{}】", communityId); |
| | | return partyBuildingService.getPbOrgAllList(partyOrganizationVO); |
| | | } |
| | | |
| | | @OperLog(operModul = "党支部管理", operType = 1) |
| | |
| | | public R addPartyCommittee(@RequestBody @Validated(AddGroup.class) PartyCommitteeVO partyCommitteeVO) { |
| | | Long communityId = this.getCommunityId(); |
| | | partyCommitteeVO.setCommunityId(communityId); |
| | | return partyBuildingService.addPartyCommittee(partyCommitteeVO); |
| | | R r = partyBuildingService.addPartyCommittee(partyCommitteeVO); |
| | | if (R.isOk(r)) { |
| | | R r1 = userService.updateUserIsPartymember(partyCommitteeVO.getIdCard()); |
| | | } |
| | | return r; |
| | | } |
| | | |
| | | @OperLog(operModul = "党委管理", operType = 2) |
| | |
| | | R r1 = userService.getUserOpenId(userId); |
| | | if (R.isOk(r1)) { |
| | | String openid = r1.getData().toString(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),5); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | | WxUtil.sendSubscribeRZSH(openid, util.getAppAccessToken(), "党员认证", |
| | | DateUtils.format(vo1.getCreateAt(), DateUtils.ymdhms_format), "审核通过"); |
| | | DateUtils.format(vo1.getCreateAt(), DateUtils.ymdhms_format), "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | R r2 = userService.getUserOpenId(userId); |
| | | if (R.isOk(r2)) { |
| | | String openid = r2.getData().toString(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),5); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | | WxUtil.sendSubscribeRZSH(openid, util.getAppAccessToken(), "党员认证", |
| | | DateUtils.format(vo1.getCreateAt(), DateUtils.ymdhms_format), |
| | | "审核驳回,驳回原因:" + partyBuildingMemberVO.getRefuseReason()); |
| | | "审核驳回,驳回原因:" + partyBuildingMemberVO.getRefuseReason(),sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | return R.ok(urlList); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "党员数据统计-分页查询党员数据",response = ComDataStatisticsMemberVo.class) |
| | | @PostMapping("/dataStatistics/member/page") |
| | | public R pageDataStatisticsMember(@RequestBody PageComDataStatisticsMemberDto statisticsMemberDto) { |
| | | statisticsMemberDto.setCommunityId(this.getCommunityId()); |
| | | return partyBuildingService.pageDataStatisticsMember(statisticsMemberDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "党员数据统计-根据党组织统计数据",response = ComDataStatisticsOrgVo.class) |
| | | @PostMapping("/dataStatistics/org") |
| | | public R getOrgDataStatistics(@RequestBody ComDataStatisticsOrgDto statisticsOrgDto) { |
| | | statisticsOrgDto.setCommunityId(this.getCommunityId()); |
| | | return partyBuildingService.getOrgDataStatistics(statisticsOrgDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "党支部表头数据统计",response = ComDataStatisticsHeaderOrgVo.class) |
| | | @GetMapping("/dataStatistics/header/org") |
| | | public R getHeaderOrgDataStatistics() { |
| | | return partyBuildingService.getHeaderOrgDataStatistics(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "党员数据统计-导出党员数据") |
| | | @PostMapping("/dataStatistics/member/export") |
| | | public R exportDataStatisticsMember(@RequestBody PageComDataStatisticsMemberDto statisticsMemberDto) { |
| | | statisticsMemberDto.setCommunityId(this.getCommunityId()); |
| | | String url = sftpConfig.getExcelUrl(); |
| | | String name = "党员数据统计-党员导出数据.xlsx"; |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | R r = partyBuildingService.exportDataStatisticsMember(statisticsMemberDto); |
| | | if (R.isOk(r)) { |
| | | List<ComDataStatisticsMemberExcelVo> resultList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComDataStatisticsMemberExcelVo.class); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComActReserveMakeRightExcelAdminVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("党员导出数据").build(); |
| | | excelWriter.write(resultList, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(url + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | return r; |
| | | } |
| | | |
| | | @ApiOperation(value = "批量新增党委导入excel") |
| | | @PostMapping(value = "/importPbMemberRole", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R importPbMemberRole(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | log.info("传入文件名字【{}】", file.getOriginalFilename()); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | EasyExcel.read(inputStream, null, |
| | | new ComPbMemberRoleExcelListen(partyBuildingService,this.getCommunityId(),this.getUserId(),stringRedisTemplate)).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | log.error("导入模板失败【{}】", e.getMessage()); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载导入失败党委数据") |
| | | @GetMapping("/download/error/pbMemberRole") |
| | | public R downloadErrorPbMemberRole(@RequestParam(value = "key") String key) { |
| | | List<ComPbMemberRoleErrorExcelVo> list = new ArrayList<>(); |
| | | Boolean isExits = stringRedisTemplate.hasKey(key); |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | if (isExits) { |
| | | String json = valueOperations.get(key); |
| | | list = JSONArray.parseArray(json, ComPbMemberRoleErrorExcelVo.class); |
| | | } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String nowDate = DateUtils.getCurrentDateString(); |
| | | String name = "党委导入错误数据" + nowDate + ".xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComPbMemberRoleErrorExcelVo.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("党委导入错误数据").build(); |
| | | excelWriter.write(list, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(sftpConfig.getExcelUrl() + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "社区党委-下载导入模板") |
| | | @GetMapping("/export/pbMemberRole") |
| | | public R exportElder() { |
| | | return R.ok(sftpConfig.getExcelUrl() + "社区党委导入模板.xlsx"); |
| | | } |
| | | } |
| | |
| | | R addFeedback(@Validated @RequestBody EldersAuthFeedbackAddDTO eldersAuthFeedbackAddDTO) { |
| | | ClazzUtils.setIfStringIsEmpty(eldersAuthFeedbackAddDTO); |
| | | eldersAuthFeedbackAddDTO.setUserId(getUserId()); |
| | | eldersAuthFeedbackAddDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addFeedback(eldersAuthFeedbackAddDTO); |
| | | } |
| | | |
| | |
| | | @PostMapping("/authRecords/examine") |
| | | public R examineElderAuthRecords(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO) { |
| | | comElderAuthRecordVO.setApproverId(this.getUserId()); |
| | | comElderAuthRecordVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.examineElderAuthRecords(comElderAuthRecordVO); |
| | | } |
| | | |
| | |
| | | @PostMapping("/pensionAuthRecords/examine") |
| | | public R examinePensionAuthRecords(@RequestBody ComPensionAuthRecordVO comPensionAuthRecordVO) { |
| | | comPensionAuthRecordVO.setApproverId(this.getUserId()); |
| | | comPensionAuthRecordVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.examinePensionAuthRecords(comPensionAuthRecordVO); |
| | | } |
| | | |
| | |
| | | R addPensionAuthRecordVO(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO){ |
| | | comElderAuthRecordVO.setSubmitUserId(this.getUserId()); |
| | | comElderAuthRecordVO.setCommunityId(this.getCommunityId()); |
| | | comElderAuthRecordVO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addPensionAuthRecordVO(comElderAuthRecordVO); |
| | | } |
| | | |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return R.fail("房屋租售id主键不能为空"); |
| | | } |
| | | R r = communityService.putOpsHouse(comOpsHouseVO); |
| | | |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),4); |
| | | Date nowDate = new Date(); |
| | | //查询用户openid |
| | | R userResult = null; |
| | |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAppAccessToken(), "房屋租售", |
| | | DateUtils.format(nowDate, DateUtils.ymdhms_format), "审核通过"); |
| | | DateUtils.format(nowDate, DateUtils.ymdhms_format), "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | result += "…"; |
| | | } |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAppAccessToken(), "房屋租售", |
| | | DateUtils.format(nowDate, DateUtils.ymdhms_format), result); |
| | | DateUtils.format(nowDate, DateUtils.ymdhms_format), result,sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe |
| | |
| | | @ApiOperation(value = "分页查询邻里圈话题列表", response = ComActNeighborCircleTopicAdminVO.class) |
| | | @PostMapping("pageNeighborTopicByAdmin") |
| | | public R pageNeighborTopicByAdmin(@RequestBody ComActNeighborCircleTopicAdminDTO circleTopicAdminDTO) { |
| | | circleTopicAdminDTO.setCommunityId(this.getCommunityId()); |
| | | if (isNull(circleTopicAdminDTO.getCommunityId())) { |
| | | circleTopicAdminDTO.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return communityService.pageNeighborTopicByAdmin(circleTopicAdminDTO); |
| | | } |
| | | |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | |
| | | } catch (IOException e) { |
| | | log.error("导入模板失败【{}】", e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "excel填充旧数据的人员类型") |
| | | @PostMapping(value = "/history/filled", consumes = "multipart/*", headers = "content-type=multipart/form-date") |
| | | public R filledPopulationPersonType(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | // 获取文件名 |
| | | String fileName = file.getOriginalFilename(); |
| | | log.info("传入文件名字【{}】", fileName); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | ComMngPopulationTempFilledExcelListen excelListen = new ComMngPopulationTempFilledExcelListen( |
| | | communityService, this.getCommunityId(), this.getLoginUserInfo().getUserId(), stringRedisTemplate); |
| | | EasyExcel.read(inputStream, null, excelListen).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | log.error("填充旧数据的人员类型【{}】", e.getMessage()); |
| | | e.printStackTrace(); |
| | | } catch (ServiceException e) { |
| | | log.error("错误数据【{}】", e.getMessage()); |
| | | return downloadErrorPopulation("POPULATION_FILLED_ERROR_LIST"); |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | head27.add("是否居住地(是/否)"); |
| | | |
| | | List<String> head28 = new ArrayList<String>(); |
| | | head28.add("人员类型(户籍人员/留守人员/外地人员/境外人员)"); |
| | | head28.add("人员类型(户籍人口/留守人员/外地人员/境外人员/流动人口/常住人口/暂住人口)"); |
| | | List<String> head29 = new ArrayList<String>(); |
| | | head29.add("国家"); |
| | | List<String> head30 = new ArrayList<String>(); |
| | |
| | | if (StringUtils.isNotEmpty(popul.getBirthday())) { |
| | | populationExcelVo.setAge(AgeUtils.getAgeFromBirthTimes(popul.getBirthday())); |
| | | } |
| | | if (StringUtils.isNumeric(popul.getPersonType())) { |
| | | populationExcelVo.setPersonType(PopulPersonTypeEnum.getCnDescByName(Integer.parseInt(popul.getPersonType()))); |
| | | } |
| | | populationExcelVoList.add(populationExcelVo); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "老人-数据导出") |
| | | @PostMapping("/data/exportOld") |
| | | public R dataExportPopulationOld(@RequestBody ComMngPopulationDTO comMngPopulationVO) { |
| | | // 获取登陆用户 |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | // 获取登陆用户绑定社区id |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | comMngPopulationVO.setActId(communityId); |
| | | // 生成动态模板excel通过ftp工具上传到主节点,然后返回模板下载地址 |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "实有人口数据.xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | List<ComMngPopulationVO> populList = null; |
| | | populList = JSON.parseArray( |
| | | JSON.toJSONString(communityService.exportOld(comMngPopulationVO).getData()), |
| | | ComMngPopulationVO.class); |
| | | List<ComMngPopulationExcelVo> populationExcelVoList = new ArrayList<>(); |
| | | if (populList != null && populList.size() > 0) { |
| | | for (ComMngPopulationVO popul : populList) { |
| | | ComMngPopulationExcelVo populationExcelVo = new ComMngPopulationExcelVo(); |
| | | BeanUtils.copyProperties(popul, populationExcelVo); |
| | | // 设置性别 |
| | | populationExcelVo.setSex(PopulSexEnum.getCnDescByName(popul.getSex())); |
| | | // 设置政治面貌 |
| | | populationExcelVo.setPoliticalOutlook( |
| | | PopulPoliticalOutlookEnum.getCnDescByName(popul.getPoliticalOutlook())); |
| | | // 设置是否租住 |
| | | // populationExcelVo.setIsRent(PopulIsOkEnum.getCnDescByName(popul.getIsRent())); |
| | | // 设置本地或外地 |
| | | populationExcelVo.setOutOrLacal(PopulOutOrLocalEnum.getCnDescByName(popul.getOutOrLocal())); |
| | | // 设置婚姻状况 |
| | | populationExcelVo.setMarriage(PopulMarriageEnum.getCnDescByName(popul.getMarriage())); |
| | | // 设置文化程度 |
| | | populationExcelVo |
| | | .setCultureLevel(PopulCultureLevelEnum.getCnDescByName(popul.getCultureLevel())); |
| | | // 设置年龄 |
| | | if (StringUtils.isNotEmpty(popul.getBirthday())) { |
| | | populationExcelVo.setAge(AgeUtils.getAgeFromBirthTimes(popul.getBirthday())); |
| | | } |
| | | populationExcelVoList.add(populationExcelVo); |
| | | } |
| | | } |
| | | |
| | | excelWriter = EasyExcel.write(fileName, ComMngPopulationExcelVo.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("老人导出数据").build(); |
| | | excelWriter.write(populationExcelVoList, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(excelUrl + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑实有人口_电子档案") |
| | | @PostMapping("/edit/electronicArchives") |
| | | public R editPopulation(@RequestBody UserElectronicFileVO userElectronicFileVO) { |
| | |
| | | @GetMapping("listrolebackstage") |
| | | public R listRoleBackstage(@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize) { |
| | | Long communityId = this.getCommunityId(); |
| | | return userService.listRoleBackstage(communityId,pageNum,pageSize); |
| | | return userService.listRoleBackstage(communityId,pageNum,pageSize,""); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询后台用户", response = AdministratorsUserVO.class) |
New file |
| | |
| | | package com.panzhihua.community_backstage.api; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.listen.ComMngVolunteerExcelListen; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerOrgTeamVo; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerServiceTypeVo; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerSkillVo; |
| | | import com.panzhihua.common.model.vos.common.ComMngVolunteerStatisticsVo; |
| | | import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerErrorExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.DateUtils; |
| | | import com.panzhihua.common.utlis.SFTPUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.community_backstage.config.SFTPConfig; |
| | | import com.panzhihua.community_backstage.excel.CustomSheetWriteHandler; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.core.ValueOperations; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 志愿者模块 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"志愿者模块"}) |
| | | @RestController |
| | | @RequestMapping("/volunteer/") |
| | | public class VolunteerApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | @Resource |
| | | private SFTPConfig sftpConfig; |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | @ApiOperation(value = "分页查询志愿者组织", response = ComMngVolunteerOrgTeamVo.class) |
| | | @PostMapping("/org/page") |
| | | public R pageVolunteerOrgAdmin(@RequestBody PageComMngVolunteerOrgTeamDto orgTeamDto) { |
| | | orgTeamDto.setParentId(0L); |
| | | orgTeamDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询志愿者组织列表", response = ComMngVolunteerOrgTeamVo.class) |
| | | @GetMapping("/org/list") |
| | | public R listVolunteerOrgAdmin() { |
| | | PageComMngVolunteerOrgTeamDto orgTeamDto = new PageComMngVolunteerOrgTeamDto(); |
| | | orgTeamDto.setParentId(0L); |
| | | orgTeamDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.listVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询志愿者组织下队伍列表", response = ComMngVolunteerOrgTeamVo.class) |
| | | @PostMapping("/org/team/page") |
| | | public R pageVolunteerOrgTeamAdmin(@RequestBody PageComMngVolunteerOrgTeamDto orgTeamDto) { |
| | | orgTeamDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增志愿者组织") |
| | | @PostMapping("/org/add") |
| | | public R addVolunteerOrgAdmin(@RequestBody AddComMngVolunteerOrgTeamDto orgTeamDto) { |
| | | if(StringUtils.isEmpty(orgTeamDto.getName())){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | orgTeamDto.setParentId(0L); |
| | | orgTeamDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.addVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增志愿者队伍") |
| | | @PostMapping("/org/team/add") |
| | | public R addVolunteerOrgTeamAdmin(@RequestBody AddComMngVolunteerOrgTeamDto orgTeamDto) { |
| | | if(orgTeamDto.getParentId() == null || orgTeamDto.getServiceTypeId() == null || StringUtils.isEmpty(orgTeamDto.getName())){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | orgTeamDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.addVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑志愿者组织") |
| | | @PostMapping("/org/edit") |
| | | public R editVolunteerOrgAdmin(@RequestBody EditComMngVolunteerOrgTeamDto orgTeamDto) { |
| | | if(StringUtils.isEmpty(orgTeamDto.getName()) || orgTeamDto.getId() == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | return communityService.editVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑志愿者队伍") |
| | | @PostMapping("/org/team/edit") |
| | | public R editVolunteerOrgTeamAdmin(@RequestBody EditComMngVolunteerOrgTeamDto orgTeamDto) { |
| | | if(orgTeamDto.getId() == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | return communityService.editVolunteerOrgAdmin(orgTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除志愿者组织/队伍") |
| | | @GetMapping("/org/delete") |
| | | public R deleteVolunteerOrgAdmin(@RequestParam("id") Long id) { |
| | | if(id == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | return communityService.deleteVolunteerOrgAdmin(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询服务类型", response = ComMngVolunteerOrgTeamVo.class) |
| | | @PostMapping("/service/type/page") |
| | | public R pageServiceTypeAdmin(@RequestBody PageComMngVolunteerServiceTypeDto serviceTypeDto) { |
| | | serviceTypeDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageServiceTypeAdmin(serviceTypeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增服务类型") |
| | | @PostMapping("/service/type/add") |
| | | public R addServiceTypeAdmin(@RequestBody AddComMngVolunteerServiceTypeDto serviceTypeDto) { |
| | | if(StringUtils.isEmpty(serviceTypeDto.getName())){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | serviceTypeDto.setCommunityId(this.getCommunityId()); |
| | | serviceTypeDto.setUserId(this.getUserId()); |
| | | return communityService.addServiceTypeAdmin(serviceTypeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑服务类型") |
| | | @PostMapping("/service/type/edit") |
| | | public R editServiceTypeAdmin(@RequestBody EditComMngVolunteerServiceTypeDto serviceTypeDto) { |
| | | if(StringUtils.isEmpty(serviceTypeDto.getName()) || serviceTypeDto.getId() == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | serviceTypeDto.setUserId(this.getUserId()); |
| | | return communityService.editServiceTypeAdmin(serviceTypeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除志愿者组织/队伍") |
| | | @GetMapping("/service/type/delete") |
| | | public R deleteServiceTypeAdmin(@RequestParam("id") Long id) { |
| | | if(id == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | return communityService.deleteServiceTypeAdmin(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询志愿者技能列表", response = ComMngVolunteerSkillVo.class) |
| | | @PostMapping("/skill/page") |
| | | public R pageVolunteerSkillAdmin(@RequestBody PageComMngVolunteerSkillDto volunteerSkillDto) { |
| | | volunteerSkillDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageVolunteerSkillAdmin(volunteerSkillDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增志愿者技能列表") |
| | | @PostMapping("/skill/add") |
| | | public R addVolunteerSkillAdmin(@RequestBody AddComMngVolunteerSkillDto volunteerSkillDto) { |
| | | if(StringUtils.isEmpty(volunteerSkillDto.getName())){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | volunteerSkillDto.setCommunityId(this.getCommunityId()); |
| | | volunteerSkillDto.setUserId(this.getUserId()); |
| | | return communityService.addVolunteerSkillAdmin(volunteerSkillDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑志愿者技能列表") |
| | | @PostMapping("/skill/edit") |
| | | public R editVolunteerSkillAdmin(@RequestBody EditComMngVolunteerSkillDto volunteerSkillDto) { |
| | | if(StringUtils.isEmpty(volunteerSkillDto.getName()) || volunteerSkillDto.getId() == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | volunteerSkillDto.setUserId(this.getUserId()); |
| | | return communityService.editVolunteerSkillAdmin(volunteerSkillDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除志愿者技能列表") |
| | | @GetMapping("/skill/delete") |
| | | public R deleteVolunteerSkillAdmin(@RequestParam("id") Long id) { |
| | | if(id == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | return communityService.deleteVolunteerSkillAdmin(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询志愿者服务类型列表", response = ComMngVolunteerServiceTypeVo.class) |
| | | @GetMapping("/service/type/list") |
| | | public R listVolunteerServiceTypeAdmin() { |
| | | PageComMngVolunteerServiceTypeDto serviceTypeDto = new PageComMngVolunteerServiceTypeDto(); |
| | | serviceTypeDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.listServiceTypeAdmin(serviceTypeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询志愿者技能列表", response = ComMngVolunteerSkillVo.class) |
| | | @GetMapping("/skill/list") |
| | | public R listVolunteerSkillAdmin() { |
| | | PageComMngVolunteerSkillDto volunteerSkillDto = new PageComMngVolunteerSkillDto(); |
| | | volunteerSkillDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.listVolunteerSkillAdmin(volunteerSkillDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "志愿者组织统计接口", response = ComMngVolunteerStatisticsVo.class) |
| | | @GetMapping("/org/statistics") |
| | | public R statisticsVolunteerOrgAdmin() { |
| | | return communityService.statisticsVolunteerOrgAdmin(this.getCommunityId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "志愿者导入模板下载") |
| | | @GetMapping("/import/template/download") |
| | | public R importTemplateDownload() { |
| | | return R.ok(sftpConfig.getExcelUrl() + "志愿者导入模板.xlsx"); |
| | | } |
| | | |
| | | @ApiOperation(value = "志愿者导入") |
| | | @PostMapping("/import") |
| | | public R importAdmin(@RequestParam MultipartFile file, HttpServletRequest request) { |
| | | // 获取文件名 |
| | | String fileName = file.getOriginalFilename(); |
| | | log.info("传入文件名字【{}】", fileName); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | ComMngVolunteerExcelListen clusterMemberExcelListen = new ComMngVolunteerExcelListen( |
| | | communityService, this.getCommunityId(), this.getUserId(), stringRedisTemplate); |
| | | EasyExcel.read(inputStream, null, clusterMemberExcelListen).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | log.error("导入模板失败【{}】", e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载导入失败志愿者错误数据") |
| | | @PostMapping("/download/error") |
| | | public R downloadErrorDrugPopulation(@RequestParam(value = "key") String key) { |
| | | List<ComMngVolunteerErrorExcelVO> list = new ArrayList<>(); |
| | | Boolean isExits = stringRedisTemplate.hasKey(key); |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | if (isExits) { |
| | | String json = valueOperations.get(key); |
| | | list = JSONArray.parseArray(json, ComMngVolunteerErrorExcelVO.class); |
| | | } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String nowDate = DateUtils.getCurrentDateString(); |
| | | String name = "导入志愿者错误数据" + nowDate + ".xlsx"; |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(sftpConfig.getUserName(), sftpConfig.getPassword(), sftpConfig.getHost(), sftpConfig.getPort()); |
| | | sftp.login(); |
| | | boolean existDir = sftp.isExistDir(ftpUrl + name); |
| | | if (!existDir) { |
| | | String property = System.getProperty("user.dir"); |
| | | String fileName = property + File.separator + name; |
| | | // 这里 需要指定写用哪个class去写 |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | excelWriter = EasyExcel.write(fileName, ComMngVolunteerErrorExcelVO.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("导入志愿者错误数据").build(); |
| | | excelWriter.write(list, writeSheet); |
| | | excelWriter.finish(); |
| | | File file = new File(fileName); |
| | | inputStream = new FileInputStream(file); |
| | | sftp.uploadMore(ftpUrl, name, inputStream); |
| | | sftp.logout(); |
| | | inputStream.close(); |
| | | String absolutePath = file.getAbsolutePath(); |
| | | boolean delete = file.delete(); |
| | | log.info("删除excel【{}】结果【{}】", absolutePath, delete); |
| | | } finally { |
| | | // 千万别忘记finish 会帮忙关闭流 |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | if (excelWriter != null) { |
| | | excelWriter.finish(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(sftpConfig.getExcelUrl() + name); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("文件传输失败【{}】", e.getMessage()); |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.community_backstage.util; |
| | | |
| | | import com.lowagie.text.DocumentException; |
| | | import com.lowagie.text.pdf.BaseFont; |
| | | import org.springframework.util.ResourceUtils; |
| | | import org.xhtmlrenderer.pdf.ITextFontResolver; |
| | | import org.xhtmlrenderer.pdf.ITextRenderer; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.net.URLDecoder; |
| | | |
| | | public class HtmlToPdfUtil { |
| | | public static void topdf(String content,String path) throws DocumentException, FileNotFoundException { |
| | | ITextRenderer renderer = new ITextRenderer(); |
| | | ITextFontResolver fontResolver = renderer.getFontResolver(); |
| | | try { |
| | | //设置字体,否则不支持中文,在html中使用字体,html{ font-family: SimSun;} |
| | | fontResolver.addFont("templates/simsun.ttc", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED); |
| | | } catch (IOException e) { |
| | | // TODO Auto-generated catch block |
| | | e.printStackTrace(); |
| | | } |
| | | renderer.getSharedContext().setReplacedElementFactory(new PdfBase64ImgReplacedElementFactory()); |
| | | renderer.getSharedContext().getTextRenderer().setSmoothingThreshold(0); |
| | | renderer.setDocumentFromString(content); |
| | | renderer.layout(); |
| | | renderer.createPDF(new FileOutputStream(new File(path))); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.community_backstage.util; |
| | | |
| | | import com.lowagie.text.BadElementException; |
| | | import com.lowagie.text.Image; |
| | | import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; |
| | | import org.apache.batik.transcoder.TranscoderException; |
| | | import org.apache.batik.transcoder.TranscoderInput; |
| | | import org.apache.batik.transcoder.TranscoderOutput; |
| | | import org.apache.batik.transcoder.image.PNGTranscoder; |
| | | import org.w3c.dom.Element; |
| | | import org.xhtmlrenderer.extend.FSImage; |
| | | import org.xhtmlrenderer.extend.ReplacedElement; |
| | | import org.xhtmlrenderer.extend.ReplacedElementFactory; |
| | | import org.xhtmlrenderer.extend.UserAgentCallback; |
| | | import org.xhtmlrenderer.layout.LayoutContext; |
| | | import org.xhtmlrenderer.pdf.ITextFSImage; |
| | | import org.xhtmlrenderer.pdf.ITextImageElement; |
| | | import org.xhtmlrenderer.render.BlockBox; |
| | | import org.xhtmlrenderer.simple.extend.FormSubmissionListener; |
| | | |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * @author zzj |
| | | * 图片转换工具 |
| | | */ |
| | | public class PdfBase64ImgReplacedElementFactory implements ReplacedElementFactory { |
| | | |
| | | /** |
| | | * * 实现createReplacedElement 替换html中的Img标签 |
| | | * * |
| | | * * @param c 上下文 |
| | | * * @param box 盒子 |
| | | * * @param uac 回调 |
| | | * * @param cssWidth css宽 |
| | | * * @param cssHeight css高 |
| | | * * @return ReplacedElement |
| | | */ |
| | | @Override |
| | | public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { |
| | | // 遍历所有标签 |
| | | Element e = box.getElement(); |
| | | if (e == null) { |
| | | return null; |
| | | } |
| | | String nodeName = e.getNodeName(); |
| | | // 找到所有img标签 |
| | | if (nodeName.equals("img")) { |
| | | String attribute = e.getAttribute("src"); |
| | | FSImage fsImage; |
| | | try { |
| | | // 生成itext图像 |
| | | fsImage = buildImage(attribute, uac); |
| | | } catch (BadElementException e1) { |
| | | fsImage = null; |
| | | } catch (IOException e1) { |
| | | fsImage = null; |
| | | } |
| | | if (fsImage != null) { |
| | | // 对图像进行缩放 |
| | | if (cssWidth != -1 || cssHeight != -1) { |
| | | fsImage.scale(cssWidth, cssHeight); |
| | | } |
| | | return new ITextImageElement(fsImage); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 编解码base64并生成itext图像 |
| | | */ |
| | | protected FSImage buildImage(String srcAttr, UserAgentCallback uac) throws IOException, |
| | | BadElementException { |
| | | FSImage fiImg = null; |
| | | //图片的src要为src="data:image/jpg;base64,{图片的base64code}"这种base64格式 |
| | | if (srcAttr.toLowerCase().startsWith("data:image/")) { |
| | | String base64Code = srcAttr.substring(srcAttr.indexOf("base64,") + "base64,".length(), srcAttr.length()); |
| | | PNGTranscoder t = new PNGTranscoder(); |
| | | TranscoderInput input = new TranscoderInput(BaseUtils.base64StrToInputStream(base64Code)); |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| | | TranscoderOutput output = new TranscoderOutput(out); |
| | | try { |
| | | t.transcode(input, output); |
| | | } catch (TranscoderException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | out.flush(); |
| | | fiImg = new ITextFSImage(Image.getInstance(out.toByteArray())); |
| | | } else { |
| | | fiImg = uac.getImageResource(srcAttr).getImage(); |
| | | } |
| | | return fiImg; |
| | | } |
| | | |
| | | @Override |
| | | public void reset() { |
| | | } |
| | | |
| | | @Override |
| | | public void remove(Element arg0) { |
| | | } |
| | | |
| | | @Override |
| | | public void setFormSubmissionListener(FormSubmissionListener arg0) { |
| | | } |
| | | } |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> |
| | | |
| | | <head> |
| | | <meta charset="UTF-8" /> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| | | <title>森林防火承诺书</title> |
| | | <style> |
| | | @page { |
| | | size: 210mm 297mm; |
| | | /*设置纸张大小:A4(210mm 297mm)、A3(297mm 420mm) 横向则反过来*/ |
| | | margin: 0.25in; |
| | | padding: 1em; |
| | | |
| | | @top-center { |
| | | content: element(header) |
| | | } |
| | | ; |
| | | } |
| | | </style> |
| | | <style type="text/css"> |
| | | /* reset */ |
| | | * { |
| | | padding: 0; |
| | | margin: 0; |
| | | font-family: 'SimSun'; |
| | | overflow: hidden; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div style="height: 1044px;" th:each="reservePdfExportVO : ${reservePdfExportVOS}"> |
| | | <div style="text-align: center;font-size: 30px;">森林防火承诺书</div> |
| | | <div style="display: flex;align-items: center;align-items: center;"> |
| | | <div style="font-size: 22px;padding: 30px;"> |
| | | <div style="text-indent:2em;line-height: 1.4;">保护森林资源、维护生态安全,是每个公民应尽的义务。为保证在我市林区范围内不发生森林火灾,我自愿做出如下承诺: |
| | | </div> |
| | | <div style="text-indent:2em;line-height: 1.4;">一、严格遵守森林防火法律法规及《禁火令》规定,文明祭祀,在祭祀过程不使用明火、不野外用火。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">二、对家人和朋友进行防火知识宣传,提高大家防火意识。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;"> |
| | | 三、保证做到“五负责”:即个人失火个人负责,学生失火家长负责,小孩失火大人负责,多人失火为首者负责,特殊人群(精神病人、痴呆等人群)失火监护人负责。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">四、不携带任何火种进入林区,不在林区吸烟、烧烤、野炊。擅自在林区内野外用火的,接受200—3000元的罚款。 |
| | | </div> |
| | | <div style="text-indent:2em;line-height: 1.4;"> |
| | | 五、在森林防火区内个人拒绝森林防火检查或者接到森林火灾隐患整改通知书逾期不消除火灾隐患的,接受200元—2000元以下罚款。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">六、造成森林火灾构成犯罪的,除接受赔偿损失、补种树木、罚款等行政处罚外,还要接受司法机关依法追究刑事责任。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">七、一旦发现森林山火,及时报告防火办、社区或街办。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">森林防火电话:12119 5760171</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">社区电话:<span th:text="${reservePdfExportVO.communityPhone}"></span></div> |
| | | <div style="padding-left: 300px;"> |
| | | <div style="width: 300px;"> |
| | | 家庭住址:<span th:text="${reservePdfExportVO.address}"></span></div> |
| | | <div style="width: 300px;">承 诺 人: |
| | | <img style="width: 250px;height: 100px;" th:src="@{${reservePdfExportVO.sign}}" /> |
| | | </div> |
| | | <div style="width: 300px;" >联系电话:<span th:text="${reservePdfExportVO.phone}"></span></div> |
| | | <div style="text-align: right;"> |
| | | <span style="margin-right: 100px;" th:text="${reservePdfExportVO.time}"></span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> |
| | | |
| | | <head> |
| | | <meta charset="UTF-8" /> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| | | <title>关于燃气安全使用的温馨提示</title> |
| | | <style> |
| | | @page { |
| | | size: 210mm 297mm; |
| | | /*设置纸张大小:A4(210mm 297mm)、A3(297mm 420mm) 横向则反过来*/ |
| | | margin: 0.25in; |
| | | padding: 1em; |
| | | |
| | | @top-center { |
| | | content: element(header) |
| | | } |
| | | ; |
| | | } |
| | | </style> |
| | | <style type="text/css"> |
| | | /* reset */ |
| | | * { |
| | | padding: 0; |
| | | margin: 0; |
| | | font-family: 'SimSun'; |
| | | overflow: hidden; |
| | | } |
| | | </style> |
| | | |
| | | </head> |
| | | |
| | | <body> |
| | | <div style="padding-top: 0px; height:1045px; " th:each="reservePdfExportVO : ${reservePdfExportVOS}"> |
| | | <div style="text-align: center;font-size: 30px;">关于燃气安全使用的温馨提示</div> |
| | | <div style="display: flex;align-items: center;align-items: center;"> |
| | | <div style="font-size: 20px;padding: 30px;"> |
| | | <div>各位燃气用户:</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">为了您和社会公众的生命财产安全,在此温馨提示您要关注燃气安全:</div> |
| | | <div style="text-indent:2em;line-height: 1.4;"> |
| | | 1.应选购符合国家标准、带有安全熄火保护装置的燃气灶具,使用时人不能远离,使用后应关好灶具开关、灶前阀,防止泄漏。燃气具过期应及时更换。切勿使用节能罩。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;"> |
| | | 2.燃气胶管应每18个月更换一次,要经常检查是否存在老化、开裂、鼠咬及连接处是否用卡子固定,建议选用使用寿命长的金属波纹管。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">3.应根据气源类型选用并正确安装燃气报警器,报警器宜选择靠近燃气表或燃气管道接点的位置安放。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">4.燃气用户不得擅自安装、改装、拆除燃气管道、阀门等户内燃气设施和燃气计量装置。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">5.不可将设有燃气管道、燃气具的房间改成卧室、客厅和卫生间,长时间用气要注意通风换气。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;">6.发现异味要立即开窗,远离现场拨打服务电话报修。切勿触碰各类电器开关或携带火种进入室内。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;"> |
| | | 7.燃气热水器应安装在厨房或阳台,严禁安装在卫生间、浴室、餐厅、客厅、卧室等其他空间,并规范安装烟道。严禁选用直排式热水器。</div> |
| | | <div style="text-indent:2em;line-height: 1.4;"> |
| | | 燃气安全关乎千家万户,居家安全,从燃气安全开始!为了您和家人的幸福,请您正确使用燃气,及时排查隐患,共同营造幸福家园。 |
| | | </div> |
| | | <div style="margin-top: 110px;text-align: right;"> |
| | | 地址:<span style="margin-right: 100px;" th:text="${reservePdfExportVO.address}"></span> |
| | | </div> |
| | | <div style="margin-top: 30px;margin-left: 450px;"><div>被提醒人:</div><img style="width: 250px;" |
| | | th:src="@{${reservePdfExportVO.sign}}" /></div> |
| | | <div style="margin-top: 30px;text-align: right;"> |
| | | <span style="margin-right: 100px;" th:text="${reservePdfExportVO.time}"></span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | |
| | | </html> |
| | |
| | | |
| | | /** |
| | | * 党员积分前3 |
| | | * @param communityId |
| | | * @param pageBigScreenStatisticPartyOrg |
| | | * @return |
| | | */ |
| | | @GetMapping("/partyActivityTop") |
| | | public R partyActivityTop(@RequestParam("communityId")Long communityId){ |
| | | return bigScreenService.partyActivityTop(communityId); |
| | | @PostMapping("/partyActivityTop") |
| | | public R partyActivityTop(@RequestBody PageBigScreenStatisticPartyOrg pageBigScreenStatisticPartyOrg){ |
| | | return bigScreenService.partyActivityTop(pageBigScreenStatisticPartyOrg); |
| | | } |
| | | } |
| | |
| | | return bigScreenStatisticsService.getScreenPopularMerchants(pagePopularMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-居民活动 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/index/residentAct") |
| | | public R indexResidentAct(@RequestParam("communityId") Long communityId) { |
| | | return bigScreenStatisticsService.indexResidentAct(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-居民活动展示列表 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/index/residentActList") |
| | | public R indexResidentActList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | return bigScreenStatisticsService.indexResidentActList(pageBaseDTO); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-志愿者活动 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/index/volunteerAct") |
| | | public R indexVolunteerAct(@RequestParam("communityId") Long communityId) { |
| | | return bigScreenStatisticsService.indexVolunteerAct(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 首页二级页面-志愿者活动展示列表 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/index/volunteerActList") |
| | | public R indexVolunteerActList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | return bigScreenStatisticsService.indexVolunteerActList(pageBaseDTO); |
| | | } |
| | | |
| | | /** |
| | | * 清网治格-根据事件分类获取近1月的社区事件数据 |
| | | * @param type |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/event/list") |
| | | public R getEventList(@RequestParam(value = "type") Integer type, @RequestParam(value = "communityId") Long communityId) { |
| | | return bigScreenStatisticsService.getEventList(type, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 清网治格-社区事件数据分页 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/event/page") |
| | | public R pageEventList(@RequestBody PageBaseDTO pageBaseDTO) { |
| | | return bigScreenStatisticsService.pageEventList(pageBaseDTO); |
| | | } |
| | | @PostMapping("/hmk/baseInfo") |
| | | public R getHmkBaseInfo(@RequestBody CommonPage commonPage){ |
| | | return bigScreenStatisticsService.hmkBaseInfo(commonPage); |
| | |
| | | public R deleteBuildingHousePopulationAdmin(@RequestBody DeleteBuildingHousePopulationDto housePopulationDto) { |
| | | return comActBuildingService.deleteBuildingHousePopulationAdmin(housePopulationDto); |
| | | } |
| | | |
| | | /** |
| | | * 根据小区id查询楼栋列表 |
| | | * @param villageId 小区id |
| | | * @return 查询楼栋列表 |
| | | */ |
| | | @GetMapping("/getBuildListByVillageId") |
| | | public R getBuildListByVillageId(@RequestParam("villageId") Long villageId) { |
| | | return comActBuildingService.getBuildListByVillageId(villageId); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.service_community.service.ComActEasyPhotoEvaluateService; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿评价表(ComActEasyPhotoEvaluate) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿评价表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/comActEasyPhotoEvaluate") |
| | | public class ComActEasyPhotoEvaluateController { |
| | | |
| | | @Resource |
| | | private ComActEasyPhotoEvaluateService comActEasyPhotoEvaluateService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate) { |
| | | return this.comActEasyPhotoEvaluateService.queryByPage(comActEasyPhotoEvaluate); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate) { |
| | | return this.comActEasyPhotoEvaluateService.insert(comActEasyPhotoEvaluate); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate) { |
| | | return this.comActEasyPhotoEvaluateService.update(comActEasyPhotoEvaluate); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comActEasyPhotoEvaluateService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comActEasyPhotoEvaluateService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate) { |
| | | return this.comActEasyPhotoEvaluateService.queryByList(comActEasyPhotoEvaluate); |
| | | } |
| | | |
| | | @PostMapping("/easy/evaluate") |
| | | public R evaluateEasyApplets(@RequestBody EvaluateEasyDto whistleDto){ |
| | | return this.comActEasyPhotoEvaluateService.evaluateEasyApplets(whistleDto); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.service_community.service.ComActEasyPhotoHandlerService; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿处理人绑定表(ComActEasyPhotoHandler) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿处理人绑定表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/comActEasyPhotoHandler") |
| | | public class ComActEasyPhotoHandlerController { |
| | | |
| | | @Resource |
| | | private ComActEasyPhotoHandlerService comActEasyPhotoHandlerService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) { |
| | | return this.comActEasyPhotoHandlerService.queryByPage(comActEasyPhotoHandler); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComActEasyPhotoHandlerDto comActEasyPhotoHandler) { |
| | | return this.comActEasyPhotoHandlerService.insert(comActEasyPhotoHandler); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler) { |
| | | return this.comActEasyPhotoHandlerService.update(comActEasyPhotoHandler); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comActEasyPhotoHandlerService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comActEasyPhotoHandlerService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) { |
| | | return this.comActEasyPhotoHandlerService.queryByList(comActEasyPhotoHandler); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.CancelRecordDTO; |
| | | import com.panzhihua.common.model.dtos.community.OperationDetailDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageUserReserveDTO; |
| | | import com.panzhihua.common.model.dtos.community.reserve.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActReserveCommitVO; |
| | | import com.panzhihua.service_community.dao.ComActReserveOperationRecordMapper; |
| | | import com.panzhihua.service_community.model.dos.ComActReserveOperationRecordDO; |
| | | import com.panzhihua.service_community.model.dos.ComActReserveRecordDO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveDetailAdminVO; |
| | | import com.panzhihua.service_community.service.*; |
| | | import com.panzhihua.common.model.dtos.community.reserve.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * 预约登记 |
| | |
| | | * @return 预约登记详情 |
| | | */ |
| | | @GetMapping("/admin/detail") |
| | | public R detailReserveAdmin(@RequestParam("reserveId") Long reserveId){ |
| | | public R<ComActReserveDetailAdminVO> detailReserveAdmin(@RequestParam("reserveId") Long reserveId) { |
| | | return comActReserveService.detailReserveAdmin(reserveId); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询预约登记题目下属选择项列表 |
| | | * |
| | | * @param reserveSubId |
| | | * 预约登记id |
| | | * @return 查询预约登记题目下属选择项列表 |
| | | */ |
| | | @GetMapping("/admin/subject/selection/list") |
| | | public List<String> subjectSelectionListAdmin(@RequestParam("reserveSubId") Long reserveSubId) { |
| | | return comActReserveSubService.subjectSelectionListAdmin(reserveSubId); |
| | | } |
| | | /** |
| | | * 分页查询登记明细列表 |
| | | * @param detailedAdminDTO 请求参数 |
| | | * @return 登记明细列表 |
| | |
| | | @PostMapping("/admin/register/detailed/list") |
| | | public R registerDetailedListAdmin(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO){ |
| | | return comActReserveAnswerContentService.registerDetailedListAdmin(detailedAdminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 导出登记明细列表 |
| | | * @param detailedAdminDTO 请求参数 |
| | | * @return 登记明细列表 |
| | | */ |
| | | @PostMapping("/admin/register/detailed/list/export") |
| | | public R registerDetailedListAdminExport(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO){ |
| | | return comActReserveAnswerContentService.registerDetailedListAdminExport(detailedAdminDTO); |
| | | } |
| | | |
| | | @GetMapping("/admin/register/detailed/detail") |
| | |
| | | public R bigScreenStaticsReserve(@RequestParam("communityId") Long communityId){ |
| | | return comActReserveAnswerContentService.bigScreenStaticsReserve(communityId); |
| | | } |
| | | |
| | | @GetMapping("/record/delete") |
| | | public R deleteRecord(@RequestParam("recordId")Long recordId){ |
| | | return R.ok(comActReserveRecordService.removeById(recordId)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.AddTeamTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApplyFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.ApprovalFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.DeleteTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamMemberDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EditTeamTypeDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.EvaluationFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.FeedbackFmsServiceDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsClassroomAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsEventAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsServiceAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsServiceAppletsDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageFmsTeamDTO; |
| | | import com.panzhihua.common.model.dtos.community.fms.PageTeamMemberDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsServiceImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.fms.ComFmsTeamMemberImportExcelVO; |
| | | import com.panzhihua.service_community.service.ComFmsClassroomService; |
| | | import com.panzhihua.service_community.service.ComFmsServiceEvaluationsService; |
| | | import com.panzhihua.service_community.service.ComFmsServiceService; |
| | | import com.panzhihua.service_community.service.ComFmsTeamMemberService; |
| | | import com.panzhihua.service_community.service.ComFmsTeamService; |
| | | import com.panzhihua.service_community.service.ComFmsTeamTypeService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: ComFmsApi |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 五微服务相关接口 |
| | | * @author: hans |
| | | * @date: 2022/02/11 13:23 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/fms") |
| | | public class ComFmsApi { |
| | | |
| | | @Resource |
| | | private ComFmsTeamTypeService comFmsTeamTypeService; |
| | | @Resource |
| | | private ComFmsTeamService comFmsTeamService; |
| | | @Resource |
| | | private ComFmsTeamMemberService comFmsTeamMemberService; |
| | | @Resource |
| | | private ComFmsServiceService comFmsServiceService; |
| | | @Resource |
| | | private ComFmsClassroomService comFmsClassroomService; |
| | | @Resource |
| | | private ComFmsServiceEvaluationsService comFmsServiceEvaluationsService; |
| | | |
| | | /** |
| | | * 新增团队类型 |
| | | * @param addTeamTypeDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamType/add") |
| | | public R addFmsTeamType(@RequestBody AddTeamTypeDTO addTeamTypeDTO) { |
| | | return comFmsTeamTypeService.addFmsTeamType(addTeamTypeDTO); |
| | | } |
| | | |
| | | /** |
| | | * 修改团队类型 |
| | | * @param editTeamTypeDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamType/edit") |
| | | public R editFmsTeamType(@RequestBody EditTeamTypeDTO editTeamTypeDTO) { |
| | | return comFmsTeamTypeService.editFmsTeamType(editTeamTypeDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除团队类型 |
| | | * @param teamTypeId |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/teamType/delete") |
| | | public R deleteFmsTeamType(@RequestParam("teamTypeId") Long teamTypeId, |
| | | @RequestParam("communityId") Long communityId) { |
| | | return comFmsTeamTypeService.deleteFmsTeamType(teamTypeId, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 获取团队类型列表 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/teamType/list") |
| | | public R listFmsTeamType(@RequestParam("communityId") Long communityId) { |
| | | return comFmsTeamTypeService.listFmsTeamType(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 新增团队 |
| | | * @param addTeamDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/team/add") |
| | | public R addFmsTeam(@RequestBody AddTeamDTO addTeamDTO) { |
| | | return comFmsTeamService.addFmsTeam(addTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 修改团队信息 |
| | | * @param editTeamDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/team/edit") |
| | | public R editFmsTeam(@RequestBody EditTeamDTO editTeamDTO) { |
| | | return comFmsTeamService.editFmsTeam(editTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除团队 |
| | | * @param teamId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/team/delete") |
| | | public R deleteFmsTeam(@RequestParam("teamId") Long teamId) { |
| | | return comFmsTeamService.deleteFmsTeam(teamId); |
| | | } |
| | | |
| | | /** |
| | | * 获取团队列表 |
| | | * @param teamTypeId |
| | | * @return |
| | | */ |
| | | @GetMapping("/team/list") |
| | | public R listFmsTeam(@RequestParam("teamTypeId") Long teamTypeId) { |
| | | return comFmsTeamService.listFmsTeam(teamTypeId); |
| | | } |
| | | |
| | | /** |
| | | * 获取团队详情 |
| | | * @param teamId |
| | | * @return |
| | | */ |
| | | @GetMapping("/team/detail") |
| | | public R detailFmsTeam(@RequestParam("teamId") Long teamId) { |
| | | return comFmsTeamService.detailFmsTeam(teamId); |
| | | } |
| | | |
| | | /** |
| | | * 级联查询团队数据 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/team/cascade") |
| | | public R retrieveFmsTeamCascade(@RequestParam("communityId") Long communityId) { |
| | | return comFmsTeamService.retrieveFmsTeamCascade(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 新增团队成员 |
| | | * @param addTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamMember/add") |
| | | public R addFmsTeamMember(@RequestBody AddTeamMemberDTO addTeamMemberDTO) { |
| | | return comFmsTeamMemberService.addFmsTeamMember(addTeamMemberDTO); |
| | | } |
| | | |
| | | /** |
| | | * 编辑团队成员 |
| | | * @param editTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamMember/edit") |
| | | public R editFmsTeamMember(@RequestBody EditTeamMemberDTO editTeamMemberDTO) { |
| | | return comFmsTeamMemberService.editFmsTeamMember(editTeamMemberDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除团队成员 |
| | | * @param deleteTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamMember/delete") |
| | | public R deleteFmsTeamMember(@RequestBody DeleteTeamMemberDTO deleteTeamMemberDTO) { |
| | | return comFmsTeamMemberService.deleteFmsTeamMember(deleteTeamMemberDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询团队成员 |
| | | * @param pageTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamMember/page") |
| | | public R pageFmsTeamMember(@RequestBody PageTeamMemberDTO pageTeamMemberDTO) { |
| | | return comFmsTeamMemberService.pageFmsTeamMember(pageTeamMemberDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微团队顶部统计 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/teamMember/statistics") |
| | | public R statisticsFmsTeamMember(@RequestParam("communityId") Long communityId) { |
| | | return comFmsTeamMemberService.statisticsFmsTeamMember(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入团队成员 |
| | | * @param voList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamMember/import") |
| | | public R listSaveFmsTeamMemberExcelVO(@RequestBody List<ComFmsTeamMemberImportExcelVO> voList, |
| | | @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId) { |
| | | return comFmsTeamMemberService.listSaveFmsTeamMemberExcelVO(voList, communityId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 团队人员导出 |
| | | * @param pageTeamMemberDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/teamMember/export") |
| | | public R exportTeamMember(@RequestBody PageTeamMemberDTO pageTeamMemberDTO) { |
| | | return comFmsTeamMemberService.exportTeamMember(pageTeamMemberDTO); |
| | | } |
| | | |
| | | /** |
| | | * 后台新增微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/adminAdd") |
| | | public R addFmsServiceAdmin(@RequestBody AddFmsServiceAdminDTO adminDTO) { |
| | | return comFmsServiceService.addFmsServiceAdmin(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 后台分页查询微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/adminPage") |
| | | public R pageFmsServiceAdmin(@RequestBody PageFmsServiceAdminDTO adminDTO) { |
| | | return comFmsServiceService.pageFmsServiceAdmin(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 后台核实微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/approval") |
| | | public R approvalFmsService(@RequestBody ApprovalFmsServiceAdminDTO adminDTO) { |
| | | return comFmsServiceService.approvalFmsService(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 级联查询团队服务人员 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/teamMember/cascade") |
| | | public R retrieveFmsTeamMemberCascade(@RequestParam("communityId") Long communityId) { |
| | | return comFmsTeamMemberService.retrieveFmsTeamMemberCascade(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 后台查看微服务详情 |
| | | * @param serviceId |
| | | * @return |
| | | */ |
| | | @GetMapping("/service/detailAdmin") |
| | | public R detailFmsServiceAdmin(@RequestParam("serviceId") Long serviceId) { |
| | | return comFmsServiceService.detailFmsServiceAdmin(serviceId); |
| | | } |
| | | |
| | | /** |
| | | * 后台删除微服务 |
| | | * @param serviceId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/service/delete") |
| | | public R deleteFmsServiceAdmin(@RequestParam("serviceId") Long serviceId) { |
| | | return comFmsServiceService.deleteFmsServiceAdmin(serviceId); |
| | | } |
| | | |
| | | /** |
| | | * 微服务顶部统计 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/service/statistics") |
| | | public R statisticsFmsService(@RequestParam("communityId") Long communityId) { |
| | | return comFmsServiceService.statisticsFmsService(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 后台导入微服务数据 |
| | | * @param voList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/import") |
| | | public R listSaveFmsServiceExcelVO(@RequestBody List<ComFmsServiceImportExcelVO> voList, |
| | | @RequestParam("communityId") Long communityId, |
| | | @RequestParam("userId") Long userId) { |
| | | return comFmsServiceService.listSaveFmsServiceExcelVO(voList, communityId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 后台新增微讲堂 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/classroom/add") |
| | | public R addFmsClassroom(@RequestBody AddFmsClassroomAdminDTO adminDTO) { |
| | | return comFmsClassroomService.addFmsClassroom(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 后台编辑微讲堂 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/classroom/edit") |
| | | public R editFmsClassroom(@RequestBody EditFmsClassroomAdminDTO adminDTO) { |
| | | return comFmsClassroomService.editFmsClassroom(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 后台删除微讲堂 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/classroom/delete") |
| | | public R deleteFmsClassroom(@RequestParam("id") Long id) { |
| | | return comFmsClassroomService.deleteFmsClassroom(id); |
| | | } |
| | | |
| | | /** |
| | | * 后台获取微讲堂详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/classroom/detail") |
| | | public R detailFmsClassroom(@RequestParam("id") Long id) { |
| | | return comFmsClassroomService.detailFmsClassroom(id); |
| | | } |
| | | |
| | | /** |
| | | * 后台分页查询微讲堂 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/classroom/pageAdmin") |
| | | public R pageFmsClassroomAdmin(@RequestBody PageFmsClassroomAdminDTO adminDTO) { |
| | | return comFmsClassroomService.pageFmsClassroomAdmin(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微讲堂顶部统计 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/classroom/statistics") |
| | | public R statisticsFmsClassroom(@RequestParam("communityId") Long communityId) { |
| | | return comFmsClassroomService.statisticsFmsClassroom(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 后台分页查询微调节/微防控 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/event/page") |
| | | public R pageFmsEvent(@RequestBody PageFmsEventAdminDTO adminDTO) { |
| | | return comFmsClassroomService.pageFmsEvent(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微调节/微防控顶部统计 |
| | | * @param type |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/event/statistics") |
| | | public R statisticsFmsEvent(@RequestParam("type") Integer type, @RequestParam("communityId") Long communityId) { |
| | | return comFmsClassroomService.statisticsFmsEvent(type, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 小程序分页查询团队信息 |
| | | * @param pageFmsTeamDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/team/pageApplets") |
| | | public R pageFmsTeamApplets(@RequestBody PageFmsTeamDTO pageFmsTeamDTO) { |
| | | return comFmsTeamService.pageFmsTeamApplets(pageFmsTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 小程序获取微讲堂详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/classroom/detailApplets") |
| | | public R detailFmsClassroomApplets(@RequestParam("id") Long id) { |
| | | return comFmsClassroomService.detailFmsClassroomApplets(id); |
| | | } |
| | | |
| | | /** |
| | | * 小程序分页查询微调节/微防控 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/event/pageApplets") |
| | | public R pageFmsEventApplets(@RequestBody PageFmsEventAdminDTO adminDTO) { |
| | | return comFmsClassroomService.pageFmsEventApplets(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 小程序分页查询微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/pageApplets") |
| | | public R pageFmsServiceApplets(@RequestBody PageFmsServiceAppletsDTO adminDTO) { |
| | | return comFmsServiceService.pageFmsServiceApplets(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 小程序查看微服务详情 |
| | | * @param serviceId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/service/detailApplets") |
| | | public R detailFmsServiceApplets(@RequestParam("serviceId") Long serviceId, @RequestParam(value = "userId", required = false) Long userId) { |
| | | return comFmsServiceService.detailFmsServiceApplets(serviceId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 微服务申请 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/apply") |
| | | public R applyFmsService(@RequestBody ApplyFmsServiceDTO adminDTO) { |
| | | return comFmsServiceService.applyFmsService(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询我的微服务 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/pageMy") |
| | | public R pageMyFmsService(@RequestBody PageFmsServiceAppletsDTO adminDTO) { |
| | | return comFmsServiceService.pageMyFmsService(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微服务评价 |
| | | * @param evaluationFmsServiceDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/evaluate") |
| | | public R evaluateFmsService(@RequestBody EvaluationFmsServiceDTO evaluationFmsServiceDTO) { |
| | | return comFmsServiceEvaluationsService.evaluateFmsService(evaluationFmsServiceDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微团队成员分页查询服务处理 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/pageDeal") |
| | | public R pageDealFmsService(@RequestBody PageFmsServiceAppletsDTO adminDTO) { |
| | | return comFmsServiceService.pageDealFmsService(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微团队成员服务反馈 |
| | | * @param adminDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/feedback") |
| | | public R feedbackFmsService(@RequestBody FeedbackFmsServiceDTO adminDTO) { |
| | | return comFmsServiceService.feedbackFmsService(adminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 定时任务针对服务结束后3天还未评价的用户默认好评 |
| | | * @return |
| | | */ |
| | | @PostMapping("/service/defaultPraise") |
| | | public R timedTaskFmsServiceDefaultPraise() { |
| | | return comFmsServiceService.defaultPraise(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngVolunteerOrgTeamService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 志愿者组织队伍表(ComMngVolunteerOrgTeam)表控制层 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 15:51:21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("comMngVolunteerOrgTeam") |
| | | public class ComMngVolunteerOrgTeamApi { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private ComMngVolunteerOrgTeamService comMngVolunteerOrgTeamService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param comMngVolunteerOrgTeam 筛选条件 |
| | | * @return 查询结果 |
| | | */ |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComMngVolunteerOrgTeamDto comMngVolunteerOrgTeam) { |
| | | return this.comMngVolunteerOrgTeamService.queryByPage(comMngVolunteerOrgTeam); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @GetMapping("{id}") |
| | | public R queryById(@PathVariable("id") Long id) { |
| | | return this.comMngVolunteerOrgTeamService.queryById(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param comMngVolunteerOrgTeam 实体 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComMngVolunteerOrgTeamDto comMngVolunteerOrgTeam) { |
| | | return this.comMngVolunteerOrgTeamService.insert(comMngVolunteerOrgTeam); |
| | | } |
| | | |
| | | /** |
| | | * 编辑数据 |
| | | * |
| | | * @param comMngVolunteerOrgTeam 实体 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComMngVolunteerOrgTeamDto comMngVolunteerOrgTeam) { |
| | | return this.comMngVolunteerOrgTeamService.update(comMngVolunteerOrgTeam); |
| | | } |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 删除是否成功 |
| | | */ |
| | | @GetMapping("/delete") |
| | | public R deleteById(Long id) { |
| | | return this.comMngVolunteerOrgTeamService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台-查询志愿者组织列表 |
| | | * @param comMngVolunteerOrgTeam 请求参数 |
| | | * @return 志愿者组织列表 |
| | | */ |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComMngVolunteerOrgTeamDto comMngVolunteerOrgTeam) { |
| | | return this.comMngVolunteerOrgTeamService.queryByList(comMngVolunteerOrgTeam); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台-志愿者组织统计 |
| | | * @param communityId 社区id |
| | | * @return 志愿者组织统计 |
| | | */ |
| | | @GetMapping("/statistics") |
| | | public R statisticsVolunteerOrgAdmin(@RequestParam("communityId") Long communityId) { |
| | | return this.comMngVolunteerOrgTeamService.statisticsVolunteerOrgAdmin(communityId); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngVolunteerServiceTypeService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 志愿者服务类型表(ComMngVolunteerServiceType)表控制层 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:09 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("comMngVolunteerServiceType") |
| | | public class ComMngVolunteerServiceTypeApi { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private ComMngVolunteerServiceTypeService comMngVolunteerServiceTypeService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param comMngVolunteerServiceType 筛选条件 |
| | | * @return 查询结果 |
| | | */ |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComMngVolunteerServiceTypeDto comMngVolunteerServiceType) { |
| | | return this.comMngVolunteerServiceTypeService.queryByPage(comMngVolunteerServiceType); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @GetMapping("{id}") |
| | | public R queryById(@PathVariable("id") Long id) { |
| | | return this.comMngVolunteerServiceTypeService.queryById(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param comMngVolunteerServiceType 实体 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComMngVolunteerServiceTypeDto comMngVolunteerServiceType) { |
| | | return this.comMngVolunteerServiceTypeService.insert(comMngVolunteerServiceType); |
| | | } |
| | | |
| | | /** |
| | | * 编辑数据 |
| | | * |
| | | * @param comMngVolunteerServiceType 实体 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComMngVolunteerServiceTypeDto comMngVolunteerServiceType) { |
| | | return this.comMngVolunteerServiceTypeService.update(comMngVolunteerServiceType); |
| | | } |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 删除是否成功 |
| | | */ |
| | | @GetMapping("/delete") |
| | | public R deleteById(Long id) { |
| | | return this.comMngVolunteerServiceTypeService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台-查询志愿者服务类型列表 |
| | | * @param comMngVolunteerServiceType 请求参数 |
| | | * @return 志愿者服务列表 |
| | | */ |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComMngVolunteerServiceTypeDto comMngVolunteerServiceType) { |
| | | return this.comMngVolunteerServiceTypeService.queryByList(comMngVolunteerServiceType); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngVolunteerSkillService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 志愿者技能表(ComMngVolunteerSkill)表控制层 |
| | | * |
| | | * @author lyq |
| | | * @since 2021-10-30 16:47:36 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("comMngVolunteerSkill") |
| | | public class ComMngVolunteerSkillApi { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private ComMngVolunteerSkillService comMngVolunteerSkillService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param comMngVolunteerSkill 筛选条件 |
| | | * @return 查询结果 |
| | | */ |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComMngVolunteerSkillDto comMngVolunteerSkill) { |
| | | return this.comMngVolunteerSkillService.queryByPage(comMngVolunteerSkill); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @GetMapping("{id}") |
| | | public R queryById(@PathVariable("id") Long id) { |
| | | return this.comMngVolunteerSkillService.queryById(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param comMngVolunteerSkill 实体 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComMngVolunteerSkillDto comMngVolunteerSkill) { |
| | | return this.comMngVolunteerSkillService.insert(comMngVolunteerSkill); |
| | | } |
| | | |
| | | /** |
| | | * 编辑数据 |
| | | * |
| | | * @param comMngVolunteerSkill 实体 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComMngVolunteerSkillDto comMngVolunteerSkill) { |
| | | return this.comMngVolunteerSkillService.update(comMngVolunteerSkill); |
| | | } |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 删除是否成功 |
| | | */ |
| | | @GetMapping("/delete") |
| | | public R deleteById(Long id) { |
| | | return this.comMngVolunteerSkillService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台-查询志愿者技能列表 |
| | | * @param comMngVolunteerSkill 请求参数 |
| | | * @return 志愿者技能列表 |
| | | */ |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComMngVolunteerSkillDto comMngVolunteerSkill) { |
| | | return this.comMngVolunteerSkillService.queryByList(comMngVolunteerSkill); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | public R pagePopulation(@RequestBody ComMngPopulationDTO comMngPopulationVO) { |
| | | return comMngPopulationService.pagePopulation(comMngPopulationVO); |
| | | } |
| | | /** |
| | | * 社区后台老人导出管理列表 |
| | | * |
| | | * @param comMngPopulationVO |
| | | * 查询参数 |
| | | * @return 实有人口分页查询结果 |
| | | */ |
| | | @PostMapping("/population/exportOld") |
| | | public R exportOld(@RequestBody ComMngPopulationDTO comMngPopulationVO) { |
| | | return comMngPopulationService.exportOld(comMngPopulationVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据身份证查询实有人口信息 |
| | |
| | | public R detailHousesUser(@RequestParam("id") Long id) { |
| | | return comMngPopulationHouseUserService.detail(id); |
| | | } |
| | | |
| | | /** |
| | | * 历史数据人员类型填充 |
| | | * @param newVoList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/history/filled") |
| | | public R filledPopulationPersonType(@RequestBody List<ComMngPopulationServeExcelVO> newVoList, |
| | | @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId) { |
| | | return comMngPopulationService.filledPopulationPersonType(newVoList, communityId, userId); |
| | | } |
| | | } |
| | |
| | | |
| | | import static java.util.stream.Collectors.toList; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Comparator; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Optional; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.util.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActActivityTypeVO; |
| | | import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO; |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import com.panzhihua.service_community.dao.ComActActEvaluateDAO; |
| | | import com.panzhihua.service_community.model.dos.*; |
| | | import com.panzhihua.service_community.service.*; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | |
| | | /** |
| | | * 社区后台分页查询社区活动 |
| | | * |
| | | * |
| | | * @param comActActivityVO |
| | | * 查询参数 |
| | | * @return 返回结果 |
| | |
| | | comActActivityVO.setComActActEvaluateVOList(comActActEvaluatePage.getRecords()); |
| | | //活动评价总数 |
| | | comActActivityVO.setEvaluateAmount(comActActEvaluatePage.getTotal()); |
| | | List<ComActActEvaluateDO> comActActEvaluateList = comActActEvaluateDAO |
| | | .selectList(new QueryWrapper<ComActActEvaluateDO>().lambda().eq(ComActActEvaluateDO::getActivityId, id)); |
| | | if (comActActEvaluateList != null && comActActEvaluateList.size() > 0) { |
| | | BigDecimal starNum = BigDecimal.ZERO; |
| | | //总星级 |
| | | for (ComActActEvaluateDO evaluate:comActActEvaluateList) { |
| | | starNum = starNum.add(BigDecimal.valueOf(evaluate.getStarLevel()==null?0:evaluate.getStarLevel())); |
| | | } |
| | | //评分星级(如果无评分默认5分)=总星级/总评价人数 |
| | | if(starNum.compareTo(BigDecimal.ZERO) == 0){ |
| | | comActActivityVO.setEvaluateLevel(BigDecimal.valueOf(5)); |
| | | }else{ |
| | | comActActivityVO.setEvaluateLevel(starNum.divide(BigDecimal.valueOf(comActActEvaluateList.size()),2, RoundingMode.HALF_UP)); |
| | | } |
| | | }else{ |
| | | comActActivityVO.setEvaluateLevel(BigDecimal.valueOf(5)); |
| | | } |
| | | //当前用户对活动的评分 |
| | | ComActActEvaluateVO userActEvaluateVO = comActActEvaluateDAO.getEvaluateListByUserId(id,userId); |
| | | if(userActEvaluateVO != null){ |
| | |
| | | |
| | | /** |
| | | * 查询随手拍是否有活动 |
| | | * |
| | | * |
| | | * @return 活动详情 |
| | | */ |
| | | @PostMapping("getEasyPhotoActivity") |
| | |
| | | |
| | | /** |
| | | * 查询所有建筑类型 |
| | | * |
| | | * |
| | | * @return 类型列表 |
| | | */ |
| | | @PostMapping("listbuildtype") |
| | |
| | | |
| | | /** |
| | | * 分页查询 其他建筑 |
| | | * |
| | | * |
| | | * @param comMngStructOtherBuildVO |
| | | * 分页查询参数 |
| | | * @return 查询结果 |
| | |
| | | |
| | | /** |
| | | * 增加志愿者 |
| | | * |
| | | * |
| | | * @param comMngVolunteerMngVO |
| | | * 志愿者信息 |
| | | * @return 增加结果 |
| | |
| | | |
| | | /** |
| | | * 获取志愿者详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | * @return 社区集合 按照创建顺序倒序排列 |
| | | */ |
| | | @PostMapping("listcommunityall") |
| | | public R listCommunityAll() { |
| | | return comActService.listCommunityAll(); |
| | | public R listCommunityAll(@RequestParam("areaCode") String areaCode) { |
| | | return comActService.listCommunityAll(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | String openid = map.get("openid"); |
| | | try { |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(eldersAuthFeedbackAddDTO.getAreaCode(),5); |
| | | String accessToken = util.getAppAccessToken(); |
| | | WxUtil.sendSubscribeRZSH(openid, accessToken, "高龄认证", |
| | | DateUtils.format(eldersAuthDO.getCreateAt(), DateUtils.ymdhms_format), |
| | | eldersAuthFeedbackAddDTO.getFeedBack()); |
| | | eldersAuthFeedbackAddDTO.getFeedBack(),sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("推送审核状态订阅消息失败,失败原因:" + e.getMessage()); |
| | | } |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | public R getWestCommunityLists() { |
| | | return comActService.getWestCommunityLists(); |
| | | public R getWestCommunityLists(@RequestParam("areaCode")String areaCode) { |
| | | return comActService.getWestCommunityLists(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 志愿者导入 |
| | | * |
| | | * @param list 志愿者数据列表 |
| | | * @param communityId 社区id |
| | | * @param userId 用户id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("/volunteer/import/admin") |
| | | public R importVolunteerAdmin(@RequestBody List<ComMngVolunteerExcelVO> list, |
| | | @RequestParam(value = "communityId") Long communityId, @RequestParam(value = "userId") Long userId) { |
| | | return comMngVolunteerMngService.importVolunteerAdmin(list,communityId,userId); |
| | | } |
| | | |
| | | /** |
| | | * [方法描述] 根据社区ID查询所属城市所在区区域代码, |
| | | * |
| | | * @param communityId |
| | | * 社区ID |
| | | * @return String 区域code |
| | | * @author manailin |
| | | * @date 2022/2/17 10:09 |
| | | */ |
| | | @GetMapping("act/getActBelongRegionCode") |
| | | public String getActBelongRegionCode(@RequestParam("communityId") Long communityId) { |
| | | return comActActivityService.getActBelongRegionCode(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 党员活动统计 |
| | | * @param communityId |
| | | * @param year |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/community/all/list") |
| | | public R getCommunityAllList() { |
| | | return comActService.getCommunityAllList(); |
| | | public R getCommunityAllList(@RequestParam("areaCode") String areaCode) { |
| | | return comActService.getCommunityAllList(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/community/search/list") |
| | | public R communitySwitchSearchList(@RequestParam(value = "name") String name) { |
| | | return comActService.communitySwitchSearchList(name); |
| | | public R communitySwitchSearchList(@RequestParam(value = "name") String name,@RequestParam(value = "areaCode") String areaCode) { |
| | | return comActService.communitySwitchSearchList(name,areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return convenientServiceCategoryService.getAllServiceCategories(); |
| | | public R getAllServiceCategories(@RequestParam("areaCode") String areaCode) { |
| | | return convenientServiceCategoryService.getAllServiceCategories(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/service-category/suitable") |
| | | public R getSuitableServiceCategories(@RequestParam("communityId") Long communityId) { |
| | | return convenientServiceCategoryService.getSuitableServiceCategories(communityId); |
| | | public R getSuitableServiceCategories(@RequestParam("communityId") Long communityId,@RequestParam("areaCode")String areaCode) { |
| | | return convenientServiceCategoryService.getSuitableServiceCategories(communityId,areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | @GetMapping("/admin/list") |
| | | public R listPhotoClassify() { |
| | | return comActEasyPhotoClassifyService.listPhotoClassify(); |
| | | public R listPhotoClassify(@RequestParam("areaCode")String areaCode) { |
| | | return comActEasyPhotoClassifyService.listPhotoClassify(areaCode); |
| | | } |
| | | |
| | | /** |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.api.ApiController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsOrderVO; |
| | | import com.panzhihua.common.utlis.SmsUtil; |
| | | import com.panzhihua.service_community.entity.McsOrder; |
| | | import com.panzhihua.service_community.service.McsOrderService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 商业街订单表(McsOrder)表控制层 |
| | | * |
| | | * @author makejava |
| | | * @since 2022-01-04 16:10:07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("mcsOrder") |
| | | public class McsOrderApi { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private McsOrderService mcsOrderService; |
| | | |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | | * @param commonPage 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | return this.mcsOrderService.pageList(commonPage); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @GetMapping("{id}") |
| | | public R selectOne(@PathVariable("id") Long id) { |
| | | return this.mcsOrderService.detail(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param mcsOrderVO 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping |
| | | public R insert(@RequestBody McsOrderVO mcsOrderVO) { |
| | | return this.mcsOrderService.insert(mcsOrderVO); |
| | | } |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * |
| | | * @param mcsOrderVO 实体对象 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody McsOrderVO mcsOrderVO) { |
| | | McsOrder mcsOrder=new McsOrder(); |
| | | BeanUtils.copyProperties(mcsOrderVO,mcsOrder); |
| | | return R.ok(this.mcsOrderService.updateById(mcsOrder)); |
| | | } |
| | | |
| | | /** |
| | | * 微信支付 |
| | | * @param mcsOrderVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/wxPay") |
| | | public R wxPay(@RequestBody McsOrderVO mcsOrderVO){ |
| | | return this.mcsOrderService.wxPay(mcsOrderVO); |
| | | } |
| | | |
| | | /** |
| | | * 发送提醒短信 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/sendContent") |
| | | public R sendContent(@RequestParam("id") Long id){ |
| | | return this.mcsOrderService.sendContent(id); |
| | | } |
| | | |
| | | /** |
| | | *微信支付回调 |
| | | * @param mcsOrderVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/notify") |
| | | public R notify(@RequestBody McsOrderVO mcsOrderVO){ |
| | | return this.mcsOrderService.notify(mcsOrderVO); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.DeleteProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PutUserInfoDTO; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.DisableOrEnableMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.LoginWithPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsEvaluateDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageJoinGameListDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsEvaluateDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsInformationDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageVerifyRecordDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetPopularForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForProductDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsConfigVO; |
| | | import com.panzhihua.service_community.service.McsConfigService; |
| | | import com.panzhihua.service_community.service.McsCouponService; |
| | | import com.panzhihua.service_community.service.McsEvaluateService; |
| | | import com.panzhihua.service_community.service.McsGameService; |
| | | import com.panzhihua.service_community.service.McsInformationService; |
| | | import com.panzhihua.service_community.service.McsLabelService; |
| | | import com.panzhihua.service_community.service.McsMerchantService; |
| | | import com.panzhihua.service_community.service.McsProductService; |
| | | import com.panzhihua.service_community.service.McsVerifiedRecordService; |
| | | |
| | | /** |
| | | * @title: MicroCommercialStreetApi |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 微商业街相关接口 |
| | | * @author: hans |
| | | * @date: 2021/12/28 14:18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/microcommercialstreet") |
| | | public class MicroCommercialStreetApi { |
| | | |
| | | @Resource |
| | | private McsMerchantService mcsMerchantService; |
| | | @Resource |
| | | private McsConfigService mcsConfigService; |
| | | @Resource |
| | | private McsGameService mcsGameService; |
| | | @Resource |
| | | private McsInformationService mcsInformationService; |
| | | @Resource |
| | | private McsEvaluateService mcsEvaluateService; |
| | | @Resource |
| | | private McsProductService mcsProductService; |
| | | @Resource |
| | | private McsLabelService mcsLabelService; |
| | | @Resource |
| | | private McsCouponService mcsCouponService; |
| | | @Resource |
| | | private McsVerifiedRecordService mcsVerifiedRecordService; |
| | | |
| | | /** |
| | | * 新增数字商业街商家 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/merchant/add") |
| | | public R addMcsMerchant(@RequestBody McsMerchantDTO mcsMerchantDTO) { |
| | | return mcsMerchantService.addMcsMerchant(mcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 编辑数字商业街商家 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/merchant/put") |
| | | public R putMcsMerchant(@RequestBody McsMerchantDTO mcsMerchantDTO) { |
| | | return mcsMerchantService.putMcsMerchant(mcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 查询数字商业街商家详情 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/merchant/get") |
| | | public R getMcsMerchant(@RequestParam("merchantId") Long merchantId) { |
| | | return mcsMerchantService.getMcsMerchant(merchantId); |
| | | } |
| | | |
| | | /** |
| | | * 删除数字商业街商家 |
| | | * @param merchantId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/merchant/delete") |
| | | public R deleteMcsMerchant(@RequestParam("merchantId") Long merchantId, @RequestParam("userId") Long userId) { |
| | | return mcsMerchantService.deleteMcsMerchant(merchantId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询数字商业街商家 |
| | | * @param pageMcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/merchant/page") |
| | | public R pageMcsMerchant(@RequestBody PageMcsMerchantDTO pageMcsMerchantDTO) { |
| | | return mcsMerchantService.pageMcsMerchant(pageMcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 禁用/启用数字商业街商家 |
| | | * @param disableOrEnableMcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/merchant/disable-or-enable") |
| | | public R disableOrEnableMcsMerchant(@RequestBody DisableOrEnableMcsMerchantDTO disableOrEnableMcsMerchantDTO) { |
| | | return mcsMerchantService.disableOrEnableMcsMerchant(disableOrEnableMcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 获取所有数字商业街配置 |
| | | * @return |
| | | */ |
| | | @GetMapping("/config/all") |
| | | public R getAllMcsConfig() { |
| | | return mcsConfigService.getAllMcsConfig(); |
| | | } |
| | | |
| | | /** |
| | | * 修改数字商业街配置 |
| | | * @param configs |
| | | * @return |
| | | */ |
| | | @PutMapping("/config/put") |
| | | public R putMcsConfig(@RequestBody List<McsConfigVO> configs) { |
| | | return mcsConfigService.putMcsConfig(configs); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询戳戳游戏 |
| | | * @param pageMcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/game/page") |
| | | public R pageMcsGame(@RequestBody PageMcsGameDTO pageMcsGameDTO) { |
| | | return mcsGameService.pageMcsGame(pageMcsGameDTO); |
| | | } |
| | | |
| | | /** |
| | | * 设为/取消游戏热门 |
| | | * @param setPopularForGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/game/setPopular") |
| | | public R setPopularForGame(@RequestBody SetPopularForGameDTO setPopularForGameDTO) { |
| | | return mcsGameService.setPopularForGame(setPopularForGameDTO); |
| | | } |
| | | |
| | | /** |
| | | * 上架/下架戳戳游戏 |
| | | * @param setShelfForGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/game/setShelf") |
| | | public R setShelfForGame(@RequestBody SetShelfForGameDTO setShelfForGameDTO) { |
| | | return mcsGameService.setShelfForGame(setShelfForGameDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/game/delete") |
| | | public R deleteMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId) { |
| | | return mcsGameService.deleteMcsGame(gameId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询戳戳资讯 |
| | | * @param pageMcsInformationDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/information/page") |
| | | public R pageMcsInfo(@RequestBody PageMcsInformationDTO pageMcsInformationDTO) { |
| | | return mcsInformationService.pageMcsInfo(pageMcsInformationDTO); |
| | | } |
| | | |
| | | /** |
| | | * 上架/下架戳戳资讯 |
| | | * @param setShelfForInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/information/setShelf") |
| | | public R setShelfForMcsInfo(@RequestBody SetShelfForInfoDTO setShelfForInfoDTO) { |
| | | return mcsInformationService.setShelfForMcsInfo(setShelfForInfoDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除戳戳资讯 |
| | | * @param infoId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/information/delete") |
| | | public R deleteMcsInfo(@RequestParam("infoId") Long infoId, @RequestParam("userId") Long userId) { |
| | | return mcsInformationService.deleteMcsInfo(infoId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询评价记录 |
| | | * @param pageMcsEvaluateDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/evaluate/page") |
| | | public R pageMcsEvaluate(@RequestBody PageMcsEvaluateDTO pageMcsEvaluateDTO) { |
| | | return mcsEvaluateService.pageMcsEvaluate(pageMcsEvaluateDTO); |
| | | } |
| | | |
| | | /** |
| | | * 查询评价记录详情 |
| | | * @param evaluateId |
| | | * @return |
| | | */ |
| | | @GetMapping("/evaluate/get") |
| | | public R getMcsEvaluate(@RequestParam("evaluateId") Long evaluateId) { |
| | | return mcsEvaluateService.getMcsEvaluate(evaluateId); |
| | | } |
| | | |
| | | /** |
| | | * 删除评价记录 |
| | | * @param evaluateId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/evaluate/delete") |
| | | public R deleteMcsEvaluate(@RequestParam("evaluateId") Long evaluateId) { |
| | | return mcsEvaluateService.deleteMcsEvaluate(evaluateId); |
| | | } |
| | | |
| | | /** |
| | | * 新增戳戳游戏 |
| | | * @param mcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/game/add") |
| | | public R addMcsGame(@RequestBody McsGameDTO mcsGameDTO) { |
| | | return mcsGameService.addMcsGame(mcsGameDTO); |
| | | } |
| | | |
| | | /** |
| | | * 编辑戳戳游戏 |
| | | * @param mcsGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/game/put") |
| | | public R putMcsGame(@RequestBody McsGameDTO mcsGameDTO) { |
| | | return mcsGameService.putMcsGame(mcsGameDTO); |
| | | } |
| | | |
| | | /** |
| | | * 发布戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/game/publish") |
| | | public R publishMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId) { |
| | | return mcsGameService.publishMcsGame(gameId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 结束戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/game/finish") |
| | | public R finishMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId) { |
| | | return mcsGameService.finishMcsGame(gameId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 戳戳游戏/资讯顶部统计数据 |
| | | * @param type |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/statistics/top") |
| | | public R getTopStatistics(@RequestParam("type") Integer type, @RequestParam("userId") Long userId) { |
| | | return mcsGameService.getTopStatistics(userId, type); |
| | | } |
| | | |
| | | /** |
| | | * 新增戳戳资讯 |
| | | * @param mcsInfoDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/information/add") |
| | | public R addMcsInfo(@RequestBody McsInfoDTO mcsInfoDTO) { |
| | | return mcsInformationService.addMcsInfo(mcsInfoDTO); |
| | | } |
| | | |
| | | /** |
| | | * 编辑戳戳资讯 |
| | | * @param mcsInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/information/put") |
| | | public R putMcsInfo(@RequestBody McsInfoDTO mcsInfoDTO) { |
| | | return mcsInformationService.putMcsInfo(mcsInfoDTO); |
| | | } |
| | | |
| | | /** |
| | | * 发布戳戳资讯 |
| | | * @param infoId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/information/publish") |
| | | public R publishMcsInfo(@RequestParam("infoId") Long infoId, @RequestParam("userId") Long userId) { |
| | | return mcsInformationService.publishMcsInfo(infoId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 新增产品信息 |
| | | * @param mcsProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/product/add") |
| | | public R addMcsProduct(@RequestBody McsProductDTO mcsProductDTO) { |
| | | return mcsProductService.addMcsProduct(mcsProductDTO); |
| | | } |
| | | |
| | | /** |
| | | * 编辑产品信息 |
| | | * @param mcsProductDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/product/put") |
| | | public R putMcsProduct(@RequestBody McsProductDTO mcsProductDTO) { |
| | | return mcsProductService.putMcsProduct(mcsProductDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除产品信息 |
| | | * @param deleteProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/product/delete") |
| | | public R deleteMcsProduct(@RequestBody DeleteProductDTO deleteProductDTO) { |
| | | return mcsProductService.deleteMcsProduct(deleteProductDTO); |
| | | } |
| | | |
| | | /** |
| | | * 上架/下架产品信息 |
| | | * @param setShelfForProductDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/product/setShelf") |
| | | public R setShelfForMcsProduct(@RequestBody SetShelfForProductDTO setShelfForProductDTO) { |
| | | return mcsProductService.setShelfForMcsProduct(setShelfForProductDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询产品信息 |
| | | * @param pageMcsProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/product/page") |
| | | public R pageMcsProduct(@RequestBody PageMcsProductDTO pageMcsProductDTO) { |
| | | return mcsProductService.pageMcsProduct(pageMcsProductDTO); |
| | | } |
| | | |
| | | /** |
| | | * 获取产品标签列表 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/label/list") |
| | | public R getMcsLabelList(@RequestParam("userId") Long userId) { |
| | | return mcsLabelService.getMcsLabelList(userId); |
| | | } |
| | | |
| | | /** |
| | | * 根据account查询微商业街商家信息 |
| | | * @param account |
| | | * @return |
| | | */ |
| | | @GetMapping("/getMcsMerchantByAccount") |
| | | public R getMcsMerchantByAccount(@RequestParam("account") String account) { |
| | | return mcsMerchantService.getMcsMerchantByAccount(account); |
| | | } |
| | | |
| | | /** |
| | | * 完成订单更新/新增商家信息 |
| | | * @param orderNo |
| | | * @param configId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/updateAfterOrder") |
| | | public R updateMcsMerchantAfterOrder(@RequestParam(value = "orderNo") String orderNo, |
| | | @RequestParam("configId") Long configId, |
| | | @RequestParam("userId") Long userId) { |
| | | return mcsMerchantService.updateOrAddMcsMerchantAfterOrder(orderNo, configId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 验证码登录 |
| | | * @param loginDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/loginWithPhone") |
| | | public R loginWithPhone(@RequestBody LoginWithPhoneDTO loginDTO) { |
| | | return mcsMerchantService.loginWithPhone(loginDTO); |
| | | } |
| | | |
| | | /** |
| | | * 首页顶部数据 |
| | | * @return |
| | | */ |
| | | @GetMapping("/index/topData") |
| | | public R getMcsIndexTopData() { |
| | | return mcsMerchantService.getMcsIndexTopData(); |
| | | } |
| | | |
| | | /** |
| | | * 戳戳卷领取 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/coupon/apply") |
| | | public R applyMcsCoupon(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId) { |
| | | return mcsGameService.applyMcsCoupon(gameId, userId); |
| | | } |
| | | |
| | | /** |
| | | * h5分页查询戳戳资讯 |
| | | * @param pageMcsInformationDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/information/pageH5") |
| | | public R pageH5McsInfo(@RequestBody PageMcsInformationDTO pageMcsInformationDTO) { |
| | | return mcsInformationService.pageH5McsInfo(pageMcsInformationDTO); |
| | | } |
| | | |
| | | /** |
| | | * h5分页查询戳戳游戏 |
| | | * @param pageMcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/game/pageH5") |
| | | public R pageH5McsGame(@RequestBody PageMcsGameDTO pageMcsGameDTO) { |
| | | return mcsGameService.pageH5McsGame(pageMcsGameDTO); |
| | | } |
| | | |
| | | /** |
| | | * 游戏详情 |
| | | * @param gameId |
| | | * @return |
| | | */ |
| | | @GetMapping("/game/get") |
| | | public R getMcsGame(@RequestParam("gameId") Long gameId) { |
| | | return mcsGameService.getMcsGame(gameId); |
| | | } |
| | | |
| | | /** |
| | | * 资讯详情 |
| | | * @param infoId |
| | | * @return |
| | | */ |
| | | @GetMapping("/info/get") |
| | | public R getMcsInfo(@RequestParam("infoId") Long infoId) { |
| | | return mcsInformationService.getMcsInfo(infoId); |
| | | } |
| | | |
| | | /** |
| | | * H5分页查询数字商业街商家 |
| | | * @param pageMcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/merchant/pageH5") |
| | | public R pageH5McsMerchant(@RequestBody PageMcsMerchantDTO pageMcsMerchantDTO) { |
| | | return mcsMerchantService.pageH5McsMerchant(pageMcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 我的戳戳卷 |
| | | * @param type |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/myCoupon") |
| | | public R getMyCoupon(@RequestParam(value = "type", required = false) Integer type, @RequestParam("userId") Long userId) { |
| | | return mcsCouponService.getMyCoupon(type, userId); |
| | | } |
| | | |
| | | /** |
| | | * 新增评价记录 |
| | | * @param mcsEvaluateDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/evaluate/add") |
| | | public R addMcsEvaluate(@RequestBody McsEvaluateDTO mcsEvaluateDTO) { |
| | | return mcsEvaluateService.addMcsEvaluate(mcsEvaluateDTO); |
| | | } |
| | | |
| | | /** |
| | | * 我的评价-参与游戏列表 |
| | | * @param pageJoinGameListDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/joinGame/page") |
| | | public R getJoinGameList(@RequestBody PageJoinGameListDTO pageJoinGameListDTO) { |
| | | return mcsCouponService.getJoinGameList(pageJoinGameListDTO); |
| | | } |
| | | |
| | | /** |
| | | * 戳戳卷核销 |
| | | * @param couponId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/coupon/verify") |
| | | public R verifyMcsCoupon(@RequestParam("couponId") Long couponId, @RequestParam("userId") Long userId) { |
| | | return mcsCouponService.verifyMcsCoupon(couponId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询核销记录 |
| | | * @param pageVerifyRecordDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/verifyRecord/page") |
| | | public R pageMcsVerifyRecord(@RequestBody PageVerifyRecordDTO pageVerifyRecordDTO) { |
| | | return mcsVerifiedRecordService.pageMcsVerifyRecord(pageVerifyRecordDTO); |
| | | } |
| | | |
| | | /** |
| | | * 游戏统计 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/game/statistics") |
| | | public R getMcsGameStatistics(@RequestParam("userId") Long userId) { |
| | | return mcsCouponService.getMcsGameStatistics(userId); |
| | | } |
| | | |
| | | /** |
| | | * 修改用戶信息 |
| | | * @param putUserInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/putUserInfo") |
| | | public R putUserInfo(@RequestBody PutUserInfoDTO putUserInfoDTO) { |
| | | return mcsMerchantService.putUserInfo(putUserInfoDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据userId获取商家信息 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/retrieveMcsMerchantInfoByUserId") |
| | | public R retrieveMcsMerchantInfoByUserId(@RequestParam("userId") Long userId) { |
| | | return mcsMerchantService.retrieveMcsMerchantInfoByUserId(userId); |
| | | } |
| | | |
| | | /** |
| | | * 定时任务-每隔5分钟执行一次,将已到期的微商业街商家旗下所有的游戏/资讯全部下架 |
| | | * @return |
| | | */ |
| | | @GetMapping("/offResourceForMcsMerchant") |
| | | public R offResourceForMcsMerchant() { |
| | | return mcsMerchantService.offResourceForMcsMerchant(); |
| | | } |
| | | |
| | | /** |
| | | * 获取产品信息详情 |
| | | * @param productId |
| | | * @return |
| | | */ |
| | | @GetMapping("/product/get") |
| | | public R getMcsProduct(@RequestParam("productId") Long productId) { |
| | | return mcsProductService.getMcsProduct(productId); |
| | | } |
| | | |
| | | /** |
| | | * 定时任务-每隔5分钟执行一次,将已到期的微商业街游戏结束 |
| | | * @return |
| | | */ |
| | | @GetMapping("/endStatusForMcsGame") |
| | | public R endStatusForMcsGame() { |
| | | return mcsGameService.endStatusForMcsGame(); |
| | | } |
| | | } |
| | |
| | | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.panzhihua.common.model.dtos.PageDTO; |
| | | import com.panzhihua.common.model.dtos.shop.*; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopAddressDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopCartDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopEditNubCartDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopFundsExportDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopGoodsDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopOrderCreateDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopOrderDeliverDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopOrderExportDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopOrderPreviewDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopOrderQueryDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopOrderShipDTO; |
| | | import com.panzhihua.common.model.dtos.shop.ComShopSysConfDTO; |
| | | import com.panzhihua.common.model.dtos.shop.OrderPayDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComOrderListDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComShopAddressDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComShopFundsSearchDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComShopGoodsDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComShopOrderSearchDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComShopStoreDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComShopSysConfDTO; |
| | | import com.panzhihua.common.model.dtos.shop.WxPayNotifyOrderDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.shop.AddShopGoodsVO; |
| | | import com.panzhihua.common.model.vos.shop.ComShopSysConfVO; |
| | | import com.panzhihua.common.model.vos.shop.ShopOperLogVO; |
| | | import com.panzhihua.common.model.vos.shop.ShopStoreVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.model.dos.ComShopSysConfDO; |
| | | import com.panzhihua.service_community.service.*; |
| | | import com.panzhihua.service_community.service.ComShopCartService; |
| | | import com.panzhihua.service_community.service.ComShopGoodsService; |
| | | import com.panzhihua.service_community.service.ComShopOperLogService; |
| | | import com.panzhihua.service_community.service.ComShopOrderService; |
| | | import com.panzhihua.service_community.service.ComShopStoreService; |
| | | import com.panzhihua.service_community.service.ComShopSysConfService; |
| | | import com.panzhihua.service_community.service.ComShopUserAddressService; |
| | | import com.panzhihua.service_community.service.ConvenientMerchantService; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | |
| | | private ComShopUserAddressService comShopUserAddressService; |
| | | @Resource |
| | | private ComShopSysConfService comShopSysConfService; |
| | | @Resource |
| | | private ConvenientMerchantService convenientMerchantService; |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | /** |
| | | * 店铺列表-分页查询 |
| | |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * check商家/店铺是否有效 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/checkStoreIsValid") |
| | | public R checkStoreIsValid(@RequestParam("userId") Long userId) { |
| | | Boolean isShopValid = comShopStoreService.checkStoreIsValid(userId); |
| | | Boolean isConvenientValid = convenientMerchantService.checkStoreIsValid(userId); |
| | | Boolean isMcsValid = userService.checkUserIsValid(userId, 11); |
| | | return R.ok(isShopValid || isConvenientValid || isMcsValid); |
| | | } |
| | | } |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R delectStreat(@RequestBody List<Long> Ids) { |
| | | R r = comStreetService.delectStreat(Ids); |
| | | return R.ok(r); |
| | | return r; |
| | | } |
| | | |
| | | } |
| | |
| | | * @date 2021/8/31 15:03 |
| | | */ |
| | | @GetMapping("workGuide/classify/getList") |
| | | public R getWorkGuideClassifyList() { |
| | | return comActWorkGuideClassifyService.getWorkGuideClassifyList(); |
| | | public R getWorkGuideClassifyList(@RequestParam("areaCode")String areaCode) { |
| | | return comActWorkGuideClassifyService.getWorkGuideClassifyList(areaCode); |
| | | } |
| | | |
| | | /** |
New file |
| | |
| | | package com.panzhihua.service_community.config; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.PluginUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor; |
| | | import org.apache.ibatis.executor.Executor; |
| | | import org.apache.ibatis.mapping.BoundSql; |
| | | import org.apache.ibatis.mapping.MappedStatement; |
| | | import org.apache.ibatis.mapping.ParameterMapping; |
| | | import org.apache.ibatis.session.ResultHandler; |
| | | import org.apache.ibatis.session.RowBounds; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.sql.SQLException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public class MybatisHmkInterceptor implements InnerInterceptor { |
| | | @Override |
| | | public void beforeQuery(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws SQLException { |
| | | String sql=boundSql.getSql(); |
| | | if(sql.contains("community_id = 10086")){ |
| | | sql=sql.replace("community_id = 10086","community_id in (30,31)"); |
| | | PluginUtils.mpBoundSql(boundSql).sql(sql); |
| | | } |
| | | InnerInterceptor.super.beforeQuery(executor, ms, parameter, rowBounds, resultHandler, boundSql); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.panzhihua.service_community.config; |
| | | |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | |
| | | @Bean |
| | | public MybatisPlusInterceptor mybatisPlusInterceptor() { |
| | | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
| | | interceptor.addInnerInterceptor(new MybatisHmkInterceptor()); |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.H2)); |
| | | return interceptor; |
| | | } |
New file |
| | |
| | | //package com.panzhihua.service_community.config; |
| | | // |
| | | //import java.lang.reflect.Method; |
| | | //import java.util.Arrays; |
| | | //import java.util.List; |
| | | //import java.util.Map; |
| | | //import java.util.stream.Collectors; |
| | | //import java.util.stream.IntStream; |
| | | // |
| | | //import javax.servlet.http.HttpServletRequest; |
| | | //import javax.servlet.http.HttpServletResponse; |
| | | // |
| | | //import org.aspectj.lang.ProceedingJoinPoint; |
| | | //import org.aspectj.lang.annotation.Around; |
| | | //import org.aspectj.lang.annotation.Aspect; |
| | | //import org.aspectj.lang.annotation.Pointcut; |
| | | //import org.aspectj.lang.reflect.MethodSignature; |
| | | //import org.slf4j.Logger; |
| | | //import org.slf4j.LoggerFactory; |
| | | //import org.springframework.core.LocalVariableTableParameterNameDiscoverer; |
| | | //import org.springframework.stereotype.Component; |
| | | //import org.springframework.util.ObjectUtils; |
| | | // |
| | | //import com.alibaba.fastjson.JSONObject; |
| | | //import com.panzhihua.common.model.vos.R; |
| | | //import com.panzhihua.common.utlis.DateUtils; |
| | | // |
| | | //import lombok.extern.slf4j.Slf4j; |
| | | // |
| | | ///** |
| | | // * 应用模块名称 |
| | | // * <p> |
| | | // * 代码描述 |
| | | // * <p> |
| | | // * 拦截controller,输出入参、响应内容和响应时间 Copyright: Copyright (C) 2021 XXX, Inc. All rights reserved. |
| | | // * <p> |
| | | // * Company: 成都呐喊信息技术有限公司 |
| | | // * <p> |
| | | // * |
| | | // * @author manailin |
| | | // * @since 2021/8/24 15:30 |
| | | // */ |
| | | //@Slf4j |
| | | //@Aspect |
| | | //@Component |
| | | //public class ParamOutAspect { |
| | | // |
| | | // /** |
| | | // * 记录特定日志的声明 |
| | | // */ |
| | | // private final Logger slowClassAndMethodLog = LoggerFactory.getLogger("slowClassAndMethodLog"); |
| | | // /** |
| | | // * 设定方法的执行时间限制毫秒数 |
| | | // */ |
| | | // private long maxReduceTime = 100; |
| | | // |
| | | // @Pointcut("execution(* com.panzhihua.service_community.api..*.*(..)) || execution (public * com.panzhihua.service_community.service..* (..))") |
| | | // public void aspect() {} |
| | | // |
| | | // /** |
| | | // * [方法描述] 环绕通知,拦截controller,输出请求参数、响应内容和响应时间 |
| | | // * |
| | | // * @param joinPoint |
| | | // * @return java.lang.Object |
| | | // * @author manailin |
| | | // * @date 2021/8/24 17:04 |
| | | // */ |
| | | // @Around("aspect()") |
| | | // public Object processLog(ProceedingJoinPoint joinPoint) { |
| | | // log.info("进入方法性能检查方法"); |
| | | // Method method = ((MethodSignature)joinPoint.getSignature()).getMethod(); |
| | | // String className = method.getDeclaringClass().getName(); |
| | | // // 获取方法名称 |
| | | // String methodName = method.getName(); |
| | | // // 获取参数名称 |
| | | // LocalVariableTableParameterNameDiscoverer paramNames = new LocalVariableTableParameterNameDiscoverer(); |
| | | // String[] params = paramNames.getParameterNames(method); |
| | | // // 获取参数 |
| | | // Object[] args = joinPoint.getArgs(); |
| | | // // 过滤掉request和response,不能序列化 |
| | | // List<Object> filteredArgs = Arrays.stream(args) |
| | | // .filter(arg -> (!(arg instanceof HttpServletRequest) && !(arg instanceof HttpServletResponse))) |
| | | // .collect(Collectors.toList()); |
| | | // JSONObject rqsJson = new JSONObject(); |
| | | // rqsJson.put("rqsMethod", methodName); |
| | | // rqsJson.put("rqsTime", DateUtils.getCurrentDateStr_MS()); |
| | | // if (ObjectUtils.isEmpty(filteredArgs)) { |
| | | // rqsJson.put("rqsParams", null); |
| | | // } else { |
| | | // // 拼接请求参数 |
| | | // Map<String, Object> rqsParams = IntStream.range(0, filteredArgs.size()).boxed() |
| | | // .collect(Collectors.toMap(j -> params[j], j -> filteredArgs.get(j))); |
| | | // rqsJson.put("rqsParams", rqsParams); |
| | | // } |
| | | // log.info(className + ":" + methodName + "请求信息为:" + rqsJson.toJSONString()); |
| | | // Object resObj = null; |
| | | // long startTime = System.currentTimeMillis(); |
| | | // try { |
| | | // // 执行原方法 |
| | | // resObj = joinPoint.proceed(args); |
| | | // } catch (Throwable e) { |
| | | // log.error(className + ":" + methodName + "方法执行异常!", e); |
| | | // // throw new ServiceException(methodName + "方法执行异常!"); |
| | | // } |
| | | // long endTime = System.currentTimeMillis(); |
| | | // if (resObj != null) { |
| | | // if (resObj instanceof R) { |
| | | // // 输出响应信息 |
| | | // R resJson = (R)resObj; |
| | | // // 打印耗时的信息 |
| | | // this.printExecTime(className , methodName,rqsJson,resJson, startTime, endTime); |
| | | // return resJson; |
| | | // } else { |
| | | // return resObj; |
| | | // } |
| | | // } else { |
| | | // return R.ok(); |
| | | // } |
| | | // } |
| | | // |
| | | // /** |
| | | // * [方法描述] 打印方法执行耗时的信息,如果超过了一定的时间,才打印 |
| | | // * |
| | | // * @param methodName |
| | | // * 执行方法名 |
| | | // * @param startTime |
| | | // * 执行开始时间 |
| | | // * @param endTime |
| | | // * 执行结束时间 |
| | | // * @author manailin |
| | | // * @date 2021/8/24 17:05 |
| | | // */ |
| | | // private void printExecTime(String className,String methodName, JSONObject rqsJson,R resJson, long startTime, long endTime) { |
| | | // long diffTime = endTime - startTime; |
| | | // if (diffTime > maxReduceTime) { |
| | | // slowClassAndMethodLog.info(className+":"+methodName + " 方法执行耗时:" + diffTime + " ms"); |
| | | // slowClassAndMethodLog.info(methodName + " 请求参数:" +rqsJson.toJSONString()); |
| | | // slowClassAndMethodLog.info(className + " 响应信息:" + JSONObject.toJSONString(resJson)); |
| | | // } |
| | | // // TODO 可以集成redis,将每个controller的执行时间追加到redis中,再用定时每周一次同步到库中 |
| | | // } |
| | | // |
| | | //} |
| | |
| | | public static final String RAFFLE_ROUTING_KEY="raffle.key"; |
| | | public static final String RAFFLE_EXCHANGE="raffle.exchange"; |
| | | |
| | | public static final String McsOrder_QUEUE="mcsOrder.queue"; |
| | | public static final String McsOrder_ROUTING_KEY="mcsOrder.key"; |
| | | public static final String McsOrder_EXCHANGE="mcsOrder.exchange"; |
| | | |
| | | |
| | | @Bean |
| | |
| | | } |
| | | |
| | | @Bean |
| | | public Queue mcsOrderQueue(){ |
| | | return new Queue(McsOrder_QUEUE,true,false,false,null); |
| | | } |
| | | |
| | | @Bean |
| | | public Exchange mcsOrderExchange(){ |
| | | Map<String, Object> arguments = new HashMap<>(); |
| | | arguments.put("x-delayed-type", ExchangeTypes.DIRECT); |
| | | return new CustomExchange(McsOrder_EXCHANGE,"x-delayed-message",true,false,arguments); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding mcsOrderBinding(){ |
| | | return BindingBuilder.bind(mcsOrderQueue()).to(mcsOrderExchange()).with(McsOrder_ROUTING_KEY).noargs(); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue orderQueue(){ |
| | | return new Queue(Order_QUEUE,true,false,false,null); |
| | | } |
| | |
| | | |
| | | @Select("<script> " + " SELECT org.id, org.name, COUNT(pm.id) as total " + " FROM com_pb_org org " |
| | | + " LEFT JOIN com_pb_member pm ON org.id = pm.org_id " + " <where> " + " org.status = 1 " |
| | | + "<if test='pageDTO.communityId != null'>" + " AND org.community_id = #{pageDTO.communityId} " + "</if> " |
| | | + "<if test='pageDTO.communityId != null'>" + " AND org.community_id = ${pageDTO.communityId} " + "</if> " |
| | | + " </where>" + " GROUP BY org.id " + |
| | | // " ORDER BY org.${pageDTO.sortBy} ${pageDTO.order} " + |
| | | " ORDER BY total desc " + "</script>") |
| | |
| | | + " when age > 60 then '60以上' " + " ELSE '' " + " END AS lev " + " FROM ( " |
| | | + " SELECT id, id_card, ROUND(DATEDIFF(CURDATE(), STR_TO_DATE(SUBSTRING(id_card,7,15), '%Y%m%d'))/365.2422) AS age " |
| | | + " FROM com_pb_member " + " <where> " + " audit_result = 1 " + "<if test='queryDTO.communityId != null'> " |
| | | + " AND community_id = #{queryDTO.communityId} " + "</if> " + " </where>" + " ) t " + " )abt " |
| | | + " AND community_id = ${queryDTO.communityId} " + "</if> " + " </where>" + " ) t " + " )abt " |
| | | + " GROUP BY abt.lev " + " ) t2 " + "</script>") |
| | | BigScreenStatisticAgeGender age(@Param("queryDTO") BigScreenStatisticAgeGenderDTO bigScreenStatisticAgeGenderDTO); |
| | | |
| | |
| | | + " FROM ( " |
| | | + " SELECT CONVERT(SUBSTRING(id_card,'17',1), UNSIGNED INTEGER)%2 AS sxi, COUNT(id_card) AS total " |
| | | + " FROM com_pb_member " + " <where> " + " audit_result = 1 " + "<if test='queryDTO.communityId != null'>" |
| | | + " AND community_id = #{queryDTO.communityId} " + "</if> " + " </where>" + " GROUP BY sxi " + " )t " |
| | | + " AND community_id = ${queryDTO.communityId} " + "</if> " + " </where>" + " GROUP BY sxi " + " )t " |
| | | + " ) t2 " + "</script>") |
| | | BigScreenStatisticAgeGender |
| | | gender(@Param("queryDTO") BigScreenStatisticAgeGenderDTO bigScreenStatisticAgeGenderDTO); |
| | |
| | | + " SUM(CASE TYPE WHEN 3 THEN total ELSE 0 END) as 'activityCount', " |
| | | + " SUM(CASE TYPE WHEN 4 THEN total ELSE 0 END) as 'dynCount',SUM(CASE TYPE WHEN 5 THEN total ELSE 0 END) as 'committeeCount' " + " FROM ( " |
| | | + " SELECT 1 AS TYPE , COUNT(id) total " + " FROM com_pb_org org " |
| | | + " WHERE org.community_id = #{communityId} AND STATUS=1 " + " UNION ALL " |
| | | + " WHERE org.community_id = ${communityId} AND STATUS=1 " + " UNION ALL " |
| | | + " SELECT 2 AS TYPE , COUNT(id) total " + " FROM com_pb_member " |
| | | + " WHERE community_id = #{communityId} AND audit_result = 1 " + " UNION ALL " |
| | | + " WHERE community_id = ${communityId} AND audit_result = 1 " + " UNION ALL " |
| | | + " SELECT 3 AS TYPE , COUNT(id) total " + " FROM com_pb_activity " |
| | | + " WHERE community_id = #{communityId} AND STATUS IN (2,3,4,5) " + " UNION ALL " |
| | | + " WHERE community_id = ${communityId} AND STATUS IN (2,3,4,5) " + " UNION ALL " |
| | | + " SELECT 4 AS TYPE , COUNT(id) total " + " FROM com_pb_dyn " |
| | | + " WHERE community_id = #{communityId} AND TYPE = 1 UNION ALL " + |
| | | + " WHERE community_id = ${communityId} AND TYPE = 1 UNION ALL " + |
| | | "select 5 AS TYPE,count(id) total from com_pb_member_role " + |
| | | "where community_id =#{communityId}" + ") t" + "</script>") |
| | | "where community_id = ${communityId}" + ") t" + "</script>") |
| | | BigScreenStatisticPartyBuild partybuild(@Param("communityId") Long communityId); |
| | | |
| | | @Select("<script> " + " SELECT pm.id, pm.member_id, pm.user_id, pm.name, " + " case " |
| | |
| | | + " ,COUNT(pa.id) AS total " |
| | | + " FROM com_pb_activity_member pm LEFT JOIN com_pb_activity pa ON pm.activity_id = pa.id " |
| | | + " LEFT JOIN com_pb_member me ON pm.member_id = me.id " |
| | | + " WHERE pa.community_id = #{communityId} AND me.id IS NOT null " + " GROUP BY pm.member_id " |
| | | + " WHERE pa.community_id = ${communityId} AND me.id IS NOT null " + " GROUP BY pm.member_id " |
| | | + " ORDER BY total DESC " + " LIMIT 3 " + "</script>") |
| | | List<PartyBuildingMemberVO> bigscreenPartyactivitytopuser(@Param("communityId") Long communityId); |
| | | |
| | |
| | | + " when photo_path IS NOT NULL then photo_path " |
| | | + " when CAST(SUBSTRING(id_card , 17, 1) AS SIGNED)%2=1 then 'https://www.psciio.com/idcard/tst/idcard/a723e5bcbd594a48956ef9354c8b477c.jpg' " |
| | | + " ELSE 'https://www.psciio.com/idcard/tst/idcard/cfb9b58913074068bba8c7002f91e7ff.jpg' END AS photo_path , " |
| | | + " 0 AS total " + " FROM com_pb_member " + " WHERE community_id=#{communityId} " |
| | | + " 0 AS total " + " FROM com_pb_member " + " WHERE community_id = ${communityId} " |
| | | + " ORDER BY join_time ASC " + " LIMIT 3 " + "</script>") |
| | | List<PartyBuildingMemberVO> defaultPartyactivity(@Param("communityId") Long communityId); |
| | | |
| | |
| | | + " ORDER BY idxName " + ")m LEFT JOIN " + "( " + "SELECT " |
| | | + " date_format(activity_time_begin, '%Y-%m') AS idxName, " + " COUNT(id) AS total " |
| | | + " FROM com_pb_activity " + " WHERE " |
| | | + " community_id=#{queryDTO.communityId} AND STATUS IN ( 3, 4, 5 ) AND " |
| | | + " community_id = ${queryDTO.communityId} AND STATUS IN ( 3, 4, 5 ) AND " |
| | | + " activity_time_begin < DATE_FORMAT( DATE_ADD( STR_TO_DATE(#{queryDTO.date}, '%Y-%m-%d'), INTERVAL 1 MONTH ), '%Y-%m-%d' ) AND " |
| | | + " activity_time_begin > DATE_FORMAT( DATE_ADD( STR_TO_DATE(#{queryDTO.date}, '%Y-%m-%d'), INTERVAL - 12 MONTH ), '%Y-%m-%d') " |
| | | + " GROUP BY idxName " + " ORDER BY idxName ASC " + " ) d ON m.idxName = d.idxName " |
| | |
| | | + " ( SELECT @cdate := date_add( #{queryDTO.endTime}, INTERVAL 1 DAY ) FROM com_pb_activity LIMIT 7 ) d " |
| | | + " ORDER BY " + " idxName " + " ) m " + " LEFT JOIN ( " + " SELECT " |
| | | + " date_format( activity_time_begin, '%Y-%m-%d' ) AS idxName, " + " COUNT( id ) AS total " + " FROM " |
| | | + " com_pb_activity " + " WHERE " + " community_id = #{queryDTO.communityId} " |
| | | + " com_pb_activity " + " WHERE " + " community_id = ${queryDTO.communityId} " |
| | | + " AND STATUS IN ( 3, 4, 5 ) " |
| | | + " AND activity_time_begin < DATE_FORMAT( STR_TO_DATE( #{queryDTO.startTime}, '%Y-%m-%d' ), '%Y-%m-%d' ) " |
| | | + " AND activity_time_begin > DATE_FORMAT( STR_TO_DATE( #{queryDTO.endTime}, '%Y-%m-%d' ), '%Y-%m-%d' ) " |
| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenActActivityListDTO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.screen.work.ActActivityListVO; |
| | | import com.panzhihua.common.model.vos.screen.CarouselInfoVO; |
| | | import com.panzhihua.service_community.model.dos.ComActActivityDO; |
| | |
| | | + "left join sys_user u on a.sponsor_id=u.user_id " + "left join (select * from com_act_act_sign where `status` = 1) s on a.id=s.activity_id " |
| | | + "left join com_act ca on a.community_id=ca.community_id " + " where 1=1 " + |
| | | |
| | | "<if test='comActActivityVO.choice == 0 '>" + "AND a.community_id=#{comActActivityVO.communityId} " + " </if> " |
| | | "<if test='comActActivityVO.choice == 0 '>" + "AND a.community_id = ${comActActivityVO.communityId} " + " </if> " |
| | | + |
| | | "<if test='comActActivityVO.areaCode !=null '>" + "AND ca.area_code = ${comActActivityVO.areaCode} " + " </if> " |
| | | + |
| | | |
| | | "<if test='comActActivityVO.activityName != null and comActActivityVO.activityName.trim() != ""'>" |
| | |
| | | // + "a.publish_at, " + "a.is_qr_code, " + "a.begin_at, " + "a.end_at, " + "a.sign_up_begin, " + "a.sign_up_end " + "FROM " |
| | | // + " com_act_activity a " + " LEFT JOIN sys_user u on a.sponsor_id=u.user_id " |
| | | // + " LEFT JOIN com_act_act_sign s on a.id=s.activity_id " + "WHERE " |
| | | // + " a.`status` = 1 and a.community_id=#{comActActivityVO.communityId} " |
| | | // + " a.`status` = 1 and a.community_id = ${comActActivityVO.communityId} " |
| | | // + "<if test='comActActivityVO.activityName != null and comActActivityVO.activityName !=""'>" |
| | | // + " and a.activity_name LIKE concat( #{comActActivityVO.activityName}, '%' ) " + " </if> " |
| | | // + "<if test='comActActivityVO.status != null and comActActivityVO.status !=0 and comActActivityVO.status !=1'>" |
| | |
| | | // + "count(if(s.is_volunteer=1,s.id,null))volunteer_now, " + "a.`status`, " + "a.publish_at, " + "a.is_qr_code, " + "a.begin_at, " |
| | | // + "a.end_at, " + "a.sign_up_begin, " + "a.sign_up_end " + "FROM " + " com_act_activity a " |
| | | // + " LEFT JOIN sys_user u on a.sponsor_id=u.user_id " + " LEFT JOIN com_act_act_sign s on a.id=s.activity_id " |
| | | // + "WHERE " + " a.`status` != 1 and a.community_id=#{comActActivityVO.communityId} " |
| | | // + "WHERE " + " a.`status` != 1 and a.community_id = ${comActActivityVO.communityId} " |
| | | // + "<if test='comActActivityVO.activityName != null and comActActivityVO.activityName !=""'>" |
| | | // + " and a.activity_name LIKE concat( #{comActActivityVO.activityName}, '%' ) " + " </if> " |
| | | // + "<if test='comActActivityVO.status != null and comActActivityVO.status !=0 '>" |
| | |
| | | int updateStatusToBeginAfterSingEnd(); |
| | | |
| | | @Select("select GROUP_CONCAT(t.x1,',',t.x2,',',t.x3,',',t.x4) from ( " + "SELECT " |
| | | + "(select COUNT(d.id) from com_act_discuss d where d.community_id=#{communityId})x1, " |
| | | + "(select COUNT(w.id) from com_act_micro_wish w where w.community_id=#{communityId})x2, " |
| | | + "(select COUNT(p.id) from com_act_easy_photo p where p.community_id=#{communityId})x3, " |
| | | + " COUNT( a.id ) x4 " + "FROM " + " com_pb_activity a " + "WHERE " + " a.community_id =#{communityId})t") |
| | | + "(select COUNT(d.id) from com_act_discuss d where d.community_id = ${communityId})x1, " |
| | | + "(select COUNT(w.id) from com_act_micro_wish w where w.community_id = ${communityId})x2, " |
| | | + "(select COUNT(p.id) from com_act_easy_photo p where p.community_id = ${communityId})x3, " |
| | | + " COUNT( a.id ) x4 " + "FROM " + " com_pb_activity a " + "WHERE " + " a.community_id = ${communityId})t") |
| | | String selectCommunityGovernanceTrendsVO(Long communityId); |
| | | |
| | | @Select(" " + " SELECT " |
| | | + " (select COUNT(d.id) from com_act_discuss d where DATE_FORMAT(d.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and d.community_id=#{communityId})discuss, " |
| | | + " (select COUNT(w.id) from com_act_micro_wish w where DATE_FORMAT(w.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and w.community_id=#{communityId})microWish, " |
| | | + " (select COUNT(p.id) from com_act_easy_photo p where DATE_FORMAT(p.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and p.community_id=#{communityId})eashPhoto, " |
| | | + " (select COUNT(pa.id) from com_pb_activity pa where DATE_FORMAT(pa.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and pa.community_id=#{communityId})pbActivity, " |
| | | + " (select COUNT(d.id) from com_act_discuss d where DATE_FORMAT(d.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and d.community_id = ${communityId})discuss, " |
| | | + " (select COUNT(w.id) from com_act_micro_wish w where DATE_FORMAT(w.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and w.community_id = ${communityId})microWish, " |
| | | + " (select COUNT(p.id) from com_act_easy_photo p where DATE_FORMAT(p.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and p.community_id = ${communityId})eashPhoto, " |
| | | + " (select COUNT(pa.id) from com_pb_activity pa where DATE_FORMAT(pa.create_at,'%Y-%m-%d')=DATE_FORMAT(#{date},'%Y-%m-%d') and pa.community_id = ${communityId})pbActivity, " |
| | | + " COUNT( a.id ) actActivity " + " FROM " + " com_pb_activity a " + " WHERE " |
| | | + " DATE_FORMAT( a.create_at, '%Y-%m-%d' )=DATE_FORMAT(#{date},'%Y-%m-%d') " |
| | | + " AND a.community_id =#{communityId}") |
| | | + " AND a.community_id = ${communityId}") |
| | | CommunityActivitiesVO selectCommunityActivitiesVO(@Param("communityId") Long communityId, @Param("date") Date date); |
| | | |
| | | @Select("SELECT " + " count( caa.id ) as totalNum, " |
| | | + " (select count(id) from com_act_activity where `status` IN (1,2,3,4,5) and volunteer_min = 0 and community_id = #{communityId}) as commonNum, " |
| | | + " (select count(id) from com_act_activity where `status` IN (1,2,3,4,5) and volunteer_min > 0 and community_id = #{communityId}) as volunteerNum, " |
| | | + " (select count(caas.user_id) from (select * from com_act_act_sign where `status` = 1) as caas left join com_act_activity as caa on caa.id = caas.activity_id where caa.`status` IN (1,2,3,4,5) and is_volunteer = 0 and caa.community_id = #{communityId}) as commonPeopleNum, " |
| | | + " (select count(caas.user_id) from (select * from com_act_act_sign where `status` = 1) as caas left join com_act_activity as caa on caa.id = caas.activity_id where caa.`status` IN (1,2,3,4,5) and is_volunteer = 1 and caa.community_id = #{communityId}) as volunteerPeopleNum, " |
| | | + " (select count(id) from com_act_activity where `status` IN (1,2,3,4,5) and community_id = #{communityId} and create_at between date_sub(curdate() - day(curdate()) +1,interval 1 month) and now()) as currentNum " |
| | | + " (select count(id) from com_act_activity where `status` IN (1,2,3,4,5) and volunteer_min = 0 and community_id = ${communityId}) as commonNum, " |
| | | + " (select count(id) from com_act_activity where `status` IN (1,2,3,4,5) and volunteer_min > 0 and community_id = ${communityId}) as volunteerNum, " |
| | | + " (select count(caas.user_id) from (select * from com_act_act_sign where `status` = 1) as caas left join com_act_activity as caa on caa.id = caas.activity_id where caa.`status` IN (1,2,3,4,5) and is_volunteer = 0 and caa.community_id = ${communityId}) as commonPeopleNum, " |
| | | + " (select count(caas.user_id) from (select * from com_act_act_sign where `status` = 1) as caas left join com_act_activity as caa on caa.id = caas.activity_id where caa.`status` IN (1,2,3,4,5) and is_volunteer = 1 and caa.community_id = ${communityId}) as volunteerPeopleNum, " |
| | | + " (select count(id) from com_act_activity where `status` IN (1,2,3,4,5) and community_id = ${communityId} and create_at between date_sub(curdate() - day(curdate()) +1,interval 1 month) and now()) as currentNum " |
| | | + "FROM " + " com_act_activity AS caa " + "WHERE " |
| | | + " caa.`status` IN (1,2,3,4,5) and community_id = #{communityId}") |
| | | + " caa.`status` IN (1,2,3,4,5) and community_id = ${communityId}") |
| | | Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("nowDate") String nowDate); |
| | | |
| | | @Select("SELECT id,activity_name as content,IF(volunteer_max = 0,'居民活动','志愿者活动') AS typeName FROM com_act_activity " |
| | | + "WHERE community_id = #{communityId} AND (status = 3 OR status = 4 OR status = 5) ORDER BY create_at DESC LIMIT #{pageSize}") |
| | | + "WHERE community_id = ${communityId} AND (status = 3 OR status = 4 OR status = 5) ORDER BY create_at DESC LIMIT #{pageSize}") |
| | | List<CarouselInfoVO> screenActivity(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | |
| | | @Select("SELECT cover FROM com_act_activity WHERE community_id = #{communityId}") |
| | | @Select("SELECT cover FROM com_act_activity WHERE community_id = ${communityId}") |
| | | List<String> listImg(@Param("communityId") Long communityId); |
| | | |
| | | @Select("<script> " + "SELECT " + " caa.id, " + " su.`name` AS userName , " + " su.image_url, " |
| | |
| | | + " caa.content, " + " caa.activity_addr " + "FROM " + " com_act_activity AS caa " |
| | | + " LEFT JOIN sys_user AS su ON su.user_id = caa.sponsor_id" + " <where> " |
| | | + "<if test='actActivityListDTO.communityId != null '>" |
| | | + " and caa.community_id = #{actActivityListDTO.communityId} " + " </if> " |
| | | + " and caa.community_id = ${actActivityListDTO.communityId} " + " </if> " |
| | | + "<if test='actActivityListDTO.startTime!=null and actActivityListDTO.startTime != ""'>" |
| | | + " AND DATE_FORMAT(caa.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{actActivityListDTO.startTime} " |
| | | + " </if> " + "<if test='actActivityListDTO.endTime!=null and actActivityListDTO.endTime != ""'>" |
| | |
| | | int addActivityType(@Param("comActActivityTypeVO") ComActActivityTypeVO comActActivityTypeVO); |
| | | |
| | | /** |
| | | * 居民活动分类统计数据 |
| | | * @param communityId |
| | | * @param isResidentAct |
| | | * @return |
| | | */ |
| | | List<StatisticsCommVO> selectResidentActHistogramData(@Param("communityId") Long communityId, @Param("isResidentAct") boolean isResidentAct); |
| | | |
| | | /** |
| | | * 居民活动分类人口参与统计 |
| | | * @param communityId |
| | | * @param isResidentAct |
| | | * @return |
| | | */ |
| | | List<StatisticsCommVO> getIndexResidentActBaseData(@Param("communityId") Long communityId, @Param("isResidentAct") boolean isResidentAct); |
| | | |
| | | /** |
| | | * 获取活动新增折线数据 |
| | | * @param communityId |
| | | * @param isResidentAct |
| | | * @return |
| | | */ |
| | | List<StatisticsCommVO> getActAddPolylineData(@Param("communityId") Long communityId, @Param("isResidentAct") boolean isResidentAct); |
| | | |
| | | /** |
| | | * 获取活动累计折线数据 |
| | | * @param communityId |
| | | * @param isResidentAct |
| | | * @param date |
| | | * @return |
| | | */ |
| | | StatisticsCommVO getActTotalPolylineData(@Param("communityId") Long communityId, @Param("isResidentAct") boolean isResidentAct, @Param("date") String date); |
| | | |
| | | IPage<ComActActivityVO> indexActList(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO, @Param("isResidentAct") boolean isResidentAct); |
| | | |
| | | /** |
| | | * 查询项目活动列表 |
| | | * @param page |
| | | * @return |
| | |
| | | IPage<ActActivityListVO> selectActivityBySocialWorker(Page page,@Param("id")Long id); |
| | | |
| | | /** |
| | | * [方法描述] 根据社区ID查询所属城市所在区区域代码, |
| | | * |
| | | * @param communityId |
| | | * 社区ID |
| | | * @return String 区域code |
| | | * @author manailin |
| | | * @date 2022/2/17 10:09 |
| | | */ |
| | | String getActBelongRegionCode(@Param("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 查询党员活动数量 |
| | | * @param communityId |
| | | * @return |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.community.ComActCommiteeVO; |
| | | import com.panzhihua.common.model.vos.community.StatisticsCommVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.panzhihua.service_community.entity.ComActCommittee; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * (ComActCommittee)表数据库访问层 |
| | |
| | | */ |
| | | IPage<ComActCommiteeVO> pageList(Page page, @Param("commonPage")CommonPage commonPage); |
| | | |
| | | /** |
| | | * 业主委员会党员占比 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | List<StatisticsCommVO> selectCommitteePartyPercent(@Param("communityId") Long communityId); |
| | | } |
| | |
| | | + " order by a.create_at desc" + "</script>") |
| | | IPage<ComActVO> pageCommunity(Page page, @Param("pageComActDTO") PageComActDTO pageComActDTO); |
| | | |
| | | @Update("update sys_user u set u.password=#{password} where u.account=#{account} and u.type=3 and u.community_id=#{communityId}") |
| | | @Update("update sys_user u set u.password=#{password} where u.account=#{account} and u.type=3 and u.community_id = ${communityId}") |
| | | void updateAccountPassword(@Param("password") String password, @Param("account") String account, |
| | | @Param("communityId") Long communityId); |
| | | |
| | |
| | | + "left join com_mng_struct_area_province as cmsap on cmsap.province_adcode = ca.province_code\n" |
| | | + "left join com_mng_struct_area_city as cmsac on cmsac.city_adcode = ca.city_code\n" |
| | | + "left join com_mng_struct_area_district as cmsad on cmsad.district_adcode = ca.area_code\n" |
| | | + "left join com_street as cs on cs.street_id = ca.street_id\n" + "where ca.community_id = #{communityId}") |
| | | + "left join com_street as cs on cs.street_id = ca.street_id\n" + "where ca.community_id = ${communityId}") |
| | | ComPopulationActVO getPopulationActById(@Param("communityId") Long communityId); |
| | | |
| | | @Select("select `name`,street_id from com_street where area_code = '510423'") |
| | | List<StreetAllAppletsVO> getStreetList(); |
| | | @Select("select `name`,street_id from com_street where area_code = #{areaCode}") |
| | | List<StreetAllAppletsVO> getStreetList(String areaCode); |
| | | |
| | | @Select("select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName from com_act as ca left join com_street as cs on cs.street_id = ca.street_id where ca.state = 0 and ca.street_id = #{streetId}") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByStreetId(@Param("streetId") Long streetId); |
| | |
| | | @Select("select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName " + |
| | | "from com_act as ca " + |
| | | "left join com_street as cs on cs.street_id = ca.street_id " + |
| | | "where ca.state = 0 and ca.name like '%%' and cs.area_code = '510423'") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByName(@Param("name") String name); |
| | | "where ca.state = 0 and ca.name like '%%' and cs.area_code = #{areaCode}") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByName(@Param("name") String name,@Param("areaCode") String areaCode); |
| | | |
| | | @Select("SELECT c.community_id, c.`name`, c.street_id, cs.`name` as streetName," + |
| | | "round( ST_Distance_Sphere ( Point ( #{communityDTO.longitude}, #{communityDTO.latitude} ), Point ( c.lng, c.lat ) )/ 1000, 2 ) AS distance " + |
| | | "FROM com_act c left join com_street as cs on cs.street_id = c.street_id " + |
| | | "where cs.area_code = '510423' " + |
| | | "where cs.area_code = #{communityDTO.areaCode} " + |
| | | "HAVING distance >= 0 and distance <= #{communityDTO.distance} ORDER BY distance ASC") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByNearby(@Param("communityDTO") SearchCommunityDTO communityDTO); |
| | | |
| | | @Select("select community_id,name,lng,lat from com_act where state = 0 and area_code = '510423' ") |
| | | List<EventGridCommunityAdminVO> getWestCommunityLists(); |
| | | @Select("<script> select community_id,name,lng,lat from com_act where state = 0 <if test='areaCode !=null'> and area_code = #{areaCode} </if> </script>") |
| | | List<EventGridCommunityAdminVO> getWestCommunityLists(@Param("areaCode") String areCode); |
| | | |
| | | @Select("select account,plaintext_password as password from com_act where community_id = #{communityId}") |
| | | @Select("select account,plaintext_password as password from com_act where community_id = ${communityId}") |
| | | ComActPasswordVo getCommunityPassword(@Param("communityId") Long communityId); |
| | | } |
| | |
| | | // + "COUNT( DISTINCT c.id ) commentNum, " + "u.name userName, " + "u.nick_name userNickName, " + "d.create_at " |
| | | // + "FROM " + "com_act_discuss d " + "JOIN sys_user u ON d.user_id = u.user_id " |
| | | // + "LEFT JOIN com_act_discuss_comment c ON d.id = c.discuss_id " |
| | | // + " where d.community_id=#{pageComActDiscussDTO.communityId}" |
| | | // + " where d.community_id = ${pageComActDiscussDTO.communityId}" |
| | | // + "<if test='pageComActDiscussDTO.subject != null and pageComActDiscussDTO.subject.trim() != ""'>" |
| | | // + " and d.`discuss_subject` LIKE concat( #{pageComActDiscussDTO.subject}, '%' ) " + " </if> " |
| | | // + "<if test='pageComActDiscussDTO.begin != null '>" + "AND d.create_at BETWEEN #{pageComActDiscussDTO.begin} " |
| | |
| | | // + "LEFT JOIN com_act_discuss_user du ON d.id = du.discuss_id " |
| | | // + "<if test='pageComActDiscussDTO.loginUserId != null '>" |
| | | // + "LEFT JOIN com_act_discuss_option_user ou on do.id=ou.discuss_option_id and ou.user_id=#{pageComActDiscussDTO.loginUserId} " |
| | | // + " </if> " + " where d.community_id=#{pageComActDiscussDTO.communityId}" + " and d.is_del = 2" |
| | | // + " </if> " + " where d.community_id = ${pageComActDiscussDTO.communityId}" + " and d.is_del = 2" |
| | | // + "<if test='pageComActDiscussDTO.type != null '>" |
| | | // + " and d.`type` = #{pageComActDiscussDTO.type} " + " </if> " |
| | | // + "<if test='pageComActDiscussDTO.subject != null and pageComActDiscussDTO.subject.trim() != ""'>" |
| | |
| | | IPage<ComActDiscussCommentVO> pageDiscussCommentApplets(Page page, |
| | | @Param("pageComActDiscussCommentDTO") PageComActDiscussCommentDTO pageComActDiscussCommentDTO); |
| | | |
| | | @Select("select name,address from com_act where community_id=#{communityId}") |
| | | @Select("select name,address from com_act where community_id = ${communityId}") |
| | | ComActVO selectCommunity(Long communityId); |
| | | |
| | | @Select("SELECT " + "if(du.id is not null,1,0)haveSign, " + "if(ou.id is not null,1,0)haveVote " + "FROM " |
| | |
| | | |
| | | Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("date") String date); |
| | | |
| | | @Select(" SELECT id,discuss_subject AS content,IF(type = 1,'图文','投票') AS typeName FROM com_act_discuss WHERE community_id = #{communityId} ORDER BY create_at DESC LIMIT #{pageSize}") |
| | | @Select(" SELECT id,discuss_subject AS content,IF(type = 1,'图文','投票') AS typeName FROM com_act_discuss WHERE community_id = ${communityId} ORDER BY create_at DESC LIMIT #{pageSize}") |
| | | List<CarouselInfoVO> screenDiscuss(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | |
| | | @Select("<script> " + "SELECT " + " cad.id, " + " su.nick_name AS userName, " + " su.image_url, " |
| | | + " cad.create_at, " + " cad.type, " + " cad.discuss_subject, " + " cad.photo_pah " + "FROM " |
| | | + " com_act_discuss AS cad " + " LEFT JOIN sys_user AS su ON su.user_id = cad.user_id " + " <where> " |
| | | + "<if test='discussListDTO.communityId != null '>" + " and cad.community_id = #{discussListDTO.communityId} " |
| | | + "<if test='discussListDTO.communityId != null '>" + " and cad.community_id = ${discussListDTO.communityId} " |
| | | + " </if> " + "<if test='discussListDTO.startTime!=null and discussListDTO.startTime != ""'>" |
| | | + " AND DATE_FORMAT(cad.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{discussListDTO.startTime} " |
| | | + " </if> " + "<if test='discussListDTO.endTime!=null and discussListDTO.endTime != ""'>" |
| | |
| | | + "FROM " + "com_act_dyn d " + "LEFT JOIN ( select dyn_id,count(id) as readNum from com_act_dyn_user GROUP BY dyn_id ) u ON d.id = u.dyn_id " |
| | | + "LEFT JOIN com_act_dyn_type as cadt ON cadt.id = d.type " |
| | | + "LEFT JOIN com_act ca ON d.community_id = ca.community_id " + "WHERE 1=1 " |
| | | + "<if test='comActDynVO.choice == 0 '>" + "and d.community_id=#{comActDynVO.communityId} " + " </if> " |
| | | + "<if test='comActDynVO.choice == 0 '>" + "and d.community_id = ${comActDynVO.communityId} " + " </if> " |
| | | + "<if test='comActDynVO.areaCode !=null '>" + "and ca.area_code = ${comActDynVO.areaCode} " + " </if> " |
| | | + "<if test='comActDynVO.title != null and comActDynVO.title.trim() != ""'>" |
| | | + "AND d.title like concat(#{comActDynVO.title},'%') " + " </if> " |
| | | + "<if test='comActDynVO.isTopping != null '>" + "AND d.is_topping = #{comActDynVO.isTopping} " + " </if> " |
| | |
| | | + "LEFT JOIN com_act_dyn_user u ON d.id = u.dyn_id " |
| | | + "LEFT JOIN com_act_dyn_type as cadt ON cadt.id = d.type " |
| | | + "LEFT JOIN com_act ca ON d.community_id = ca.community_id " + "WHERE " |
| | | + "d.community_id=#{comActDynVO.communityId} " |
| | | + "d.community_id = ${comActDynVO.communityId} " |
| | | + "<if test='comActDynVO.title != null and comActDynVO.title.trim() != ""'>" |
| | | + "AND d.title like concat(#{comActDynVO.title},'%') " + " </if> " |
| | | + "<if test='comActDynVO.isTopping != null '>" + "AND d.is_topping = #{comActDynVO.isTopping} " + " </if> " |
| | |
| | | IPage<ComActDynVO> pageDynamicByAdmin(Page page, @Param("comActDynVO") ComActDynVO comActDynVO); |
| | | |
| | | @Select("SELECT " + " count( cad.id ) AS dynTotal, " |
| | | + " (select count(id) from com_act_dyn where community_id = #{communityId} and create_at LIKE CONCAT(#{nowDate},'%')) as currentNum " |
| | | + "FROM " + " com_act_dyn AS cad " + "WHERE " + " community_id = #{communityId}") |
| | | + " (select count(id) from com_act_dyn where community_id = ${communityId} and create_at LIKE CONCAT(#{nowDate},'%')) as currentNum " |
| | | + "FROM " + " com_act_dyn AS cad " + "WHERE " + " community_id = ${communityId}") |
| | | Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("nowDate") String nowDate); |
| | | |
| | | @Select("select create_at as startTime,(select create_at from com_act_dyn where community_id = #{communityId} order by create_at desc LIMIT 1 ) as endTime from com_act_dyn where community_id = #{communityId} order by create_at asc LIMIT 1") |
| | | @Select("select create_at as startTime,(select create_at from com_act_dyn where community_id = ${communityId} order by create_at desc LIMIT 1 ) as endTime from com_act_dyn where community_id = ${communityId} order by create_at asc LIMIT 1") |
| | | DateScreenVO countByAvgCommunityId(@Param("communityId") Long communityId); |
| | | |
| | | @Select("SELECT " |
| | | + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = #{communityId} AND create_at < #{end}) AS dynTotal, " |
| | | + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = #{communityId} AND #{start} < create_at AND create_at < #{end}) AS dynAdd " |
| | | + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = ${communityId} AND create_at < #{end}) AS dynTotal, " |
| | | + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = ${communityId} AND #{start} < create_at AND create_at < #{end}) AS dynAdd " |
| | | + " FROM DUAL") |
| | | DynamicWorkVO countByTime(@Param("start") String start, @Param("end") String end, |
| | | @Param("communityId") Long communityId); |
| | |
| | | * |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | List<ComActEasyPhotoClassifyVO> getPhotoClassifyList(); |
| | | List<ComActEasyPhotoClassifyVO> getPhotoClassifyList(String areaCode); |
| | | |
| | | } |
| | |
| | | " </if> " + |
| | | "where p.del_tag = 0 and p.status !=2"+ |
| | | "<if test='comActEasyPhotoVO.communityId != null and comActEasyPhotoVO.communityId != 0'>" + |
| | | " and p.community_id=#{comActEasyPhotoVO.communityId} " + |
| | | " and p.community_id = ${comActEasyPhotoVO.communityId} " + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.happenAddr != null and comActEasyPhotoVO.happenAddr.trim() != ""'>" + |
| | | "AND p.happen_addr like concat(#{comActEasyPhotoVO.happenAddr},'%') " + |
| | |
| | | "and p.handler_id=#{comActEasyPhotoVO.backUserId}"+ |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.communityId != null and comActEasyPhotoVO.communityId != 0'>" + |
| | | " and p.community_id=#{comActEasyPhotoVO.communityId} " + |
| | | " and p.community_id = ${comActEasyPhotoVO.communityId} " + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.happenAddr != null and comActEasyPhotoVO.happenAddr.trim() != ""'>" + |
| | | "AND p.happen_addr like concat(#{comActEasyPhotoVO.happenAddr},'%') " + |
| | |
| | | "p.urban_status, " + |
| | | "p.img_width, " + |
| | | "p.img_height, " + |
| | | "p.evaluate_date, " + |
| | | "caepe.score," + |
| | | "caepe.`content`, " + |
| | | "p.handle_photo_list " + |
| | | "FROM " + |
| | | "com_act_easy_photo p " + |
| | |
| | | "LEFT JOIN com_act_easy_photo_user pu on p.id=pu.easy_photo_id " + |
| | | "LEFT JOIN com_act c on p.community_id=c.community_id " + |
| | | "left join com_act_easy_photo_classify ca on ca.id = p.classify_id " + |
| | | "left join com_act_easy_photo_evaluate as caepe on caepe.service_id = p.id and caepe.service_type = 1 " + |
| | | "WHERE p.del_tag = 0 and p.id=#{id}") |
| | | ComActEasyPhotoVO detailEasyPhoto(Long id); |
| | | @Select("SELECT " + |
| | |
| | | "FROM " + |
| | | " com_act_easy_photo p " + |
| | | "WHERE " + |
| | | " p.del_tag = 0 and p.community_id = #{communityId} " + |
| | | " p.del_tag = 0 and p.community_id = ${communityId} " + |
| | | "AND p.STATUS = 1 "+ |
| | | " " + |
| | | "union all " + |
| | |
| | | "FROM " + |
| | | " com_act_easy_photo p " + |
| | | "WHERE " + |
| | | " p.del_tag = 0 and p.community_id = #{communityId} " + |
| | | " p.del_tag = 0 and p.community_id = ${communityId} " + |
| | | "AND p.`status` = 2 and p.is_need_feed_back=1 and p.handler_id=#{userId} " |
| | | ) |
| | | List<TodoEventsVO> selectNeedToDo(@Param("communityId") Long communityId, @Param("userId") Long userId); |
| | |
| | | " <where>" + |
| | | " p.del_tag = 0 " + |
| | | "<if test='comActEasyPhotoVO.communityId != null and comActEasyPhotoVO.communityId != 0'>" + |
| | | " and p.community_id=#{comActEasyPhotoVO.communityId} " + |
| | | " and p.community_id = ${comActEasyPhotoVO.communityId} " + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.status != null and comActEasyPhotoVO.status!=0' >" + |
| | | "AND p.`status` = #{comActEasyPhotoVO.status} " + |
| | |
| | | IPage<ComActEasyPhotoVO> pageEasyPhotoApplets(Page page, @Param("comActEasyPhotoVO")ComActEasyPhotoVO comActEasyPhotoVO); |
| | | |
| | | @Select("SELECT t.name,COUNT(p.id) as num FROM com_act_easy_photo_type t LEFT JOIN com_act_easy_photo_type_relation r ON t.id = r.easy_type_id " + |
| | | "LEFT JOIN com_act_easy_photo p ON r.easy_id = p.id AND p.handle_status = 1 AND p.community_id = #{communityId} " + |
| | | "LEFT JOIN com_act_easy_photo p ON r.easy_id = p.id AND p.handle_status = 1 AND p.community_id = ${communityId} " + |
| | | "GROUP BY t.name ") |
| | | List<EastPhotoTypeVO> countDeal(@Param("communityId")Long communityId); |
| | | |
| | | @Select("SELECT t.name,COUNT(p.id) as num FROM com_act_easy_photo_type t LEFT JOIN com_act_easy_photo_type_relation r ON t.id = r.easy_type_id " + |
| | | "LEFT JOIN com_act_easy_photo p ON r.easy_id = p.id AND p.is_publicity = 1 AND p.community_id = #{communityId} " + |
| | | "LEFT JOIN com_act_easy_photo p ON r.easy_id = p.id AND p.is_publicity = 1 AND p.community_id = ${communityId} " + |
| | | "GROUP BY t.name ") |
| | | List<EastPhotoTypeVO> countPub(@Param("communityId")Long communityId); |
| | | |
| | | @Select("SELECT t.name,COUNT(p.id) as num FROM com_act_easy_photo_type t LEFT JOIN com_act_easy_photo_type_relation r ON t.id = r.easy_type_id " + |
| | | "LEFT JOIN com_act_easy_photo p ON r.easy_id = p.id AND p.status = 4 where p.community_id = #{communityId} " + |
| | | "LEFT JOIN com_act_easy_photo p ON r.easy_id = p.id AND p.status = 4 where p.community_id = ${communityId} " + |
| | | "GROUP BY t.name ") |
| | | List<EastPhotoTypeVO> countApproved(@Param("communityId")Long communityId); |
| | | |
| | |
| | | "SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = 2 AND create_at LIKE concat(#{nowDate},'%') " + |
| | | ") AS currentNum," + |
| | | "(" + |
| | | "(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = #{communityId} AND STATUS = 4 AND handle_status = 2)*100/(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = #{communityId} AND handle_status = 2) " + |
| | | "(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = ${communityId} AND STATUS = 4 AND handle_status = 2)*100/(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = ${communityId} AND handle_status = 2) " + |
| | | ") AS pubPoint," + |
| | | "(SELECT AVG(TIMESTAMPDIFF(HOUR,create_at,feedback_at)) FROM com_act_easy_photo WHERE community_id = #{communityId} and handle_status = 2 ) AS dealTime " + |
| | | "FROM com_act_easy_photo where community_id = #{communityId}") |
| | | "(SELECT AVG(TIMESTAMPDIFF(HOUR,create_at,feedback_at)) FROM com_act_easy_photo WHERE community_id = ${communityId} and handle_status = 2 ) AS dealTime " + |
| | | "FROM com_act_easy_photo where community_id = ${communityId}") |
| | | Map<String, Object> countByCommunityId(@Param("communityId")Long communityId,@Param("nowDate") String nowDate); |
| | | |
| | | @Select("SELECT COUNT(id) AS total, " + |
| | | "(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = #{communityId} AND #{start} < create_at and create_at < #{end} ) AS adds, " + |
| | | "(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id =#{communityId} AND handle_status = 2 AND #{start} < create_at and create_at < #{end}) AS deal " + |
| | | "FROM com_act_easy_photo WHERE community_id = #{communityId} AND #{start} < create_at and create_at < #{end} ") |
| | | "(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = ${communityId} AND #{start} < create_at and create_at < #{end} ) AS adds, " + |
| | | "(SELECT COUNT(id) FROM com_act_easy_photo WHERE community_id = ${communityId} AND handle_status = 2 AND #{start} < create_at and create_at < #{end}) AS deal " + |
| | | "FROM com_act_easy_photo WHERE community_id = ${communityId} AND #{start} < create_at and create_at < #{end} ") |
| | | EastPhotoVO countByTime(@Param("start")String start, @Param("end")String end, @Param("nowDate")String nowDate, @Param("communityId")Long communityId); |
| | | |
| | | // @Select("SELECT " + |
| | | // " count( id ) AS examineNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 2 AND community_id = #{communityId} and del_tag = 0 ) AS verificationNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 3 AND community_id = #{communityId} and del_tag = 0 ) AS rejectNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 4 AND community_id = #{communityId} and del_tag = 0 ) AS completeNum " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 2 AND community_id = ${communityId} and del_tag = 0 ) AS verificationNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 3 AND community_id = ${communityId} and del_tag = 0 ) AS rejectNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 4 AND community_id = ${communityId} and del_tag = 0 ) AS completeNum " + |
| | | // "FROM " + |
| | | // " com_act_easy_photo " + |
| | | // "WHERE " + |
| | | // " `status` = 1 " + |
| | | // " AND community_id = #{communityId} and del_tag = 0") |
| | | // " AND community_id = ${communityId} and del_tag = 0") |
| | | ComActEasyPhotoStatisticsVO getEasyPhotoStatistics(@Param("communityId")Long communityId); |
| | | ComActEasyPhotoCountVO easyPhotoCount(ComActEasyPhotoVO comActEasyPhotoVO); |
| | | List<ExportEasyPhotoVO> export(ExportEasyPhotoDTO exportEasyPhotoDTO); |
| | |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | List<ComActEasyPhotoVO> selectStatisticsList(@Param("communityId") Long communityId); |
| | | List<StatisticsCommVO> selectStatisticsList(@Param("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 获取居民自治统计数据 |
New file |
| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.panzhihua.service_community.entity.ComActEasyPhotoEvaluate; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.common.*; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿评价表表数据库访问层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿评价表表数据库访问层 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | @Mapper |
| | | public interface ComActEasyPhotoEvaluateMapper extends BaseMapper<ComActEasyPhotoEvaluate> { |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | ComActEasyPhotoEvaluateVo queryById(Long id); |
| | | |
| | | /** |
| | | * description queryAllByLimit 分页查询 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @param page 分页参数 |
| | | * @return 分页查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | IPage<ComActEasyPhotoEvaluateVo> queryAllByLimit(@Param("dto") PageComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate, Page page); |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comActEasyPhotoEvaluate 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:22 |
| | | */ |
| | | List<ComActEasyPhotoEvaluateVo> queryAllByList(@Param("dto") PageComActEasyPhotoEvaluateDto comActEasyPhotoEvaluate); |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.panzhihua.service_community.entity.ComActEasyPhotoHandler; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.common.*; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿处理人绑定表表数据库访问层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 随手拍、微心愿处理人绑定表表数据库访问层 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:11 |
| | | */ |
| | | @Mapper |
| | | public interface ComActEasyPhotoHandlerMapper extends BaseMapper<ComActEasyPhotoHandler> { |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:11 |
| | | */ |
| | | ComActEasyPhotoHandlerVo queryById(Long id); |
| | | |
| | | /** |
| | | * description queryAllByLimit 分页查询 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @param page 分页参数 |
| | | * @return 分页查询列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:11 |
| | | */ |
| | | IPage<ComActEasyPhotoHandlerVo> queryAllByLimit(@Param("dto") PageComActEasyPhotoHandlerDto comActEasyPhotoHandler, Page page); |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:11 |
| | | */ |
| | | List<ComActEasyPhotoHandlerVo> queryAllByList(@Param("dto") PageComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | } |
| | | |
| | |
| | | + "SELECT t.id,t.msg_content,t.photo_pah,t.phone,t.sendto_user_id,t.sendto_user_name,t.status,t.ispublic," |
| | | + "t.user_id,t.user_account,t.user_name,t.user_phone,t.community_id,t.create_at,t.type, u.phone as userAccount \n" |
| | | + "FROM \n" + " com_act_message t LEFT JOIN sys_user u ON t.user_id = u.user_id " |
| | | + " where t.community_id=#{comActMessageVO.communityId}\n" |
| | | + " where t.community_id = ${comActMessageVO.communityId}\n" |
| | | + "<if test='comActMessageVO.userAccount != null and comActMessageVO.userAccount.trim() != ""'>" |
| | | + " and u.phone=#{comActMessageVO.userAccount} \n" + " </if> " |
| | | + "<if test='comActMessageVO.userName != null and comActMessageVO.userName.trim() != ""'>" |
| | |
| | | " </if> " + |
| | | " <where>" + |
| | | "<if test='comActMicroWishVO.communityId != null and comActMicroWishVO.communityId != 0'>" + |
| | | " and w.community_id=#{comActMicroWishVO.communityId} " + |
| | | " and w.community_id = ${comActMicroWishVO.communityId} " + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.sponsorPhone != null and comActMicroWishVO.sponsorPhone.trim() != ""'>" + |
| | | "AND w.sponsor_phone like concat(#{comActMicroWishVO.sponsorPhone},'%') " + |
| | |
| | | "FROM " + |
| | | "com_act_micro_wish w " + |
| | | "WHERE " + |
| | | "w.community_id = #{communityId} " + |
| | | "w.community_id = ${communityId} " + |
| | | "AND w.`status` = 1 " + |
| | | " " + |
| | | "union all " + |
| | |
| | | "FROM " + |
| | | " com_act_micro_wish w " + |
| | | "WHERE " + |
| | | " w.community_id = #{communityId} " + |
| | | " w.community_id = ${communityId} " + |
| | | " AND w.`status` = 3 " + |
| | | " AND w.form = 1 " + |
| | | " AND w.responsible_id = #{userId} " + |
| | |
| | | List<Long> getWishAutoConfirmIds(); |
| | | |
| | | @Select("SELECT COUNT(id) AS completedNum," + |
| | | "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5)) AS willNum ," + |
| | | "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " + |
| | | "FROM com_act_micro_wish WHERE community_id = #{communityId} AND status = 6 ") |
| | | "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5)) AS willNum ," + |
| | | "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " + |
| | | "FROM com_act_micro_wish WHERE community_id = ${communityId} AND status = 6 ") |
| | | Map<String, Long> countByCommunityId(@Param("communityId") Long communityId,@Param("nowDate") String nowDate); |
| | | |
| | | @Select("SELECT photo_path_list FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) ORDER BY create_at DESC limit #{pageSize}") |
| | | @Select("SELECT photo_path_list FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) ORDER BY create_at DESC limit #{pageSize}") |
| | | List<String> getAllImgs(@Param("communityId") Long communityId,@Param("pageSize") Integer pageSize); |
| | | |
| | | @Select("<script> " + |
| | |
| | | "AND camw.`status` =#{microListDTO.status} " + |
| | | " </if> " + |
| | | "<if test='microListDTO.communityId != null'>" + |
| | | "AND camw.community_id =#{microListDTO.communityId} " + |
| | | "AND camw.community_id = ${microListDTO.communityId} " + |
| | | " </if> " + |
| | | "<if test='microListDTO.startTime!=null and microListDTO.startTime != ""'>" + |
| | | " AND DATE_FORMAT(camw.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{microListDTO.startTime} " + |
| | |
| | | + " where reply.comment_id = #{commentId} and reply.status = 1") |
| | | IPage<ComActNeighborCommentReplyAppVO> neighborCommentReplyByApp(Page page, @Param("commentId") Long commentId); |
| | | |
| | | @Select("SELECT id,release_content as content FROM com_act_neighbor_circle WHERE community_id =#{communityId} and status = 2 ORDER BY create_at DESC limit #{pageSize}") |
| | | @Select("SELECT id,release_content as content FROM com_act_neighbor_circle WHERE community_id = ${communityId} and status = 2 ORDER BY create_at DESC limit #{pageSize}") |
| | | List<CarouselInfoVO> screenNeighborCircle(@Param("communityId") Long communityId, |
| | | @Param("pageSize") Integer pageSize); |
| | | |
| | | @Select(" SELECT COUNT(id) AS totalNum," |
| | | + " (SELECT COUNT(id) FROM com_act_neighbor_circle WHERE community_id = #{communityId} AND status = 2 AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " |
| | | + " FROM com_act_neighbor_circle WHERE community_id = #{communityId} AND status = 2") |
| | | + " (SELECT COUNT(id) FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND status = 2 AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " |
| | | + " FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND status = 2") |
| | | Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("nowDate") String nowDate); |
| | | |
| | | @Select("SELECT SUM(comment_num) as commentNum,SUM(fabulous_num) as fabulousNum,SUM(forward_num) as forwardNum FROM com_act_neighbor_circle WHERE community_id = #{communityId} and status = 2 ") |
| | | @Select("SELECT SUM(comment_num) as commentNum,SUM(fabulous_num) as fabulousNum,SUM(forward_num) as forwardNum FROM com_act_neighbor_circle WHERE community_id = ${communityId} and status = 2 ") |
| | | Map<String, Object> sumScreenNum(@Param("communityId") Long communityId); |
| | | |
| | | @Select("SELECT release_images FROM com_act_neighbor_circle WHERE community_id = #{communityId} and status = 2 order by create_at desc limit #{pageSize}") |
| | | @Select("SELECT release_images FROM com_act_neighbor_circle WHERE community_id = ${communityId} and status = 2 order by create_at desc limit #{pageSize}") |
| | | List<String> screenNeighborCircleImgs(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | |
| | | @Select("SELECT COUNT(id) as num,'随手拍' as name FROM com_act_easy_photo WHERE community_id = #{communityId} AND STATUS = 4 " |
| | | @Select("SELECT COUNT(id) as num,'随手拍' as name FROM com_act_easy_photo WHERE community_id = ${communityId} AND STATUS = 4 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'微心愿' as name FROM com_act_micro_wish WHERE community_id = #{communityId} AND STATUS = 6 " |
| | | + "SELECT COUNT(id) as num,'微心愿' as name FROM com_act_micro_wish WHERE community_id = ${communityId} AND STATUS = 6 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = #{communityId} " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = ${communityId} " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = #{communityId} AND STATUS = 2 " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 2 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS name FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = #{communityId} AND e.event_process_status = 2 " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS name FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = ${communityId} AND e.event_process_status = 2 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'社区活动' as name FROM com_act_activity WHERE community_id = #{communityId} AND STATUS = 5 ") |
| | | + "SELECT COUNT(id) as num,'社区活动' as name FROM com_act_activity WHERE community_id = ${communityId} AND STATUS = 5 ") |
| | | List<PieElementVO> countAllCompletedWorkByCommunityId(@Param("communityId") Long communityId); |
| | | |
| | | @Select("SELECT COUNT(id) as num,'随手拍' as name FROM com_act_easy_photo WHERE community_id = #{communityId} AND (STATUS = 1 or STATUS = 2) " |
| | | @Select("SELECT COUNT(id) as num,'随手拍' as name FROM com_act_easy_photo WHERE community_id = ${communityId} AND (STATUS = 1 or STATUS = 2) " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'微心愿' as name FROM com_act_micro_wish WHERE community_id = #{communityId} AND (STATUS = 1 or STATUS = 2 or STATUS = 3 or STATUS = 4) " |
| | | + "SELECT COUNT(id) as num,'微心愿' as name FROM com_act_micro_wish WHERE community_id = ${communityId} AND (STATUS = 1 or STATUS = 2 or STATUS = 3 or STATUS = 4) " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = #{communityId} " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = ${communityId} " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = #{communityId} AND STATUS = 1 " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 1 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS NAME FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = #{communityId} AND e.event_status = 2 and e.event_deal_status in (1,2,3) " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS NAME FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = ${communityId} AND e.event_status = 2 and e.event_deal_status in (1,2,3) " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id),'社区活动' as name FROM com_act_activity WHERE community_id = #{communityId} AND (STATUS = 1 or STATUS = 2 or STATUS = 3 or STATUS = 4) ") |
| | | + "SELECT COUNT(id),'社区活动' as name FROM com_act_activity WHERE community_id = ${communityId} AND (STATUS = 1 or STATUS = 2 or STATUS = 3 or STATUS = 4) ") |
| | | List<PieElementVO> countAllNoneCompletedWorkByCommunityId(@Param("communityId") Long communityId); |
| | | |
| | | @Select(" SELECT AVG(b.t)AS avgTime " |
| | | + " FROM (SELECT TIMESTAMPDIFF(MINUTE,create_at,feedback_at) AS t FROM com_act_easy_photo WHERE community_id = #{communityId} and STATUS = 4 " |
| | | + " UNION ALL SELECT TIMESTAMPDIFF(MINUTE,create_at,finish_at) AS t FROM com_act_micro_wish WHERE community_id = #{communityId} and STATUS = 6 " |
| | | + " FROM (SELECT TIMESTAMPDIFF(MINUTE,create_at,feedback_at) AS t FROM com_act_easy_photo WHERE community_id = ${communityId} and STATUS = 4 " |
| | | + " UNION ALL SELECT TIMESTAMPDIFF(MINUTE,create_at,finish_at) AS t FROM com_act_micro_wish WHERE community_id = ${communityId} and STATUS = 6 " |
| | | + " )AS b ") |
| | | Map<String, Object> countAvgByCommunityId(@Param("communityId")Long communityId); |
| | | |
| | |
| | | + " if(caqua.id is not null,1,2) isAnswer, " + " caq.view_num " + "FROM " + " com_act_questnaire as caq " |
| | | + " left join com_act_questnaire_user_answer as caqua on caqua.questnaire_id = caq.id and caqua.user_id = #{pageQuestnaireDTO.userId} " |
| | | + "WHERE " + " caq.state IN ( 2, 3 ) " |
| | | + " AND caq.community_id = #{pageQuestnaireDTO.communityId} and caq.is_hide = 0 " + "ORDER BY " |
| | | + " AND caq.community_id = ${pageQuestnaireDTO.communityId} and caq.is_hide = 0 " + "ORDER BY " |
| | | + " caq.state ASC, " + " isAnswer ASC, " + " caq.create_at DESC" + "</script>") |
| | | IPage<QuestnaireListVo> selectPageList(Page page, @Param("pageQuestnaireDTO") PageQuestnaireDTO pageQuestnaireDTO); |
| | | |
| | | @Select("<script>" |
| | | + "select id,title,view_num,join_count,for_masses,for_party,for_volunteer,adver_position_top,adver_position_popup" |
| | | + ",adver_position_application,create_at,start_time,end_time,publish_time,state,is_cover,project_key,count" |
| | | + " from com_act_questnaire as caq where community_id = #{pageQuestnaireDTO.communityId} and is_hide = 0 " |
| | | + " from com_act_questnaire as caq where community_id = ${pageQuestnaireDTO.communityId} and is_hide = 0 " |
| | | + "<if test='pageQuestnaireDTO.identity != null and pageQuestnaireDTO.identity == 1'>" |
| | | + " and caq.for_masses = 1 " + " </if> " |
| | | + "<if test='pageQuestnaireDTO.identity != null and pageQuestnaireDTO.identity == 2'>" |
| | |
| | | @Select("SELECT " + " id, " + " title, " + " remark, " + " is_cover, " + " for_masses, " + " for_party, " |
| | | + " for_volunteer, " + " is_force, " + " adver_position_popup, " + " adver_position_top, " |
| | | + " adver_position_application, " + " project_key " + "FROM " + " com_act_questnaire " + "WHERE " |
| | | + " end_time >= now() " + " AND now() >= start_time " + " and community_id = #{communityId} " |
| | | + " end_time >= now() " + " AND now() >= start_time " + " and community_id = ${communityId} " |
| | | + " and adver_position_top = 1 " + " and state = 2") |
| | | List<ComActQuestnaireAppVO> getIndexTopQuestnaireList(@Param("communityId") Long communityId); |
| | | |
| | | @Select("SELECT " + " id, " + " title, " + " remark, " + " for_masses, " + " for_party, " + " for_volunteer, " |
| | | + " is_cover, " + " is_force, " + " adver_position_popup, " + " adver_position_top, " |
| | | + " adver_position_application, " + " project_key " + "FROM " + " com_act_questnaire " + "WHERE " |
| | | + " end_time >= now() " + " AND now() >= start_time " + " and community_id = #{communityId} " |
| | | + " end_time >= now() " + " AND now() >= start_time " + " and community_id = ${communityId} " |
| | | + " and adver_position_application = 1 " + " and state = 2") |
| | | List<ComActQuestnaireAppVO> getIndexApplicationQuestnaireList(@Param("communityId") Long communityId); |
| | | |
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActReserveAnswerContentMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActReserveMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActReserveRecordMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActReserveSubMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActVillageDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActWorkGuideClassifyDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActWorkGuideDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBpActivityDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComCvtBusinessDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComExServicemanDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsClassroomDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsServiceDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsServiceEvaluationsDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsServiceRecordDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsTeamDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsTeamMemberDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsTeamMemberRelationDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComFmsTeamTypeDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngBuildingDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationHouseDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngRealAssetsDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngRealCompanyDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructAreaDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVaccinesDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVaccinesEnrollRecordDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVaccinesInoculationRecordDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerMngDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerOrgTeamMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerServiceTypeMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerSkillMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComOpsHouseDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComPbDynDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComPbMemberDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientMerchantDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/EldersAuthDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/EventMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsConfigDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsCouponDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsEvaluateDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsGameDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsInformationDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsLabelDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsMerchantDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsOrderDao.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsProductDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsProductLabelDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/McsVerifiedRecordDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/SysTemplateConfigDao.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComActEasyPhotoEvaluate.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComActEasyPhotoHandler.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsClassroom.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsServiceEvaluations.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsServiceRecord.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsTeam.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsTeamMember.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsTeamMemberRelation.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComFmsTeamType.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsCoupon.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsEvaluate.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsGame.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsInformation.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsLabel.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsMerchant.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsOrder.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsProduct.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsProductLabel.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/McsVerifiedRecord.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/SysTemplateConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/message/McsOrderMessage.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActActivityDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDiscussDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoClassifyDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActMicroWishOperationRecordDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActWorkGuideClassifyDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActWorkGuideDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngPopulationDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngVaccinesDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngVolunteerMngDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngVolunteerOrgTeam.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngVolunteerServiceType.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngVolunteerSkill.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ConvenientMerchantDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ConvenientServiceCategoryDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/EventDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BigScreenService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BigScreenStatisticsService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActActivityService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActBuildingService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActEasyPhotoClassifyService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActEasyPhotoEvaluateService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActEasyPhotoHandlerService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActReserveAnswerContentService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActReserveService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActReserveSubService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActWorkGuideClassifyService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsClassroomService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsServiceEvaluationsService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsServiceRecordService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsServiceService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsTeamMemberRelationService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsTeamMemberService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsTeamService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComFmsTeamTypeService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngVolunteerMngService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngVolunteerOrgTeamService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngVolunteerServiceTypeService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngVolunteerSkillService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopStoreService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ConvenientMerchantService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ConvenientServiceCategoryService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsConfigService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsCouponService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsEvaluateService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsGameService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsInformationService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsLabelService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsMerchantService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsOrderService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductLabelService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsVerifiedRecordService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenStatisticsServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActBuildingServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoClassifyServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoEvaluateServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActMessageServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActMicroWishServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveAnswerContentServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveRecordServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActReserveSubServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideClassifyServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComElderAuthRecordsServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsClassroomServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceEvaluationsServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceRecordServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsTeamMemberRelationServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsTeamMemberServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsTeamServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsTeamTypeServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngCarServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVolunteerMngServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVolunteerOrgTeamServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVolunteerServiceTypeServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVolunteerSkillServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPensionAuthRecordServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopStoreServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComStreetServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientServiceCategoryServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsConfigServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsCouponServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsEvaluateServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsGameServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsInformationServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsLabelServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsMerchantServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsOrderServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsProductLabelServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsProductServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsVerifiedRecordServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ScreenWorkServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/util/WxDataUtil.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/logback-spring.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActActivityMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActAnnouncementMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActColumnMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActCommitteeMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActDiscussCommentDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActDiscussDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActDynDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActDynTypeDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoActivityDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoClassifyDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoEvaluateMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoHandlerMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActEasyPhotoRewardDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActFourMemberMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActIntegralRuleDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActIntegralUserDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActIntegralUserTradeDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActMicroWishDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActMicroWishOperationRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActNeighborCircleDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActNeighborCircleTopicDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActQuestnaireDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActReserveAnswerContentMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActReserveMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActReserveRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActReserveSubMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActSocialOrgMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActUserWalletDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActUserWalletTradeDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActWarehouseApplyMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActWarehouseDonatesMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActWarehouseOperationMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActWorkGuideClassifyMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComClusterOrganizationDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComClusterOrganizationMemberDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComElderAuthElderliesMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComElderAuthRecordsMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEldersAuthDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEldersAuthElderlyMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEldersAuthHistoryRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEldersAuthStatisticsMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsClassroomMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsServiceEvaluationsMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsServiceMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsServiceRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsTeamMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsTeamMemberMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsTeamMemberRelationMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComFmsTeamTypeMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngBuildingMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngPopulationCommunityTagsMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngPopulationDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngVolunteerMngDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngVolunteerOrgTeamDao.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngVolunteerServiceTypeDao.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngVolunteerSkillDao.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPbMemberMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPensionAuthHistoryRecordDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPensionAuthPensionerMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPensionAuthRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPropertyMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPropertyPublicityMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSwDangerReportMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSwPatrolRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSwRotaMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSwSafetyWorkRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ConvenientMerchantMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ConvenientProductMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ConvenientServiceCategoryMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/EventMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsConfigMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsCouponMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsEvaluateMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsGameMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsInformationMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsLabelMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsMerchantMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsOrderMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsProductLabelMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsProductMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/McsVerifiedRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/RentingHourseOrderMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/RentingHoursePreOrderMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/RentingHourseRegisterMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/SysConfMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/SysTemplateConfigMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/config/MybatisHmkInterceptor.java
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/config/MybatisPlusConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/dao/EventMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/ComActEasyPhotoMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventGridDataMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventGridMemberGpsLogMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventGridMemberRelationMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventGridMemberWarnLogMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventVisitingTasksMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/PartyBuildIngApi.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/config/MybatisHmkInterceptor.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/config/MybatisPlusConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComBpActivityDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbActivityMemberDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbCheckUnitMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbDynDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbMemberDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbMemberRoleDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbOrgDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbServiceTeamDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/entity/ComPbCheckUnit.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/model/dos/ComPbMemberDO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/model/dos/ComPbMemberRoleDO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/model/dos/ComPbOrgDO.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/ComPbCheckUnitService.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/ComPbMemberService.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/PartyOrganizationService.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbCheckUnitServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/PartyOrganizationServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbCheckUnitMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbMemberMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbMemberRoleDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbOrgMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/resources/mapper/ComPropertyAlarmMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/resources/mapper/ComPropertyAlarmSettingMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/resources/mapper/ComPropertyEquipmentMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/resources/mapper/ComPropertyHelpMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/resources/mapper/ComPropertyRepairMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/SysAppConfigApi.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/SysTemplateConfigApi.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/config/ParamOutAspect.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysAppConfigDao.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysTemplateConfigDao.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/entity/SysAppConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/entity/SysTemplateConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysOperLogDO.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysRoleDO.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysUserDO.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/RoleService.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/SysAppConfigService.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/SysTemplateConfigService.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/UserService.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/RoleServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/SysAppConfigServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/SysTemplateConfigServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/logback-spring.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/SysAppConfigMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/SysOperLogDAO.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/SysTemplateConfigMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/SysUserFeedbackDAO.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/SysUserInputDAO.xml
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/UserDao.xml
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/pom.xml
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/aop/CheckExpirationInterceptor.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/aop/CheckMcsMerchantExpiration.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/ConvenientApi.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/McsOrderApi.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/MicroCommercialStreetApi.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/config/WxH5Properties.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/config/WxMaConfiguration.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/filter/StoreValidFilter.java
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/model/request/LoginRequest.java
springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/java/com/panzhihua/timejob/jobhandler/CommunityJobHandler.java
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/java/com/panzhihua/zuul/filters/JWTAuthenticationTokenFilter.java
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/bootstrap.yml
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/logback-spring.xml |