Merge branch 'test' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into test
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.MyActivityEvaluateVO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | import com.panzhihua.common.model.dtos.community.PageVolunteerDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ActivitySignInRecordVO; |
| | | import com.panzhihua.common.model.vos.community.ActivitySignVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActEvaluateVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActRegistVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityVO; |
| | | import com.panzhihua.common.model.vos.community.ComActDynVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngCarVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngStructAreaVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngVillageVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngVolunteerMngAppletsVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngVolunteerMngVO; |
| | | import com.panzhihua.common.model.vos.community.SignactivityVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | |
| | | required = true) @RequestParam(value = "provinceAdcode") Integer provinceAdcode) { |
| | | return communityService.getCityTreeByProvinceCode(provinceAdcode); |
| | | } |
| | | @ApiOperation(value = "社区详情", response = ComActVO.class) |
| | | @GetMapping("community") |
| | | public R detailCommunity() { |
| | | return communityService.detailCommunity(this.getCommunityId()); |
| | | } |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.util.ObjectUtils; |
| | |
| | | if (!ObjectUtils.isEmpty(data)) { |
| | | LoginUserInfoVO loginUserInfoVO = (LoginUserInfoVO)data; |
| | | R r1 = communityService.detailHouse(userId); |
| | | R r4=communityService.selectByIdCard(loginUserInfoVO.getIdCard()); |
| | | if (null != communityId && 0 != communityId) { |
| | | R r2 = communityService.detailCommunity(communityId); |
| | | if (R.isOk(r2)) { |
| | |
| | | Object data1 = r1.getData(); |
| | | if (!ObjectUtils.isEmpty(data1)) { |
| | | loginUserInfoVO.setComMngStructHouseVOS((List<ComMngStructHouseVO>)data1); |
| | | r.setData(loginUserInfoVO); |
| | | } |
| | | } |
| | | if(R.isOk(r4)){ |
| | | String address= (String) r4.getData(); |
| | | if(StringUtils.isNotEmpty(address)){ |
| | | loginUserInfoVO.setAddress(address); |
| | | r.setData(loginUserInfoVO); |
| | | } |
| | | } |
| | |
| | | Long userId = loginUserInfo.getUserId(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | List<ComActActivityVO> comActActivityVOS = new ArrayList<>(); |
| | | R r = communityService.listActivity(userId, status); |
| | | R r = communityService.listActivity(userId); |
| | | if (R.isOk(r)) { |
| | | comActActivityVOS = (List<ComActActivityVO>)r.getData(); |
| | | } |
| | |
| | | loginReturnVO.setToken(token); |
| | | loginReturnVO.setRefreshToken(refeshToken); |
| | | loginReturnVO.setUserId(loginUser.getUserId()); |
| | | loginReturnVO.setCommunityId(loginUser.getCommunityId()); |
| | | return loginReturnVO; |
| | | } |
| | | |
| | |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptClass; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptField; |
| | | import com.panzhihua.common.model.helper.sensitive.Sensitive; |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @title: AddIdentityAuthDTO |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty("认证时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date authTime; |
| | | |
| | | @ApiModelProperty("认证期数") |
| | | private String authPeriod; |
| | | } |
| | |
| | | @ApiModelProperty("等级是否查询全部(1.是 2.否)") |
| | | private Integer levelIsAll; |
| | | |
| | | @ApiModelProperty("是否死亡人员 (1.是 2.否)") |
| | | private Integer isDeath; |
| | | public interface levelIsAll{ |
| | | int yes = 1; |
| | | int no = 2; |
| | |
| | | @ApiModelProperty("是否社区工作人员 1.是 2.否") |
| | | private Integer isCommunityWorker; |
| | | |
| | | @ApiModelProperty("实名认证地址") |
| | | private String address; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "分类类型 1服务类型分类 2技能分类 3通知公告") |
| | | private Integer type; |
| | | |
| | | private Long communityId; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "社区动态跳转链接") |
| | | private String jumpUrl; |
| | | |
| | | @ApiModelProperty("跳转状态") |
| | | private Integer jumpType; |
| | | } |
| | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty("应用预约/登记列表") |
| | | private List<ComActReserveIndexVo> comActReserveIndexApplicationVos; |
| | | |
| | | @ApiModelProperty("动态banner") |
| | | private List<BannerVO> bannerVOS; |
| | | |
| | | } |
| | |
| | | private Integer authStatus; |
| | | |
| | | @ApiModelProperty(value = "认证时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date authDate; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | |
| | | @ApiModelProperty("隐患or安全记录(1.隐患 2.安全记录)") |
| | | private Integer dangerOrRecord; |
| | | |
| | | @ApiModelProperty("社区名字") |
| | | private String communityName; |
| | | |
| | | /** |
| | | * 巡查类型 |
| | | */ |
| | |
| | | private Date showTime; |
| | | @ApiModelProperty("图片路径") |
| | | private String cover; |
| | | @ApiModelProperty("跳转地址") |
| | | private String jumpUrl; |
| | | @ApiModelProperty("跳转类型") |
| | | private String jumpType; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("是否是首页应用(1.是 2.否)") |
| | | private Integer adverPositionApplication; |
| | | |
| | | @ApiModelProperty("社区名称") |
| | | private String communityName; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("跳转链接") |
| | | private String jumpUrl; |
| | | |
| | | @ApiModelProperty("跳转状态") |
| | | private Integer jumpType; |
| | | } |
| | |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @param status |
| | | * @return 活动列表 |
| | | */ |
| | | @PostMapping("listactivity") |
| | | R listActivity(@RequestParam("userId") Long userId, |
| | | @RequestParam(value = "status", required = false) Integer status); |
| | | R listActivity(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 用户确认心愿 |
| | |
| | | R pagePopulation(ComMngPopulationDTO comMngPopulationVO); |
| | | |
| | | /** |
| | | * 根据身份证查询实有人口信息 |
| | | */ |
| | | @GetMapping("/common/data/population/selectByIdCard") |
| | | R selectByIdCard(@RequestParam("idCard") String idCard); |
| | | |
| | | /** |
| | | * 根据id实有人口详细信息 |
| | | * |
| | | * @param populationId |
| | |
| | | R exportElderAuthRecordsStatistic(@RequestBody PageElderAuthStatisticDTO pageElderAuthRecordsDTO); |
| | | |
| | | /** |
| | | * 导出高龄认证记录 exportElderAuthRecords 导出高龄认证记录 |
| | | * @param pageElderAuthRecordsDTO 查询参数 |
| | | * @return R 查询结果 |
| | | * @date 2021/9/02 11:03 |
| | | */ |
| | | @PostMapping("/elders/authRecords/export") |
| | | R exportElderAuthRecords(@RequestBody PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | /** |
| | | * 分页查询养老金人员认证记录 pagePensionAuthRecords 分页查询养老金人员认证记录 |
| | | * @param pageElderAuthRecordsDTO 查询参数 |
| | | * @return R 查询结果 |
| | |
| | | R getGridVillageList(@RequestBody ComMngVillageListAppDTO villageListAppDTO); |
| | | |
| | | /** |
| | | * 综治app-小区列表 |
| | | * @param villageListAppDTO 请求参数 |
| | | * @return 小区列表 |
| | | */ |
| | | @PostMapping("/village/grid/list/app") |
| | | R getGridVillageListApp(@RequestBody ComMngVillageListAppDTO villageListAppDTO); |
| | | |
| | | /** |
| | | * 综治app-根据小区id查询小区下楼栋列表 |
| | | * |
| | | * @param villageId |
| | |
| | | */ |
| | | @GetMapping("/eventgrid/community/list") |
| | | R getCommunityLists(); |
| | | |
| | | /** |
| | | * 查询西区社区列表 |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | R getWestCommunityLists(); |
| | | |
| | | /** |
| | | * 综治app-小区列表 |
| | | * @param villageListAppDTO 请求参数 |
| | | * @return 小区列表 |
| | | */ |
| | | @PostMapping("/village/grid/list/app") |
| | | R getGridVillageListApp(@RequestBody ComMngVillageListAppDTO villageListAppDTO); |
| | | |
| | | /** |
| | | * 分页查询退役军人列表 |
| | |
| | | |
| | | /** |
| | | * 导出登记明细数据 |
| | | * @param reserveId 登记id |
| | | * @return 登记明细数据 |
| | | * |
| | | * @param pageReserveRegisterDetailedAdminDTO |
| | | * @return 登记明细数据 |
| | | */ |
| | | @GetMapping("/reserve/admin/register/list/export") |
| | | R exportRegisterAdmin(@RequestParam("reserveId") Long reserveId); |
| | | @PostMapping("/reserve/admin/register/list/export") |
| | | R exportRegisterAdmin(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO); |
| | | |
| | | /** |
| | | * 查询预约登记题目列表 |
| | |
| | | R applyDonates(@RequestBody ComActWarehouseApplyDTO comActWarehouseApplyDTO); |
| | | |
| | | /** |
| | | * 实有房屋数据修复定时任务 |
| | | * @return 实有房屋数据修复定时任务 |
| | | */ |
| | | @GetMapping("/population/house/status/task") |
| | | R timedTaskHouseJobHandler(); |
| | | |
| | | /** |
| | | * 生成二维码 |
| | | * @param qrCodeVO |
| | | * @return |
| | |
| | | public R resetQRCode(@RequestBody QRActivityCodeVO qrCodeVO); |
| | | |
| | | /** |
| | | * 活动报名签到情况 |
| | | * @param id 活动主键id |
| | | * @return |
| | | * 实有房屋数据修复定时任务 |
| | | * @return 实有房屋数据修复定时任务 |
| | | */ |
| | | @GetMapping("/activity/sign-in/list") |
| | | R listSignInRecord(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 活动签到记录 |
| | | * @param id 活动主键 |
| | | * @param userId 用户id |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/regist/list") |
| | | R listRegistRecord(@RequestParam("id") Long id, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 获取活动类型(目前只有志愿者活动需要获取) |
| | | * @param communityId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/type/list") |
| | | R listActivityType(@RequestParam("communityId") Long communityId, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 添加活动类型 |
| | | * @param comActActivityTypeVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/activity/type/add") |
| | | R addActivityType(@RequestBody ComActActivityTypeVO comActActivityTypeVO); |
| | | |
| | | /** |
| | | * 我的评价 |
| | | * @param userId |
| | | * @param activityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/my-evaluate") |
| | | R listMyActivityEvaluate(@RequestParam("userId") Long userId, @RequestParam("activityId") Long activityId); |
| | | @GetMapping("/population/house/status/task") |
| | | R timedTaskHouseJobHandler(); |
| | | |
| | | /** |
| | | * 导出特殊群体 |
| | | * |
| | | * @param pageInputUserDTO |
| | | * 请求参数 |
| | | * @param pageInputUserDTO 请求参数 |
| | | * @return 特殊群体列表 |
| | | */ |
| | | @PostMapping("common/data/special/export") |
| | |
| | | @GetMapping("/comActColumn/del") |
| | | R comActColumnDelete(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 高龄认证添加 |
| | | * |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/elders/authRecord/add") |
| | | R addAuthRecord(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO); |
| | | |
| | | /** |
| | | * 养老认证添加 |
| | | * |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/elders/pensionAuthRecord/add") |
| | | R addPensionAuthRecordVO(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO); |
| | | /** |
| | | * 活动报名签到情况 |
| | | * @param id 活动主键id |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/sign-in/list") |
| | | R listSignInRecord(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 活动签到记录 |
| | | * @param id 活动主键 |
| | | * @param userId 用户id |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/regist/list") |
| | | R listRegistRecord(@RequestParam("id") Long id, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 获取活动类型(目前只有志愿者活动需要获取) |
| | | * @param communityId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/type/list") |
| | | R listActivityType(@RequestParam("communityId") Long communityId, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 添加活动类型 |
| | | * @param comActActivityTypeVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/activity/type/add") |
| | | R addActivityType(@RequestBody ComActActivityTypeVO comActActivityTypeVO); |
| | | |
| | | /** |
| | | * 我的评价 |
| | | * @param userId |
| | | * @param activityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/activity/my-evaluate") |
| | | R listMyActivityEvaluate(@RequestParam("userId") Long userId, @RequestParam("activityId") Long activityId); |
| | | } |
| | |
| | | import com.panzhihua.common.model.vos.community.ComActQuestnaireAnswerContentVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import javax.imageio.ImageIO; |
| | | import javax.xml.bind.DatatypeConverter; |
| | | import java.io.ByteArrayInputStream; |
| | | import java.awt.image.BufferedImage; |
| | | import java.io.*; |
| | | import java.net.URL; |
| | | import java.nio.file.Files; |
| | | import java.util.ArrayList; |
| | | import java.util.Base64; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * @author lyq |
| | |
| | | //构建单个用户数据 |
| | | List<Object> userData = new ArrayList<>(); |
| | | |
| | | String noExport = "以上信息仅用于疫苗防控"; |
| | | String noExport = "以上信息仅用于"; |
| | | //遍历答案列表 |
| | | Long reserveRecordId = 0L; |
| | | Long reserveSubId = 0L; |
| | |
| | | if(userAnswers.getOptionType().equals(12)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(new ByteArrayInputStream(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf(",")+ 1)))); |
| | | userData.add(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf(",") + 1))); |
| | | }catch (Exception e){ |
| | | userData.add(" "); |
| | | log.error("导出转换图片失败!"); |
| | |
| | | if(userAnswers.getOptionType().equals(12)){ |
| | | reserveSubId = userAnswers.getReserveSubId(); |
| | | try { |
| | | userData.add(new ByteArrayInputStream(DatatypeConverter.parseBase64Binary(userAnswers.getAnswerContent().substring(userAnswers.getAnswerContent().indexOf(",")+ 1)))); |
| | | //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("导出转换图片失败!"); |
| | |
| | | public R insert(@RequestBody ComActAnnouncementVO comActAnnouncementVO) { |
| | | comActAnnouncementVO.setCreateTime(new Date()); |
| | | comActAnnouncementVO.setCommunityId(this.getCommunityId()); |
| | | comActAnnouncementVO.setUserId(this.getUserId()); |
| | | return this.communityService.comActAnnouncementInsert(comActAnnouncementVO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "分页查询所有数据",response = ComActColumnVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | commonPage.setCommunityId(this.getCommunityId()); |
| | | return this.communityService.comActColumnSelectAll(commonPage); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增数据") |
| | | @PostMapping |
| | | public R insert(@RequestBody ComActColumnVO comActColumnVO) { |
| | | comActColumnVO.setCommunityId(this.getCommunityId()); |
| | | comActColumnVO.setStatus(1); |
| | | comActColumnVO.setCreateTime(new Date()); |
| | | if(StringUtils.isNotEmpty(this.getLoginUserInfo().getName())){ |
| | |
| | | @ApiOperation(value = "分页查询预约登记列表", response = ComActReserveListAdminVO.class) |
| | | @PostMapping("/page") |
| | | public R page(@RequestBody PageReserveAdminDTO pageReserveDTO) { |
| | | Long communityId = this.getCommunityId(); |
| | | pageReserveDTO.setCommunityId(communityId); |
| | | if(pageReserveDTO.getCommunityId()==null){ |
| | | Long communityId = this.getCommunityId(); |
| | | pageReserveDTO.setCommunityId(communityId); |
| | | } |
| | | return communityService.pageReserveAdmin(pageReserveDTO); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "导出登记明细") |
| | | @GetMapping("/register/list/export") |
| | | public R exportRegister(@RequestParam("reserveId") Long reserveId) { |
| | | @PostMapping("/register/list/export") |
| | | public R exportRegister(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO) { |
| | | |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "登记明细导出数据.xlsx"; |
| | |
| | | * 组合导出数据 |
| | | * 用户问卷答案 |
| | | */ |
| | | R QuestnaireAnswersDTOR = communityService.exportRegisterAdmin(reserveId); |
| | | R QuestnaireAnswersDTOR = communityService.exportRegisterAdmin(pageReserveRegisterDetailedAdminDTO); |
| | | QuestnaireAnswersDTO questnaireAnswersDTOS = JSON.parseObject(JSON.toJSONString(QuestnaireAnswersDTOR.getData()), QuestnaireAnswersDTO.class); |
| | | |
| | | List<ComActQuestnaireSubVO> subVOList = questnaireAnswersDTOS.getSubs(); |
| | |
| | | headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | //设置头字体 |
| | | WriteFont headWriteFont = new WriteFont(); |
| | | headWriteFont.setFontHeightInPoints((short)14); |
| | | 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.CENTER); |
| | | //设置 垂直居中 |
| | | contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER); |
| | | contentWriteCellStyle.setWriteFont(writeFont); |
| | | |
| | | contentWriteCellStyle.setWrapped(true); |
| | | HorizontalCellStyleStrategy horizontalCellStyleStrategy = |
| | | new HorizontalCellStyleStrategy(headWriteCellStyle, contentWriteCellStyle); |
| | | |
| | | excelWriter = EasyExcel.write(fileName, ComMngPopulationExcelVo.class) |
| | | |
| | | excelWriter = EasyExcel.write(fileName) |
| | | .registerWriteHandler(horizontalCellStyleStrategy).registerWriteHandler(new Custemhandler()) |
| | | .registerWriteHandler(new CustomSheetWriteHandler()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet("登记明细导出数据").head(headList).build(); |
| | |
| | | @ApiOperation(value = "分页查询巡查记录", response = ComSwPatrolRecordVO.class) |
| | | @PostMapping("/pagePatrolRecord") |
| | | public R pagePatrolRecord(@RequestBody ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | if(comSwPatrolRecordPageDTO.getCommunityId()==null){ |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | } |
| | | return communityService.pagePatrolRecord(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "分页查询安全工作记录", response = ComSwSafetyWorkRecordVO.class) |
| | | @PostMapping("/pageSafetyWorkRecord") |
| | | public R pageSafetyWorkRecord(@RequestBody ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | if(comSwPatrolRecordPageDTO.getCommunityId()==null){ |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | } |
| | | return communityService.pageSafetyWorkRecord(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "分页查询隐患报告", response = ComSwDangerReportVO.class) |
| | | @PostMapping("/pageDangerReport") |
| | | public R pageDangerReport(@RequestBody ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | if(comSwPatrolRecordPageDTO.getCommunityId()==null){ |
| | | Long communityId = this.getCommunityId(); |
| | | comSwPatrolRecordPageDTO.setCommunityId(communityId); |
| | | } |
| | | return communityService.pageDangerReport(comSwPatrolRecordPageDTO); |
| | | } |
| | | |
| | |
| | | public R getCommunityLists() { |
| | | return communityService.getCommunityLists(); |
| | | } |
| | | @ApiOperation(value = "查询西区社区列表") |
| | | @GetMapping("community/westList") |
| | | public R getWestCommunityLists() { |
| | | return communityService.getWestCommunityLists(); |
| | | } |
| | | |
| | | @ApiOperation(value = "随手拍详情", response = ComActEasyPhotoVO.class) |
| | | @GetMapping("easyphoto") |
| | |
| | | |
| | | /** |
| | | * 高龄认证导出 exportElderAuthRecords 高龄认证导出 |
| | | * @param ids 高龄认证记录id集合 |
| | | * @param pageElderAuthRecordsDTO |
| | | * @return R 导出结果 |
| | | * @author txb |
| | | * @date 2021/9/02 11:03 |
| | | */ |
| | | @ApiOperation(value = "高龄认证-高龄认证导出---") |
| | | @PostMapping("/authRecords/export") |
| | | public R exportElderAuthRecords(@RequestBody List<Long> ids) { |
| | | public R exportElderAuthRecords(@RequestBody PageElderAuthRecordsDTO pageElderAuthRecordsDTO) { |
| | | // List<ComMngPopulationMistakeExcelVO> list = JSON.parseArray(mistakes,ComMngPopulationMistakeExcelVO.class); |
| | | // 生成动态模板excel通过ftp工具上传到主节点,然后返回模板下载地址 |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | |
| | | ExcelWriter excelWriter = null; |
| | | InputStream inputStream = null; |
| | | try { |
| | | R r = communityService.getElderAuthRecordsByIds(ids); |
| | | R r = communityService.exportElderAuthRecords(pageElderAuthRecordsDTO); |
| | | List<ComElderAuthRecordExcleVO> list = new ArrayList<>(); |
| | | if (R.isOk(r)) { |
| | | list = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComElderAuthRecordExcleVO.class); |
| | |
| | | return communityService.signPensionAuthRecords(comPensionAuthRecordVO); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 高龄认证添加 |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "高龄认证添加") |
| | | @PostMapping("/authRecord/add") |
| | | R addAuthRecord(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO){ |
| | | comElderAuthRecordVO.setSubmitUserId(this.getUserId()); |
| | | comElderAuthRecordVO.setCommunityId(this.getCommunityId()); |
| | | return communityService.addAuthRecord(comElderAuthRecordVO); |
| | | } |
| | | /** |
| | | * 养老认证添加 |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "养老认证添加") |
| | | @PostMapping("/pensionAuthRecord/add") |
| | | R addPensionAuthRecordVO(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO){ |
| | | comElderAuthRecordVO.setSubmitUserId(this.getUserId()); |
| | | comElderAuthRecordVO.setCommunityId(this.getCommunityId()); |
| | | return communityService.addPensionAuthRecordVO(comElderAuthRecordVO); |
| | | } |
| | | |
| | | /** |
| | | * 养老认证导出 exportPensionAuthRecords 养老认证导出 |
| | | * @param ids 养老认证记录id集合 |
| | |
| | | |
| | | Integer columnWidth = this.dataLength(cellDataList, cell, isHead); |
| | | if (columnWidth >= 0) { |
| | | if (columnWidth > 30) { |
| | | columnWidth = 30; |
| | | if (columnWidth > 25) { |
| | | columnWidth = 25; |
| | | } |
| | | |
| | | Integer maxColumnWidth = (Integer)((Map)maxColumnWidthMap).get(cell.getColumnIndex()); |
| | | if (maxColumnWidth == null || columnWidth > maxColumnWidth) { |
| | | ((Map)maxColumnWidthMap).put(cell.getColumnIndex(), columnWidth); |
| | | writeSheetHolder.getSheet().setColumnWidth(cell.getColumnIndex(), columnWidth * 90); |
| | | writeSheetHolder.getSheet().setColumnWidth(cell.getColumnIndex(), columnWidth * 75); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | @GetMapping("del") |
| | | public R delete(@RequestParam("id") Long id) { |
| | | return R.ok(this.comActColumnService.removeById(id)); |
| | | return this.comActColumnService.delete(id); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 导出登记明细数据 |
| | | * @param reserveId 登记id |
| | | * @param pageReserveRegisterDetailedAdminDTO 登记id |
| | | * @return 登记明细数据 |
| | | */ |
| | | @GetMapping("/admin/register/list/export") |
| | | public R exportRegisterAdmin(@RequestParam("reserveId") Long reserveId){ |
| | | return comActReserveAnswerContentService.exportRegisterAdmin(reserveId); |
| | | @PostMapping("/admin/register/list/export") |
| | | public R exportRegisterAdmin(@RequestBody PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO){ |
| | | return comActReserveAnswerContentService.exportRegisterAdmin(pageReserveRegisterDetailedAdminDTO); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO; |
| | | import com.panzhihua.common.model.dtos.grid.DelComMngHousePopulationDTO; |
| | | import com.panzhihua.service_community.model.dos.ComMngPopulationDO; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据身份证查询实有人口信息 |
| | | */ |
| | | @GetMapping("/population/selectByIdCard") |
| | | public R selectByIdCard(@RequestParam("idCard") String idCard){ |
| | | ComMngPopulationDO comMngPopulationDO=comMngPopulationService.getPopulationByCardNo(idCard); |
| | | if(comMngPopulationDO!=null){ |
| | | return R.ok(comMngPopulationDO.getAddress()); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台导入实有人口 |
| | | * |
| | | * @param list |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询西区社区列表 |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | public R getWestCommunityLists() { |
| | | return comActService.getWestCommunityLists(); |
| | | } |
| | | |
| | | /** |
| | | * 随手拍发放奖励 |
| | | * |
| | | * @param grantRewardDTO |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导出高龄认证记录 exportElderAuthRecords 导出高龄认证记录 |
| | | * @param pageElderAuthRecordsDTO 查询参数 |
| | | * @return R 查询结果 |
| | | * @date 2021/9/02 11:03 |
| | | */ |
| | | @PostMapping("/authRecords/export") |
| | | public R exportElderAuthRecords(@RequestBody PageElderAuthRecordsDTO pageElderAuthRecordsDTO){ |
| | | return comElderAuthRecordsService.export(pageElderAuthRecordsDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询养老金人员认证记录 pagePensionAuthRecords 分页查询养老金人员认证记录 |
| | | * @param pageElderAuthRecordsDTO 查询参数 |
| | | * @return R 查询结果 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 高龄认证添加 |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/authRecord/add") |
| | | R addAuthRecord(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO){ |
| | | return comElderAuthRecordsService.add(comElderAuthRecordVO); |
| | | } |
| | | /** |
| | | * 养老认证添加 |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/pensionAuthRecord/add") |
| | | R addPensionAuthRecordVO(@RequestBody ComElderAuthRecordVO comElderAuthRecordVO){ |
| | | return comPensionAuthRecordService.add(comElderAuthRecordVO); |
| | | } |
| | | |
| | | /** |
| | | * 导出养老认证记录 exportPensionAuthRecordsStatistic 导出养老认证记录 |
| | | * @param pageElderAuthRecordsDTO 查询参数 |
| | | * @return R 查询结果 |
| | |
| | | + "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") |
| | | @Select("select `name`,street_id from com_street where area_code = '510423'") |
| | | List<StreetAllAppletsVO> getStreetList(); |
| | | |
| | | @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\n" |
| | | + " where ca.state = 0 and ca.name like concat('%',#{name},'%')") |
| | | @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); |
| | | |
| | | @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 " |
| | | + " HAVING distance >= 0 and distance <= #{communityDTO.distance} " + "ORDER BY " + " distance ASC") |
| | | @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' " + |
| | | "HAVING distance >= 0 and distance <= #{communityDTO.distance} ORDER BY distance ASC") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByNearby(@Param("communityDTO") SearchCommunityDTO communityDTO); |
| | | |
| | | @Select("select t.community_id,t.`name` from com_act t left join com_street t1 on t.street_id = t1.street_id where t.state = 0 and t1.street_id in (12,14,15,16,17,19)") |
| | | List<EventGridCommunityAdminVO> getWestCommunityLists(); |
| | | } |
| | |
| | | @Mapper |
| | | public interface ComActDynDAO extends BaseMapper<ComActDynDO> { |
| | | @Select("<script> " + "SELECT " + "d.id, " + "d.title, " + "COUNT(u.id)readNum, " + "d.`status`, " |
| | | + "d.`content`, " + "d.`cover`, " + "d.`type`, " + "d.`cover_mode`, " + "d.is_topping, " + "d.publish_at, " |
| | | + "d.`content`, " + "d.`cover`, " + "d.`type`, " + "d.`cover_mode`, d.jump_url,d.jump_type, " + "d.is_topping, " + "d.publish_at, " |
| | | + "d.create_at, " + "cadt.`name` as typeName, " + "cadt.color as typeColor, " + "ca.name as communityName " |
| | | + "FROM " + "com_act_dyn d " + "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 " |
| | |
| | | * @return 某预约登记记录列表 |
| | | */ |
| | | IPage<ComActReserveRegisterDetailedVO> pageRegisterDetailedListAdmin(Page page, @Param("detailedAdminDTO") PageReserveRegisterDetailedAdminDTO detailedAdminDTO); |
| | | |
| | | /** |
| | | * 导出某预约登记记录列表 |
| | | * @param detailedAdminDTO 请求参数 |
| | | * @return 某预约登记记录列表 |
| | | */ |
| | | List<ComActQuestnaireAnswerContentVO> export(@Param("detailedAdminDTO") PageReserveRegisterDetailedAdminDTO detailedAdminDTO); |
| | | /** |
| | | * 查询登记记录填写的内容列表 |
| | | * @param reserveRecordId 预约登记记录id |
| | |
| | | IPage<ComElderAuthRecordVO> pageElderAuthRecords(Page page, |
| | | @Param("pageElderAuthRecordsDTO") PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | List<ComElderAuthRecordVO> export(@Param("pageElderAuthRecordsDTO") PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | ComElderAuthRecordVO detailElderAuthRecords(@Param("authRecordId") Long authRecordId); |
| | | |
| | | List<ComElderAuthRecordExcleVO> getElderAuthRecordsByIds(@Param("ids") List<Long> ids); |
| | |
| | | + "AND cmp.unit_no = #{comMngPopulationVO.unitNo} " + " </if> " |
| | | + "<if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'>" |
| | | + "AND cmp.house_no = #{comMngPopulationVO.houseNo} " + " </if> " |
| | | + "<if test='comMngPopulationVO.isDeath != null'>" |
| | | + "AND cmp.death = #{comMngPopulationVO.isDeath} " + " </if> " |
| | | + "<if test='comMngPopulationVO.sex != null and comMngPopulationVO.sex != ""'>" |
| | | + "AND cmp.sex = #{comMngPopulationVO.sex} " + " </if> " |
| | | + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageStartTime != "" and comMngPopulationVO.ageEndTime == null'>" |
| | |
| | | |
| | | @Select("<script>" |
| | | + "select id,`name`,store_password,contacts,store_account,classify_id,logo,phone,delivery_type,remark,`status`," |
| | | + "sale,sale_volume,store_detail,create_at, store_describe from com_shop_store c" + " <where>" |
| | | + "c.delete_status=1 and c.status = 1" |
| | | + "sale,sale_volume,store_detail,create_at, store_describe from com_shop_store c " + " <where>" |
| | | + "c.delete_status=1 and c.status = 1 " |
| | | + "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != ""'>" |
| | | + "and c.contacts like concat('%',#{pageComShopStoreDTO.contacts},'%') \n" + " </if> " |
| | | + "and c.contacts like concat('%',#{pageComShopStoreDTO.contacts},'%') " + " </if> " |
| | | + "<if test='pageComShopStoreDTO.account != null and pageComShopStoreDTO.account.trim() != ""'>" |
| | | + "and c.store_account = #{pageComShopStoreDTO.account} \n" + " </if> " |
| | | + "and c.store_account = #{pageComShopStoreDTO.account} " + " </if> " |
| | | + "<if test='pageComShopStoreDTO.name != null and pageComShopStoreDTO.name.trim() != ""'>" |
| | | + "and c.`name` like concat('%',#{pageComShopStoreDTO.name},'%') \n" + " </if> " |
| | | + "and c.`name` like concat('%',#{pageComShopStoreDTO.name},'%') " + " </if> " |
| | | + "<if test='pageComShopStoreDTO.deliveryType != null'>" |
| | | + "and c.delivery_type =#{pageComShopStoreDTO.deliveryType}\n" + " </if> " |
| | | + "<if test='pageComShopStoreDTO.status != null'>" + "and c.status =#{pageComShopStoreDTO.status} \n" |
| | | + "and c.delivery_type =#{pageComShopStoreDTO.deliveryType} " + " </if> " |
| | | + "<if test='pageComShopStoreDTO.status != null'>" + "and c.status =#{pageComShopStoreDTO.status} " |
| | | + " </if> " + " </where>" + " order by c.create_at desc" + "</script>") |
| | | IPage<PageShopStoreVO> pageShopStore(Page page, |
| | | @Param("pageComShopStoreDTO") PageComShopStoreDTO pageComShopStoreDTO); |
| | |
| | | @ApiModelProperty(value = "描述") |
| | | private String description; |
| | | |
| | | |
| | | private Long communityId; |
| | | |
| | | } |
| | |
| | | * 跳转链接 |
| | | */ |
| | | private String jumpUrl; |
| | | |
| | | /** |
| | | * 跳转状态 |
| | | */ |
| | | private Integer jumpType; |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | R pageList(CommonPage commonPage); |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | R delete(Long id); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 导出登记明细数据 |
| | | * @param reserveId 登记id |
| | | * @param pageReserveRegisterDetailedAdminDTO 登记id |
| | | * @return 登记明细数据 |
| | | */ |
| | | R exportRegisterAdmin(Long reserveId); |
| | | R exportRegisterAdmin(PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO); |
| | | |
| | | /** |
| | | * 分页查询登记明细列表 |
| | |
| | | R getCommunityLists(); |
| | | |
| | | /** |
| | | * 查询西区社区列表 |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | R getWestCommunityLists(); |
| | | |
| | | /** |
| | | * 查询社区所有列表 |
| | | * |
| | | * @return 社区列表 |
| | |
| | | R pageElderAuthRecords(PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | /** |
| | | * 导出 pageElderAuthRecords 导出 |
| | | * @param pageElderAuthRecordsDTO 查询参数 |
| | | * @return R 查询结果 |
| | | * @author txb |
| | | * @date 2021/9/02 11:03 |
| | | */ |
| | | R export(PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | /** |
| | | * 根据高龄认证记录id查询详情 detailElderAuthRecords 根据高龄认证记录id查询详情 |
| | | * @param authRecordId 高龄认证记录id |
| | | * @return R 查询结果 |
| | |
| | | * @return 认证记录详情 |
| | | */ |
| | | R retrieveElderAuthDetail(Long identityAuthId); |
| | | |
| | | /** |
| | | * 高龄认证添加 |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | R add(ComElderAuthRecordVO comElderAuthRecordVO); |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.community.PageElderAuthRecordsDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageIdentityAuthRecordDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComElderAuthRecordVO; |
| | | import com.panzhihua.common.model.vos.community.ComPensionAuthRecordImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.ComPensionAuthRecordVO; |
| | | import com.panzhihua.service_community.model.dos.ComPensionAuthRecordDO; |
| | |
| | | * @return 认证记录详情 |
| | | */ |
| | | R retrievePensionAuthDetail(Long identityAuthId); |
| | | |
| | | /** |
| | | * 新增认证 |
| | | * @param comElderAuthRecordVO |
| | | * @return |
| | | */ |
| | | R add(ComElderAuthRecordVO comElderAuthRecordVO); |
| | | } |
| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.dao.ComActAnnouncementDao; |
| | | import com.panzhihua.service_community.entity.ComActAnnouncement; |
| | | import com.panzhihua.service_community.entity.ComActColumn; |
| | | import com.panzhihua.service_community.dao.ComActColumnDao; |
| | | import com.panzhihua.service_community.service.ComActColumnService; |
| | |
| | | public class ComActColumnServiceImpl extends ServiceImpl<ComActColumnDao, ComActColumn> implements ComActColumnService { |
| | | @Resource |
| | | private ComActColumnDao comActColumnDao; |
| | | @Resource |
| | | private ComActAnnouncementDao comActAnnouncementDao; |
| | | @Override |
| | | public R pageList(CommonPage commonPage) { |
| | | return R.ok(this.comActColumnDao.pageList(new Page(commonPage.getPage(),commonPage.getSize()),commonPage)); |
| | | } |
| | | |
| | | @Override |
| | | public R delete(Long id) { |
| | | if(!comActAnnouncementDao.selectList(new QueryWrapper<ComActAnnouncement>().lambda().eq(ComActAnnouncement::getColumnId,id)).isEmpty()){ |
| | | return R.fail("当前类型无法删除,请先处理绑定数据"); |
| | | } |
| | | return R.ok(comActColumnDao.deleteById(id)); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | */ |
| | | @Override |
| | | public R getUserReward(Long userId, Long communityId) { |
| | | // // 结果返回参数 |
| | | // ComActEasyPhotoRewardVO easyPhotoRewardVO = new ComActEasyPhotoRewardVO(); |
| | | // // 查询随手拍活动 |
| | | // ComActEasyPhotoActivityVO photoActivityVO = new ComActEasyPhotoActivityVO(); |
| | | // Date nowDate = DateUtils.getCurrentDate(DateUtils.ymdhms_format); |
| | | // List<ComActEasyPhotoActivityDO> photoActivityDOS = |
| | | // comActEasyPhotoActivityMapper.selectList(new QueryWrapper<ComActEasyPhotoActivityDO>().lambda() |
| | | // .eq(ComActEasyPhotoActivityDO::getCommunityId, communityId) |
| | | // .eq(ComActEasyPhotoActivityDO::getStatus, ComActEasyPhotoActivityDO.status.jxz) |
| | | // .le(ComActEasyPhotoActivityDO::getActivityStartAt, nowDate) |
| | | // .ge(ComActEasyPhotoActivityDO::getActivityEndAt, nowDate)); |
| | | // if (!photoActivityDOS.isEmpty()) { |
| | | // ComActEasyPhotoActivityDO photoActivityDO = photoActivityDOS.get(0); |
| | | // BeanUtils.copyProperties(photoActivityDO, photoActivityVO); |
| | | // easyPhotoRewardVO.setEasyPhotoActivityVO(photoActivityVO); |
| | | // } |
| | | // |
| | | // if (userId != null && userId != 0L) { |
| | | // // 查询用户未读奖励金额 |
| | | // BigDecimal amount = comActEasyPhotoRewardMapper.getUserReward(userId, communityId); |
| | | // if (amount != null) { |
| | | // easyPhotoRewardVO.setAmount(amount); |
| | | // } |
| | | // } |
| | | // |
| | | // // 查询当前社区正在进行中的弹窗调查问卷 |
| | | // ComActQuestnaireDO popupQuestnaireDO = comActQuestnaireDAO.selectOne(new QueryWrapper<ComActQuestnaireDO>() |
| | | // .lambda().le(ComActQuestnaireDO::getStartTime, nowDate).ge(ComActQuestnaireDO::getEndTime, nowDate) |
| | | // .eq(ComActQuestnaireDO::getCommunityId, communityId).eq(ComActQuestnaireDO::getState, 2) |
| | | // .eq(ComActQuestnaireDO::getAdverPositionPopup, ComActQuestnaireDO.isOk.yes)); |
| | | // if (popupQuestnaireDO != null) { |
| | | // ComActQuestnaireAppVO popupQuestnaireVO = new ComActQuestnaireAppVO(); |
| | | // BeanUtils.copyProperties(popupQuestnaireDO, popupQuestnaireVO); |
| | | // if (userId != null) { |
| | | // if (popupQuestnaireDO.getIsForce().equals(ComActQuestnaireDO.isOk.no)) { |
| | | // // 查询用户是否已点击不再提醒 |
| | | // Integer count = comActQuestnaireDAO.getNoRemindCount(userId, popupQuestnaireVO.getId()); |
| | | // if (count <= 0) { |
| | | // popupQuestnaireVO.setIsDisplay(ComActQuestnaireDO.isOk.yes); |
| | | // } |
| | | // } else { |
| | | // popupQuestnaireVO.setIsDisplay(ComActQuestnaireDO.isOk.yes); |
| | | // } |
| | | // } |
| | | // easyPhotoRewardVO.setPopupQuestnaireVO(popupQuestnaireVO); |
| | | // } |
| | | // |
| | | // // 查询社区正在进行中的banner位置调查问卷列表 |
| | | // List<ComActQuestnaireAppVO> bannerQuestnaireList = comActQuestnaireDAO.getIndexTopQuestnaireList(communityId); |
| | | // if (!bannerQuestnaireList.isEmpty()) { |
| | | // easyPhotoRewardVO.setBannerQuestnaireList(bannerQuestnaireList); |
| | | // } |
| | | // |
| | | // //查询社区正在进行中的banner位置的社区活动 |
| | | // List<ComActActivityVO> comActActivityVOList = comActActivityDAO.getIndexTopActivityList(communityId); |
| | | // if (!comActActivityVOList.isEmpty()) { |
| | | // easyPhotoRewardVO.setBannerActivityList(comActActivityVOList); |
| | | // } |
| | | // |
| | | // // 查询社区正在进行中的应用位置调查问卷列表 |
| | | // List<ComActQuestnaireAppVO> applicationQuestnaireList = |
| | | // comActQuestnaireDAO.getIndexApplicationQuestnaireList(communityId); |
| | | // if (!applicationQuestnaireList.isEmpty()) { |
| | | // easyPhotoRewardVO.setApplicationQuestnaireList(applicationQuestnaireList); |
| | | // } |
| | | // //查询社区正在进行中的banner预约/登记列表 |
| | | // List<ComActReserveIndexVo> comActReserveIndexVos=comActReserveMapper.indexBanner(communityId); |
| | | // if(!comActReserveIndexVos.isEmpty()){ |
| | | // easyPhotoRewardVO.setComActReserveIndexBannerVos(comActReserveIndexVos); |
| | | // } |
| | | // //查询社区正在进行中的应用预约/登记列表 |
| | | // List<ComActReserveIndexVo> comActReserveIndexApplicationVos=comActReserveMapper.indexApplication(communityId); |
| | | // if(!comActReserveIndexApplicationVos.isEmpty()){ |
| | | // easyPhotoRewardVO.setComActReserveIndexApplicationVos(comActReserveIndexApplicationVos); |
| | | // } |
| | | return R.ok(this.comActEasyPhotoDAO.banner(communityId)); |
| | | // 结果返回参数 |
| | | ComActEasyPhotoRewardVO easyPhotoRewardVO = new ComActEasyPhotoRewardVO(); |
| | | // 查询随手拍活动 |
| | | ComActEasyPhotoActivityVO photoActivityVO = new ComActEasyPhotoActivityVO(); |
| | | Date nowDate = DateUtils.getCurrentDate(DateUtils.ymdhms_format); |
| | | List<ComActEasyPhotoActivityDO> photoActivityDOS = |
| | | comActEasyPhotoActivityMapper.selectList(new QueryWrapper<ComActEasyPhotoActivityDO>().lambda() |
| | | .eq(ComActEasyPhotoActivityDO::getCommunityId, communityId) |
| | | .eq(ComActEasyPhotoActivityDO::getStatus, ComActEasyPhotoActivityDO.status.jxz) |
| | | .le(ComActEasyPhotoActivityDO::getActivityStartAt, nowDate) |
| | | .ge(ComActEasyPhotoActivityDO::getActivityEndAt, nowDate)); |
| | | if (!photoActivityDOS.isEmpty()) { |
| | | ComActEasyPhotoActivityDO photoActivityDO = photoActivityDOS.get(0); |
| | | BeanUtils.copyProperties(photoActivityDO, photoActivityVO); |
| | | easyPhotoRewardVO.setEasyPhotoActivityVO(photoActivityVO); |
| | | } |
| | | |
| | | if (userId != null && userId != 0L) { |
| | | // 查询用户未读奖励金额 |
| | | BigDecimal amount = comActEasyPhotoRewardMapper.getUserReward(userId, communityId); |
| | | if (amount != null) { |
| | | easyPhotoRewardVO.setAmount(amount); |
| | | } |
| | | } |
| | | |
| | | // 查询当前社区正在进行中的弹窗调查问卷 |
| | | ComActQuestnaireDO popupQuestnaireDO = comActQuestnaireDAO.selectOne(new QueryWrapper<ComActQuestnaireDO>() |
| | | .lambda().le(ComActQuestnaireDO::getStartTime, nowDate).ge(ComActQuestnaireDO::getEndTime, nowDate) |
| | | .eq(ComActQuestnaireDO::getCommunityId, communityId).eq(ComActQuestnaireDO::getState, 2) |
| | | .eq(ComActQuestnaireDO::getAdverPositionPopup, ComActQuestnaireDO.isOk.yes)); |
| | | if (popupQuestnaireDO != null) { |
| | | ComActQuestnaireAppVO popupQuestnaireVO = new ComActQuestnaireAppVO(); |
| | | BeanUtils.copyProperties(popupQuestnaireDO, popupQuestnaireVO); |
| | | if (userId != null) { |
| | | if (popupQuestnaireDO.getIsForce().equals(ComActQuestnaireDO.isOk.no)) { |
| | | // 查询用户是否已点击不再提醒 |
| | | Integer count = comActQuestnaireDAO.getNoRemindCount(userId, popupQuestnaireVO.getId()); |
| | | if (count <= 0) { |
| | | popupQuestnaireVO.setIsDisplay(ComActQuestnaireDO.isOk.yes); |
| | | } |
| | | } else { |
| | | popupQuestnaireVO.setIsDisplay(ComActQuestnaireDO.isOk.yes); |
| | | } |
| | | } |
| | | easyPhotoRewardVO.setPopupQuestnaireVO(popupQuestnaireVO); |
| | | } |
| | | |
| | | // 查询社区正在进行中的banner位置调查问卷列表 |
| | | List<ComActQuestnaireAppVO> bannerQuestnaireList = comActQuestnaireDAO.getIndexTopQuestnaireList(communityId); |
| | | if (!bannerQuestnaireList.isEmpty()) { |
| | | easyPhotoRewardVO.setBannerQuestnaireList(bannerQuestnaireList); |
| | | } |
| | | |
| | | //查询社区正在进行中的banner位置的社区活动 |
| | | List<ComActActivityVO> comActActivityVOList = comActActivityDAO.getIndexTopActivityList(communityId); |
| | | if (!comActActivityVOList.isEmpty()) { |
| | | easyPhotoRewardVO.setBannerActivityList(comActActivityVOList); |
| | | } |
| | | |
| | | // 查询社区正在进行中的应用位置调查问卷列表 |
| | | List<ComActQuestnaireAppVO> applicationQuestnaireList = |
| | | comActQuestnaireDAO.getIndexApplicationQuestnaireList(communityId); |
| | | if (!applicationQuestnaireList.isEmpty()) { |
| | | easyPhotoRewardVO.setApplicationQuestnaireList(applicationQuestnaireList); |
| | | } |
| | | //查询社区正在进行中的banner预约/登记列表 |
| | | List<ComActReserveIndexVo> comActReserveIndexVos=comActReserveMapper.indexBanner(communityId); |
| | | if(!comActReserveIndexVos.isEmpty()){ |
| | | easyPhotoRewardVO.setComActReserveIndexBannerVos(comActReserveIndexVos); |
| | | } |
| | | //查询社区正在进行中的应用预约/登记列表 |
| | | List<ComActReserveIndexVo> comActReserveIndexApplicationVos=comActReserveMapper.indexApplication(communityId); |
| | | if(!comActReserveIndexApplicationVos.isEmpty()){ |
| | | easyPhotoRewardVO.setComActReserveIndexApplicationVos(comActReserveIndexApplicationVos); |
| | | } |
| | | //查询banner |
| | | List<BannerVO> bannerVOS=this.comActEasyPhotoDAO.banner(communityId); |
| | | if(!bannerVOS.isEmpty()){ |
| | | easyPhotoRewardVO.setBannerVOS(bannerVOS); |
| | | } |
| | | return R.ok(easyPhotoRewardVO); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * 导出登记明细数据 |
| | | * @param reserveId 登记id |
| | | * @param pageReserveRegisterDetailedAdminDTO 登记id |
| | | * @return 登记明细数据 |
| | | */ |
| | | @Override |
| | | public R exportRegisterAdmin(Long reserveId){ |
| | | public R exportRegisterAdmin(PageReserveRegisterDetailedAdminDTO pageReserveRegisterDetailedAdminDTO){ |
| | | QuestnaireAnswersDTO result = new QuestnaireAnswersDTO(); |
| | | |
| | | //查询题目 |
| | | List<ComActReserveSubDO> list = comActReserveSubMapper.selectList(new QueryWrapper<ComActReserveSubDO>().lambda() |
| | | .eq(ComActReserveSubDO::getReserveId, reserveId).orderByAsc(ComActReserveSubDO::getCreateAt).orderByAsc(ComActReserveSubDO::getId)); |
| | | .eq(ComActReserveSubDO::getReserveId, pageReserveRegisterDetailedAdminDTO.getReserveId()).orderByAsc(ComActReserveSubDO::getCreateAt).orderByAsc(ComActReserveSubDO::getId)); |
| | | List<ComActQuestnaireSubVO> listSubVo = new ArrayList<>(); |
| | | list.forEach(subDo -> { |
| | | if(!subDo.getType().equals(5)){ |
| | |
| | | result.setSubs(listSubVo); |
| | | |
| | | //查询用户回答 |
| | | List<ComActQuestnaireAnswerContentVO> vos = this.baseMapper.selectListByReserve(reserveId); |
| | | List<ComActQuestnaireAnswerContentVO> vos = this.baseMapper.export(pageReserveRegisterDetailedAdminDTO); |
| | | result.setAnswers(vos); |
| | | |
| | | return R.ok(result); |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.BufferedOutputStream; |
| | | import java.io.File; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.util.ArrayList; |
| | |
| | | public R reserveListApplets(Long communityId){ |
| | | return R.ok(this.baseMapper.getReserveIndexList(communityId)); |
| | | } |
| | | |
| | | |
| | | public static void getFileByBytes(byte[] bytes, String filePath, String fileName) { |
| | | BufferedOutputStream bos = null; |
| | | FileOutputStream fos = null; |
| | | File file = null; |
| | | try { |
| | | File dir = new File(filePath); |
| | | if (!dir.exists()) {// 判断文件目录是否存在 |
| | | dir.mkdirs(); |
| | | } |
| | | file = new File(filePath + fileName); |
| | | fos = new FileOutputStream(file); |
| | | bos = new BufferedOutputStream(fos); |
| | | bos.write(bytes); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | if (bos != null) { |
| | | try { |
| | | bos.close(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | if (fos != null) { |
| | | try { |
| | | fos.close(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | return R.ok(this.comActDAO.getCommunityLists()); |
| | | } |
| | | |
| | | @Override |
| | | public R getWestCommunityLists() { |
| | | return R.ok(this.comActDAO.getWestCommunityLists()); |
| | | } |
| | | |
| | | /** |
| | | * 查询社区所有列表 |
| | | * |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R export(PageElderAuthRecordsDTO pageElderAuthRecordsDTO) { |
| | | try { |
| | | //关键词为空时需要进行加密,通过加密去检索身份证号筛选高龄认证记录 |
| | | String idCard = AESUtil.encrypt128(pageElderAuthRecordsDTO.getSearchKey(), aesKey); |
| | | pageElderAuthRecordsDTO.setIdCard(idCard); |
| | | }catch (Exception e){ |
| | | log.error("查询高龄认证记录转换身份证号失败"); |
| | | } |
| | | return R.ok(comElderAuthRecordsDAO.export(pageElderAuthRecordsDTO)); |
| | | } |
| | | |
| | | @Override |
| | | public R detailElderAuthRecords(Long authRecordId) { |
| | | ComElderAuthRecordVO comElderAuthRecordVO = comElderAuthRecordsDAO.detailElderAuthRecords(authRecordId); |
| | | comElderAuthRecordVO.setNextIds(comElderAuthRecordsDAO.getNextIds(comElderAuthRecordVO.getCommunityId(),authRecordId)); |
| | |
| | | public R retrieveElderAuthDetail(Long identityAuthId) { |
| | | return R.ok(comElderAuthRecordsDAO.findById(identityAuthId)); |
| | | } |
| | | |
| | | @Override |
| | | public R add(ComElderAuthRecordVO comElderAuthRecordVO) { |
| | | if(!comElderAuthRecordVO.getIdCard().isEmpty()){ |
| | | List<ComMngPopulationDO> comMngPopulationDOS=comMngPopulationDAO.selectList(new QueryWrapper<ComMngPopulationDO>().lambda().eq(ComMngPopulationDO::getCardNoStr,comElderAuthRecordVO.getIdCard()).orderByDesc(ComMngPopulationDO::getCreateAt)); |
| | | if(!comMngPopulationDOS.isEmpty()){ |
| | | ComMngPopulationDO comMngPopulationDO=comMngPopulationDOS.get(0); |
| | | ComElderAuthElderliesDO comElderAuthElderliesDO=comElderAuthElderliesDAO.selectOne(new QueryWrapper<ComElderAuthElderliesDO>().lambda().eq(ComElderAuthElderliesDO::getPopulationId,comMngPopulationDO.getId())); |
| | | if(comElderAuthElderliesDO!=null){ |
| | | Integer count=comElderAuthRecordsDAO.selectCount(new QueryWrapper<ComElderAuthRecordsDO>().lambda().eq(ComElderAuthRecordsDO::getElderliesId,comElderAuthElderliesDO.getId()).eq(ComElderAuthRecordsDO::getAuthPeriod,comElderAuthRecordVO.getAuthPeriod())); |
| | | if(count==0){ |
| | | ComElderAuthRecordsDO comElderAuthRecordsDO=new ComElderAuthRecordsDO(); |
| | | BeanUtils.copyProperties(comElderAuthRecordVO,comElderAuthRecordsDO); |
| | | comElderAuthRecordsDO.setElderliesId(comElderAuthElderliesDO.getId()); |
| | | comElderAuthRecordsDO.setApprovalStatus(PASS_THROUGH.getStatus()); |
| | | comElderAuthRecordsDO.setApprovalDate(new Date()); |
| | | comElderAuthRecordsDO.setAuthStatus(CERTIFIED.getStatus()); |
| | | comElderAuthRecordsDO.setAuthMethod(ComPensionAuthRecordDO.authMethod.xxrz); |
| | | comElderAuthRecordsDO.setApproverId(comElderAuthRecordVO.getSubmitUserId()); |
| | | comElderAuthRecordsDO.setSubmitUserId(comElderAuthRecordVO.getSubmitUserId()); |
| | | if (this.baseMapper.insert(comElderAuthRecordsDO) < 0) { |
| | | return R.fail("认证失败,请重新尝试"); |
| | | } |
| | | comMngPopulationDO.setPhone(comElderAuthRecordVO.getPhone()); |
| | | comMngPopulationDAO.updateById(comMngPopulationDO); |
| | | comElderAuthElderliesDO.setAddress(comElderAuthRecordVO.getAddress()); |
| | | comElderAuthElderliesDAO.updateById(comElderAuthElderliesDO); |
| | | ComPensionAuthPensionerDO comPensionAuthPensionerDO=comPensionAuthPensionerDAO.selectOne(new QueryWrapper<ComPensionAuthPensionerDO>().lambda().eq(ComPensionAuthPensionerDO::getPopulationId,comMngPopulationDO.getId())); |
| | | if(comPensionAuthPensionerDO!=null){ |
| | | comPensionAuthPensionerDO.setAddress(comElderAuthRecordVO.getAddress()); |
| | | comPensionAuthPensionerDAO.updateById(comPensionAuthPensionerDO); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | return R.fail("当前期数已认证,请勿重复认证"); |
| | | } |
| | | return R.fail("无养老认证数据"); |
| | | } |
| | | return R.fail("该身份证无实有人口信息"); |
| | | } |
| | | return R.fail("身份证不能为空"); |
| | | } |
| | | } |
| | |
| | | public R specialInputUser(PageInputUserDTO pageInputUserDTO) { |
| | | IPage<InputUserInfoVO> iPage = populationDAO.specialInputUser( |
| | | new Page<>(pageInputUserDTO.getPageNum(), pageInputUserDTO.getPageSize()), pageInputUserDTO); |
| | | |
| | | iPage.getRecords().forEach(page -> { |
| | | if(page.getAreaName() == null || StringUtils.isEmpty(page.getAreaName())){ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(page.getAlley()); |
| | | if(!page.getHouseNum().contains("号")){ |
| | | sb.append(page.getHouseNum() + "号"); |
| | | if(iPage!=null){ |
| | | iPage.getRecords().forEach(page -> { |
| | | if(page.getAreaName() == null || StringUtils.isEmpty(page.getAreaName())){ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(page.getAlley()); |
| | | if(!page.getHouseNum().contains("号")){ |
| | | sb.append(page.getHouseNum() + "号"); |
| | | } |
| | | page.setAreaName(sb.toString()); |
| | | } |
| | | page.setAreaName(sb.toString()); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | return R.ok(iPage); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R specialInputUserExport(PageInputUserDTO PageInputUserDTO) { |
| | | return R.ok(this.comMngPopulationDAO.specialInputUserExport(PageInputUserDTO)); |
| | | public R specialInputUserExport(PageInputUserDTO pageInputUserDTO) { |
| | | return R.ok(this.comMngPopulationDAO.specialInputUserExport(pageInputUserDTO)); |
| | | } |
| | | |
| | | private void setMistake(ComMngPopulationMistakeExcelVO mvo, ComMngPopulationServeExcelVO vo) { |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.service_community.dao.*; |
| | | import com.panzhihua.service_community.model.dos.*; |
| | | import com.panzhihua.service_community.service.ComPensionAuthPensionerService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.common.utlis.WxUtil; |
| | | import com.panzhihua.common.utlis.WxXCXTempSend; |
| | | import com.panzhihua.service_community.dao.ComActActSignDAO; |
| | | import com.panzhihua.service_community.dao.ComActDAO; |
| | | import com.panzhihua.service_community.dao.ComMngPopulationDAO; |
| | | import com.panzhihua.service_community.dao.ComPensionAuthPensionerDAO; |
| | | import com.panzhihua.service_community.dao.ComPensionAuthRecordDAO; |
| | | import com.panzhihua.service_community.dao.ComPensionAuthStatisticsDAO; |
| | | import com.panzhihua.service_community.dao.SysConfMapper; |
| | | import com.panzhihua.service_community.model.dos.ComActDO; |
| | | import com.panzhihua.service_community.model.dos.ComMngPopulationDO; |
| | | import com.panzhihua.service_community.model.dos.ComPensionAuthPensionerDO; |
| | | import com.panzhihua.service_community.model.dos.ComPensionAuthRecordDO; |
| | | import com.panzhihua.service_community.model.dos.ComPensionAuthStatisticsDO; |
| | | import com.panzhihua.service_community.model.dos.SysConfDO; |
| | | import com.panzhihua.service_community.service.ComPensionAuthRecordService; |
| | | |
| | | import cn.hutool.core.util.IdcardUtil; |
| | |
| | | private String aesKey; |
| | | @Resource |
| | | private ComPensionAuthPensionerService comPensionAuthPensionerService; |
| | | @Resource |
| | | private ComElderAuthElderliesDAO comElderAuthElderliesDAO; |
| | | |
| | | @Override |
| | | public R pagePensionAuthRecords(PageElderAuthRecordsDTO pageElderAuthRecordsDTO) { |
| | |
| | | return R.fail("信息有误,请检查!"); |
| | | } |
| | | Date dateNow = new Date(); |
| | | String currentAuthPeriod = new SimpleDateFormat("yyyy").format(dateNow); |
| | | List<ComPensionAuthRecordDO> currentAuthPeriodRecords = comPensionAuthRecordDAO |
| | | .selectList(new QueryWrapper<ComPensionAuthRecordDO>().lambda() |
| | | .eq(ComPensionAuthRecordDO::getAuthPeriod, currentAuthPeriod) |
| | | .eq(ComPensionAuthRecordDO::getAuthPeriod, comPensionAuthPensionerDO) |
| | | .eq(ComPensionAuthRecordDO::getPensionerId, comPensionAuthPensionerDO.getId())); |
| | | if (!currentAuthPeriodRecords.isEmpty()) { |
| | | boolean alreadyAuth = currentAuthPeriodRecords.stream() |
| | | .filter(record -> record.getAuthStatus().equals(CERTIFIED.getStatus())).findFirst().isPresent(); |
| | | if (alreadyAuth) { |
| | | return R.fail(String.format("该人员%s期已认证无需重复认证", currentAuthPeriod)); |
| | | return R.fail(String.format("该人员%s期已认证无需重复认证", addIdentityAuthDTO.getAuthPeriod())); |
| | | } |
| | | boolean isPendingReview = currentAuthPeriodRecords.stream() |
| | | .filter(record -> record.getApprovalStatus().intValue() == PENDING_REVIEW.getStatus()).findFirst().isPresent(); |
| | |
| | | ComPensionAuthRecordDO comPensionAuthRecordDO = new ComPensionAuthRecordDO(); |
| | | BeanUtils.copyProperties(addIdentityAuthDTO, comPensionAuthRecordDO); |
| | | comPensionAuthRecordDO.setPensionerId(comPensionAuthPensionerDO.getId()); |
| | | comPensionAuthRecordDO.setAuthDate(dateNow); |
| | | comPensionAuthRecordDO.setAuthPeriod(currentAuthPeriod); |
| | | comPensionAuthRecordDO.setAuthDate(addIdentityAuthDTO.getAuthTime()); |
| | | comPensionAuthRecordDO.setAuthPeriod(addIdentityAuthDTO.getAuthPeriod()); |
| | | if (addIdentityAuthDTO.getAuthMethod().intValue() == FACE_AUTH.getMethod()) { |
| | | comPensionAuthRecordDO.setApprovalStatus(PASS_THROUGH.getStatus()); |
| | | comPensionAuthRecordDO.setApprovalDate(dateNow); |
| | |
| | | public R retrievePensionAuthDetail(Long identityAuthId) { |
| | | return R.ok(comPensionAuthRecordDAO.findById(identityAuthId)); |
| | | } |
| | | |
| | | @Override |
| | | public R add(ComElderAuthRecordVO comElderAuthRecordVO) { |
| | | if(!comElderAuthRecordVO.getIdCard().isEmpty()){ |
| | | List<ComMngPopulationDO> comMngPopulationDOS=comMngPopulationDAO.selectList(new QueryWrapper<ComMngPopulationDO>().lambda().eq(ComMngPopulationDO::getCardNoStr,comElderAuthRecordVO.getIdCard()).orderByDesc(ComMngPopulationDO::getCreateAt)); |
| | | if(!comMngPopulationDOS.isEmpty()){ |
| | | ComMngPopulationDO comMngPopulationDO=comMngPopulationDOS.get(0); |
| | | ComPensionAuthPensionerDO comPensionAuthPensionerDO=comPensionAuthPensionerDAO.selectOne(new QueryWrapper<ComPensionAuthPensionerDO>().lambda().eq(ComPensionAuthPensionerDO::getPopulationId,comMngPopulationDO.getId())); |
| | | if(comPensionAuthPensionerDO!=null){ |
| | | Integer count=comPensionAuthRecordDAO.selectCount(new QueryWrapper<ComPensionAuthRecordDO>().lambda().eq(ComPensionAuthRecordDO::getPensionerId,comPensionAuthPensionerDO.getId()).eq(ComPensionAuthRecordDO::getAuthPeriod,comElderAuthRecordVO.getAuthPeriod())); |
| | | if(count==0){ |
| | | ComPensionAuthRecordDO comPensionAuthRecordDO=new ComPensionAuthRecordDO(); |
| | | BeanUtils.copyProperties(comElderAuthRecordVO,comPensionAuthRecordDO); |
| | | comPensionAuthRecordDO.setApprovalStatus(PASS_THROUGH.getStatus()); |
| | | comPensionAuthRecordDO.setApprovalDate(new Date()); |
| | | comPensionAuthRecordDO.setAuthStatus(CERTIFIED.getStatus()); |
| | | comPensionAuthRecordDO.setAuthMethod(ComPensionAuthRecordDO.authMethod.xxrz); |
| | | comPensionAuthRecordDO.setPensionerId(comPensionAuthPensionerDO.getId()); |
| | | comPensionAuthRecordDO.setSubmitUserId(comElderAuthRecordVO.getSubmitUserId()); |
| | | comPensionAuthRecordDO.setApproverId(comElderAuthRecordVO.getSubmitUserId()); |
| | | if (this.baseMapper.insert(comPensionAuthRecordDO) < 0) { |
| | | return R.fail("认证失败,请重新尝试"); |
| | | } |
| | | comMngPopulationDO.setPhone(comElderAuthRecordVO.getPhone()); |
| | | comMngPopulationDAO.updateById(comMngPopulationDO); |
| | | comPensionAuthPensionerDO.setAddress(comElderAuthRecordVO.getAddress()); |
| | | comPensionAuthPensionerDAO.updateById(comPensionAuthPensionerDO); |
| | | ComElderAuthElderliesDO comElderAuthElderliesDO=comElderAuthElderliesDAO.selectOne(new QueryWrapper<ComElderAuthElderliesDO>().lambda().eq(ComElderAuthElderliesDO::getPopulationId,comMngPopulationDO.getId())); |
| | | if(comElderAuthElderliesDO!=null){ |
| | | comElderAuthElderliesDO.setAddress(comElderAuthRecordVO.getAddress()); |
| | | comElderAuthElderliesDAO.updateById(comElderAuthElderliesDO); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | return R.fail("当前期数也认证,请勿重复认证"); |
| | | } |
| | | return R.fail("无养老认证数据"); |
| | | } |
| | | return R.fail("该身份证无实有人口信息"); |
| | | } |
| | | return R.fail("身份证不能为空"); |
| | | } |
| | | } |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComSwDangerReportEditDTO; |
| | | import com.panzhihua.service_community.dao.ComActDAO; |
| | | import com.panzhihua.service_community.model.dos.ComSwSafetyWorkRecordDO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @Resource |
| | | private ComActDAO comActDAO; |
| | | |
| | | @Override |
| | | public R pageDangerReport(ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | |
| | | comSwDangerReportVO.setCreateName(comSwPatrolRecordDAO.getCreateName(comSwDangerReportVO.getCreateBy())); |
| | | } |
| | | |
| | | // 所属社区名称 |
| | | comSwDangerReportVO.setCommunityName(comActDAO.selectById(comSwDangerReportVO.getCommunityId()).getName()); |
| | | |
| | | // 查询指派人名称 |
| | | if (StringUtils.isNotEmpty(comSwDangerReportVO.getAssignPerson())) { |
| | | StringBuilder sb = new StringBuilder(); |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComSwPatrolRecordEditDTO; |
| | | import com.panzhihua.service_community.dao.*; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | import com.panzhihua.common.utlis.DateUtils; |
| | | import com.panzhihua.common.utlis.Snowflake; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.dao.ComSwDangerReportDAO; |
| | | import com.panzhihua.service_community.dao.ComSwPatrolRecordDAO; |
| | | import com.panzhihua.service_community.dao.ComSwPatrolRecordReportDAO; |
| | | import com.panzhihua.service_community.dao.ComSwSafetyWorkRecordDAO; |
| | | import com.panzhihua.service_community.model.dos.ComSwDangerReportDO; |
| | | import com.panzhihua.service_community.model.dos.ComSwPatrolRecordDO; |
| | | import com.panzhihua.service_community.model.dos.ComSwPatrolRecordReportDO; |
| | |
| | | |
| | | @Resource |
| | | private ComSwPatrolRecordReportDAO comSwPatrolRecordReportDAO; |
| | | |
| | | @Resource |
| | | private ComActDAO comActDAO; |
| | | |
| | | @Override |
| | | public R pagePatrolRecord(ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | |
| | | if (comSwPatrolRecordVO.getCreateBy() != null) { |
| | | comSwPatrolRecordVO.setCreateName(comSwPatrolRecordDAO.getCreateName(comSwPatrolRecordVO.getCreateBy())); |
| | | } |
| | | // 所属社区名称 |
| | | comSwPatrolRecordVO.setCommunityName(comActDAO.selectById(comSwPatrolRecordVO.getCommunityId()).getName()); |
| | | |
| | | ComSwPatrolRecordReportDO recordReportDO = |
| | | comSwPatrolRecordReportDAO.selectOne(new QueryWrapper<ComSwPatrolRecordReportDO>().lambda() |
| | |
| | | <if test="commonPage.paramId!=null"> |
| | | and t.column_id =#{commonPage.paramId} |
| | | </if> |
| | | <if test="commonPage.keyword!=null and commonPage.keyword !=''"> |
| | | and t.content like concat('%',#{commonPage.keyword},'%') |
| | | </if> |
| | | </where> |
| | | order by t.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result property="type" column="type"/> |
| | | <result property="description" column="description"/> |
| | | </resultMap> |
| | | <select id="pageList" resultMap="ComActColumnBaseResultMap"> |
| | | select * from com_act_column |
| | | <where> |
| | | 1=1 |
| | | <if test="commonPage.type!=null"> |
| | | and type = #{commonPage.type} |
| | | </if> |
| | | <if test="commonPage.communityId!=null"> |
| | | and community_id = #{commonPage.communityId} |
| | | </if> |
| | | <if test="commonPage.status!=null"> |
| | | and status =#{commonPage.status} |
| | | </if> |
| | | <if test="commonPage.keyword!=null and commonPage.keyword!=''"> |
| | | and name like concat('%',#{commonPage.keyword},'%') |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | </select> |
| | | |
| | | <select id="banner" resultType="com.panzhihua.common.model.vos.community.easyPhoto.BannerVO"> |
| | | select id,cover,publish_at as show_time,1 as type from com_act_dyn where status =1 and cover is not null and community_id =#{communityId} |
| | | select id,cover,publish_at as show_time,1 as type,jump_url,jump_type from com_act_dyn where status =1 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,cover,publish_at as show_time,2 as type from com_act_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | select id,cover,publish_at as show_time,2 as type,"" as jump_url,"" as jump_type from com_act_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,cover,release_time as show_time,3 as type from com_pb_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | select id,cover,release_time as show_time,3 as type,"" as jump_url,"" as jump_type from com_pb_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,"" as cover,publish_time as show_time,4 as type from com_act_questnaire where state =2 and community_id =#{communityId} |
| | | select id,"" as cover,publish_time as show_time,4 as type,"" as jump_url,"" as jump_type from com_act_questnaire where state =2 and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,cover,publish_at as show_time,5 as type from com_pb_dyn where status =2 and type =1 and cover is not null and community_id =#{communityId} |
| | | select id,cover,publish_at as show_time,5 as type,jump_url,jump_type from com_pb_dyn where status =2 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,img_url,publish_time as show_time,6 as type from com_act_reserve where status =2 and community_id =#{communityId} |
| | | select id,img_url as cover,publish_time as show_time,6 as type,"" as jump_url,"" as jump_type from com_act_reserve where status =2 and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,photo_path_list,examine_at as show_time,7 as type from com_act_easy_photo where status =2 and community_id =#{communityId} |
| | | select id,logo as cover,release_at as show_time,7 as type,"" as jump_url,"" as jump_type from com_act_easy_photo_activity where status =2 and community_id =#{communityId} |
| | | order by show_time desc limit 30 |
| | | </select> |
| | | |
| | |
| | | <if test='detailedAdminDTO.stopTime != null and detailedAdminDTO.stopTime != ""'> |
| | | AND STR_TO_DATE(carac.answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{detailedAdminDTO.stopTime} |
| | | </if> |
| | | <if test="detailedAdminDTO.keyword!=null and detailedAdminDTO.keyword != """> |
| | | AND carac.answer_content like concat ('%',${detailedAdminDTO.keyword},'%') |
| | | </if> |
| | | group by carr.id |
| | | <if test="detailedAdminDTO.keyword!=null and detailedAdminDTO.keyword != """> |
| | | AND carac.answer_content like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | </if> |
| | | group by carr.id |
| | | </select> |
| | | |
| | | <select id="getRegisterDetailedAnswerList" resultType="com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterDetailedAnswerVO"> |
| | |
| | | where carr.id = #{reserveRecordId} |
| | | </select> |
| | | |
| | | <select id="export" resultType="com.panzhihua.common.model.vos.community.ComActQuestnaireAnswerContentVO"> |
| | | select ac.*,t.nick_name from ( SELECT |
| | | qs.type as optionType,ac.*,ac.create_at as `time` |
| | | FROM |
| | | com_act_reserve_record carr |
| | | LEFT JOIN com_act_reserve qn ON carr.reserve_id = qn.id |
| | | LEFT JOIN com_act_reserve_sub qs ON carr.reserve_id = qs.reserve_id |
| | | LEFT JOIN com_act_reserve_answer_content ac ON qs.id = ac.reserve_sub_id |
| | | WHERE |
| | | carr.id in ( |
| | | SELECT distinct |
| | | carr.id |
| | | FROM |
| | | com_act_reserve_record carr |
| | | LEFT JOIN com_act_reserve qn ON carr.reserve_id = qn.id |
| | | LEFT JOIN sys_user su ON carr.user_id = su.user_id |
| | | LEFT JOIN com_act_reserve_sub qs ON carr.id = qs.reserve_id |
| | | LEFT JOIN com_act_reserve_answer_content ac ON carr.id = ac.reserve_record_id |
| | | where qn.id =#{detailedAdminDTO.reserveId} |
| | | <if test='detailedAdminDTO.startTime != null and detailedAdminDTO.startTime != ""'> |
| | | AND carr.create_at <![CDATA[ >= ]]> #{detailedAdminDTO.startTime} |
| | | </if> |
| | | <if test='detailedAdminDTO.endTime != null and detailedAdminDTO.endTime != ""'> |
| | | AND carr.create_at <![CDATA[ <= ]]> #{detailedAdminDTO.endTime} |
| | | </if> |
| | | <if test='detailedAdminDTO.beginTime != null and detailedAdminDTO.beginTime != ""'> |
| | | AND STR_TO_DATE(ac.answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{detailedAdminDTO.beginTime} |
| | | </if> |
| | | <if test='detailedAdminDTO.stopTime != null and detailedAdminDTO.stopTime != ""'> |
| | | AND STR_TO_DATE(ac.answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{detailedAdminDTO.stopTime} |
| | | </if> |
| | | <if test="detailedAdminDTO.keyword!=null and detailedAdminDTO.keyword != """> |
| | | AND ac.answer_content like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | </if> |
| | | )and ac.reserve_record_id in (select distinct reserve_record_id from com_act_reserve_answer_content where answer_content like concat('%',#{detailedAdminDTO.keyword},'%') |
| | | <if test='detailedAdminDTO.startTime != null and detailedAdminDTO.startTime != ""'> |
| | | AND create_at <![CDATA[ >= ]]> #{detailedAdminDTO.startTime} |
| | | </if> |
| | | <if test='detailedAdminDTO.endTime != null and detailedAdminDTO.endTime != ""'> |
| | | AND create_at <![CDATA[ <= ]]> #{detailedAdminDTO.endTime} |
| | | </if> |
| | | <if test='detailedAdminDTO.beginTime != null and detailedAdminDTO.beginTime != ""'> |
| | | AND STR_TO_DATE(answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{detailedAdminDTO.beginTime} |
| | | </if> |
| | | <if test='detailedAdminDTO.stopTime != null and detailedAdminDTO.stopTime != ""'> |
| | | AND STR_TO_DATE(answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{detailedAdminDTO.stopTime} |
| | | </if> |
| | | ) |
| | | GROUP BY ac.id ) ac left join sys_user t on ac.user_id = t.user_id |
| | | order by ac.reserve_record_id asc,ac.id asc |
| | | </select> |
| | | </mapper> |
| | |
| | | |
| | | <select id="pageReserveAdmin" parameterType="com.panzhihua.common.model.dtos.community.reserve.PageReserveAdminDTO" |
| | | resultType="com.panzhihua.common.model.vos.community.reserve.ComActReserveListAdminVO"> |
| | | SELECT |
| | | id, |
| | | community_id, |
| | | `type`, |
| | | title, |
| | | SELECT |
| | | t.id, |
| | | t.community_id, |
| | | t.`type`, |
| | | t.title, |
| | | view_num, |
| | | join_all_count, |
| | | join_count, |
| | | `status`, |
| | | t.`status`, |
| | | publish_time, |
| | | create_at, |
| | | t.create_at, |
| | | end_time, |
| | | adver_position_top, |
| | | adver_position_application |
| | | FROM |
| | | com_act_reserve |
| | | adver_position_application, |
| | | t1.`name` as community_name |
| | | FROM |
| | | com_act_reserve t left join com_act t1 on t.community_id = t1.community_id |
| | | <where> |
| | | and is_del = 2 |
| | | <if test="pageReserveDTO.communityId != null"> |
| | | and community_id = #{pageReserveDTO.communityId} |
| | | and t.is_del = 2 |
| | | <if test="pageReserveDTO.communityId != null and pageReserveDTO.communityId !=0"> |
| | | and t.community_id = #{pageReserveDTO.communityId} |
| | | </if> |
| | | <if test="pageReserveDTO.communityId ==0"> |
| | | and t1.street_id in (12,14,15,16,17,19) |
| | | </if> |
| | | <if test="pageReserveDTO.type != null and pageReserveDTO.type.size > 0"> |
| | | and `type` in |
| | | and t.`type` in |
| | | <foreach collection='pageReserveDTO.type' item='id' index='index' open='(' close=')' separator=',' > |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="pageReserveDTO.status != null"> |
| | | and status = #{pageReserveDTO.status} |
| | | and t.status = #{pageReserveDTO.status} |
| | | </if> |
| | | <if test="pageReserveDTO.advertType != null and pageReserveDTO.advertType == 1"> |
| | | and adver_position_top = 2 and adver_position_application = 2 |
| | |
| | | and title like concat (#{pageReserveDTO.keyWord},'%') |
| | | </if> |
| | | <if test="pageReserveDTO.startTime != null and pageReserveDTO.startTime != """> |
| | | AND DATE_FORMAT(create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{pageReserveDTO.startTime} |
| | | AND DATE_FORMAT(t.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{pageReserveDTO.startTime} |
| | | </if> |
| | | <if test="pageReserveDTO.endTime != null and pageReserveDTO.endTime != """> |
| | | AND DATE_FORMAT(create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{pageReserveDTO.endTime} |
| | | AND DATE_FORMAT(t.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{pageReserveDTO.endTime} |
| | | </if> |
| | | </where> |
| | | order by create_at desc |
| | | order by t.create_at desc |
| | | </select> |
| | | |
| | | <delete id="deleteReserveSubAll"> |
| | |
| | | |
| | | <select id="registerStatisticsExportAdmin" parameterType="com.panzhihua.common.model.dtos.community.reserve.ComActReserveRegisterStatisticsDTO" |
| | | resultType="com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterStatisticsAdminVO"> |
| | | SELECT DISTINCT |
| | | car.id, |
| | | SELECT |
| | | car.title, |
| | | ( SELECT count( id ) FROM com_act_reserve_record WHERE `type` = 2 AND community_id = #{registerStatisticsDTO.communityId} AND `status` = 2 AND reserve_id = car.id |
| | | <if test="registerStatisticsDTO.startTime != null and registerStatisticsDTO.startTime != """> |
| | | AND DATE_FORMAT(create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{registerStatisticsDTO.startTime} |
| | | </if> |
| | | <if test="registerStatisticsDTO.endTime != null and registerStatisticsDTO.endTime != """> |
| | | AND DATE_FORMAT(create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{registerStatisticsDTO.endTime} |
| | | </if> |
| | | ) AS count, |
| | | count( carr.id ) AS count, |
| | | ( SELECT count( id ) FROM com_act_reserve_record WHERE `type` = 2 AND community_id = #{registerStatisticsDTO.communityId} AND `status` = 2 ) AS allCount |
| | | FROM |
| | | com_act_reserve AS car |
| | | com_act_reserve_record AS carr |
| | | LEFT JOIN com_act_reserve AS car ON car.id = carr.reserve_id |
| | | WHERE |
| | | car.type = 2 |
| | | AND car.community_id = #{registerStatisticsDTO.communityId} |
| | | |
| | | carr.type = 2 |
| | | AND carr.community_id = #{registerStatisticsDTO.communityId} |
| | | AND carr.`status` = 2 |
| | | <if test="registerStatisticsDTO.startTime != null and registerStatisticsDTO.startTime != """> |
| | | AND DATE_FORMAT(carr.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{registerStatisticsDTO.startTime} |
| | | </if> |
| | | <if test="registerStatisticsDTO.endTime != null and registerStatisticsDTO.endTime != """> |
| | | AND DATE_FORMAT(carr.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{registerStatisticsDTO.endTime} |
| | | </if> |
| | | GROUP BY |
| | | car.id |
| | | car.id |
| | | </select> |
| | | |
| | | <select id="pageMakeHandleAdmin" parameterType="com.panzhihua.common.model.dtos.community.reserve.PageReserveMakeHandleAdminDTO" |
| | |
| | | order by cear.create_at desc |
| | | </select> |
| | | |
| | | <select id="export" resultType="com.panzhihua.common.model.vos.community.ComElderAuthRecordVO"> |
| | | SELECT |
| | | cear.id, |
| | | su.`name` submitUserName, |
| | | ceae.phone, |
| | | ceae.`name`, |
| | | ceae.id_card, |
| | | ceae.sex, |
| | | ceae.birthday, |
| | | ceae.personnel_category, |
| | | cear.address, |
| | | ceae.is_alive, |
| | | cear.auth_method, |
| | | cear.auth_period, |
| | | cear.auth_video, |
| | | cear.auth_date, |
| | | cear.mark, |
| | | cear.approval_status, |
| | | cear.approver_id, |
| | | su1.`name` as approverName, |
| | | cear.approval_date, |
| | | cear.auth_status |
| | | FROM |
| | | com_elder_auth_records cear |
| | | LEFT JOIN com_elder_auth_elderlies ceae ON cear.elderlies_id = ceae.id |
| | | LEFT JOIN sys_user su ON cear.submit_user_id = su.user_id |
| | | LEFT JOIN sys_user su1 ON cear.approver_id = su1.user_id |
| | | WHERE |
| | | ceae.community_id = #{pageElderAuthRecordsDTO.communityId} |
| | | <if test="pageElderAuthRecordsDTO.authPeriod != null and pageElderAuthRecordsDTO.authPeriod !=''"> |
| | | and cear.auth_period = #{pageElderAuthRecordsDTO.authPeriod} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.authMethod != null and pageElderAuthRecordsDTO.authMethod != 0"> |
| | | and cear.auth_method = #{pageElderAuthRecordsDTO.authMethod} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.authDateBegin != null and pageElderAuthRecordsDTO.authDateBegin != ''"> |
| | | and cear.auth_date <![CDATA[ >= ]]> #{pageElderAuthRecordsDTO.authDateBegin} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.authDateEnd != null and pageElderAuthRecordsDTO.authDateEnd != ''"> |
| | | and cear.auth_date <![CDATA[ <= ]]> #{pageElderAuthRecordsDTO.authDateEnd} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.approvalStatus != null and pageElderAuthRecordsDTO.approvalStatus != 0"> |
| | | and cear.approval_status = #{pageElderAuthRecordsDTO.approvalStatus} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.authStatus != null and pageElderAuthRecordsDTO.authStatus != 0"> |
| | | and cear.auth_status = #{pageElderAuthRecordsDTO.authStatus} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.personnelCategory != null and pageElderAuthRecordsDTO.personnelCategory != 0"> |
| | | and ceae.personnel_category = #{pageElderAuthRecordsDTO.personnelCategory} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.isAlive != null and pageElderAuthRecordsDTO.isAlive != 0"> |
| | | and ceae.is_alive = #{pageElderAuthRecordsDTO.isAlive} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.searchKey != null and pageElderAuthRecordsDTO.searchKey != ''"> |
| | | and (ceae.`name` like concat ('%', #{pageElderAuthRecordsDTO.searchKey}, '%') |
| | | or cear.mark like concat ('%', #{pageElderAuthRecordsDTO.searchKey}, '%') |
| | | or ceae.id_card = #{pageElderAuthRecordsDTO.idCard}) |
| | | </if> |
| | | order by cear.create_at desc |
| | | </select> |
| | | |
| | | <select id="detailElderAuthRecords" resultType="com.panzhihua.common.model.vos.community.ComElderAuthRecordVO"> |
| | | SELECT |
| | | su.`name` submitUserName, |
| | |
| | | AND cmp.door_no = #{comMngPopulationVO.doorNo} </if> |
| | | <if test='comMngPopulationVO.floor != null and comMngPopulationVO.floor != ""'> |
| | | AND cmp.floor = #{comMngPopulationVO.floor} </if> |
| | | <if test='comMngPopulationVO.isDeath != null'> |
| | | AND cmp.death = #{comMngPopulationVO.isDeath} </if> |
| | | <if test='comMngPopulationVO.unitNo != null and comMngPopulationVO.unitNo != ""'> |
| | | AND cmp.unit_no = #{comMngPopulationVO.unitNo} </if> |
| | | <if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'> |
| | |
| | | csdr.street_suggestion AS streetSuggestion, |
| | | csdr.undertake_record AS undertakeRecord, |
| | | csdr.leader_suggestion AS leaderSuggestion, |
| | | csdr.assign_person AS assignPerson |
| | | csdr.assign_person AS assignPerson, |
| | | t.name as communityName |
| | | FROM |
| | | com_sw_danger_report as csdr |
| | | left join com_sw_patrol_record_report as csprr on csprr.report_id = csdr.id |
| | | left join com_sw_patrol_record as cspr on csprr.patrol_record_id = cspr.id |
| | | left join com_act t on csdr.community_id =t.community_id |
| | | <where> |
| | | <if test='comSwPatrolRecordDTO.communityId != null and comSwPatrolRecordDTO.communityId != ""'> |
| | | <if test='comSwPatrolRecordDTO.communityId != null and comSwPatrolRecordDTO.communityId != 0'> |
| | | AND cspr.community_id = #{comSwPatrolRecordDTO.communityId} |
| | | </if> |
| | | <if test='comSwPatrolRecordDTO.communityId == 0'> |
| | | AND t.street_id in (12,14,15,16,17,19) |
| | | </if> |
| | | <if test='comSwPatrolRecordDTO.patrolPerson != null and comSwPatrolRecordDTO.patrolPerson != ""'> |
| | | AND cspr.person_name LIKE concat('%',#{comSwPatrolRecordDTO.patrolPerson},'%') |
| | | </if> |
| | |
| | | cspr.succession_time AS successionTime, |
| | | cspr.create_at AS createAt, |
| | | cspr.create_by AS createBy, |
| | | csprr.report_id AS reportId |
| | | csprr.report_id AS reportId, |
| | | t.name as communityName |
| | | FROM |
| | | com_sw_patrol_record as cspr |
| | | left join com_sw_patrol_record_report as csprr on csprr.patrol_record_id = cspr.id |
| | | left join com_act t on cspr.community_id = t.community_id |
| | | <where> |
| | | <if test='comSwPatrolRecordDTO.communityId != null and comSwPatrolRecordDTO.communityId != ""'> |
| | | <if test='comSwPatrolRecordDTO.communityId != null and comSwPatrolRecordDTO.communityId != 0'> |
| | | AND cspr.community_id = #{comSwPatrolRecordDTO.communityId} |
| | | </if> |
| | | <if test='comSwPatrolRecordDTO.communityId == 0'> |
| | | AND t.street_id in (12,14,15,16,17,19) |
| | | </if> |
| | | <if test='comSwPatrolRecordDTO.patrolPerson != null and comSwPatrolRecordDTO.patrolPerson != ""'> |
| | | AND cspr.person_name LIKE concat('%',#{comSwPatrolRecordDTO.patrolPerson},'%') |
| | | </if> |
| | |
| | | cspr.record_photo AS recordPhoto, |
| | | csswr.remark, |
| | | cspr.create_at AS createAt, |
| | | cspr.create_by AS createBy |
| | | cspr.create_by AS createBy, |
| | | t.name as communityName |
| | | FROM |
| | | com_sw_safety_work_record as csswr |
| | | left join com_sw_patrol_record_report as csprr on csprr.report_id = csswr.id |
| | | left join com_sw_patrol_record as cspr on csprr.patrol_record_id = cspr.id |
| | | left join com_act t on cspr.community_id = t.community_id |
| | | <where> |
| | | <if test='comSwPatrolRecordDTO.communityId != null and comSwPatrolRecordDTO.communityId != ""'> |
| | | <if test='comSwPatrolRecordDTO.communityId != null and comSwPatrolRecordDTO.communityId != 0'> |
| | | AND cspr.community_id = #{comSwPatrolRecordDTO.communityId} |
| | | </if> |
| | | <if test='comSwPatrolRecordDTO.communityId == 0'> |
| | | AND t.street_id in (12,14,15,16,17,19) |
| | | </if> |
| | | <if test='comSwPatrolRecordDTO.patrolPerson != null and comSwPatrolRecordDTO.patrolPerson != ""'> |
| | | AND cspr.person_name LIKE concat('%',#{comSwPatrolRecordDTO.patrolPerson},'%') |
| | | </if> |
| | |
| | | // " </where>" + |
| | | // "</script>") |
| | | |
| | | @Select("<script> " + "SELECT\n" + "d.id,\n" + "d.title,\n" + "COUNT( u.id ) readingVolume,\n" + "d.`status`,\n" |
| | | @Select("<script> " + "SELECT\n" + "d.id,\n" + "d.title, d.jump_url, d.jump_type,\n" + "COUNT( u.id ) readingVolume,\n" + "d.`status`,\n" |
| | | + "d.publish_at,\n" + "d.content,\n" + "d.cover,\n" + "d.cover_mode,\n" + "d.dyn_type,\n" + "d.create_at \n" |
| | | + "FROM\n" + "com_pb_dyn d\n" + "LEFT JOIN com_pb_dyn_user u ON d.id = u.dyn_id \n" |
| | | + "where d.type=#{partyBuildingComPbDynVO.type} \n" |
| | |
| | | * 跳转链接 |
| | | */ |
| | | private String jumpUrl; |
| | | /** |
| | | * 跳转状态 |
| | | */ |
| | | |
| | | private Integer jumpType; |
| | | } |
| | |
| | | @Override |
| | | public R editSysUser(ShopStoreVO storeVO) { |
| | | SysUserDO sysUserDO1 = userDao.selectOne(new QueryWrapper<SysUserDO>().lambda() |
| | | .eq(SysUserDO::getPhone, storeVO.getPhone()).eq(SysUserDO::getType, 5)); |
| | | .eq(SysUserDO::getPhone, storeVO.getStoreAccount()).eq(SysUserDO::getType, 5)); |
| | | if (sysUserDO1 == null) { |
| | | return R.fail("未查询到后台管理用户!"); |
| | | } |