|
@@ -2,6 +2,7 @@ package com.uas.platform.b2b.openapi.service.impl;
|
|
|
|
|
|
|
|
import com.uas.platform.b2b.dao.CommonDao;
|
|
import com.uas.platform.b2b.dao.CommonDao;
|
|
|
import com.uas.platform.b2b.openapi.model.CustTrading;
|
|
import com.uas.platform.b2b.openapi.model.CustTrading;
|
|
|
|
|
+import com.uas.platform.b2b.openapi.model.RecentOfYear;
|
|
|
import com.uas.platform.b2b.openapi.service.TradingDataService;
|
|
import com.uas.platform.b2b.openapi.service.TradingDataService;
|
|
|
import com.uas.platform.b2b.openapi.support.NumFormat;
|
|
import com.uas.platform.b2b.openapi.support.NumFormat;
|
|
|
import com.uas.platform.b2b.openapi.support.ErpRate;
|
|
import com.uas.platform.b2b.openapi.support.ErpRate;
|
|
@@ -80,6 +81,8 @@ public class TradingDataServiceImpl implements TradingDataService{
|
|
|
public ModelMap getRecentOfYear(Long enUU) {
|
|
public ModelMap getRecentOfYear(Long enUU) {
|
|
|
ModelMap map = new ModelMap();
|
|
ModelMap map = new ModelMap();
|
|
|
// 有交易额客户数量
|
|
// 有交易额客户数量
|
|
|
|
|
+ RecentOfYear ofYear = new RecentOfYear("有交易额客户数量");
|
|
|
|
|
+ // ofYear.setTwoYear(getAcceptCust(enUU, );
|
|
|
|
|
|
|
|
// 验收金额
|
|
// 验收金额
|
|
|
|
|
|
|
@@ -191,4 +194,10 @@ public class TradingDataServiceImpl implements TradingDataService{
|
|
|
Integer result = commonDao.queryForObject(sql.toString(), Integer.class);
|
|
Integer result = commonDao.queryForObject(sql.toString(), Integer.class);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
+ private Integer getAcceptCust(Long enUU, Date startTime, Date endTime) {
|
|
|
|
|
+ StringBuffer sql = new StringBuffer("SELECT COUNT(1) from purc$orders WHERE pu_venduu= " + enUU +
|
|
|
|
|
+ " AND pu_date >= '" + startTime + "' and pu_date >= " + endTime + " GROUP BY pu_enuu");
|
|
|
|
|
+ Integer result = commonDao.queryForObject(sql.toString(), Integer.class);
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|