Commit 2dd3f018 by duanhq

bug修复 by duanht 2019/2/23

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17667 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e7843611
...@@ -293,7 +293,7 @@ public class OrderController extends BaseController { ...@@ -293,7 +293,7 @@ public class OrderController extends BaseController {
*/ */
@SuppressWarnings("resource") @SuppressWarnings("resource")
@RequestMapping(value = "/getMechanicStatistics", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/getMechanicStatistics", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject getMechanicStatistics(HttpServletRequest request, Integer dateType, String dateStart, String dateEnd, public ResultObject getMechanicStatistics(HttpServletRequest request, String selectType, String dateStart, String dateEnd,
@RequestParam(defaultValue = "1") @RequestParam(defaultValue = "1")
int pageIndex, int pageIndex,
@RequestParam(defaultValue = "10") @RequestParam(defaultValue = "10")
...@@ -303,7 +303,7 @@ public class OrderController extends BaseController { ...@@ -303,7 +303,7 @@ public class OrderController extends BaseController {
Map<String, Object> result = new HashMap<String, Object>(); Map<String, Object> result = new HashMap<String, Object>();
Page page = new Page(pageIndex, pageSize); Page page = new Page(pageIndex, pageSize);
int userId = UserUtils.getUserId(request); int userId = UserUtils.getUserId(request);
MechanicStatistics mechanicStatistics = orderService.getMechanicStatistics( page, dateType, dateStart, dateEnd, userId); MechanicStatistics mechanicStatistics = orderService.getMechanicStatistics( page, selectType, dateStart, dateEnd, userId);
result.put("page", page); result.put("page", page);
result.put("items", mechanicStatistics); result.put("items", mechanicStatistics);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result);
......
package com.glsx.ordercenter.dto;
/**
* @author duanht
* @version 1.0.0
* @Title MechanicBusiness
* @Package com.glsx.ordercenter.dto
* @Description ${todo}
* @date 2019/2/22 15:25
*/
public class MechanicBusiness {
private String name;
private Integer count;
private String rise;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public String getRise() {
return rise;
}
public void setRise(String rise) {
this.rise = rise;
}
}
package com.glsx.ordercenter.dto; package com.glsx.ordercenter.dto;
import java.util.ArrayList;
import java.util.List;
/** /**
* @author duanht * @author duanht
* @version 1.0.0 * @version 1.0.0
...@@ -12,5 +15,31 @@ public class MechanicStatistics { ...@@ -12,5 +15,31 @@ public class MechanicStatistics {
private Integer mechanicCount; private Integer mechanicCount;
private Integer avgBusiness;
private List<MechanicBusiness> mechanicBusinessList = new ArrayList<>();
public Integer getMechanicCount() {
return mechanicCount;
}
public void setMechanicCount(Integer mechanicCount) {
this.mechanicCount = mechanicCount;
}
public Integer getAvgBusiness() {
return avgBusiness;
}
public void setAvgBusiness(Integer avgBusiness) {
this.avgBusiness = avgBusiness;
}
public List<MechanicBusiness> getMechanicBusinessList() {
return mechanicBusinessList;
}
public void setMechanicBusinessList(List<MechanicBusiness> mechanicBusinessList) {
this.mechanicBusinessList = mechanicBusinessList;
}
} }
...@@ -10,18 +10,18 @@ package com.glsx.ordercenter.dto; ...@@ -10,18 +10,18 @@ package com.glsx.ordercenter.dto;
*/ */
public class ServiceItemInfo { public class ServiceItemInfo {
private String installDiviceType; private String installDeviceType;
private String scale; private String scale;
private Integer count; private Integer count;
public String getInstallDiviceType() { public String getInstallDeviceType() {
return installDiviceType; return installDeviceType;
} }
public void setInstallDiviceType(String installDiviceType) { public void setInstallDeviceType(String installDeviceType) {
this.installDiviceType = installDiviceType; this.installDeviceType = installDeviceType;
} }
public String getScale() { public String getScale() {
......
...@@ -100,5 +100,5 @@ public interface IOrderService { ...@@ -100,5 +100,5 @@ public interface IOrderService {
ServiceItemScale getServiceItemScale(int userId, String selectType, String dateStart, String dateEnd); ServiceItemScale getServiceItemScale(int userId, String selectType, String dateStart, String dateEnd);
MechanicStatistics getMechanicStatistics(Page page, Integer dateType, String dateStart, String dateEnd, int userId); MechanicStatistics getMechanicStatistics(Page page, String selectType, String dateStart, String dateEnd, int userId);
} }
...@@ -1198,7 +1198,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1198,7 +1198,7 @@ public class OrderServiceImpl implements IOrderService {
@Override @Override
public MechanicStatistics getMechanicStatistics(Page page, Integer dateType, String dateStart, String dateEnd, int userId) { public MechanicStatistics getMechanicStatistics(Page page, String dateType, String dateStart, String dateEnd, int userId) {
return null; return null;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!