|
@@ -1,5 +1,6 @@
|
|
|
package org.jeecg.modules.billet.stackingAndLoadingVehicles.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -159,4 +160,10 @@ public class StackingDownLogController extends JeecgController<StackingDownLog,
|
|
|
return super.importExcel(request, response, StackingDownLog.class);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="垛位移走日志表-通过装运单ID查询", notes="垛位移走日志表-通过装运单ID查询")
|
|
|
+ @GetMapping(value = "/queryByStorageBillId")
|
|
|
+ public Result<StackingDownLog> queryByStorageBillId(@RequestParam(name="storageBillId",required=true) String storageBillId) {
|
|
|
+ StackingDownLog stackingDownLog = stackingDownLogService.list(new LambdaQueryWrapper<StackingDownLog>().eq(StackingDownLog::getStorageBillId, storageBillId).orderByDesc(StackingDownLog::getCreateTime)).stream().findFirst().orElse(null);
|
|
|
+ return Result.OK(stackingDownLog);
|
|
|
+ }
|
|
|
}
|