TASK:试用订单;
This commit is contained in:
@@ -11,5 +11,5 @@ import javax.validation.constraints.NotNull;
|
|||||||
@Data
|
@Data
|
||||||
@ApiModel("登入")
|
@ApiModel("登入")
|
||||||
public class TrialOrderDTO extends PageQueryBaseVo {
|
public class TrialOrderDTO extends PageQueryBaseVo {
|
||||||
|
private Integer status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
@Override
|
@Override
|
||||||
public IPage<TrialOrder> trialOrderList(TrialOrderDTO trialOrderDTO) {
|
public IPage<TrialOrder> trialOrderList(TrialOrderDTO trialOrderDTO) {
|
||||||
QueryWrapper<TrialOrder> qw = new QueryWrapper<>();
|
QueryWrapper<TrialOrder> qw = new QueryWrapper<>();
|
||||||
qw.lambda().eq(TrialOrder::getStatus, 0);
|
qw.lambda().eq(trialOrderDTO.getStatus() != null, TrialOrder::getStatus, trialOrderDTO.getStatus());
|
||||||
return trialOrderMapper.selectPage(new Page<>(trialOrderDTO.getPage(), trialOrderDTO.getSize()), qw);
|
return trialOrderMapper.selectPage(new Page<>(trialOrderDTO.getPage(), trialOrderDTO.getSize()), qw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user