|
|
@ -68,19 +68,34 @@ public class SysClient { |
|
|
* @param bids |
|
|
* @param bids |
|
|
* @return {tipscode:bids-not-enough,msg:投标次数超限},{tipscode:smaxExp-not-enough,msg:投标工作量超限},{tipscode:smaxAt-not-enough,msg:投标金额超限}, |
|
|
* @return {tipscode:bids-not-enough,msg:投标次数超限},{tipscode:smaxExp-not-enough,msg:投标工作量超限},{tipscode:smaxAt-not-enough,msg:投标金额超限}, |
|
|
*/ |
|
|
*/ |
|
|
public Map<String,Object> checkAndGetBranchInterests(String branchId,BigDecimal at,BigDecimal exp,Integer bids){ |
|
|
|
|
|
|
|
|
public Map<String,Object> checkBranchInterests(String branchId,BigDecimal at,BigDecimal exp,Integer bids){ |
|
|
String url="/sys/sys/branchInterests/checkBranchInterests?branchId={branchId}&at={at}&exp={exp}&bids={bids}"; |
|
|
String url="/sys/sys/branchInterests/checkBranchInterests?branchId={branchId}&at={at}&exp={exp}&bids={bids}"; |
|
|
Map<String,Object> re=callBizService.getForMap(url,map("branchId",branchId ,"at",at,"exp",exp,"bids",bids)); |
|
|
Map<String,Object> re=callBizService.getForMap(url,map("branchId",branchId ,"at",at,"exp",exp,"bids",bids)); |
|
|
return re; |
|
|
return re; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 检查用户归属企业是否可以投标等等 |
|
|
|
|
|
* @param userid |
|
|
|
|
|
* @param at |
|
|
|
|
|
* @param exp |
|
|
|
|
|
* @param bids |
|
|
|
|
|
* @return {tipscode:bids-not-enough,msg:投标次数超限},{tipscode:smaxExp-not-enough,msg:投标工作量超限},{tipscode:smaxAt-not-enough,msg:投标金额超限}, |
|
|
|
|
|
*/ |
|
|
|
|
|
public Map<String,Object> checkUserInterests(String userid,BigDecimal at,BigDecimal exp,Integer bids){ |
|
|
|
|
|
String url="/sys/sys/userInterests/checkUserInterests?userid={userid}&at={at}&exp={exp}&bids={bids}"; |
|
|
|
|
|
Map<String,Object> re=callBizService.getForMap(url,map("userid",userid ,"at",at,"exp",exp,"bids",bids)); |
|
|
|
|
|
return re; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 投标成功后登记投标次数-登记企业的投标次数 |
|
|
* 投标成功后登记投标次数-登记企业的投标次数 |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public Tips pushBidsAfterBidSuccess(String branchId,BigDecimal at,BigDecimal exp,Integer bids){ |
|
|
|
|
|
|
|
|
public Tips pushBidsAfterBidSuccess(String userid,BigDecimal at,BigDecimal exp,Integer bids){ |
|
|
Tips tips = new Tips("推送订单成功"); |
|
|
Tips tips = new Tips("推送订单成功"); |
|
|
push.leftPush("xm_task_bid_for_branch",map("branchId",branchId ,"at",at,"exp",exp,"bids",bids)); |
|
|
|
|
|
|
|
|
push.leftPush("xm_task_bid_for_person",map("userid",userid ,"at",at,"exp",exp,"bids",bids)); |
|
|
// strRedisTemplate.convertAndSend("xm_task_settle", JSON.toJSONString(params)); |
|
|
// strRedisTemplate.convertAndSend("xm_task_settle", JSON.toJSONString(params)); |
|
|
return tips; |
|
|
return tips; |
|
|
} |
|
|
} |
|
|
|