|
@@ -1,6 +1,7 @@
|
|
|
package com.gydx.controller;
|
|
|
|
|
|
|
|
|
+import com.gydx.demo.SetId;
|
|
|
import com.gydx.service.RuleManagementService;
|
|
|
import com.gydx.vo.FoodRuleVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -19,6 +20,8 @@ public class RuleManagementController {
|
|
|
|
|
|
@RequestMapping("/addRule")
|
|
|
public void addRule(FoodRuleVO foodRuleVO) {
|
|
|
+ SetId setId = new SetId();
|
|
|
+ foodRuleVO.setFoodRuleID(setId.RRRRule());
|
|
|
ruleManagementService.addRule(foodRuleVO);
|
|
|
}
|
|
|
@RequestMapping("/deleteRule")
|