Commit 3859c910 authored by wzp's avatar wzp

修改bug

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