|
|
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.account.util.AccountUtils;
|
|
|
import com.uas.platform.b2b.model.Enterprise;
|
|
|
@@ -190,7 +191,9 @@ public class BaseInfoController {
|
|
|
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
public Product getProductInfoById(@PathVariable("id") Long id) {
|
|
|
- return baseInfoService.findById(id);
|
|
|
+ Product product = baseInfoService.findById(id);
|
|
|
+ System.out.println(JSON.toJSON(product));
|
|
|
+ return product;
|
|
|
}
|
|
|
|
|
|
/**
|