查询所有
This commit is contained in:
parent
7e0be5f7db
commit
2deac81268
|
|
@ -107,6 +107,28 @@ public class SmsPushEventUser implements Serializable {
|
||||||
private Integer page;
|
private Integer page;
|
||||||
@Column(ignore = true)
|
@Column(ignore = true)
|
||||||
private Integer size;
|
private Integer size;
|
||||||
|
@Column(ignore = true)
|
||||||
|
private Integer isAll;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否查询所有用户 1查询所有用户 其余不查
|
||||||
|
*/
|
||||||
|
public void checkIsAll() {
|
||||||
|
if (isAll != null && isAll == 1) {
|
||||||
|
sexMan = 0;
|
||||||
|
sexWoman = 0;
|
||||||
|
sexUnknown = 0;
|
||||||
|
isVip = null;
|
||||||
|
isRecharge = null;
|
||||||
|
noOrder = 0;
|
||||||
|
oneOrder = 0;
|
||||||
|
fiveOrder = 0;
|
||||||
|
orderTimeToday = 0;
|
||||||
|
orderTimeYesterday = 0;
|
||||||
|
orderTimeTwoWeeks = 0;
|
||||||
|
orderTimeMoreThanTwoWeeks = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getPage() {
|
public Integer getPage() {
|
||||||
return page == null ? 1 : page;
|
return page == null ? 1 : page;
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ public class AShopUserServiceImpl implements AShopUserService {
|
||||||
try {
|
try {
|
||||||
Long mainShopId = shopInfoService.getMainIdByShopId(smsPushEventUser.getShopId());
|
Long mainShopId = shopInfoService.getMainIdByShopId(smsPushEventUser.getShopId());
|
||||||
PageHelper.startPage(smsPushEventUser.getPage(), smsPushEventUser.getSize());
|
PageHelper.startPage(smsPushEventUser.getPage(), smsPushEventUser.getSize());
|
||||||
|
smsPushEventUser.checkIsAll();
|
||||||
// 调用Mapper层查询
|
// 调用Mapper层查询
|
||||||
List<ShopUser> shopUsers = shopUserMapper.selectPushEventUser(mainShopId,
|
List<ShopUser> shopUsers = shopUserMapper.selectPushEventUser(mainShopId,
|
||||||
smsPushEventUser.getShopId(), smsPushEventUser);
|
smsPushEventUser.getShopId(), smsPushEventUser);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue