|
@@ -3,6 +3,7 @@ package com.github.zuihou.business.controller.externalApi;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.OrderItem;
|
|
|
import com.github.zuihou.base.R;
|
|
import com.github.zuihou.base.R;
|
|
|
import com.github.zuihou.base.controller.SuperController;
|
|
import com.github.zuihou.base.controller.SuperController;
|
|
|
import com.github.zuihou.base.request.PageParams;
|
|
import com.github.zuihou.base.request.PageParams;
|
|
@@ -39,9 +40,7 @@ import java.io.FileNotFoundException;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
import java.io.OutputStream;
|
|
import java.io.OutputStream;
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
-import java.util.Calendar;
|
|
|
|
|
-import java.util.Date;
|
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
|
+import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -57,7 +56,7 @@ import java.util.Map;
|
|
|
@Validated
|
|
@Validated
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/agvHikOrderDetailInfo")
|
|
@RequestMapping("/agvHikOrderDetailInfo")
|
|
|
-@Api(value = "task", tags = "测量")
|
|
|
|
|
|
|
+@Api(value = "agvHikOrderDetailInfo", tags = "测量")
|
|
|
@SysLog(enabled = true)
|
|
@SysLog(enabled = true)
|
|
|
public class AgvHikOrderDetailInfoController extends SuperController<AgvHikOrderDetailInfoService, Long, AgvHikOrderDetailInfo, AgvHikOrderDetailInfoPageDTO, AgvHikOrderDetailInfoSaveDTO, AgvHikOrderDetailInfoUpdateDTO> {
|
|
public class AgvHikOrderDetailInfoController extends SuperController<AgvHikOrderDetailInfoService, Long, AgvHikOrderDetailInfo, AgvHikOrderDetailInfoPageDTO, AgvHikOrderDetailInfoSaveDTO, AgvHikOrderDetailInfoUpdateDTO> {
|
|
|
|
|
|
|
@@ -77,14 +76,10 @@ public class AgvHikOrderDetailInfoController extends SuperController<AgvHikOrder
|
|
|
statisticalEndDate = data.getStatisticalDate() + " 23:59:59";
|
|
statisticalEndDate = data.getStatisticalDate() + " 23:59:59";
|
|
|
}
|
|
}
|
|
|
wrapper.between(AgvHikOrderDetailInfo::getRequestTime,statisticalBeginDate,statisticalEndDate);
|
|
wrapper.between(AgvHikOrderDetailInfo::getRequestTime,statisticalBeginDate,statisticalEndDate);
|
|
|
|
|
+ OrderItem orderItem = new OrderItem();
|
|
|
|
|
+ orderItem.setColumn("statisticalDate").setAsc(false);
|
|
|
|
|
+ page.orders().remove(0);
|
|
|
|
|
+ page.orders().add(orderItem);
|
|
|
baseService.pageList(page, wrapper);
|
|
baseService.pageList(page, wrapper);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- private static int getFirstDayOfMonth(Date date){
|
|
|
|
|
- return DateUtil.beginOfMonth(date).dayOfMonth();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- private static int getLastDayOfMonth(Date date){
|
|
|
|
|
- return DateUtil.endOfMonth(date).dayOfMonth();
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|