|
|
@@ -110,7 +110,7 @@ public class SeekPurchaseOfferServiceImpl implements SeekPurchaseOfferService {
|
|
|
public Map<String, Object> getSeekPurchaseRate(final Long uu) {
|
|
|
// sql语句
|
|
|
String sql =
|
|
|
- "select offerAmount,CONVERT(IFNULL(acceptedAmount, 0),SIGNED) AS acceptedAmount,ifnull(FORMAT(acceptedAmount/offerAmount,4)*100,0) "
|
|
|
+ "select offerAmount,CONVERT(IFNULL(acceptedAmount, 0),SIGNED) AS acceptedAmount,ifnull(FORMAT((acceptedAmount/offerAmount)*100,2),0) "
|
|
|
+ "as rate from(select count(1) as offerAmount,sum(of_status=?) as acceptedAmount "
|
|
|
+ "from trade$seek_purchase_offer where of_enuu=?) a";
|
|
|
return jdbcTemplate.queryForMap(sql, new Object[]{Status.ACCEPTED.getValue(), uu});
|