Merge remote-tracking branch 'origin/test' into test
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date authDate; |
| | | |
| | | @ExcelProperty(value = "标记", index = 12) |
| | | @ExcelProperty(value = "认证方式", index = 12) |
| | | private String authMethod; |
| | | |
| | | @ExcelProperty(value = "标记", index = 13) |
| | | private String mark; |
| | | |
| | | @ExcelProperty(value = "审核状态", index = 13) |
| | | @ExcelProperty(value = "审核状态", index = 14) |
| | | private String approvalStatus; |
| | | } |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date authDate; |
| | | |
| | | @ExcelProperty(value = "标记", index = 11) |
| | | @ExcelProperty(value = "认证方式", index = 11) |
| | | private String authMethod; |
| | | |
| | | |
| | | @ExcelProperty(value = "标记", index = 12) |
| | | private String mark; |
| | | |
| | | @ExcelProperty(value = "认证状态", index = 12) |
| | | @ExcelProperty(value = "认证状态", index = 13) |
| | | private String authStatus; |
| | | } |
| | |
| | | @ApiModelProperty(value = "提交用户id") |
| | | private Long submitUserId; |
| | | |
| | | @ApiModelProperty(value = "认证方式(1.视频认证 2.人脸认证)") |
| | | private Integer authMethod; |
| | | |
| | | @ApiModelProperty(value = "提交用户姓名") |
| | | private String submitUserName; |
| | | |
| | |
| | | |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | |
| | | @ApiModelProperty(value = "本期认证总人数") |
| | | private Integer authAmount; |
| | | |
| | | @ApiModelProperty(value = "本期认证成功人数") |
| | | private Integer authSucceedAmount; |
| | | |
| | | @ApiModelProperty(value = "本期未认证人数") |
| | | private Integer authNoAmount; |
| | | } |
| | |
| | | @ApiModelProperty(value = "养老金用户id") |
| | | private Long pensionerId; |
| | | |
| | | @ApiModelProperty(value = "认证方式(1.视频认证 2.人脸认证)") |
| | | private Integer authMethod; |
| | | |
| | | @ApiModelProperty(value = "认证期数") |
| | | private String authPeriod; |
| | | |
| | |
| | | R exportPensionAuthRecordsStatistic(@RequestBody PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | /** |
| | | * 查询养老认证社区认证方式 setPensionAuthType 查询养老认证社区认证方式 |
| | | * @param eldersAuthTypeQueryDTO 查询参数 |
| | | * @return R 查询结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | @PostMapping("/elders/pensionAuthRecords/authtype") |
| | | R communityPensionAuthType(@RequestBody EldersAuthTypeQueryDTO eldersAuthTypeQueryDTO); |
| | | |
| | | /** |
| | | * 设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验) setPensionAuthType 设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验) |
| | | * @param communityId 社区id |
| | | * @param type 检验类型 |
| | | * @return R 设置结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | R setPensionAuthType(@RequestParam("communityId") Long communityId, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 小程序-查询疫苗分类列表 |
| | | * |
| | | * @return 疫苗分类列表 |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询养老认证社区认证方式 setPensionAuthType 查询养老认证社区认证方式 |
| | | * @return R 查询结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | @ApiOperation(value = "查询社区养老认证方式", response = R.class) |
| | | @GetMapping("/pensionAuthRecords/authtype") |
| | | public R communityPensionAuthType() { |
| | | Long communityId = this.getCommunityId(); |
| | | EldersAuthTypeQueryDTO eldersAuthTypeQueryDTO = new EldersAuthTypeQueryDTO(); |
| | | eldersAuthTypeQueryDTO.setCommunityId(communityId); |
| | | return communityService.communityPensionAuthType(eldersAuthTypeQueryDTO); |
| | | } |
| | | |
| | | @PutMapping("/pensionAuthRecords/authType/{type}") |
| | | @ApiOperation(value = "设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验)", response = R.class) |
| | | R setPensionAuthType(@PathVariable("type") Integer type) { |
| | | if (type != 1 && type != 2) { |
| | | return R.fail("参数错误"); |
| | | } |
| | | return communityService.setPensionAuthType(this.getCommunityId(), type); |
| | | } |
| | | |
| | | private List<List<String>> headDataFilling() { |
| | | List<List<String>> list = new ArrayList<List<String>>(); |
| | | List<String> head0 = new ArrayList<String>(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验) setPensionAuthType 设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验) |
| | | * @param communityId 社区id |
| | | * @param type 检验类型 |
| | | * @return R 设置结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | @PutMapping("/pensionAuthRecords/authType/{type}") |
| | | public R setPensionAuthType(@RequestParam("communityId") Long communityId, @RequestParam("type") Integer type) { |
| | | return comPensionAuthRecordService.setPensionAuthType(communityId, type); |
| | | } |
| | | |
| | | /** |
| | | * 查询养老认证社区认证方式 setPensionAuthType 查询养老认证社区认证方式 |
| | | * @param eldersAuthTypeQueryDTO 查询参数 |
| | | * @return R 查询结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | @PostMapping("/pensionAuthRecords/authtype") |
| | | public R communityPensionAuthType(@RequestBody EldersAuthTypeQueryDTO eldersAuthTypeQueryDTO) { |
| | | return comPensionAuthRecordService.communityPensionAuthType(eldersAuthTypeQueryDTO); |
| | | } |
| | | |
| | | /** |
| | | * 定时任务每月1号0点统计高龄老人本期应该认证总人数 |
| | | * @return 执行结果 |
| | | */ |
| | |
| | | private Long submitUserId; |
| | | |
| | | /** |
| | | * 认证方式(1.视频认证 2.人脸认证) |
| | | */ |
| | | private Integer authMethod; |
| | | |
| | | /** |
| | | * 认证视频 |
| | | */ |
| | | private String authVideo; |
| | |
| | | *提交用户id |
| | | */ |
| | | private Long submitUserId; |
| | | |
| | | /** |
| | | * 认证方式(1.视频认证 2.人脸认证) |
| | | */ |
| | | private Integer authMethod; |
| | | |
| | | /** |
| | | *认证期数 |
| | | */ |
| | |
| | | package com.panzhihua.service_community.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.panzhihua.common.model.dtos.community.EldersAuthTypeQueryDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageElderAuthRecordsDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComPensionAuthRecordImportExcelVO; |
| | | import com.panzhihua.common.model.vos.community.ComPensionAuthRecordVO; |
| | | import com.panzhihua.service_community.model.dos.ComPensionAuthRecordDO; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | 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.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | R exportPensionAuthRecordsStatistic(PageElderAuthRecordsDTO pageElderAuthRecordsDTO); |
| | | |
| | | /** |
| | | * 设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验) setPensionAuthType 设置当前社区养老认证方式:核验类型(1.视频认证 2.人脸核验) |
| | | * @param communityId 社区id |
| | | * @param type 检验类型 |
| | | * @return R 设置结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | R setPensionAuthType(Long communityId, Integer type); |
| | | |
| | | /** |
| | | * 查询养老认证社区认证方式 setPensionAuthType 查询养老认证社区认证方式 |
| | | * @param eldersAuthTypeQueryDTO 查询参数 |
| | | * @return R 查询结果 |
| | | * @author txb |
| | | * @date 2021/9/10 16:03 |
| | | */ |
| | | R communityPensionAuthType(EldersAuthTypeQueryDTO eldersAuthTypeQueryDTO); |
| | | |
| | | /** |
| | | * 定时任务每年3月1号0点统计养老认证本期应该认证总人数 |
| | | * @return 执行结果 |
| | | */ |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActActEvaluateVO; |
| | | import com.panzhihua.service_community.dao.ComActActEvaluateDAO; |
| | | import com.panzhihua.service_community.dao.ComActActRegistDAO; |
| | | import com.panzhihua.service_community.dao.ComActActSignDAO; |
| | | import com.panzhihua.service_community.dao.ComActActivityDAO; |
| | | import com.panzhihua.service_community.model.dos.ComActActEvaluateDO; |
| | | import com.panzhihua.service_community.model.dos.ComActActRegistDO; |
| | | import com.panzhihua.service_community.model.dos.ComActActSignDO; |
| | | import com.panzhihua.service_community.model.dos.ComActActivityDO; |
| | | import com.panzhihua.service_community.service.ComActActEvaluateService; |
| | |
| | | private ComActActivityDAO comActActivityDAO; |
| | | @Resource |
| | | private ComActActSignDAO comActActSignDAO; |
| | | @Resource |
| | | private ComActActRegistDAO comActActRegistDAO; |
| | | /** |
| | | * 社区活动评价 |
| | | * |
| | |
| | | Integer isQrCode = comActActivityDO.getIsQrCode(); |
| | | if (nonNull(isQrCode) && isQrCode.equals(1)) { |
| | | //需要签到类型 |
| | | int signCount = comActActSignDAO.selectCount(new QueryWrapper<ComActActSignDO>() |
| | | .lambda().eq(ComActActSignDO::getUserId, userId).eq(ComActActSignDO::getActivityId, activityId)); |
| | | if (signCount <= 0) { |
| | | int registCount = comActActRegistDAO.selectCount(new QueryWrapper<ComActActRegistDO>() |
| | | .lambda().eq(ComActActRegistDO::getUserId, userId).eq(ComActActRegistDO::getActivityId, activityId)); |
| | | if (registCount <= 0) { |
| | | //未签到,不能评价 |
| | | return R.fail("未签到,不能评价"); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | // comMngPopulationHouseUserDO.setCreateAt(new Date()); |
| | | // comMngPopulationHouseUserDAO.insert(comMngPopulationHouseUserDO); |
| | | // } |
| | | //修改吸毒人员信息 |
| | | if (null != vo.getComDrugPopulationVO()) { |
| | | ComDrugPopulationVO comDrugPopulationVO = vo.getComDrugPopulationVO(); |
| | | ComDrugPopulationDO comDrugPopulationDO = comDrugPopulationDAO.selectById(comDrugPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comDrugPopulationVO, comDrugPopulationDO); |
| | | comDrugPopulationDAO.updateById(comDrugPopulationDO); |
| | | } |
| | | //修改社区矫正人员信息 |
| | | if (null != vo.getComCorrectPopulationVO()) { |
| | | ComCorrectPopulationVO comCorrectPopulationVO = vo.getComCorrectPopulationVO(); |
| | | ComCorrectPopulationDO comCorrectPopulationDO = comCorrectPopulationDAO.selectById(comCorrectPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comCorrectPopulationVO, comCorrectPopulationDO); |
| | | comCorrectPopulationDAO.updateById(comCorrectPopulationDO); |
| | | } |
| | | //修改精神障碍信息 |
| | | if (null != vo.getComMajorPopulationVO()) { |
| | | ComMajorPopulationVO comMajorPopulationVO = vo.getComMajorPopulationVO(); |
| | | ComMajorPopulationDO comCorrectPopulationDO = comMajorPopulationDAO.selectById(comMajorPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comMajorPopulationVO, comCorrectPopulationDO); |
| | | comMajorPopulationDAO.updateById(comCorrectPopulationDO); |
| | | } |
| | | //修改邪教信息 |
| | | if (null != vo.getComCultPopulationVO()) { |
| | | ComCultPopulationVO comCultPopulationVO = vo.getComCultPopulationVO(); |
| | | ComCultPopulationDO comCultPopulationDO = comCultPopulationDAO.selectById(comCultPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comCultPopulationVO, comCultPopulationDO); |
| | | comCultPopulationDAO.updateById(comCultPopulationDO); |
| | | } |
| | | //修改刑释信息 |
| | | if (null != vo.getComRehabilitationPopulationVO()) { |
| | | ComRehabilitationPopulationVO comRehabilitationPopulationVO = vo.getComRehabilitationPopulationVO(); |
| | | ComRehabilitationPopulationDO comRehabilitationPopulationDO = comRehabilitationPopulationDAO.selectById(comRehabilitationPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comRehabilitationPopulationVO, comRehabilitationPopulationDO); |
| | | comRehabilitationPopulationDAO.updateById(comRehabilitationPopulationDO); |
| | | } |
| | | //修改上访信息 |
| | | if (null != vo.getComKeyPopulationVO()) { |
| | | ComKeyPopulationVO comKeyPopulationVO = vo.getComKeyPopulationVO(); |
| | | ComKeyPopulationDO comKeyPopulationDO = comKeyPopulationDAO.selectById(comKeyPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comKeyPopulationVO, comKeyPopulationDO); |
| | | comKeyPopulationDAO.updateById(comKeyPopulationDO); |
| | | } |
| | | //修改退役军人信息 |
| | | if (null != vo.getComVeteransPopulationVO()) { |
| | | ComVeteransPopulationVO comVeteransPopulationVO = vo.getComVeteransPopulationVO(); |
| | | ComVeteransPopulationDO comVeteransPopulationDO = comVeteransPopulationDAO.selectById(comVeteransPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comVeteransPopulationVO, comVeteransPopulationDO); |
| | | comVeteransPopulationDAO.updateById(comVeteransPopulationDO); |
| | | } |
| | | //修改残疾人信息 |
| | | if (null != vo.getComDisabilityPopulationVO()) { |
| | | ComDisabilityPopulationVO comDisabilityPopulationVO = vo.getComDisabilityPopulationVO(); |
| | | ComDisabilityPopulationDO comDisabilityPopulationDO = comDisabilityPopulationDAO.selectById(comDisabilityPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comDisabilityPopulationVO, comDisabilityPopulationDO); |
| | | comDisabilityPopulationDAO.updateById(comDisabilityPopulationDO); |
| | | } |
| | | //修改低保户信息 |
| | | if (null != vo.getComLowSecurityPopulationVO()) { |
| | | ComLowSecurityPopulationVO comLowSecurityPopulationVO = vo.getComLowSecurityPopulationVO(); |
| | | ComLowSecurityPopulationDO comLowSecurityPopulationDO = comLowSecurityPopulationDAO.selectById(comLowSecurityPopulationVO.getId()); |
| | | BeanUtils.copyProperties(comLowSecurityPopulationVO, comLowSecurityPopulationDO); |
| | | comLowSecurityPopulationDAO.updateById(comLowSecurityPopulationDO); |
| | | } |
| | | //修改高龄老人信息 |
| | | if (null != vo.getComElderAuthElderliesVO()) { |
| | | ComElderAuthElderliesVO comElderAuthElderliesVO = vo.getComElderAuthElderliesVO(); |
| | | ComElderAuthElderliesDO comElderAuthElderliesDO = comElderAuthElderliesDAO.selectById(comElderAuthElderliesVO.getId()); |
| | | BeanUtils.copyProperties(comElderAuthElderliesVO, comElderAuthElderliesDO); |
| | | comElderAuthElderliesDAO.updateById(comElderAuthElderliesDO); |
| | | } |
| | | //修改养老人员信息 |
| | | if (null != vo.getComPensionAuthPensionerVO()) { |
| | | ComPensionAuthPensionerVO comPensionAuthPensionerVO = vo.getComPensionAuthPensionerVO(); |
| | | ComPensionAuthPensionerDO comPensionAuthPensionerDO = comPensionAuthPensionerDAO.selectById(comPensionAuthPensionerVO.getId()); |
| | | BeanUtils.copyProperties(comPensionAuthPensionerVO, comPensionAuthPensionerDO); |
| | | comPensionAuthPensionerDAO.updateById(comPensionAuthPensionerDO); |
| | | } |
| | | if (populationDAO.updateById(populationDO) > 0) { |
| | | return R.ok(); |
| | | } else { |
| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.enums.PopulHouseUseEnum; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.dtos.community.EldersAuthTypeQueryDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageElderAuthRecordsDTO; |
| | | import com.panzhihua.common.model.helper.AESUtil; |
| | | import com.panzhihua.common.model.vos.R; |
| | |
| | | private ComActDAO comActDAO; |
| | | @Resource |
| | | private ComPensionAuthStatisticsDAO comPensionAuthStatisticsDAO; |
| | | @Resource |
| | | private SysConfMapper sysConfDao; |
| | | @Value("${domain.aesKey:}") |
| | | private String aesKey; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R setPensionAuthType(Long communityId, Integer type) { |
| | | List<SysConfDO> authConf = |
| | | sysConfDao.selectList(new LambdaQueryWrapper<SysConfDO>().eq(SysConfDO::getCommunityId, communityId) |
| | | .eq(SysConfDO::getCode, "PENSION_AUTH_TYPE").orderByDesc(SysConfDO::getCreateAt)); |
| | | if (authConf != null && authConf.size() > 0) { |
| | | SysConfDO first = authConf.get(0); |
| | | first.setValue(type + ""); |
| | | int updated = sysConfDao.updateById(first); |
| | | if (updated == 1) { |
| | | return R.ok(); |
| | | } |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | @Override |
| | | public R communityPensionAuthType(EldersAuthTypeQueryDTO eldersAuthTypeQueryDTO) { |
| | | Long communityId = eldersAuthTypeQueryDTO.getCommunityId(); |
| | | List<SysConfDO> confDOList = sysConfDao.selectList(new LambdaQueryWrapper<SysConfDO>() |
| | | .eq(SysConfDO::getCommunityId, communityId).eq(SysConfDO::getCode,"PENSION_AUTH_TYPE").orderByDesc(SysConfDO::getCreateAt)); |
| | | if (confDOList == null || confDOList.size() == 0) { |
| | | SysConfDO sysConfDO = new SysConfDO(); |
| | | sysConfDO.setCode("PENSION_AUTH_TYPE"); |
| | | sysConfDO.setName("养老认证类型"); |
| | | sysConfDO.setValue(2 + "");// 核验类型(1.视频认证 2.人脸核验) |
| | | sysConfDO.setDescription("养老认证默认添加的核验类型"); |
| | | sysConfDO.setCommunityId(communityId); |
| | | sysConfDO.setCreateBy(eldersAuthTypeQueryDTO.getUserId()); |
| | | int inserted = sysConfDao.insert(sysConfDO); |
| | | if (inserted != 1) { |
| | | throw new ServiceException("添加养老认证默认添加的核验类型失败"); |
| | | } |
| | | confDOList = sysConfDao.selectList(new LambdaQueryWrapper<SysConfDO>() |
| | | .eq(SysConfDO::getCommunityId, communityId) |
| | | .orderByDesc(SysConfDO::getCreateAt)); |
| | | } |
| | | if (confDOList != null && confDOList.size() > 0) { |
| | | SysConfDO latest = confDOList.get(0); |
| | | SysConfVO sysConfVO = new SysConfVO(); |
| | | BeanUtils.copyProperties(latest, sysConfVO); |
| | | return R.ok(sysConfVO.getValue()); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R timedTaskPensionAuthStatisticsJobHandler() { |
| | | Date nowDate = new Date(); |
| | | int month = DateUtils.getMonth(nowDate) + 1; |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, elderlies_id, auth_period, submit_user_id, auth_video, approver, approval_status, approval_date, mark, reject_reason, auth_status, auth_date, create_at, update_at |
| | | id, elderlies_id, auth_method, auth_period, submit_user_id, auth_video, approver, approval_status, approval_date, mark, reject_reason, auth_status, auth_date, create_at, update_at |
| | | </sql> |
| | | |
| | | <select id="pageElderAuthRecords" resultType="com.panzhihua.common.model.vos.community.ComElderAuthRecordVO"> |
| | |
| | | ceae.personnel_category, |
| | | ceae.address, |
| | | ceae.is_alive, |
| | | cear.auth_method, |
| | | cear.auth_period, |
| | | cear.auth_date, |
| | | cear.mark, |
| | |
| | | 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 after #{pageElderAuthRecordsDTO.authDateBegin} |
| | |
| | | ceae.personnel_category, |
| | | ceae.address, |
| | | ceae.is_alive, |
| | | cear.auth_method, |
| | | cear.auth_period, |
| | | cear.auth_date, |
| | | cear.mark, |
| | |
| | | END personnelCategory, |
| | | ceae.address, |
| | | CASE |
| | | ceae.isAlive |
| | | ceae.is_alive |
| | | WHEN 1 THEN |
| | | '是' |
| | | WHEN 0 THEN |
| | | '否' |
| | | END is_alive, |
| | | END isAlive, |
| | | CASE |
| | | cear.auth_method |
| | | WHEN 1 THEN |
| | | '视频认证' |
| | | WHEN 2 THEN |
| | | '人脸认证' |
| | | END authMethod, |
| | | cear.auth_period, |
| | | cear.auth_date, |
| | | cear.mark, |
| | |
| | | </if> |
| | | <if test="item.elderliesId != null"> |
| | | `elderlies_id` = #{item.elderliesId}, |
| | | </if> |
| | | <if test="item.authMethod != null and item.authMethod != 0"> |
| | | `auth_method` = #{item.authMethod}, |
| | | </if> |
| | | <if test="item.authPeriod != null and item.authPeriod != ''"> |
| | | `auth_period` = #{item.authPeriod}, |
| | |
| | | END personnelCategory, |
| | | ceae.address, |
| | | CASE |
| | | ceae.isAlive |
| | | ceae.is_alive |
| | | WHEN 1 THEN |
| | | '是' |
| | | WHEN 0 THEN |
| | |
| | | END is_alive, |
| | | cear.auth_period, |
| | | cear.auth_date, |
| | | CASE |
| | | cear.auth_method |
| | | WHEN 1 THEN |
| | | '视频认证' |
| | | WHEN 2 THEN |
| | | '人脸认证' |
| | | END authMethod, |
| | | cear.mark, |
| | | CASE |
| | | cear.auth_status |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, pensioner_id, auth_period, submit_user_id, auth_video, approver, approval_status, approval_date, mark, reject_reason, auth_status, auth_date, create_at, update_at |
| | | id, pensioner_id, auth_method, auth_period, submit_user_id, auth_video, approver, approval_status, approval_date, mark, reject_reason, auth_status, auth_date, create_at, update_at |
| | | </sql> |
| | | |
| | | <select id="pagePensionAuthRecords" resultType="com.panzhihua.common.model.vos.community.ComPensionAuthRecordVO"> |
| | |
| | | cpap.is_alive, |
| | | cpar.auth_period, |
| | | cpar.auth_date, |
| | | cpar.auth_method, |
| | | cpar.mark, |
| | | cpar.approval_status, |
| | | cpar.auth_status |
| | |
| | | cpap.community_id = #{pageElderAuthRecordsDTO.communityId} |
| | | <if test="pageElderAuthRecordsDTO.authPeriod != null and pageElderAuthRecordsDTO.authPeriod !=''"> |
| | | and cpar.auth_period = #{pageElderAuthRecordsDTO.authPeriod} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.authMethod != null and pageElderAuthRecordsDTO.authMethod != 0"> |
| | | and cpar.auth_method = #{pageElderAuthRecordsDTO.authMethod} |
| | | </if> |
| | | <if test="pageElderAuthRecordsDTO.authDateBegin != null and pageElderAuthRecordsDTO.authDateBegin != ''"> |
| | | and cpar.auth_date after #{pageElderAuthRecordsDTO.authDateBegin} |
| | |
| | | cpar.auth_period, |
| | | cpar.auth_date, |
| | | cpar.mark, |
| | | cpar.auth_method, |
| | | cpar.auth_video, |
| | | cpar.approval_status, |
| | | su1.`name` as approverName, |
| | |
| | | END is_alive, |
| | | cpar.auth_period, |
| | | cpar.auth_date, |
| | | CASE |
| | | cpar.auth_method |
| | | WHEN 1 THEN |
| | | '视频认证' |
| | | WHEN 2 THEN |
| | | '人脸认证' |
| | | END authMethod, |
| | | cpar.mark, |
| | | CASE |
| | | cpar.approval_status |
| | |
| | | </if> |
| | | <if test="item.pensionerId != null"> |
| | | `pensioner_id` = #{item.pensionerId}, |
| | | </if> |
| | | <if test="item.authMethod != null and item.authMethod != 0"> |
| | | `auth_method` = #{item.authMethod}, |
| | | </if> |
| | | <if test="item.authPeriod != null and item.authPeriod != ''"> |
| | | `auth_period` = #{item.authPeriod}, |
| | |
| | | END is_alive, |
| | | cpar.auth_period, |
| | | cpar.auth_date, |
| | | CASE |
| | | cpar.auth_method |
| | | WHEN 1 THEN |
| | | '视频认证' |
| | | WHEN 2 THEN |
| | | '人脸认证' |
| | | END authMethod, |
| | | cpar.mark, |
| | | CASE |
| | | cpar.auth_status |