优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user