|
@@ -2,6 +2,7 @@ package com.rongwei.bsserver.controller;
|
|
|
|
|
|
|
|
|
import com.rongwei.bscommon.sys.service.ApsProductDetailService;
|
|
|
+import com.rongwei.bsentity.domain.ApsProductDetailDo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -10,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -68,5 +70,19 @@ public class ApsProductDetailController {
|
|
|
return R.error("获取客户订单系统订单失败,请联系管理员");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新或保存产品明细
|
|
|
+ */
|
|
|
+ @PostMapping("/updateOrSaveProductDetails")
|
|
|
+ public R updateOrSaveProductDetails(@RequestBody List<ApsProductDetailDo> req) {
|
|
|
+ try {
|
|
|
+ log.info("更新或保存产品明细;参数为:{}", req);
|
|
|
+ return apsProductDetailService.updateOrSaveProductDetails(req);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.error("更新或保存产品明细失败,请联系管理员");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|