|
|
@@ -3,6 +3,7 @@ package com.uas.platform.b2c.trade.rate.controller;
|
|
|
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.utils.FastjsonUtils;
|
|
|
+import com.uas.platform.b2c.fa.payment.utils.StringUtils;
|
|
|
import com.uas.platform.b2c.trade.order.dao.OrderDao;
|
|
|
import com.uas.platform.b2c.trade.order.dao.PurchaseDao;
|
|
|
import com.uas.platform.b2c.trade.order.model.Order;
|
|
|
@@ -17,6 +18,7 @@ import com.uas.platform.b2c.trade.support.CodeType;
|
|
|
import com.uas.platform.b2c.trade.support.ResultMap;
|
|
|
import com.uas.platform.core.exception.IllegalOperatorException;
|
|
|
import com.uas.platform.core.model.Status;
|
|
|
+import com.uas.platform.core.util.StringUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -208,6 +210,26 @@ public class RateController {
|
|
|
RateGoods result = rateService.saveAfterReply(orderId,goodsId,returnMeg);
|
|
|
return new ResultMap(CodeType.OK.code(), "回复成功",result);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 卖家为商品评价添加回复(批量回复)
|
|
|
+ *
|
|
|
+ * @param orderId
|
|
|
+ * @return the result map
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/allRateReply/{orderId}", method = RequestMethod.POST)
|
|
|
+ public ResultMap saveAllReply(@PathVariable("orderId") String orderId, @RequestBody String json) {
|
|
|
+ List<RateGoods> rateGoodsList = FastjsonUtils.fromJsonArray(json, RateGoods.class);
|
|
|
+ for (RateGoods rateGoods : rateGoodsList){
|
|
|
+ if (StringUtils.isEmpty(rateGoods.getAfterReturnMeg())){
|
|
|
+ rateGoods.setAfterReturnMegTime(new Date(System.currentTimeMillis()));
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(rateGoods.getReturnMeg())){
|
|
|
+ rateGoods.setReturnMegTime(new Date(System.currentTimeMillis()));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ rateService.saveAfterRateGoods(rateGoodsList);
|
|
|
+ return new ResultMap(CodeType.OK.code(), "批量回复成功");
|
|
|
+ }
|
|
|
|
|
|
/***************************查询操作******************************************/
|
|
|
|