Commit e4774679 by zhengxj

finish 服务商报价属性 on 20190816

by zhengxj 

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23400 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7ca9119d
......@@ -114,4 +114,6 @@ public interface BizConstants {
public static int BIDDING_STATUS_DEFAULT = 0;
public static final String SEPARATOR = ",";
public static final String SEARCHTYPE_BIDDING = "searchtype_bidding";
}
......@@ -37,11 +37,13 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.druid.util.StringUtils;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.annotation.AuthCheck;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.Page;
import com.glsx.common.utils.UserUtils;
import com.glsx.ordercenter.constants.BizConstants;
import com.glsx.ordercenter.constants.ResultCodeEnum;
import com.glsx.ordercenter.dto.BiddingOrderResp;
import com.glsx.ordercenter.dto.QueryOrderReq;
......@@ -113,6 +115,9 @@ public class OrderBiddingController extends BaseController{
Map<String,Object> result=new HashMap<>();
if(StringUtils.isEmpty(keyWord)){
keyWord = null;
}
List<BiddingOrderResp> list = orderBiddingService.selectByOrderIdAndKeyWord(pageIndex, pageSize, orderId,
keyWord);
Page page = new Page(pageIndex, pageSize);
......@@ -188,7 +193,7 @@ public class OrderBiddingController extends BaseController{
SysOrderExample example = new SysOrderExample();
Page page = new Page(pageIndex, pageSize);
List<SysOrder> list = orderService.selectByClientType(userId, "bidding",null, example, page);
List<SysOrder> list = orderService.selectByClientType(userId, BizConstants.SEARCHTYPE_BIDDING,null, example, page);
com.github.pagehelper.Page<SysOrder> pages = (com.github.pagehelper.Page<SysOrder>) list;
page.setTotalCount((int) pages.getTotal());
result.put("page", page);
......
......@@ -1287,7 +1287,7 @@ public class OrderServiceImpl implements IOrderService {
// 查询竞价单标识
boolean isSelectBiddingOrders=false;
if ("bidding".equals(keyWord)) {
if (BizConstants.SEARCHTYPE_BIDDING.equals(keyWord)) {
// 仅做竞价单标记处理,非实际搜索关键字
keyWord = null;
isSelectBiddingOrders=true;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!