Commit 675d0e36 authored by 周健威's avatar 周健威

修改

parent e05ef22e
......@@ -41,7 +41,6 @@ import lombok.Data;
import org.mockito.internal.util.collections.Sets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import tk.mybatis.mapper.weekend.WeekendSqls;
import java.util.List;
import java.util.Map;
......@@ -179,6 +178,22 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
return ObjectRestResponse.succ(pages);
}
@RequestMapping(value = "/toOrderPayCount", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "待下单、待支付数量")
public ObjectRestResponse<Integer> toPayCount() {
//查询列表数据
if (StrUtil.isBlank(getCurrentUserId())) {
throw new BaseException(ResultCode.AJAX_WECHAT_NOTEXIST_CODE);
}
QueryDTO dto = new QueryDTO();
dto.setUserId(Integer.valueOf(BaseContextHandler.getUserID()));
dto.setPageStatus(QueryDTO.PAGE_STATUS_TOORDERPAY);
Query query = new Query(dto);
return ObjectRestResponse.succ(baseBiz.pageList(dto).size());
}
@RequestMapping(value = "/applyOrder", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "申请调车下单")
......@@ -221,7 +236,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
@Data
public static class QueryDTO extends PageParam {
public static final int PAGE_STATUS_ING = 1;
public static final int PAGE_STATUS_TOPAY = 2;
public static final int PAGE_STATUS_TOORDERPAY = 2;
public static final int PAGE_STATUS_PAYED = 3;
public static final int PAGE_STATUS_CNL = 4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment