Commit 409b53a0 by duanhq

上一个补充 by duanht 2019/1/28

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17634 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 066a218e
......@@ -316,7 +316,7 @@ public class OrderController extends BaseController {
@RequestMapping(value = "/getServiceItemScale", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject getServiceItemScale(HttpServletRequest request, Integer dateType, String dateStart,String dateEnd) {
Map<String, Object> result = new HashMap<String, Object>();
int userId = 2;
int userId = UserUtils.getUserId(request);
ServiceItemScale serviceItemScale = orderService.getServiceItemScale(userId,dateType,dateStart,dateEnd);
result.put("items", serviceItemScale);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result);
......
......@@ -1167,6 +1167,7 @@ public class OrderServiceImpl implements IOrderService {
public ServiceItemScale getServiceItemScale(int userId, Integer dateType, String dateStart, String dateEnd) {
ServiceItemScale serviceItemScale = new ServiceItemScale();
Date now = DateUtil.getCurrentDate();
//dateType (1:今日 2:本周 3:本月 4:今年)
if (dateType != null) {
switch (dateType) {
case 1:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!