|
@@ -43,38 +43,41 @@ public class CustomerGradeSettingController extends BaseController
|
|
|
|
|
|
/*
|
|
/*
|
|
* 新增成长规则
|
|
* 新增成长规则
|
|
|
|
+ * @param jsonObject
|
|
*/
|
|
*/
|
|
@RequestMapping("/addGrouthRule")
|
|
@RequestMapping("/addGrouthRule")
|
|
|
|
+ @Log(title = "客户等级成长规则新增", businessType = BusinessType.INSERT)
|
|
public AjaxResult addGrouthRule(@RequestBody JSONObject jsonObject){
|
|
public AjaxResult addGrouthRule(@RequestBody JSONObject jsonObject){
|
|
Map<String, Object> params = new HashMap();
|
|
Map<String, Object> params = new HashMap();
|
|
params.put("grouthValueName", jsonObject.get("grouthValueName"));
|
|
params.put("grouthValueName", jsonObject.get("grouthValueName"));
|
|
params.put("grouthValueConsume", jsonObject.get("grouthValueConsume"));
|
|
params.put("grouthValueConsume", jsonObject.get("grouthValueConsume"));
|
|
params.put("grouthValue", jsonObject.get("grouthValue"));
|
|
params.put("grouthValue", jsonObject.get("grouthValue"));
|
|
- int i = customerGradeSettingService.insertGrouthRule(params);
|
|
|
|
- return toAjax(i);
|
|
|
|
|
|
+ return toAjax(customerGradeSettingService.insertGrouthRule(params));
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
- * 新增成长规则
|
|
|
|
|
|
+ * 编辑成长规则
|
|
|
|
+ * @param jsonObject
|
|
*/
|
|
*/
|
|
@RequestMapping("/editGrouthRule")
|
|
@RequestMapping("/editGrouthRule")
|
|
|
|
+ @Log(title = "客户等级成长编辑", businessType = BusinessType.UPDATE)
|
|
public AjaxResult editGrouthRule(@RequestBody JSONObject jsonObject){
|
|
public AjaxResult editGrouthRule(@RequestBody JSONObject jsonObject){
|
|
Map<String, Object> params = new HashMap();
|
|
Map<String, Object> params = new HashMap();
|
|
params.put("id", jsonObject.get("id"));
|
|
params.put("id", jsonObject.get("id"));
|
|
params.put("grouthValueName", jsonObject.get("grouthValueName"));
|
|
params.put("grouthValueName", jsonObject.get("grouthValueName"));
|
|
params.put("grouthValueConsume", jsonObject.get("grouthValueConsume"));
|
|
params.put("grouthValueConsume", jsonObject.get("grouthValueConsume"));
|
|
params.put("grouthValue", jsonObject.get("grouthValue"));
|
|
params.put("grouthValue", jsonObject.get("grouthValue"));
|
|
- int i = customerGradeSettingService.updateGrouthRule(params);
|
|
|
|
- return toAjax(i);
|
|
|
|
|
|
+ return toAjax(customerGradeSettingService.updateGrouthRule(params));
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
* 删除成长规则
|
|
* 删除成长规则
|
|
|
|
+ * @param id
|
|
*/
|
|
*/
|
|
- @RequestMapping("/delGrouthRule")
|
|
|
|
- public AjaxResult delGrouthRule(@PathVariable Long[] ids){
|
|
|
|
- int i = customerGradeSettingService.deleteGrouthRuleByIds(ids);
|
|
|
|
- return toAjax(i);
|
|
|
|
|
|
+ @Log(title = "客户等级成长规则删除", businessType = BusinessType.DELETE)
|
|
|
|
+ @RequestMapping(value = "/delGrouthRule",method = RequestMethod.DELETE)
|
|
|
|
+ public AjaxResult delGrouthRule(Long[] id){
|
|
|
|
+ return toAjax(customerGradeSettingService.deleteGrouthRuleByIds(id));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|