|
@@ -255,10 +255,23 @@ public class BillSubsidyServiceImpl extends ServiceImpl<BillSubsidyMapper, BillS
|
|
|
if (date != "") {
|
|
|
date = date + " 00:00:00";
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
QueryWrapper<BillSubsidy> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge(StringUtils.isNotBlank(date),"sub_time", date)
|
|
|
- .like(StringUtils.isNotBlank(userName),"farmer_name", userName)
|
|
|
- .eq(StringUtils.isNotBlank(type),"subsidy_sch",type);
|
|
|
+ .like(StringUtils.isNotBlank(userName),"farmer_name", userName);
|
|
|
+
|
|
|
+ if (Integer.parseInt(type) == 7) {
|
|
|
+ queryWrapper.eq("is_pay", 1);
|
|
|
+ Page<BillSubsidy> page = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
|
|
|
+ return new Result(ResultCode.SUCCESS, subsidyMapper.selectPage(page, queryWrapper));
|
|
|
+ }
|
|
|
+ if (Integer.parseInt(type) == 6) {
|
|
|
+ queryWrapper.eq("is_pay", 2);
|
|
|
+ Page<BillSubsidy> page = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
|
|
|
+ return new Result(ResultCode.SUCCESS, subsidyMapper.selectPage(page, queryWrapper));
|
|
|
+ }
|
|
|
+ queryWrapper.eq(StringUtils.isNotBlank(type),"subsidy_sch",type);
|
|
|
Page<BillSubsidy> page = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
|
|
|
return new Result(ResultCode.SUCCESS, subsidyMapper.selectPage(page, queryWrapper));
|
|
|
}
|