|
@@ -4,6 +4,7 @@ import com.steerinfo.dil.feign.ESFeign;
|
|
import com.steerinfo.dil.service.ITmstruckSmsRusultService;
|
|
import com.steerinfo.dil.service.ITmstruckSmsRusultService;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
@@ -13,6 +14,7 @@ import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -40,6 +42,7 @@ public class TmstruckSmsRusultController extends BaseRESTfulController{
|
|
ESFeign esFeign;
|
|
ESFeign esFeign;
|
|
@Autowired
|
|
@Autowired
|
|
ColumnDataUtil columnDataUtil;
|
|
ColumnDataUtil columnDataUtil;
|
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
//查询短信实绩
|
|
//查询短信实绩
|
|
@ApiOperation(value="查询短信实绩")
|
|
@ApiOperation(value="查询短信实绩")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -56,7 +59,11 @@ public class TmstruckSmsRusultController extends BaseRESTfulController{
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
|
+ if(con!=null){
|
|
|
|
+ mapValue.put("con","%"+con+"%");
|
|
|
|
+ }
|
|
//分页数据
|
|
//分页数据
|
|
|
|
+ DataChange.queryDataByDateTime(""+mapValue.get("startTime"),""+mapValue.get("endTime") , mapValue,sdfDateTime);//根据时间段查询数据
|
|
List<Map<String, Object>> smsResult = tmstruckSmsRusultService.getSmsResult(mapValue);
|
|
List<Map<String, Object>> smsResult = tmstruckSmsRusultService.getSmsResult(mapValue);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null,smsResult);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null,smsResult);
|
|
return success(pageList);
|
|
return success(pageList);
|