This commit is contained in:
zds
2022-09-05 17:21:24 +08:00
parent 2f89c02575
commit 3d6c00386e
3 changed files with 6 additions and 3 deletions

View File

@@ -73,10 +73,12 @@ public class DailyplanServiceImpl implements DailyplanService {
String plan_finish_date = jo.getString("plan_finish_date");
Date date2 = DateUtil.parse(plan_finish_date);
long days = (int) DateUtil.between(date2,date, DateUnit.DAY);
int report_time = jo.getInteger("report_time");
int report_day = report_time/24;
if(date2.getTime() >= date.getTime()){
jo.put("day_num",days);
jo.put("day_num",days-report_day);
}else{
jo.put("day_num",-days);
jo.put("day_num",-days-report_day);
}
ja.add(jo);
}

View File

@@ -56,6 +56,7 @@
ext.standard_mark,
ext.product_series AS mater_product_series,
ext.standard_weight_pft AS standard_weight,
ext.report_time,
materialbase.material_code,
deviceinfo.device_code,
deviceinfo.device_name,