|
|
|
@@ -2,6 +2,7 @@ package com.iformall.controller.market; |
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.annotation.SystemControllerLog; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.Result; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.controller.base.BaseController; |
|
|
|
@@ -62,13 +63,16 @@ public class WxFloatingLayerController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id更新接口") |
|
|
|
@PostMapping("/update") |
|
|
|
@PostMapping("/updateStatus") |
|
|
|
@SystemControllerLog(description = "id更新") |
|
|
|
public ResultData update(@RequestBody WxFloatingLayer wxFloatingLayer) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxFloatingLayerController::update"); |
|
|
|
public ResultData updateStatus(@RequestBody WxFloatingLayer wxFloatingLayer) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxFloatingLayerController::updateStatus"); |
|
|
|
if (wxFloatingLayer.getId() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "id不能为空"); |
|
|
|
} |
|
|
|
try { |
|
|
|
wxFloatingLayer.setStatus(EnumFloatingLayerStatus.STATUS_TAKE_OFFF.getCode()); |
|
|
|
return wxFloatingLayerService.saveOrUpdate(wxFloatingLayer); |
|
|
|
return wxFloatingLayerService.updateStatus(wxFloatingLayer); |
|
|
|
} catch (MallinkException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
return new ResultData(e.getErrorCode(), e.getMessage()); |
|
|
|
|