|
|
@@ -74,6 +74,9 @@ public class RateServiceImpl implements RateService{
|
|
|
|
|
|
@Override
|
|
|
public void saveRateGoods(String orderId , List<RateGoods> rateGoodsList) {
|
|
|
+ if (rateGoodsDao.findByOrderId(orderId) != null && rateGoodsDao.findByOrderId(orderId).size() != 0){
|
|
|
+ throw new RuntimeException();
|
|
|
+ }
|
|
|
for (RateGoods rateGoods : rateGoodsList){
|
|
|
//默认匿名评价
|
|
|
rateGoods.setIsAnony(rateGoods.getIsAnony() == null ? isAnony : rateGoods.getIsAnony());
|
|
|
@@ -96,7 +99,7 @@ public class RateServiceImpl implements RateService{
|
|
|
@Transactional
|
|
|
public void savebuyerRate(String orderId, RateVendor rateVendor, List<RateGoods> rateGoodsList) {
|
|
|
if (null != getRateVendorByOrderId(orderId)){
|
|
|
- return;
|
|
|
+ throw new RuntimeException();
|
|
|
}
|
|
|
saveRateVendor(orderId,rateVendor);
|
|
|
saveRateGoods(orderId,rateGoodsList);
|