|
@@ -30,28 +30,26 @@ public class CompanyProductsController {
|
|
|
/**
|
|
|
* 公司产品的录入
|
|
|
* 参数:
|
|
|
- * 添加:title 产品名称 ,introduction 产品简介,address 产品地址,file上传的文件(非必传)
|
|
|
- * 修改 id:产品id
|
|
|
- * @return
|
|
|
+ * 添加:title 产品名称 ,introduction 产品简介,address 产品地址, type 产品类型, file上传的文件(非必传)
|
|
|
+ * 修改 id:产品id
|
|
|
*/
|
|
|
@RequestMapping("/addAndUpdate")
|
|
|
- public HttpRespMsg addAndUpdate(CompanyProducts CompanyProducts, @RequestParam(required = false)MultipartFile file) {
|
|
|
- return companyProductsService.addAndUpdate(CompanyProducts,file);
|
|
|
+ public HttpRespMsg addAndUpdate(CompanyProducts CompanyProducts, @RequestParam(required = false) MultipartFile file) {
|
|
|
+ return companyProductsService.addAndUpdate(CompanyProducts, file);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 公司产品删除
|
|
|
* 参数:id:产品id
|
|
|
- * @return
|
|
|
*/
|
|
|
@RequestMapping("/del")
|
|
|
public HttpRespMsg del(CompanyProducts companyProducts) {
|
|
|
return companyProductsService.del(companyProducts);
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 公司产品列表
|
|
|
* 参数:pageNum 当前页码,pageSize 每页条数
|
|
|
- * @return
|
|
|
*/
|
|
|
@RequestMapping("/companyProductsList")
|
|
|
public HttpRespMsg companyProductsList(PageUtil page) {
|