|
|
@ -350,10 +350,13 @@ public class ProjectDailyService extends ServiceImpl<ProjectDailyMapper, Project |
|
|
|
public ResultBean<List<ProjectDailyVos>> getProjectDailys(ProjectDailyQuery query) { |
|
|
|
ResultBean rb=new ResultBean().fail(); |
|
|
|
ProjectDailyQuery params = query; |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
QueryWrapper<ProjectDaily> qw = new QueryWrapper<>(); |
|
|
|
if (params != null) { |
|
|
|
if (com.yxt.common.base.utils.StringUtils.isNotBlank(params.getOrderDate())) { |
|
|
|
qw.eq("orderDate", params.getOrderDate()); |
|
|
|
}else{ |
|
|
|
qw.eq("orderDate",sdf.format(DateUtil.yesterday())); |
|
|
|
} |
|
|
|
|
|
|
|
if (com.yxt.common.base.utils.StringUtils.isNotBlank(params.getProjectSid())) { |
|
|
@ -367,10 +370,12 @@ public class ProjectDailyService extends ServiceImpl<ProjectDailyMapper, Project |
|
|
|
ResultBean rb=new ResultBean().fail(); |
|
|
|
ProjectDailyQuery params = query; |
|
|
|
QueryWrapper<ProjectDaily> qw = new QueryWrapper<>(); |
|
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
if (params != null) { |
|
|
|
if (com.yxt.common.base.utils.StringUtils.isNotBlank(params.getOrderDate())) { |
|
|
|
qw.eq("orderDate", params.getOrderDate()); |
|
|
|
}else{ |
|
|
|
qw.eq("orderDate",sdf.format(DateUtil.yesterday())); |
|
|
|
} |
|
|
|
|
|
|
|
if (com.yxt.common.base.utils.StringUtils.isNotBlank(params.getProjectSid())) { |
|
|
|