Commit f18a4402 authored by shiyu's avatar shiyu

成交价格1

parent 90a3dc6e
...@@ -62,4 +62,7 @@ public class BidRecordVo implements Entity { ...@@ -62,4 +62,7 @@ public class BidRecordVo implements Entity {
this.createTime = record.getCreateTime(); this.createTime = record.getCreateTime();
this.updateTime = record.getUpdateTime(); this.updateTime = record.getUpdateTime();
} }
} }
...@@ -37,9 +37,10 @@ public class BidRecordServiceImpl implements BidRecordService { ...@@ -37,9 +37,10 @@ public class BidRecordServiceImpl implements BidRecordService {
} }
@Override @Override
public BidRecordVo queryById(Long id) { public BidRecord queryById(Long id) {
BidRecord bidRecord = bidRecordDao.queryById(id); BidRecord bidRecord = bidRecordDao.queryById(id);
return new BidRecordVo(bidRecord); bidRecord.setPrice(Math.round(bidRecord.getPrice() / (double)100));
return bidRecord;
} }
@Override @Override
......
...@@ -12,7 +12,7 @@ public interface BidRecordService { ...@@ -12,7 +12,7 @@ public interface BidRecordService {
int updateById(BidRecord record); int updateById(BidRecord record);
BidRecordVo queryById(Long id); BidRecord queryById(Long id);
List<BidRecordVo> queryByCid (Integer cid); List<BidRecordVo> queryByCid (Integer cid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment