|
@@ -13,8 +13,10 @@ import com.zkqy.execution.produce.dispersed.entity.CommonEntity;
|
|
|
import com.zkqy.execution.produce.dispersed.entity.TableSql;
|
|
|
import com.zkqy.execution.produce.dispersed.service.ICommonService;
|
|
|
import com.zkqy.execution.produce.dispersed.service.ITableSqlService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
+import com.zkqy.business.domain.SaleProducts;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -39,6 +41,9 @@ public class CommonController extends BaseController {
|
|
|
@Resource
|
|
|
private IDragFormService dragFormService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISaleProductsService saleProductsService;
|
|
|
+
|
|
|
/**
|
|
|
* 共通查询
|
|
|
*/
|
|
@@ -66,6 +71,17 @@ public class CommonController extends BaseController {
|
|
|
return toAjax(commonService.edit(commonEntity));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改销售产品
|
|
|
+ */
|
|
|
+// @PreAuthorize("@ss.hasPermi('system:products:edit')")
|
|
|
+ @Log(title = "销售产品", businessType = BusinessType.UPDATE)
|
|
|
+ @PutMapping("/saleProductsBatchEdit")
|
|
|
+ @ApiOperation(value = "修改销售产品")
|
|
|
+ public AjaxResult edit(@RequestBody SaleProducts saleProducts) {
|
|
|
+ return toAjax(saleProductsService.updateSaleProducts(saleProducts));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 批量删除
|