Commit d1a6522f authored by 季圣华's avatar 季圣华
Browse files

优化功能菜单的新增接口

parent f03902bb
...@@ -99,6 +99,8 @@ public class FunctionService { ...@@ -99,6 +99,8 @@ public class FunctionService {
Function functions = JSONObject.parseObject(obj.toJSONString(), Function.class); Function functions = JSONObject.parseObject(obj.toJSONString(), Function.class);
int result=0; int result=0;
try{ try{
functions.setState(false);
functions.setType("电脑版");
result=functionsMapper.insertSelective(functions); result=functionsMapper.insertSelective(functions);
logService.insertLog("功能", logService.insertLog("功能",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(functions.getName()).toString(),request); new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(functions.getName()).toString(),request);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment