| | |
| | | @Resource |
| | | RestHighLevelClient restHighLevelClient; |
| | | |
| | | @Resource |
| | | ZfEconomyShaService zfEconomyShaService; |
| | | |
| | | @Resource |
| | | ZfEconomyDownlService zfEconomyDownlService; |
| | | |
| | | private LambdaQueryWrapper<ZfEconomy> buildCondition(ZfEconomy zfEconomy,List<Long> familyIdList) { |
| | | LambdaQueryWrapper<ZfEconomy> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.orderByDesc(ZfEconomy::getCreateTime); |
| | | lqw.in(ZfEconomy::getFamilyId,familyIdList); |
| | | // lqw.in(ZfEconomy::getFamilyId,familyIdList); |
| | | lqw.like(StringUtils.isNotEmpty(zfEconomy.getType()),ZfEconomy::getType,zfEconomy.getType()); |
| | | lqw.like(StringUtils.isNotEmpty(zfEconomy.getKind()),ZfEconomy::getKind,zfEconomy.getKind()); |
| | | lqw.like(StringUtils.isNotEmpty(zfEconomy.getPrice()),ZfEconomy::getPrice,zfEconomy.getPrice()); |
| | |
| | | lqw.eq(zfEconomy.getFamilyId()!=null,ZfEconomy::getFamilyId,zfEconomy.getFamilyId()); |
| | | lqw.eq(zfEconomy.getHappenTime() != null, ZfEconomy::getHappenTime, zfEconomy.getHappenTime()); |
| | | return lqw; |
| | | } |
| | | @Override |
| | | public List<ZfEconomy> change(){ |
| | | ZfEconomy zfEconomy = new ZfEconomy(); |
| | | return list(buildCondition(zfEconomy,null)); |
| | | } |
| | | |
| | | // private LambdaQueryWrapper<ZfEconomy> buildCondition(ZfEconomy zfEconomy, String familyIds, String secondFamilyAuthority) { |
| | |
| | | fatherFaId = zInfoUserService.getInfoById(myself.getFatherId()).getFamilyId(); |
| | | Long motherFaId = 0L; |
| | | if(myself.getMomId()!=null) |
| | | motherFaId = zInfoUserService.getInfoBysysId(myself.getMomId()).getFamilyId(); |
| | | motherFaId = zInfoUserService.getInfoById(myself.getMomId()).getFamilyId(); |
| | | |
| | | //也要查别人授权的 |
| | | List<ZAuthority> authority = zAuthorityService.getAuthority(); |
| | |
| | | } |
| | | } |
| | | List<ZfEconomy> zfEconomys = listByIds(Arrays.asList(ids)); |
| | | |
| | | if (! (zfEconomyDownlService.deleteData(ids) && zfEconomyShaService.deleteByContentId(ids) ) ){ |
| | | return AjaxResult.error(); |
| | | } |
| | | if (zfEconomyService.removeByIds(Arrays.asList(ids))) { |
| | | |
| | | //删除es中的数据 |