| | |
| | | package com.yeshi.fanli.dao.user.invite;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
| | | update.set("stateValid", record.getStateValid());
|
| | | if (record.getTaobaoBind() != null)
|
| | | update.set("taobaoBind", record.getTaobaoBind());
|
| | | if (record.getWeixinBind() != null)
|
| | | update.set("weixinBind", record.getWeixinBind());
|
| | | if (record.getWeixinId() != null)
|
| | | update.set("weixinId", record.getWeixinId());
|
| | | if (record.getWeixinIdExist() != null)
|
| | | update.set("weixinIdExist", record.getWeixinIdExist());
|
| | | if (record.getPhone() != null)
|
| | | update.set("phone", record.getPhone());
|
| | | if (record.getPhoneOpen() != null)
|
| | |
| | | list.add(Criteria.where("taobaoBind").is(focusDTO.getTaobaoBind()));
|
| | |
|
| | | if (focusDTO.getWeixinBind() != null)
|
| | | list.add(Criteria.where("weixinBind").is(focusDTO.getWeixinBind()));
|
| | | list.add(Criteria.where("weixinIdExist").is(focusDTO.getWeixinBind()));
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(focusDTO.getLevel()))
|
| | | list.add(Criteria.where("level").is(focusDTO.getLevel()));
|
| | |
| | | if (!StringUtil.isNullOrEmpty(focusDTO.getMaxActiveTime()))
|
| | | list.add(Criteria.where("activeTime").lte(focusDTO.getMaxActiveTime()));
|
| | |
|
| | | if (focusDTO.getMinIncome() != null)
|
| | | list.add(Criteria.where("income").gte(focusDTO.getMinIncome()));
|
| | | if (focusDTO.getMinIncome() != null) {
|
| | | int income = focusDTO.getMinIncome().multiply(BigDecimal.valueOf(100)).setScale(2, BigDecimal.ROUND_DOWN).intValue();
|
| | | list.add(Criteria.where("income").lte(income));
|
| | | }
|
| | |
|
| | | if (focusDTO.getMaxIncome() != null)
|
| | | list.add(Criteria.where("income").lte(focusDTO.getMaxIncome()));
|
| | | if (focusDTO.getMaxIncome() != null) {
|
| | | int income = focusDTO.getMaxIncome().multiply(BigDecimal.valueOf(100)).setScale(2, BigDecimal.ROUND_DOWN).intValue();
|
| | | list.add(Criteria.where("income").lte(income));
|
| | | }
|
| | | |
| | |
|
| | | if (!StringUtil.isNullOrEmpty(focusDTO.getKey())) {
|
| | | if (type == 1) {
|