Commit 5ffcebd0 authored by wzp's avatar wzp

修改展板管理

parent f409e3a8
......@@ -68,7 +68,7 @@ public class TInteractionController extends BaseController {
boolean result = false;
try {
Map<String, Object> resultMap = new LinkedHashMap<String, Object>();
if (StringUtils.isBlank(tInteraction.getName())||StringUtils.isBlank(tInteraction.getPassword())) {
if (StringUtils.isNotBlank(tInteraction.getName())||StringUtils.isNotBlank(tInteraction.getPassword())) {
resultMap.put("resultCode", "400");
resultMap.put("message", "请输入用户名和密码");
return resultMap;
......@@ -110,7 +110,7 @@ public class TInteractionController extends BaseController {
@PutMapping("/update")
@RequiresPermissions("/interaction/update")
@ApiOperation(value = "修改看板互动信息", notes = "修改看板互动信息")
public Map<String, Object> updateTInteraction(@Validated(value = {Update.class}) TInteraction tInteraction) {
public Map<String, Object> updateTInteraction(TInteraction tInteraction) {
boolean flag = false;
try {
flag = tInteractionService.updateById(tInteraction);
......@@ -130,9 +130,9 @@ public class TInteractionController extends BaseController {
@RequiresPermissions("/interaction/delete")
@ApiOperation(value = "根据ID删除看板互动", notes = "根据ID删除看板互动")
@ApiImplicitParams(value = {
@ApiImplicitParam(name = "id", value = "标识ID", paramType = "path", dataType = "String")
@ApiImplicitParam(name = "id", value = "标识ID", paramType = "query", dataType = "String")
})
public Map<String, Object> deleteTInteraction(@PathVariable("id") String id) {
public Map<String, Object> deleteTInteraction(String id) {
boolean result = tInteractionService.removeById(id);
if (result) {
return getSuccessResult();
......
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