package com.zy.asrs.wms.asrs.controller; import com.zy.asrs.framework.common.R; import com.zy.asrs.wms.asrs.entity.param.GeneratePakInParam; import com.zy.asrs.wms.asrs.service.WorkService; import com.zy.asrs.wms.common.annotation.OperationLog; import com.zy.asrs.wms.system.controller.BaseController; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/api") public class WorkController extends BaseController { @Autowired private WorkService workService; @OperationLog("生成入库任务") @PostMapping("/rpc/generatePakIn") public R generatePakIn(@RequestBody GeneratePakInParam param) { try { workService.generatePakIn(param); return R.ok("添加成功"); } catch (Exception e) { return R.error(e.getMessage()); } } }