| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.param.StockOutParam; |
| | | import com.zy.asrs.service.OutStockService; |
| | | import com.zy.asrs.service.WorkService; |
| | | import com.zy.common.service.erp.entity.OutStockBillEntry; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | |
| | | |
| | | @Autowired |
| | | private OutStockService outStockService; |
| | | @Autowired |
| | | private WorkService workService; |
| | | |
| | | /** |
| | | * |
| | | * @param curr |
| | | * @param limit |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/outStock/query/list") |
| | | @ManagerAuth |
| | | public R outStockQueryList(@RequestParam(defaultValue = "1")Integer curr, |
| | |
| | | @RequestParam Map<String, Object> param){ |
| | | return R.ok(outStockService.queryOutStock(toPage(curr, limit, param, OutStockBillEntry.class))); |
| | | } |
| | | |
| | | /** |
| | | * 检索符合通知单的库存物料 |
| | | * @param fbillNo |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/outStock/query/locList") |
| | | @ManagerAuth |
| | | public R queryMatWithLoc(String fbillNo) { |
| | | List<LocDetl> list = outStockService.queryMatWithLoc(fbillNo); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | @RequestMapping(value = "/plate/outStock/start") |
| | | @ManagerAuth(memo = "出库作业") |
| | | public R fullStoreTakeStart(@RequestBody StockOutParam param) { |
| | | outStockService.startupFullTakeStore(param, getUserId()); |
| | | return R.ok("出库启动成功"); |
| | | } |
| | | } |