Commit 3859c910 authored by wzp's avatar wzp

修改bug

parent 6cbf14cb
......@@ -66,14 +66,14 @@ public class TInteractionController extends BaseController {
@PostMapping("/add")
@RequiresAuthentication //@RequiresPermissions("/interaction/add")
@ApiOperation(value = "添加看板互动", notes = "添加看板互动")
@MethodLog(operModule = OperModule.INTERACTIVE,operType = OperType.ADD)
@MethodLog(operModule = OperModule.INTERACTIVE, operType = OperType.ADD)
public Map<String, Object> saveTInteraction(TInteraction tInteraction) {
// 保存业务节点信息
boolean result = false;
try {
Map<String, Object> resultMap = new LinkedHashMap<String, Object>();
if (StringUtils.isBlank(tInteraction.getName())||StringUtils.isBlank(tInteraction.getPassword())) {
if (StringUtils.isBlank(tInteraction.getName()) || StringUtils.isBlank(tInteraction.getPassword())) {
resultMap.put("resultCode", "400");
resultMap.put("message", "请输入用户名和密码");
return resultMap;
......@@ -96,7 +96,7 @@ public class TInteractionController extends BaseController {
resultMap.put("message", "密码错误");
return resultMap;
}
tInteraction.setUsername(user.getUserName());
tInteraction.setCreateTime(LocalDateTime.now());
result = tInteractionService.save(tInteraction);
// 返回操作结果
......@@ -115,7 +115,7 @@ public class TInteractionController extends BaseController {
@PutMapping("/update")
@RequiresAuthentication //@RequiresPermissions("/interaction/update")
@ApiOperation(value = "修改看板互动信息", notes = "修改看板互动信息")
@MethodLog(operModule = OperModule.INTERACTIVE,operType = OperType.UPDATE)
@MethodLog(operModule = OperModule.INTERACTIVE, operType = OperType.UPDATE)
public Map<String, Object> updateTInteraction(TInteraction tInteraction) {
boolean flag = false;
try {
......@@ -123,7 +123,7 @@ public class TInteractionController extends BaseController {
if (!flag) {
return getFailResult();
}
return getSuccessResult();
return getSuccessResult();
} catch (Exception e) {
e.printStackTrace();
}
......@@ -138,7 +138,7 @@ public class TInteractionController extends BaseController {
@ApiImplicitParams(value = {
@ApiImplicitParam(name = "id", value = "标识ID", paramType = "query", dataType = "String")
})
@MethodLog(operModule = OperModule.INTERACTIVE,operType = OperType.DELETE)
@MethodLog(operModule = OperModule.INTERACTIVE, operType = OperType.DELETE)
public Map<String, Object> deleteTInteraction(String id) {
boolean result = tInteractionService.removeById(id);
if (result) {
......@@ -156,23 +156,23 @@ public class TInteractionController extends BaseController {
@ApiImplicitParam(name = "orgId", value = "机构id", paramType = "query", dataType = "String")
})
@ApiOperation(value = "获取看板互动列表", notes = "获取看板互动列表")
@MethodLog(operModule = OperModule.INTERACTIVE,operType = OperType.SELECT)
@MethodLog(operModule = OperModule.INTERACTIVE, operType = OperType.SELECT)
public Map<String, Object> getTInteractionPageList(String orgId) {
Page<TInteraction> list = null;
try {
list = tInteractionService.selectPageList(getPage(),orgId);
list = tInteractionService.selectPageList(getPage(), orgId);
return getResult(list);
} catch (Exception e) {
e.printStackTrace();
}
return getFailResult();
return getFailResult();
}
@ApiOperation(value = "获取看板互动详情", notes = "获取看板互动详情")
@GetMapping("/getById")
@RequiresAuthentication //@RequiresPermissions("/interaction/getById")
@MethodLog(operModule = OperModule.INTERACTIVE,operType = OperType.SELECT)
@MethodLog(operModule = OperModule.INTERACTIVE, operType = OperType.SELECT)
public Map<String, Object> getById(String id) {
TInteraction tInteraction = null;
try {
......@@ -181,7 +181,7 @@ public class TInteractionController extends BaseController {
} catch (Exception e) {
e.printStackTrace();
}
return getFailResult();
return getFailResult();
}
......
Markdown is supported
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