Commit a2ef6669 by zhengxj

finish 获取未完成统计数据 on 20190129 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17197 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 6d5fb237
......@@ -43,7 +43,11 @@ public class DateUtil {
public static void main(String args[]){
// ;
System.out.println(getPastMonthLastDay(2));
Date date=getPastMonthLastDay(1);
date.setHours(0);
date.setMinutes(0);
date.setSeconds(0);
System.out.println(getLastWeekSunday(date));
}
/**
......@@ -615,7 +619,7 @@ public class DateUtil {
/**
* 得到过去数个月的第一天日期
*/
public static Date getPastMonthFistDay(Integer pastMonth) {
public static Date getPastMonthFirstDay(Integer pastMonth) {
//上个月最后一天
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.MONTH, -pastMonth); //加一个月
......@@ -632,7 +636,7 @@ public class DateUtil {
public static Date getPastMonthLastDay(Integer pastMonth) {
//上个月最后一天
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.MONTH, -(pastMonth-1)); //加一个月
calendar.add(Calendar.MONTH, -(pastMonth-1)); //减去一个月
calendar.set(Calendar.DATE, 1); //设置为该月第一天
calendar.add(Calendar.DATE, -1); //再减一天即为上个月最后一天
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
......
......@@ -25,6 +25,7 @@
package com.glsx.ordercenter.dto;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @ClassName: UnfinishedOrders
......@@ -40,23 +41,23 @@ public class UnfinishedOrders implements Serializable{
*/
private static final long serialVersionUID = -3289272168970135189L;
private Integer unfinished;
private long unfinished;
private double ratio;
private BigDecimal ratio;
public Integer getUnfinished() {
public long getUnfinished() {
return unfinished;
}
public void setUnfinished(Integer unfinished) {
public void setUnfinished(long unfinished) {
this.unfinished = unfinished;
}
public double getRatio() {
public BigDecimal getRatio() {
return ratio;
}
public void setRatio(double ratio) {
public void setRatio(BigDecimal ratio) {
this.ratio = ratio;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!