|
|
|
@ -82,6 +82,26 @@ public class PrivilageAccountController extends BaseController {
|
|
|
|
|
return fail();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 账号管理-保存账号
|
|
|
|
|
* @param addFrom 账号输入
|
|
|
|
|
* @return 成功0000,失败0001,已存在0002
|
|
|
|
|
*/
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@PostMapping("/save/code")
|
|
|
|
|
public Map<String, Object> saveAccountInputCode(@RequestParam("addFrom")String addFrom) {
|
|
|
|
|
try {
|
|
|
|
|
JSONObject saveAccountInputJSON = JSONObject.parseObject(addFrom);
|
|
|
|
|
SaveAccountInput saveAccountInput1 = saveAccountInputJSON.toJavaObject(SaveAccountInput.class);
|
|
|
|
|
boolean flag = privilageAccountService.saveAccount(saveAccountInput1);
|
|
|
|
|
//成功为0000,存在业务不能新增为0002
|
|
|
|
|
return flag ? data(success()) : data(fail());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("账号管理-保存账号出错", e);
|
|
|
|
|
return fail();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|