|
|
@@ -1739,4 +1739,25 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public ModelMap getInquiryCountData(String startDate, String endDate) {
|
|
|
+ ModelMap result = new ModelMap();
|
|
|
+ if (StringUtils.isEmpty(startDate) && StringUtils.isEmpty(endDate)) {
|
|
|
+ throw new IllegalOperatorException("缺失参数");
|
|
|
+ }
|
|
|
+ // 查询询价数
|
|
|
+ Integer inquiryAmount = purcInquiryItemDao.countInquiryAmount(startDate, endDate);
|
|
|
+ result.put("inquiryAmount", inquiryAmount);
|
|
|
+ // 查询询价用户数
|
|
|
+ Integer inquiryUserAmount = purcInquiryItemDao.countInquiryUserAmount(startDate, endDate);
|
|
|
+ result.put("inquiryUserAmount", inquiryUserAmount);
|
|
|
+ // 查询报价用户
|
|
|
+ Integer offerAmount = publicInquiryItemDao.countOfferAmount(startDate, endDate);
|
|
|
+ result.put("offerAmount", offerAmount);
|
|
|
+ // 查询报价数
|
|
|
+ Integer offerEnAmount = publicInquiryItemDao.countOfferEnAmount(startDate, endDate);
|
|
|
+ result.put("offerEnAmount", offerEnAmount);
|
|
|
+ result.put("success", true);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|