package com.huaheng.api.wcs.controller; import com.huaheng.api.wcs.domain.TaskFinishDomain; import com.huaheng.api.wcs.service.unlockLocation.UnlockLocationService; import com.huaheng.framework.aspectj.lang.annotation.ApiLogger; import com.huaheng.framework.aspectj.lang.annotation.Log; import com.huaheng.framework.aspectj.lang.constant.BusinessType; import com.huaheng.framework.web.controller.BaseController; import com.huaheng.framework.web.domain.AjaxResult; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; /**解锁库位接口 * wcs向wms传递数据 * @author ricard * @date 2019/10/11 * */ @RestController @RequestMapping("/API/wcs/v2") public class UnlockLocationController extends BaseController { @Resource private UnlockLocationService unlockLocationService; @Log(title = "wcs解锁库位", action = BusinessType.INSERT) @PostMapping("/unlockLocation") @ApiOperation("wcs解锁库位") @ResponseBody @ApiLogger(apiName = "wcs解锁库位") public AjaxResult unlockLocation(@RequestBody TaskFinishDomain taskNo) { AjaxResult ajaxResult =unlockLocationService.unlockLocation(taskNo) ; return ajaxResult; } }