查询统计-库存预警 入库作业流水 出库作业流水

This commit is contained in:
liuhanqing
2025-10-28 11:38:57 +08:00
parent 5d0b6f222d
commit 866fdb4ac9
28 changed files with 2809 additions and 7551 deletions

View File

@@ -24,8 +24,8 @@ import com.ruoyi.common.core.page.TableDataInfo;
/**
* 入库作业流水Controller
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
@RestController
@RequestMapping("/search/ViewInJobFlow")
@@ -63,10 +63,10 @@ public class ViewInJobFlowController extends BaseController
* 获取入库作业流水详细信息
*/
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:query')")
@GetMapping(value = "/{jobId}")
public AjaxResult getInfo(@PathVariable("jobId") String jobId)
@GetMapping(value = "/{jobDetailId}")
public AjaxResult getInfo(@PathVariable("jobDetailId") String jobDetailId)
{
return success(viewInJobFlowService.selectViewInJobFlowByJobId(jobId));
return success(viewInJobFlowService.selectViewInJobFlowByJobDetailId(jobDetailId));
}
/**
@@ -96,9 +96,9 @@ public class ViewInJobFlowController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:remove')")
@Log(title = "入库作业流水", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobIds}")
public AjaxResult remove(@PathVariable String[] jobIds)
@DeleteMapping("/{jobDetailIds}")
public AjaxResult remove(@PathVariable String[] jobDetailIds)
{
return toAjax(viewInJobFlowService.deleteViewInJobFlowByJobIds(jobIds));
return toAjax(viewInJobFlowService.deleteViewInJobFlowByJobDetailIds(jobDetailIds));
}
}

View File

@@ -6,18 +6,18 @@ import com.ruoyi.search.ViewInJobFlow.domain.ViewInJobFlow;
/**
* 入库作业流水Mapper接口
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
public interface ViewInJobFlowMapper
{
/**
* 查询入库作业流水
*
* @param jobId 入库作业流水主键
* @param jobDetailId 入库作业流水主键
* @return 入库作业流水
*/
public ViewInJobFlow selectViewInJobFlowByJobId(String jobId);
public ViewInJobFlow selectViewInJobFlowByJobDetailId(String jobDetailId);
/**
* 查询入库作业流水列表
@@ -46,16 +46,16 @@ public interface ViewInJobFlowMapper
/**
* 删除入库作业流水
*
* @param jobId 入库作业流水主键
* @param jobDetailId 入库作业流水主键
* @return 结果
*/
public int deleteViewInJobFlowByJobId(String jobId);
public int deleteViewInJobFlowByJobDetailId(String jobDetailId);
/**
* 批量删除入库作业流水
*
* @param jobIds 需要删除的数据主键集合
* @param jobDetailIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteViewInJobFlowByJobIds(String[] jobIds);
public int deleteViewInJobFlowByJobDetailIds(String[] jobDetailIds);
}

View File

@@ -6,18 +6,18 @@ import com.ruoyi.search.ViewInJobFlow.domain.ViewInJobFlow;
/**
* 入库作业流水Service接口
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
public interface IViewInJobFlowService
{
/**
* 查询入库作业流水
*
* @param jobId 入库作业流水主键
* @param jobDetailId 入库作业流水主键
* @return 入库作业流水
*/
public ViewInJobFlow selectViewInJobFlowByJobId(String jobId);
public ViewInJobFlow selectViewInJobFlowByJobDetailId(String jobDetailId);
/**
* 查询入库作业流水列表
@@ -46,16 +46,16 @@ public interface IViewInJobFlowService
/**
* 批量删除入库作业流水
*
* @param jobIds 需要删除的入库作业流水主键集合
* @param jobDetailIds 需要删除的入库作业流水主键集合
* @return 结果
*/
public int deleteViewInJobFlowByJobIds(String[] jobIds);
public int deleteViewInJobFlowByJobDetailIds(String[] jobDetailIds);
/**
* 删除入库作业流水信息
*
* @param jobId 入库作业流水主键
* @param jobDetailId 入库作业流水主键
* @return 结果
*/
public int deleteViewInJobFlowByJobId(String jobId);
public int deleteViewInJobFlowByJobDetailId(String jobDetailId);
}

View File

@@ -11,8 +11,8 @@ import com.ruoyi.search.ViewInJobFlow.service.IViewInJobFlowService;
/**
* 入库作业流水Service业务层处理
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
@Service
public class ViewInJobFlowServiceImpl implements IViewInJobFlowService
@@ -23,13 +23,13 @@ public class ViewInJobFlowServiceImpl implements IViewInJobFlowService
/**
* 查询入库作业流水
*
* @param jobId 入库作业流水主键
* @param jobDetailId 入库作业流水主键
* @return 入库作业流水
*/
@Override
public ViewInJobFlow selectViewInJobFlowByJobId(String jobId)
public ViewInJobFlow selectViewInJobFlowByJobDetailId(String jobDetailId)
{
return viewInJobFlowMapper.selectViewInJobFlowByJobId(jobId);
return viewInJobFlowMapper.selectViewInJobFlowByJobDetailId(jobDetailId);
}
/**
@@ -72,24 +72,24 @@ public class ViewInJobFlowServiceImpl implements IViewInJobFlowService
/**
* 批量删除入库作业流水
*
* @param jobIds 需要删除的入库作业流水主键
* @param jobDetailIds 需要删除的入库作业流水主键
* @return 结果
*/
@Override
public int deleteViewInJobFlowByJobIds(String[] jobIds)
public int deleteViewInJobFlowByJobDetailIds(String[] jobDetailIds)
{
return viewInJobFlowMapper.deleteViewInJobFlowByJobIds(jobIds);
return viewInJobFlowMapper.deleteViewInJobFlowByJobDetailIds(jobDetailIds);
}
/**
* 删除入库作业流水信息
*
* @param jobId 入库作业流水主键
* @param jobDetailId 入库作业流水主键
* @return 结果
*/
@Override
public int deleteViewInJobFlowByJobId(String jobId)
public int deleteViewInJobFlowByJobDetailId(String jobDetailId)
{
return viewInJobFlowMapper.deleteViewInJobFlowByJobId(jobId);
return viewInJobFlowMapper.deleteViewInJobFlowByJobDetailId(jobDetailId);
}
}

View File

@@ -22,10 +22,10 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 出库作业流水Controller
* 出库作业流水ControllerController
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
@RestController
@RequestMapping("/search/ViewOutJobFlow")
@@ -35,7 +35,7 @@ public class ViewOutJobFlowController extends BaseController
private IViewOutJobFlowService viewOutJobFlowService;
/**
* 查询出库作业流水列表
* 查询出库作业流水Controller列表
*/
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:list')")
@GetMapping("/list")
@@ -47,33 +47,33 @@ public class ViewOutJobFlowController extends BaseController
}
/**
* 导出出库作业流水列表
* 导出出库作业流水Controller列表
*/
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:export')")
@Log(title = "出库作业流水", businessType = BusinessType.EXPORT)
@Log(title = "出库作业流水Controller", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ViewOutJobFlow viewOutJobFlow)
{
List<ViewOutJobFlow> list = viewOutJobFlowService.selectViewOutJobFlowList(viewOutJobFlow);
ExcelUtil<ViewOutJobFlow> util = new ExcelUtil<ViewOutJobFlow>(ViewOutJobFlow.class);
util.exportExcel(response, list, "出库作业流水数据");
util.exportExcel(response, list, "出库作业流水Controller数据");
}
/**
* 获取出库作业流水详细信息
* 获取出库作业流水Controller详细信息
*/
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:query')")
@GetMapping(value = "/{jobId}")
public AjaxResult getInfo(@PathVariable("jobId") String jobId)
@GetMapping(value = "/{jobDetailId}")
public AjaxResult getInfo(@PathVariable("jobDetailId") String jobDetailId)
{
return success(viewOutJobFlowService.selectViewOutJobFlowByJobId(jobId));
return success(viewOutJobFlowService.selectViewOutJobFlowByJobDetailId(jobDetailId));
}
/**
* 新增出库作业流水
* 新增出库作业流水Controller
*/
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:add')")
@Log(title = "出库作业流水", businessType = BusinessType.INSERT)
@Log(title = "出库作业流水Controller", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ViewOutJobFlow viewOutJobFlow)
{
@@ -81,10 +81,10 @@ public class ViewOutJobFlowController extends BaseController
}
/**
* 修改出库作业流水
* 修改出库作业流水Controller
*/
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:edit')")
@Log(title = "出库作业流水", businessType = BusinessType.UPDATE)
@Log(title = "出库作业流水Controller", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ViewOutJobFlow viewOutJobFlow)
{
@@ -92,13 +92,13 @@ public class ViewOutJobFlowController extends BaseController
}
/**
* 删除出库作业流水
* 删除出库作业流水Controller
*/
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:remove')")
@Log(title = "出库作业流水", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobIds}")
public AjaxResult remove(@PathVariable String[] jobIds)
@Log(title = "出库作业流水Controller", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobDetailIds}")
public AjaxResult remove(@PathVariable String[] jobDetailIds)
{
return toAjax(viewOutJobFlowService.deleteViewOutJobFlowByJobIds(jobIds));
return toAjax(viewOutJobFlowService.deleteViewOutJobFlowByJobDetailIds(jobDetailIds));
}
}

View File

@@ -4,58 +4,58 @@ import java.util.List;
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
/**
* 出库作业流水Mapper接口
* 出库作业流水ControllerMapper接口
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
public interface ViewOutJobFlowMapper
{
/**
* 查询出库作业流水
* 查询出库作业流水Controller
*
* @param jobId 出库作业流水主键
* @return 出库作业流水
* @param jobDetailId 出库作业流水Controller主键
* @return 出库作业流水Controller
*/
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId);
public ViewOutJobFlow selectViewOutJobFlowByJobDetailId(String jobDetailId);
/**
* 查询出库作业流水列表
* 查询出库作业流水Controller列表
*
* @param viewOutJobFlow 出库作业流水
* @return 出库作业流水集合
* @param viewOutJobFlow 出库作业流水Controller
* @return 出库作业流水Controller集合
*/
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow);
/**
* 新增出库作业流水
* 新增出库作业流水Controller
*
* @param viewOutJobFlow 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 结果
*/
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
/**
* 修改出库作业流水
* 修改出库作业流水Controller
*
* @param viewOutJobFlow 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 结果
*/
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
/**
* 删除出库作业流水
* 删除出库作业流水Controller
*
* @param jobId 出库作业流水主键
* @param jobDetailId 出库作业流水Controller主键
* @return 结果
*/
public int deleteViewOutJobFlowByJobId(String jobId);
public int deleteViewOutJobFlowByJobDetailId(String jobDetailId);
/**
* 批量删除出库作业流水
* 批量删除出库作业流水Controller
*
* @param jobIds 需要删除的数据主键集合
* @param jobDetailIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteViewOutJobFlowByJobIds(String[] jobIds);
public int deleteViewOutJobFlowByJobDetailIds(String[] jobDetailIds);
}

View File

@@ -4,58 +4,58 @@ import java.util.List;
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
/**
* 出库作业流水Service接口
* 出库作业流水ControllerService接口
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
public interface IViewOutJobFlowService
{
/**
* 查询出库作业流水
* 查询出库作业流水Controller
*
* @param jobId 出库作业流水主键
* @return 出库作业流水
* @param jobDetailId 出库作业流水Controller主键
* @return 出库作业流水Controller
*/
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId);
public ViewOutJobFlow selectViewOutJobFlowByJobDetailId(String jobDetailId);
/**
* 查询出库作业流水列表
* 查询出库作业流水Controller列表
*
* @param viewOutJobFlow 出库作业流水
* @return 出库作业流水集合
* @param viewOutJobFlow 出库作业流水Controller
* @return 出库作业流水Controller集合
*/
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow);
/**
* 新增出库作业流水
* 新增出库作业流水Controller
*
* @param viewOutJobFlow 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 结果
*/
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
/**
* 修改出库作业流水
* 修改出库作业流水Controller
*
* @param viewOutJobFlow 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 结果
*/
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
/**
* 批量删除出库作业流水
* 批量删除出库作业流水Controller
*
* @param jobIds 需要删除的出库作业流水主键集合
* @param jobDetailIds 需要删除的出库作业流水Controller主键集合
* @return 结果
*/
public int deleteViewOutJobFlowByJobIds(String[] jobIds);
public int deleteViewOutJobFlowByJobDetailIds(String[] jobDetailIds);
/**
* 删除出库作业流水信息
* 删除出库作业流水Controller信息
*
* @param jobId 出库作业流水主键
* @param jobDetailId 出库作业流水Controller主键
* @return 结果
*/
public int deleteViewOutJobFlowByJobId(String jobId);
public int deleteViewOutJobFlowByJobDetailId(String jobDetailId);
}

View File

@@ -9,10 +9,10 @@ import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
import com.ruoyi.search.ViewOutJobFlow.service.IViewOutJobFlowService;
/**
* 出库作业流水Service业务层处理
* 出库作业流水ControllerService业务层处理
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
@Service
public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
@@ -21,22 +21,22 @@ public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
private ViewOutJobFlowMapper viewOutJobFlowMapper;
/**
* 查询出库作业流水
* 查询出库作业流水Controller
*
* @param jobId 出库作业流水主键
* @return 出库作业流水
* @param jobDetailId 出库作业流水Controller主键
* @return 出库作业流水Controller
*/
@Override
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId)
public ViewOutJobFlow selectViewOutJobFlowByJobDetailId(String jobDetailId)
{
return viewOutJobFlowMapper.selectViewOutJobFlowByJobId(jobId);
return viewOutJobFlowMapper.selectViewOutJobFlowByJobDetailId(jobDetailId);
}
/**
* 查询出库作业流水列表
* 查询出库作业流水Controller列表
*
* @param viewOutJobFlow 出库作业流水
* @return 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 出库作业流水Controller
*/
@Override
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow)
@@ -45,9 +45,9 @@ public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
}
/**
* 新增出库作业流水
* 新增出库作业流水Controller
*
* @param viewOutJobFlow 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 结果
*/
@Override
@@ -58,9 +58,9 @@ public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
}
/**
* 修改出库作业流水
* 修改出库作业流水Controller
*
* @param viewOutJobFlow 出库作业流水
* @param viewOutJobFlow 出库作业流水Controller
* @return 结果
*/
@Override
@@ -70,26 +70,26 @@ public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
}
/**
* 批量删除出库作业流水
* 批量删除出库作业流水Controller
*
* @param jobIds 需要删除的出库作业流水主键
* @param jobDetailIds 需要删除的出库作业流水Controller主键
* @return 结果
*/
@Override
public int deleteViewOutJobFlowByJobIds(String[] jobIds)
public int deleteViewOutJobFlowByJobDetailIds(String[] jobDetailIds)
{
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobIds(jobIds);
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobDetailIds(jobDetailIds);
}
/**
* 删除出库作业流水信息
* 删除出库作业流水Controller信息
*
* @param jobId 出库作业流水主键
* @param jobDetailId 出库作业流水Controller主键
* @return 结果
*/
@Override
public int deleteViewOutJobFlowByJobId(String jobId)
public int deleteViewOutJobFlowByJobDetailId(String jobDetailId)
{
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobId(jobId);
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobDetailId(jobDetailId);
}
}

View File

@@ -22,10 +22,10 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 库存预警查询Controller
* 库存预警查询ControllerController
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
@RestController
@RequestMapping("/search/ViewStockWarning")
@@ -35,7 +35,7 @@ public class ViewStockWarningController extends BaseController
private IViewStockWarningService viewStockWarningService;
/**
* 查询库存预警查询列表
* 查询库存预警查询Controller列表
*/
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:list')")
@GetMapping("/list")
@@ -47,33 +47,33 @@ public class ViewStockWarningController extends BaseController
}
/**
* 导出库存预警查询列表
* 导出库存预警查询Controller列表
*/
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:export')")
@Log(title = "库存预警查询", businessType = BusinessType.EXPORT)
@Log(title = "库存预警查询Controller", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ViewStockWarning viewStockWarning)
{
List<ViewStockWarning> list = viewStockWarningService.selectViewStockWarningList(viewStockWarning);
ExcelUtil<ViewStockWarning> util = new ExcelUtil<ViewStockWarning>(ViewStockWarning.class);
util.exportExcel(response, list, "库存预警查询数据");
util.exportExcel(response, list, "库存预警查询Controller数据");
}
/**
* 获取库存预警查询详细信息
* 获取库存预警查询Controller详细信息
*/
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:query')")
@GetMapping(value = "/{stockId}")
public AjaxResult getInfo(@PathVariable("stockId") String stockId)
@GetMapping(value = "/{warehouseId}")
public AjaxResult getInfo(@PathVariable("warehouseId") String warehouseId)
{
return success(viewStockWarningService.selectViewStockWarningByStockId(stockId));
return success(viewStockWarningService.selectViewStockWarningByWarehouseId(warehouseId));
}
/**
* 新增库存预警查询
* 新增库存预警查询Controller
*/
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:add')")
@Log(title = "库存预警查询", businessType = BusinessType.INSERT)
@Log(title = "库存预警查询Controller", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ViewStockWarning viewStockWarning)
{
@@ -81,10 +81,10 @@ public class ViewStockWarningController extends BaseController
}
/**
* 修改库存预警查询
* 修改库存预警查询Controller
*/
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:edit')")
@Log(title = "库存预警查询", businessType = BusinessType.UPDATE)
@Log(title = "库存预警查询Controller", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ViewStockWarning viewStockWarning)
{
@@ -92,13 +92,13 @@ public class ViewStockWarningController extends BaseController
}
/**
* 删除库存预警查询
* 删除库存预警查询Controller
*/
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:remove')")
@Log(title = "库存预警查询", businessType = BusinessType.DELETE)
@DeleteMapping("/{stockIds}")
public AjaxResult remove(@PathVariable String[] stockIds)
@Log(title = "库存预警查询Controller", businessType = BusinessType.DELETE)
@DeleteMapping("/{warehouseIds}")
public AjaxResult remove(@PathVariable String[] warehouseIds)
{
return toAjax(viewStockWarningService.deleteViewStockWarningByStockIds(stockIds));
return toAjax(viewStockWarningService.deleteViewStockWarningByWarehouseIds(warehouseIds));
}
}

View File

@@ -4,58 +4,58 @@ import java.util.List;
import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning;
/**
* 库存预警查询Mapper接口
* 库存预警查询ControllerMapper接口
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
public interface ViewStockWarningMapper
{
/**
* 查询库存预警查询
* 查询库存预警查询Controller
*
* @param stockId 库存预警查询主键
* @return 库存预警查询
* @param warehouseId 库存预警查询Controller主键
* @return 库存预警查询Controller
*/
public ViewStockWarning selectViewStockWarningByStockId(String stockId);
public ViewStockWarning selectViewStockWarningByWarehouseId(String warehouseId);
/**
* 查询库存预警查询列表
* 查询库存预警查询Controller列表
*
* @param viewStockWarning 库存预警查询
* @return 库存预警查询集合
* @param viewStockWarning 库存预警查询Controller
* @return 库存预警查询Controller集合
*/
public List<ViewStockWarning> selectViewStockWarningList(ViewStockWarning viewStockWarning);
/**
* 新增库存预警查询
* 新增库存预警查询Controller
*
* @param viewStockWarning 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 结果
*/
public int insertViewStockWarning(ViewStockWarning viewStockWarning);
/**
* 修改库存预警查询
* 修改库存预警查询Controller
*
* @param viewStockWarning 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 结果
*/
public int updateViewStockWarning(ViewStockWarning viewStockWarning);
/**
* 删除库存预警查询
* 删除库存预警查询Controller
*
* @param stockId 库存预警查询主键
* @param warehouseId 库存预警查询Controller主键
* @return 结果
*/
public int deleteViewStockWarningByStockId(String stockId);
public int deleteViewStockWarningByWarehouseId(String warehouseId);
/**
* 批量删除库存预警查询
* 批量删除库存预警查询Controller
*
* @param stockIds 需要删除的数据主键集合
* @param warehouseIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteViewStockWarningByStockIds(String[] stockIds);
public int deleteViewStockWarningByWarehouseIds(String[] warehouseIds);
}

View File

@@ -4,58 +4,58 @@ import java.util.List;
import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning;
/**
* 库存预警查询Service接口
* 库存预警查询ControllerService接口
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
public interface IViewStockWarningService
{
/**
* 查询库存预警查询
* 查询库存预警查询Controller
*
* @param stockId 库存预警查询主键
* @return 库存预警查询
* @param warehouseId 库存预警查询Controller主键
* @return 库存预警查询Controller
*/
public ViewStockWarning selectViewStockWarningByStockId(String stockId);
public ViewStockWarning selectViewStockWarningByWarehouseId(String warehouseId);
/**
* 查询库存预警查询列表
* 查询库存预警查询Controller列表
*
* @param viewStockWarning 库存预警查询
* @return 库存预警查询集合
* @param viewStockWarning 库存预警查询Controller
* @return 库存预警查询Controller集合
*/
public List<ViewStockWarning> selectViewStockWarningList(ViewStockWarning viewStockWarning);
/**
* 新增库存预警查询
* 新增库存预警查询Controller
*
* @param viewStockWarning 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 结果
*/
public int insertViewStockWarning(ViewStockWarning viewStockWarning);
/**
* 修改库存预警查询
* 修改库存预警查询Controller
*
* @param viewStockWarning 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 结果
*/
public int updateViewStockWarning(ViewStockWarning viewStockWarning);
/**
* 批量删除库存预警查询
* 批量删除库存预警查询Controller
*
* @param stockIds 需要删除的库存预警查询主键集合
* @param warehouseIds 需要删除的库存预警查询Controller主键集合
* @return 结果
*/
public int deleteViewStockWarningByStockIds(String[] stockIds);
public int deleteViewStockWarningByWarehouseIds(String[] warehouseIds);
/**
* 删除库存预警查询信息
* 删除库存预警查询Controller信息
*
* @param stockId 库存预警查询主键
* @param warehouseId 库存预警查询Controller主键
* @return 结果
*/
public int deleteViewStockWarningByStockId(String stockId);
public int deleteViewStockWarningByWarehouseId(String warehouseId);
}

View File

@@ -8,10 +8,10 @@ import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning;
import com.ruoyi.search.ViewStockWarning.service.IViewStockWarningService;
/**
* 库存预警查询Service业务层处理
* 库存预警查询ControllerService业务层处理
*
* @author gw
* @date 2025-09-22
* @author ruoyi
* @date 2025-10-28
*/
@Service
public class ViewStockWarningServiceImpl implements IViewStockWarningService
@@ -20,22 +20,22 @@ public class ViewStockWarningServiceImpl implements IViewStockWarningService
private ViewStockWarningMapper viewStockWarningMapper;
/**
* 查询库存预警查询
* 查询库存预警查询Controller
*
* @param stockId 库存预警查询主键
* @return 库存预警查询
* @param warehouseId 库存预警查询Controller主键
* @return 库存预警查询Controller
*/
@Override
public ViewStockWarning selectViewStockWarningByStockId(String stockId)
public ViewStockWarning selectViewStockWarningByWarehouseId(String warehouseId)
{
return viewStockWarningMapper.selectViewStockWarningByStockId(stockId);
return viewStockWarningMapper.selectViewStockWarningByWarehouseId(warehouseId);
}
/**
* 查询库存预警查询列表
* 查询库存预警查询Controller列表
*
* @param viewStockWarning 库存预警查询
* @return 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 库存预警查询Controller
*/
@Override
public List<ViewStockWarning> selectViewStockWarningList(ViewStockWarning viewStockWarning)
@@ -44,9 +44,9 @@ public class ViewStockWarningServiceImpl implements IViewStockWarningService
}
/**
* 新增库存预警查询
* 新增库存预警查询Controller
*
* @param viewStockWarning 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 结果
*/
@Override
@@ -56,9 +56,9 @@ public class ViewStockWarningServiceImpl implements IViewStockWarningService
}
/**
* 修改库存预警查询
* 修改库存预警查询Controller
*
* @param viewStockWarning 库存预警查询
* @param viewStockWarning 库存预警查询Controller
* @return 结果
*/
@Override
@@ -68,26 +68,26 @@ public class ViewStockWarningServiceImpl implements IViewStockWarningService
}
/**
* 批量删除库存预警查询
* 批量删除库存预警查询Controller
*
* @param stockIds 需要删除的库存预警查询主键
* @param warehouseIds 需要删除的库存预警查询Controller主键
* @return 结果
*/
@Override
public int deleteViewStockWarningByStockIds(String[] stockIds)
public int deleteViewStockWarningByWarehouseIds(String[] warehouseIds)
{
return viewStockWarningMapper.deleteViewStockWarningByStockIds(stockIds);
return viewStockWarningMapper.deleteViewStockWarningByWarehouseIds(warehouseIds);
}
/**
* 删除库存预警查询信息
* 删除库存预警查询Controller信息
*
* @param stockId 库存预警查询主键
* @param warehouseId 库存预警查询Controller主键
* @return 结果
*/
@Override
public int deleteViewStockWarningByStockId(String stockId)
public int deleteViewStockWarningByWarehouseId(String warehouseId)
{
return viewStockWarningMapper.deleteViewStockWarningByStockId(stockId);
return viewStockWarningMapper.deleteViewStockWarningByWarehouseId(warehouseId);
}
}

View File

@@ -5,417 +5,243 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.search.ViewInJobFlow.mapper.ViewInJobFlowMapper">
<resultMap type="ViewInJobFlow" id="ViewInJobFlowResult">
<result property="jobId" column="job_id" />
<result property="jobDetailId" column="job_detail_id" />
<result property="status" column="status" />
<result property="jobId" column="job_id" />
<result property="taskNo" column="task_no" />
<result property="trayCode" column="tray_code" />
<result property="roadwayId" column="roadway_id" />
<result property="cargoSpaceId" column="cargo_space_id" />
<result property="cargoSpaceName" column="cargo_space_name" />
<result property="thePlatoon" column="the_platoon" />
<result property="theColumn" column="the_column" />
<result property="theFloor" column="the_floor" />
<result property="priority" column="priority" />
<result property="executionPhase" column="execution_phase" />
<result property="status" column="status" />
<result property="inOrOut" column="in_or_out" />
<result property="entranceId" column="entrance_id" />
<result property="wlbh" column="wlbh" />
<result property="lotNo" column="lot_no" />
<result property="stackingId" column="stacking_id" />
<result property="stockStatus" column="stock_status" />
<result property="inQuantity" column="in_quantity" />
<result property="inOrOutId" column="in_or_out_id" />
<result property="inOrOutDId" column="in_or_out_d_id" />
<result property="trayCode" column="tray_code" />
<result property="createTime" column="create_time" />
<result property="startTime" column="start_time" />
<result property="finishTime" column="finish_time" />
<result property="entranceId" column="entrance_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="productGuid" column="product_guid" />
<result property="productId" column="product_id" />
<result property="productName" column="product_name" />
<result property="parentId" column="parent_id" />
<result property="price" column="price" />
<result property="cargoNo" column="cargo_no" />
<result property="unit" column="unit" />
<result property="spec" column="spec" />
<result property="remark" column="remark" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="spare4" column="spare4" />
<result property="spare5" column="spare5" />
<result property="spare6" column="spare6" />
<result property="productName" column="product_name" />
<result property="spare7" column="spare7" />
<result property="spare8" column="spare8" />
<result property="spare9" column="spare9" />
<result property="spare10" column="spare10" />
<result property="spare11" column="spare11" />
<result property="spare12" column="spare12" />
<result property="spare13" column="spare13" />
<result property="spare14" column="spare14" />
<result property="spare15" column="spare15" />
<result property="spare16" column="spare16" />
<result property="spare17" column="spare17" />
<result property="spare18" column="spare18" />
<result property="spare19" column="spare19" />
<result property="spare20" column="spare20" />
<result property="spare21" column="spare21" />
<result property="spare22" column="spare22" />
<result property="spare23" column="spare23" />
<result property="spare24" column="spare24" />
<result property="spare25" column="spare25" />
<result property="spare26" column="spare26" />
<result property="spare27" column="spare27" />
<result property="spare28" column="spare28" />
<result property="spare29" column="spare29" />
<result property="spare30" column="spare30" />
<result property="spare31" column="spare31" />
<result property="spare32" column="spare32" />
<result property="spare33" column="spare33" />
<result property="spare34" column="spare34" />
<result property="spare35" column="spare35" />
<result property="spare36" column="spare36" />
<result property="spare37" column="spare37" />
<result property="spare38" column="spare38" />
<result property="spare39" column="spare39" />
<result property="lineId" column="line_id" />
<result property="productType" column="productType" />
<result property="systemItem" column="systemItem" />
<result property="productCtm" column="productCtm" />
<result property="productCtu" column="productCtu" />
<result property="upperNum" column="upperNum" />
<result property="limitNum" column="limitNum" />
<result property="enableFlag" column="enableFlag" />
<result property="inQuantity" column="in_quantity" />
<result property="lotNo" column="lot_no" />
<result property="inOrOutId" column="in_or_out_id" />
<result property="inOrOutDId" column="in_or_out_d_id" />
<result property="priceTotal" column="priceTotal" />
<result property="origin" column="origin" />
<result property="turnovertype" column="turnovertype" />
<result property="account" column="account" />
<result property="purpose" column="purpose" />
<result property="units" column="units" />
<result property="contract" column="contract" />
<result property="cases" column="cases" />
<result property="quality" column="quality" />
<result property="managementNo" column="managementNo" />
</resultMap>
<sql id="selectViewInJobFlowVo">
select job_id, job_detail_id,line_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, entrance_id, wlbh, lot_no, stacking_id, stock_status, in_quantity, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39 from view_in_job_flow
select job_detail_id, job_id, task_no, status, in_or_out, tray_code, create_time, start_time, finish_time, entrance_id, warehouse_id, product_id, product_name, parent_id, price, cargo_no, unit, spec, remark, productType, systemItem, productCtm, productCtu, upperNum, limitNum, enableFlag, in_quantity, lot_no, in_or_out_id, in_or_out_d_id, priceTotal, origin, turnovertype, account, purpose, units, contract, cases, quality, managementNo from view_in_job_flow
</sql>
<select id="selectViewInJobFlowList" parameterType="ViewInJobFlow" resultMap="ViewInJobFlowResult">
<include refid="selectViewInJobFlowVo"/>
<where>
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id like concat('%', #{jobDetailId}, '%')</if>
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id = #{jobDetailId}</if>
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
<if test="taskNo != null and taskNo != ''"> and task_no = #{taskNo}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="taskNo != null and taskNo != ''"> and task_no like concat('%', #{taskNo}, '%')</if>
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
<if test="thePlatoon != null "> and the_platoon like concat('%', #{thePlatoon}, '%')</if>
<if test="theColumn != null "> and the_column like concat('%', #{theColumn}, '%')</if>
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
<if test="priority != null "> and priority like concat('%', #{priority}, '%')</if>
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
<if test="entranceId != null and entranceId != ''"> and entrance_id like concat('%', #{entranceId}, '%')</if>
<if test="wlbh != null and wlbh != ''"> and wlbh like concat('%', #{wlbh}, '%')</if>
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
<if test="inQuantity != null and inQuantity != ''"> and in_quantity like concat('%', #{inQuantity}, '%')</if>
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id like concat('%', #{inOrOutId}, '%')</if>
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id like concat('%', #{inOrOutDId}, '%')</if>
<if test="createTime != null and createTime != ''"> and create_time like concat('%', #{createTime}, '%')</if>
<if test="startTime != null and startTime != ''"> and start_time like concat('%', #{startTime}, '%')</if>
<if test="finishTime != null and finishTime != ''"> and finish_time like concat('%', #{finishTime}, '%')</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
<if test="inOrOut != null "> and in_or_out = #{inOrOut}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="entranceId != null and entranceId != ''"> and entrance_id = #{entranceId}</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
<if test="lineId != null and lineId != ''"> and line_id like concat('%', #{lineId}, '%')</if>
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId}</if>
<if test="price != null and price != ''"> and price = #{price}</if>
<if test="cargoNo != null and cargoNo != ''"> and cargo_no = #{cargoNo}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="spec != null and spec != ''"> and spec = #{spec}</if>
<if test="productType != null and productType != ''"> and productType = #{productType}</if>
<if test="systemItem != null and systemItem != ''"> and systemItem = #{systemItem}</if>
<if test="productCtm != null and productCtm != ''"> and productCtm = #{productCtm}</if>
<if test="productCtu != null and productCtu != ''"> and productCtu = #{productCtu}</if>
<if test="upperNum != null and upperNum != ''"> and upperNum = #{upperNum}</if>
<if test="limitNum != null and limitNum != ''"> and limitNum = #{limitNum}</if>
<if test="enableFlag != null and enableFlag != ''"> and enableFlag = #{enableFlag}</if>
<if test="inQuantity != null and inQuantity != ''"> and in_quantity = #{inQuantity}</if>
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id = #{inOrOutId}</if>
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id = #{inOrOutDId}</if>
<if test="priceTotal != null and priceTotal != ''"> and priceTotal = #{priceTotal}</if>
<if test="origin != null and origin != ''"> and origin = #{origin}</if>
<if test="turnovertype != null and turnovertype != ''"> and turnovertype = #{turnovertype}</if>
<if test="account != null and account != ''"> and account = #{account}</if>
<if test="purpose != null and purpose != ''"> and purpose = #{purpose}</if>
<if test="units != null and units != ''"> and units = #{units}</if>
<if test="contract != null and contract != ''"> and contract = #{contract}</if>
<if test="cases != null and cases != ''"> and cases = #{cases}</if>
<if test="quality != null and quality != ''"> and quality = #{quality}</if>
<if test="managementNo != null and managementNo != ''"> and managementNo = #{managementNo}</if>
</where>
</select>
<select id="selectViewInJobFlowByJobId" parameterType="String" resultMap="ViewInJobFlowResult">
<select id="selectViewInJobFlowByJobDetailId" parameterType="String" resultMap="ViewInJobFlowResult">
<include refid="selectViewInJobFlowVo"/>
where job_id = #{jobId}
where job_detail_id = #{jobDetailId}
</select>
<insert id="insertViewInJobFlow" parameterType="ViewInJobFlow">
insert into view_in_job_flow
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jobId != null and jobId != ''">job_id,</if>
<if test="jobDetailId != null">job_detail_id,</if>
<if test="status != null">status,</if>
<if test="taskNo != null">task_no,</if>
<if test="trayCode != null">tray_code,</if>
<if test="roadwayId != null">roadway_id,</if>
<if test="cargoSpaceId != null">cargo_space_id,</if>
<if test="cargoSpaceName != null">cargo_space_name,</if>
<if test="thePlatoon != null">the_platoon,</if>
<if test="theColumn != null">the_column,</if>
<if test="theFloor != null">the_floor,</if>
<if test="priority != null">priority,</if>
<if test="executionPhase != null">execution_phase,</if>
<if test="jobId != null">job_id,</if>
<if test="taskNo != null and taskNo != ''">task_no,</if>
<if test="status != null and status != ''">status,</if>
<if test="inOrOut != null">in_or_out,</if>
<if test="entranceId != null">entrance_id,</if>
<if test="wlbh != null">wlbh,</if>
<if test="lotNo != null">lot_no,</if>
<if test="stackingId != null">stacking_id,</if>
<if test="stockStatus != null">stock_status,</if>
<if test="inQuantity != null">in_quantity,</if>
<if test="inOrOutId != null">in_or_out_id,</if>
<if test="inOrOutDId != null">in_or_out_d_id,</if>
<if test="trayCode != null">tray_code,</if>
<if test="createTime != null">create_time,</if>
<if test="startTime != null">start_time,</if>
<if test="finishTime != null">finish_time,</if>
<if test="entranceId != null">entrance_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="productGuid != null">product_guid,</if>
<if test="productId != null">product_id,</if>
<if test="productName != null">product_name,</if>
<if test="parentId != null">parent_id,</if>
<if test="price != null">price,</if>
<if test="cargoNo != null">cargo_no,</if>
<if test="unit != null">unit,</if>
<if test="spec != null">spec,</if>
<if test="remark != null">remark,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="spare4 != null">spare4,</if>
<if test="spare5 != null">spare5,</if>
<if test="spare6 != null">spare6,</if>
<if test="productName != null">product_name,</if>
<if test="spare7 != null">spare7,</if>
<if test="spare8 != null">spare8,</if>
<if test="spare9 != null">spare9,</if>
<if test="spare10 != null">spare10,</if>
<if test="spare11 != null">spare11,</if>
<if test="spare12 != null">spare12,</if>
<if test="spare13 != null">spare13,</if>
<if test="spare14 != null">spare14,</if>
<if test="spare15 != null">spare15,</if>
<if test="spare16 != null">spare16,</if>
<if test="spare17 != null">spare17,</if>
<if test="spare18 != null">spare18,</if>
<if test="spare19 != null">spare19,</if>
<if test="spare20 != null">spare20,</if>
<if test="spare21 != null">spare21,</if>
<if test="spare22 != null">spare22,</if>
<if test="spare23 != null">spare23,</if>
<if test="spare24 != null">spare24,</if>
<if test="spare25 != null">spare25,</if>
<if test="spare26 != null">spare26,</if>
<if test="spare27 != null">spare27,</if>
<if test="spare28 != null">spare28,</if>
<if test="spare29 != null">spare29,</if>
<if test="spare30 != null">spare30,</if>
<if test="spare31 != null">spare31,</if>
<if test="spare32 != null">spare32,</if>
<if test="spare33 != null">spare33,</if>
<if test="spare34 != null">spare34,</if>
<if test="spare35 != null">spare35,</if>
<if test="spare36 != null">spare36,</if>
<if test="spare37 != null">spare37,</if>
<if test="spare38 != null">spare38,</if>
<if test="spare39 != null">spare39,</if>
<if test="productType != null">productType,</if>
<if test="systemItem != null">systemItem,</if>
<if test="productCtm != null">productCtm,</if>
<if test="productCtu != null">productCtu,</if>
<if test="upperNum != null">upperNum,</if>
<if test="limitNum != null">limitNum,</if>
<if test="enableFlag != null">enableFlag,</if>
<if test="inQuantity != null">in_quantity,</if>
<if test="lotNo != null">lot_no,</if>
<if test="inOrOutId != null">in_or_out_id,</if>
<if test="inOrOutDId != null">in_or_out_d_id,</if>
<if test="priceTotal != null">priceTotal,</if>
<if test="origin != null">origin,</if>
<if test="turnovertype != null">turnovertype,</if>
<if test="account != null">account,</if>
<if test="purpose != null">purpose,</if>
<if test="units != null">units,</if>
<if test="contract != null">contract,</if>
<if test="cases != null">cases,</if>
<if test="quality != null">quality,</if>
<if test="managementNo != null">managementNo,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jobId != null and jobId != ''">#{jobId},</if>
<if test="jobDetailId != null">#{jobDetailId},</if>
<if test="status != null">#{status},</if>
<if test="taskNo != null">#{taskNo},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="roadwayId != null">#{roadwayId},</if>
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
<if test="thePlatoon != null">#{thePlatoon},</if>
<if test="theColumn != null">#{theColumn},</if>
<if test="theFloor != null">#{theFloor},</if>
<if test="priority != null">#{priority},</if>
<if test="executionPhase != null">#{executionPhase},</if>
<if test="jobId != null">#{jobId},</if>
<if test="taskNo != null and taskNo != ''">#{taskNo},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="inOrOut != null">#{inOrOut},</if>
<if test="entranceId != null">#{entranceId},</if>
<if test="wlbh != null">#{wlbh},</if>
<if test="lotNo != null">#{lotNo},</if>
<if test="stackingId != null">#{stackingId},</if>
<if test="stockStatus != null">#{stockStatus},</if>
<if test="inQuantity != null">#{inQuantity},</if>
<if test="inOrOutId != null">#{inOrOutId},</if>
<if test="inOrOutDId != null">#{inOrOutDId},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="createTime != null">#{createTime},</if>
<if test="startTime != null">#{startTime},</if>
<if test="finishTime != null">#{finishTime},</if>
<if test="entranceId != null">#{entranceId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="productGuid != null">#{productGuid},</if>
<if test="productId != null">#{productId},</if>
<if test="productName != null">#{productName},</if>
<if test="parentId != null">#{parentId},</if>
<if test="price != null">#{price},</if>
<if test="cargoNo != null">#{cargoNo},</if>
<if test="unit != null">#{unit},</if>
<if test="spec != null">#{spec},</if>
<if test="remark != null">#{remark},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="spare4 != null">#{spare4},</if>
<if test="spare5 != null">#{spare5},</if>
<if test="spare6 != null">#{spare6},</if>
<if test="productName != null">#{productName},</if>
<if test="spare7 != null">#{spare7},</if>
<if test="spare8 != null">#{spare8},</if>
<if test="spare9 != null">#{spare9},</if>
<if test="spare10 != null">#{spare10},</if>
<if test="spare11 != null">#{spare11},</if>
<if test="spare12 != null">#{spare12},</if>
<if test="spare13 != null">#{spare13},</if>
<if test="spare14 != null">#{spare14},</if>
<if test="spare15 != null">#{spare15},</if>
<if test="spare16 != null">#{spare16},</if>
<if test="spare17 != null">#{spare17},</if>
<if test="spare18 != null">#{spare18},</if>
<if test="spare19 != null">#{spare19},</if>
<if test="spare20 != null">#{spare20},</if>
<if test="spare21 != null">#{spare21},</if>
<if test="spare22 != null">#{spare22},</if>
<if test="spare23 != null">#{spare23},</if>
<if test="spare24 != null">#{spare24},</if>
<if test="spare25 != null">#{spare25},</if>
<if test="spare26 != null">#{spare26},</if>
<if test="spare27 != null">#{spare27},</if>
<if test="spare28 != null">#{spare28},</if>
<if test="spare29 != null">#{spare29},</if>
<if test="spare30 != null">#{spare30},</if>
<if test="spare31 != null">#{spare31},</if>
<if test="spare32 != null">#{spare32},</if>
<if test="spare33 != null">#{spare33},</if>
<if test="spare34 != null">#{spare34},</if>
<if test="spare35 != null">#{spare35},</if>
<if test="spare36 != null">#{spare36},</if>
<if test="spare37 != null">#{spare37},</if>
<if test="spare38 != null">#{spare38},</if>
<if test="spare39 != null">#{spare39},</if>
<if test="productType != null">#{productType},</if>
<if test="systemItem != null">#{systemItem},</if>
<if test="productCtm != null">#{productCtm},</if>
<if test="productCtu != null">#{productCtu},</if>
<if test="upperNum != null">#{upperNum},</if>
<if test="limitNum != null">#{limitNum},</if>
<if test="enableFlag != null">#{enableFlag},</if>
<if test="inQuantity != null">#{inQuantity},</if>
<if test="lotNo != null">#{lotNo},</if>
<if test="inOrOutId != null">#{inOrOutId},</if>
<if test="inOrOutDId != null">#{inOrOutDId},</if>
<if test="priceTotal != null">#{priceTotal},</if>
<if test="origin != null">#{origin},</if>
<if test="turnovertype != null">#{turnovertype},</if>
<if test="account != null">#{account},</if>
<if test="purpose != null">#{purpose},</if>
<if test="units != null">#{units},</if>
<if test="contract != null">#{contract},</if>
<if test="cases != null">#{cases},</if>
<if test="quality != null">#{quality},</if>
<if test="managementNo != null">#{managementNo},</if>
</trim>
</insert>
<update id="updateViewInJobFlow" parameterType="ViewInJobFlow">
update view_in_job_flow
<trim prefix="SET" suffixOverrides=",">
<if test="jobDetailId != null">job_detail_id = #{jobDetailId},</if>
<if test="status != null">status = #{status},</if>
<if test="taskNo != null">task_no = #{taskNo},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
<if test="thePlatoon != null">the_platoon = #{thePlatoon},</if>
<if test="theColumn != null">the_column = #{theColumn},</if>
<if test="theFloor != null">the_floor = #{theFloor},</if>
<if test="priority != null">priority = #{priority},</if>
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
<if test="jobId != null">job_id = #{jobId},</if>
<if test="taskNo != null and taskNo != ''">task_no = #{taskNo},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
<if test="entranceId != null">entrance_id = #{entranceId},</if>
<if test="wlbh != null">wlbh = #{wlbh},</if>
<if test="lotNo != null">lot_no = #{lotNo},</if>
<if test="stackingId != null">stacking_id = #{stackingId},</if>
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
<if test="inQuantity != null">in_quantity = #{inQuantity},</if>
<if test="inOrOutId != null">in_or_out_id = #{inOrOutId},</if>
<if test="inOrOutDId != null">in_or_out_d_id = #{inOrOutDId},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="finishTime != null">finish_time = #{finishTime},</if>
<if test="entranceId != null">entrance_id = #{entranceId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="productGuid != null">product_guid = #{productGuid},</if>
<if test="productId != null">product_id = #{productId},</if>
<if test="productName != null">product_name = #{productName},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="price != null">price = #{price},</if>
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="spec != null">spec = #{spec},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="spare4 != null">spare4 = #{spare4},</if>
<if test="spare5 != null">spare5 = #{spare5},</if>
<if test="spare6 != null">spare6 = #{spare6},</if>
<if test="productName != null">product_name = #{productName},</if>
<if test="spare7 != null">spare7 = #{spare7},</if>
<if test="spare8 != null">spare8 = #{spare8},</if>
<if test="spare9 != null">spare9 = #{spare9},</if>
<if test="spare10 != null">spare10 = #{spare10},</if>
<if test="spare11 != null">spare11 = #{spare11},</if>
<if test="spare12 != null">spare12 = #{spare12},</if>
<if test="spare13 != null">spare13 = #{spare13},</if>
<if test="spare14 != null">spare14 = #{spare14},</if>
<if test="spare15 != null">spare15 = #{spare15},</if>
<if test="spare16 != null">spare16 = #{spare16},</if>
<if test="spare17 != null">spare17 = #{spare17},</if>
<if test="spare18 != null">spare18 = #{spare18},</if>
<if test="spare19 != null">spare19 = #{spare19},</if>
<if test="spare20 != null">spare20 = #{spare20},</if>
<if test="spare21 != null">spare21 = #{spare21},</if>
<if test="spare22 != null">spare22 = #{spare22},</if>
<if test="spare23 != null">spare23 = #{spare23},</if>
<if test="spare24 != null">spare24 = #{spare24},</if>
<if test="spare25 != null">spare25 = #{spare25},</if>
<if test="spare26 != null">spare26 = #{spare26},</if>
<if test="spare27 != null">spare27 = #{spare27},</if>
<if test="spare28 != null">spare28 = #{spare28},</if>
<if test="spare29 != null">spare29 = #{spare29},</if>
<if test="spare30 != null">spare30 = #{spare30},</if>
<if test="spare31 != null">spare31 = #{spare31},</if>
<if test="spare32 != null">spare32 = #{spare32},</if>
<if test="spare33 != null">spare33 = #{spare33},</if>
<if test="spare34 != null">spare34 = #{spare34},</if>
<if test="spare35 != null">spare35 = #{spare35},</if>
<if test="spare36 != null">spare36 = #{spare36},</if>
<if test="spare37 != null">spare37 = #{spare37},</if>
<if test="spare38 != null">spare38 = #{spare38},</if>
<if test="spare39 != null">spare39 = #{spare39},</if>
<if test="productType != null">productType = #{productType},</if>
<if test="systemItem != null">systemItem = #{systemItem},</if>
<if test="productCtm != null">productCtm = #{productCtm},</if>
<if test="productCtu != null">productCtu = #{productCtu},</if>
<if test="upperNum != null">upperNum = #{upperNum},</if>
<if test="limitNum != null">limitNum = #{limitNum},</if>
<if test="enableFlag != null">enableFlag = #{enableFlag},</if>
<if test="inQuantity != null">in_quantity = #{inQuantity},</if>
<if test="lotNo != null">lot_no = #{lotNo},</if>
<if test="inOrOutId != null">in_or_out_id = #{inOrOutId},</if>
<if test="inOrOutDId != null">in_or_out_d_id = #{inOrOutDId},</if>
<if test="priceTotal != null">priceTotal = #{priceTotal},</if>
<if test="origin != null">origin = #{origin},</if>
<if test="turnovertype != null">turnovertype = #{turnovertype},</if>
<if test="account != null">account = #{account},</if>
<if test="purpose != null">purpose = #{purpose},</if>
<if test="units != null">units = #{units},</if>
<if test="contract != null">contract = #{contract},</if>
<if test="cases != null">cases = #{cases},</if>
<if test="quality != null">quality = #{quality},</if>
<if test="managementNo != null">managementNo = #{managementNo},</if>
</trim>
where job_id = #{jobId}
where job_detail_id = #{jobDetailId}
</update>
<delete id="deleteViewInJobFlowByJobId" parameterType="String">
delete from view_in_job_flow where job_id = #{jobId}
<delete id="deleteViewInJobFlowByJobDetailId" parameterType="String">
delete from view_in_job_flow where job_detail_id = #{jobDetailId}
</delete>
<delete id="deleteViewInJobFlowByJobIds" parameterType="String">
delete from view_in_job_flow where job_id in
<foreach item="jobId" collection="array" open="(" separator="," close=")">
#{jobId}
<delete id="deleteViewInJobFlowByJobDetailIds" parameterType="String">
delete from view_in_job_flow where job_detail_id in
<foreach item="jobDetailId" collection="array" open="(" separator="," close=")">
#{jobDetailId}
</foreach>
</delete>
</mapper>

View File

@@ -5,427 +5,243 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.search.ViewOutJobFlow.mapper.ViewOutJobFlowMapper">
<resultMap type="ViewOutJobFlow" id="ViewOutJobFlowResult">
<result property="jobId" column="job_id" />
<result property="jobDetailId" column="job_detail_id" />
<result property="status" column="status" />
<result property="jobId" column="job_id" />
<result property="taskNo" column="task_no" />
<result property="trayCode" column="tray_code" />
<result property="roadwayId" column="roadway_id" />
<result property="cargoSpaceId" column="cargo_space_id" />
<result property="cargoSpaceName" column="cargo_space_name" />
<result property="thePlatoon" column="the_platoon" />
<result property="theColumn" column="the_column" />
<result property="theFloor" column="the_floor" />
<result property="priority" column="priority" />
<result property="executionPhase" column="execution_phase" />
<result property="status" column="status" />
<result property="inOrOut" column="in_or_out" />
<result property="exitId" column="exit_id" />
<result property="wlbh" column="wlbh" />
<result property="lotNo" column="lot_no" />
<result property="stackingId" column="stacking_id" />
<result property="stockStatus" column="stock_status" />
<result property="outQuantity" column="out_quantity" />
<result property="giveNum" column="give_num" />
<result property="inOrOutId" column="in_or_out_id" />
<result property="inOrOutDId" column="in_or_out_d_id" />
<result property="trayCode" column="tray_code" />
<result property="createTime" column="create_time" />
<result property="startTime" column="start_time" />
<result property="finishTime" column="finish_time" />
<result property="exitId" column="exit_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="productGuid" column="product_guid" />
<result property="productId" column="product_id" />
<result property="productName" column="product_name" />
<result property="parentId" column="parent_id" />
<result property="price" column="price" />
<result property="cargoNo" column="cargo_no" />
<result property="unit" column="unit" />
<result property="spec" column="spec" />
<result property="remark" column="remark" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="spare4" column="spare4" />
<result property="spare5" column="spare5" />
<result property="spare6" column="spare6" />
<result property="productName" column="product_name" />
<result property="spare7" column="spare7" />
<result property="spare8" column="spare8" />
<result property="spare9" column="spare9" />
<result property="spare10" column="spare10" />
<result property="spare11" column="spare11" />
<result property="spare12" column="spare12" />
<result property="spare13" column="spare13" />
<result property="spare14" column="spare14" />
<result property="spare15" column="spare15" />
<result property="spare16" column="spare16" />
<result property="spare17" column="spare17" />
<result property="spare18" column="spare18" />
<result property="spare19" column="spare19" />
<result property="spare20" column="spare20" />
<result property="spare21" column="spare21" />
<result property="spare22" column="spare22" />
<result property="spare23" column="spare23" />
<result property="spare24" column="spare24" />
<result property="spare25" column="spare25" />
<result property="spare26" column="spare26" />
<result property="spare27" column="spare27" />
<result property="spare28" column="spare28" />
<result property="spare29" column="spare29" />
<result property="spare30" column="spare30" />
<result property="spare31" column="spare31" />
<result property="spare32" column="spare32" />
<result property="spare33" column="spare33" />
<result property="spare34" column="spare34" />
<result property="spare35" column="spare35" />
<result property="spare36" column="spare36" />
<result property="spare37" column="spare37" />
<result property="spare38" column="spare38" />
<result property="spare39" column="spare39" />
<result property="customerName" column="customer_name" />
<result property="lineId" column="line_id" />
<result property="productType" column="productType" />
<result property="systemItem" column="systemItem" />
<result property="productCtm" column="productCtm" />
<result property="productCtu" column="productCtu" />
<result property="upperNum" column="upperNum" />
<result property="limitNum" column="limitNum" />
<result property="enableFlag" column="enableFlag" />
<result property="outQuantity" column="out_quantity" />
<result property="lotNo" column="lot_no" />
<result property="inOrOutId" column="in_or_out_id" />
<result property="inOrOutDId" column="in_or_out_d_id" />
<result property="priceTotal" column="priceTotal" />
<result property="origin" column="origin" />
<result property="turnovertype" column="turnovertype" />
<result property="account" column="account" />
<result property="purpose" column="purpose" />
<result property="units" column="units" />
<result property="contract" column="contract" />
<result property="cases" column="cases" />
<result property="quality" column="quality" />
<result property="managementNo" column="managementNo" />
</resultMap>
<sql id="selectViewOutJobFlowVo">
select job_id, job_detail_id,line_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, exit_id, wlbh, lot_no, stacking_id, stock_status, out_quantity, give_num, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, customer_name from view_out_job_flow
select job_detail_id, job_id, task_no, status, in_or_out, tray_code, create_time, start_time, finish_time, exit_id, warehouse_id, product_id, product_name, parent_id, price, cargo_no, unit, spec, remark, productType, systemItem, productCtm, productCtu, upperNum, limitNum, enableFlag, out_quantity, lot_no, in_or_out_id, in_or_out_d_id, priceTotal, origin, turnovertype, account, purpose, units, contract, cases, quality, managementNo from view_out_job_flow
</sql>
<select id="selectViewOutJobFlowList" parameterType="ViewOutJobFlow" resultMap="ViewOutJobFlowResult">
<include refid="selectViewOutJobFlowVo"/>
<where>
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id like concat('%', #{jobDetailId}, '%')</if>
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id = #{jobDetailId}</if>
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
<if test="taskNo != null and taskNo != ''"> and task_no = #{taskNo}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="taskNo != null and taskNo != ''"> and task_no like concat('%', #{taskNo}, '%')</if>
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
<if test="thePlatoon != null "> and the_platoon like concat('%', #{thePlatoon}, '%')</if>
<if test="theColumn != null "> and the_column like concat('%', #{theColumn}, '%')</if>
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
<if test="priority != null "> and priority like concat('%', #{priority}, '%')</if>
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
<if test="exitId != null and exitId != ''"> and exit_id like concat('%', #{exitId}, '%')</if>
<if test="wlbh != null and wlbh != ''"> and wlbh like concat('%', #{wlbh}, '%')</if>
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
<if test="giveNum != null and giveNum != ''"> and give_num like concat('%', #{giveNum}, '%')</if>
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id like concat('%', #{inOrOutId}, '%')</if>
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id like concat('%', #{inOrOutDId}, '%')</if>
<if test="createTime != null and createTime != ''"> and create_time like concat('%', #{createTime}, '%')</if>
<if test="startTime != null and startTime != ''"> and start_time like concat('%', #{startTime}, '%')</if>
<if test="finishTime != null and finishTime != ''"> and finish_time like concat('%', #{finishTime}, '%')</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
<if test="inOrOut != null "> and in_or_out = #{inOrOut}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="exitId != null and exitId != ''"> and exit_id = #{exitId}</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="lineId != null and lineId != ''"> and line_id like concat('%', #{lineId}, '%')</if>
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId}</if>
<if test="price != null and price != ''"> and price = #{price}</if>
<if test="cargoNo != null and cargoNo != ''"> and cargo_no = #{cargoNo}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="spec != null and spec != ''"> and spec = #{spec}</if>
<if test="productType != null and productType != ''"> and productType = #{productType}</if>
<if test="systemItem != null and systemItem != ''"> and systemItem = #{systemItem}</if>
<if test="productCtm != null and productCtm != ''"> and productCtm = #{productCtm}</if>
<if test="productCtu != null and productCtu != ''"> and productCtu = #{productCtu}</if>
<if test="upperNum != null and upperNum != ''"> and upperNum = #{upperNum}</if>
<if test="limitNum != null and limitNum != ''"> and limitNum = #{limitNum}</if>
<if test="enableFlag != null and enableFlag != ''"> and enableFlag = #{enableFlag}</if>
<if test="outQuantity != null and outQuantity != ''"> and out_quantity = #{outQuantity}</if>
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id = #{inOrOutId}</if>
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id = #{inOrOutDId}</if>
<if test="priceTotal != null and priceTotal != ''"> and priceTotal = #{priceTotal}</if>
<if test="origin != null and origin != ''"> and origin = #{origin}</if>
<if test="turnovertype != null and turnovertype != ''"> and turnovertype = #{turnovertype}</if>
<if test="account != null and account != ''"> and account = #{account}</if>
<if test="purpose != null and purpose != ''"> and purpose = #{purpose}</if>
<if test="units != null and units != ''"> and units = #{units}</if>
<if test="contract != null and contract != ''"> and contract = #{contract}</if>
<if test="cases != null and cases != ''"> and cases = #{cases}</if>
<if test="quality != null and quality != ''"> and quality = #{quality}</if>
<if test="managementNo != null and managementNo != ''"> and managementNo = #{managementNo}</if>
</where>
</select>
<select id="selectViewOutJobFlowByJobId" parameterType="String" resultMap="ViewOutJobFlowResult">
<select id="selectViewOutJobFlowByJobDetailId" parameterType="String" resultMap="ViewOutJobFlowResult">
<include refid="selectViewOutJobFlowVo"/>
where job_id = #{jobId}
where job_detail_id = #{jobDetailId}
</select>
<insert id="insertViewOutJobFlow" parameterType="ViewOutJobFlow">
insert into view_out_job_flow
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jobId != null and jobId != ''">job_id,</if>
<if test="jobDetailId != null">job_detail_id,</if>
<if test="status != null">status,</if>
<if test="taskNo != null">task_no,</if>
<if test="trayCode != null">tray_code,</if>
<if test="roadwayId != null">roadway_id,</if>
<if test="cargoSpaceId != null">cargo_space_id,</if>
<if test="cargoSpaceName != null">cargo_space_name,</if>
<if test="thePlatoon != null">the_platoon,</if>
<if test="theColumn != null">the_column,</if>
<if test="theFloor != null">the_floor,</if>
<if test="priority != null">priority,</if>
<if test="executionPhase != null">execution_phase,</if>
<if test="jobId != null">job_id,</if>
<if test="taskNo != null and taskNo != ''">task_no,</if>
<if test="status != null and status != ''">status,</if>
<if test="inOrOut != null">in_or_out,</if>
<if test="exitId != null">exit_id,</if>
<if test="wlbh != null">wlbh,</if>
<if test="lotNo != null">lot_no,</if>
<if test="stackingId != null">stacking_id,</if>
<if test="stockStatus != null">stock_status,</if>
<if test="outQuantity != null">out_quantity,</if>
<if test="giveNum != null">give_num,</if>
<if test="inOrOutId != null">in_or_out_id,</if>
<if test="inOrOutDId != null">in_or_out_d_id,</if>
<if test="trayCode != null">tray_code,</if>
<if test="createTime != null">create_time,</if>
<if test="startTime != null">start_time,</if>
<if test="finishTime != null">finish_time,</if>
<if test="exitId != null">exit_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="productGuid != null">product_guid,</if>
<if test="productId != null">product_id,</if>
<if test="productName != null">product_name,</if>
<if test="parentId != null">parent_id,</if>
<if test="price != null">price,</if>
<if test="cargoNo != null">cargo_no,</if>
<if test="unit != null">unit,</if>
<if test="spec != null">spec,</if>
<if test="remark != null">remark,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="spare4 != null">spare4,</if>
<if test="spare5 != null">spare5,</if>
<if test="spare6 != null">spare6,</if>
<if test="productName != null">product_name,</if>
<if test="spare7 != null">spare7,</if>
<if test="spare8 != null">spare8,</if>
<if test="spare9 != null">spare9,</if>
<if test="spare10 != null">spare10,</if>
<if test="spare11 != null">spare11,</if>
<if test="spare12 != null">spare12,</if>
<if test="spare13 != null">spare13,</if>
<if test="spare14 != null">spare14,</if>
<if test="spare15 != null">spare15,</if>
<if test="spare16 != null">spare16,</if>
<if test="spare17 != null">spare17,</if>
<if test="spare18 != null">spare18,</if>
<if test="spare19 != null">spare19,</if>
<if test="spare20 != null">spare20,</if>
<if test="spare21 != null">spare21,</if>
<if test="spare22 != null">spare22,</if>
<if test="spare23 != null">spare23,</if>
<if test="spare24 != null">spare24,</if>
<if test="spare25 != null">spare25,</if>
<if test="spare26 != null">spare26,</if>
<if test="spare27 != null">spare27,</if>
<if test="spare28 != null">spare28,</if>
<if test="spare29 != null">spare29,</if>
<if test="spare30 != null">spare30,</if>
<if test="spare31 != null">spare31,</if>
<if test="spare32 != null">spare32,</if>
<if test="spare33 != null">spare33,</if>
<if test="spare34 != null">spare34,</if>
<if test="spare35 != null">spare35,</if>
<if test="spare36 != null">spare36,</if>
<if test="spare37 != null">spare37,</if>
<if test="spare38 != null">spare38,</if>
<if test="spare39 != null">spare39,</if>
<if test="customerName != null">customer_name,</if>
<if test="productType != null">productType,</if>
<if test="systemItem != null">systemItem,</if>
<if test="productCtm != null">productCtm,</if>
<if test="productCtu != null">productCtu,</if>
<if test="upperNum != null">upperNum,</if>
<if test="limitNum != null">limitNum,</if>
<if test="enableFlag != null">enableFlag,</if>
<if test="outQuantity != null">out_quantity,</if>
<if test="lotNo != null">lot_no,</if>
<if test="inOrOutId != null">in_or_out_id,</if>
<if test="inOrOutDId != null">in_or_out_d_id,</if>
<if test="priceTotal != null">priceTotal,</if>
<if test="origin != null">origin,</if>
<if test="turnovertype != null">turnovertype,</if>
<if test="account != null">account,</if>
<if test="purpose != null">purpose,</if>
<if test="units != null">units,</if>
<if test="contract != null">contract,</if>
<if test="cases != null">cases,</if>
<if test="quality != null">quality,</if>
<if test="managementNo != null">managementNo,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jobId != null and jobId != ''">#{jobId},</if>
<if test="jobDetailId != null">#{jobDetailId},</if>
<if test="status != null">#{status},</if>
<if test="taskNo != null">#{taskNo},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="roadwayId != null">#{roadwayId},</if>
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
<if test="thePlatoon != null">#{thePlatoon},</if>
<if test="theColumn != null">#{theColumn},</if>
<if test="theFloor != null">#{theFloor},</if>
<if test="priority != null">#{priority},</if>
<if test="executionPhase != null">#{executionPhase},</if>
<if test="jobId != null">#{jobId},</if>
<if test="taskNo != null and taskNo != ''">#{taskNo},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="inOrOut != null">#{inOrOut},</if>
<if test="exitId != null">#{exitId},</if>
<if test="wlbh != null">#{wlbh},</if>
<if test="lotNo != null">#{lotNo},</if>
<if test="stackingId != null">#{stackingId},</if>
<if test="stockStatus != null">#{stockStatus},</if>
<if test="outQuantity != null">#{outQuantity},</if>
<if test="giveNum != null">#{giveNum},</if>
<if test="inOrOutId != null">#{inOrOutId},</if>
<if test="inOrOutDId != null">#{inOrOutDId},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="createTime != null">#{createTime},</if>
<if test="startTime != null">#{startTime},</if>
<if test="finishTime != null">#{finishTime},</if>
<if test="exitId != null">#{exitId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="productGuid != null">#{productGuid},</if>
<if test="productId != null">#{productId},</if>
<if test="productName != null">#{productName},</if>
<if test="parentId != null">#{parentId},</if>
<if test="price != null">#{price},</if>
<if test="cargoNo != null">#{cargoNo},</if>
<if test="unit != null">#{unit},</if>
<if test="spec != null">#{spec},</if>
<if test="remark != null">#{remark},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="spare4 != null">#{spare4},</if>
<if test="spare5 != null">#{spare5},</if>
<if test="spare6 != null">#{spare6},</if>
<if test="productName != null">#{productName},</if>
<if test="spare7 != null">#{spare7},</if>
<if test="spare8 != null">#{spare8},</if>
<if test="spare9 != null">#{spare9},</if>
<if test="spare10 != null">#{spare10},</if>
<if test="spare11 != null">#{spare11},</if>
<if test="spare12 != null">#{spare12},</if>
<if test="spare13 != null">#{spare13},</if>
<if test="spare14 != null">#{spare14},</if>
<if test="spare15 != null">#{spare15},</if>
<if test="spare16 != null">#{spare16},</if>
<if test="spare17 != null">#{spare17},</if>
<if test="spare18 != null">#{spare18},</if>
<if test="spare19 != null">#{spare19},</if>
<if test="spare20 != null">#{spare20},</if>
<if test="spare21 != null">#{spare21},</if>
<if test="spare22 != null">#{spare22},</if>
<if test="spare23 != null">#{spare23},</if>
<if test="spare24 != null">#{spare24},</if>
<if test="spare25 != null">#{spare25},</if>
<if test="spare26 != null">#{spare26},</if>
<if test="spare27 != null">#{spare27},</if>
<if test="spare28 != null">#{spare28},</if>
<if test="spare29 != null">#{spare29},</if>
<if test="spare30 != null">#{spare30},</if>
<if test="spare31 != null">#{spare31},</if>
<if test="spare32 != null">#{spare32},</if>
<if test="spare33 != null">#{spare33},</if>
<if test="spare34 != null">#{spare34},</if>
<if test="spare35 != null">#{spare35},</if>
<if test="spare36 != null">#{spare36},</if>
<if test="spare37 != null">#{spare37},</if>
<if test="spare38 != null">#{spare38},</if>
<if test="spare39 != null">#{spare39},</if>
<if test="customerName != null">#{customerName},</if>
<if test="productType != null">#{productType},</if>
<if test="systemItem != null">#{systemItem},</if>
<if test="productCtm != null">#{productCtm},</if>
<if test="productCtu != null">#{productCtu},</if>
<if test="upperNum != null">#{upperNum},</if>
<if test="limitNum != null">#{limitNum},</if>
<if test="enableFlag != null">#{enableFlag},</if>
<if test="outQuantity != null">#{outQuantity},</if>
<if test="lotNo != null">#{lotNo},</if>
<if test="inOrOutId != null">#{inOrOutId},</if>
<if test="inOrOutDId != null">#{inOrOutDId},</if>
<if test="priceTotal != null">#{priceTotal},</if>
<if test="origin != null">#{origin},</if>
<if test="turnovertype != null">#{turnovertype},</if>
<if test="account != null">#{account},</if>
<if test="purpose != null">#{purpose},</if>
<if test="units != null">#{units},</if>
<if test="contract != null">#{contract},</if>
<if test="cases != null">#{cases},</if>
<if test="quality != null">#{quality},</if>
<if test="managementNo != null">#{managementNo},</if>
</trim>
</insert>
<update id="updateViewOutJobFlow" parameterType="ViewOutJobFlow">
update view_out_job_flow
<trim prefix="SET" suffixOverrides=",">
<if test="jobDetailId != null">job_detail_id = #{jobDetailId},</if>
<if test="status != null">status = #{status},</if>
<if test="taskNo != null">task_no = #{taskNo},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
<if test="thePlatoon != null">the_platoon = #{thePlatoon},</if>
<if test="theColumn != null">the_column = #{theColumn},</if>
<if test="theFloor != null">the_floor = #{theFloor},</if>
<if test="priority != null">priority = #{priority},</if>
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
<if test="jobId != null">job_id = #{jobId},</if>
<if test="taskNo != null and taskNo != ''">task_no = #{taskNo},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
<if test="exitId != null">exit_id = #{exitId},</if>
<if test="wlbh != null">wlbh = #{wlbh},</if>
<if test="lotNo != null">lot_no = #{lotNo},</if>
<if test="stackingId != null">stacking_id = #{stackingId},</if>
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
<if test="giveNum != null">give_num = #{giveNum},</if>
<if test="inOrOutId != null">in_or_out_id = #{inOrOutId},</if>
<if test="inOrOutDId != null">in_or_out_d_id = #{inOrOutDId},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="finishTime != null">finish_time = #{finishTime},</if>
<if test="exitId != null">exit_id = #{exitId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="productGuid != null">product_guid = #{productGuid},</if>
<if test="productId != null">product_id = #{productId},</if>
<if test="productName != null">product_name = #{productName},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="price != null">price = #{price},</if>
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="spec != null">spec = #{spec},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="spare4 != null">spare4 = #{spare4},</if>
<if test="spare5 != null">spare5 = #{spare5},</if>
<if test="spare6 != null">spare6 = #{spare6},</if>
<if test="productName != null">product_name = #{productName},</if>
<if test="spare7 != null">spare7 = #{spare7},</if>
<if test="spare8 != null">spare8 = #{spare8},</if>
<if test="spare9 != null">spare9 = #{spare9},</if>
<if test="spare10 != null">spare10 = #{spare10},</if>
<if test="spare11 != null">spare11 = #{spare11},</if>
<if test="spare12 != null">spare12 = #{spare12},</if>
<if test="spare13 != null">spare13 = #{spare13},</if>
<if test="spare14 != null">spare14 = #{spare14},</if>
<if test="spare15 != null">spare15 = #{spare15},</if>
<if test="spare16 != null">spare16 = #{spare16},</if>
<if test="spare17 != null">spare17 = #{spare17},</if>
<if test="spare18 != null">spare18 = #{spare18},</if>
<if test="spare19 != null">spare19 = #{spare19},</if>
<if test="spare20 != null">spare20 = #{spare20},</if>
<if test="spare21 != null">spare21 = #{spare21},</if>
<if test="spare22 != null">spare22 = #{spare22},</if>
<if test="spare23 != null">spare23 = #{spare23},</if>
<if test="spare24 != null">spare24 = #{spare24},</if>
<if test="spare25 != null">spare25 = #{spare25},</if>
<if test="spare26 != null">spare26 = #{spare26},</if>
<if test="spare27 != null">spare27 = #{spare27},</if>
<if test="spare28 != null">spare28 = #{spare28},</if>
<if test="spare29 != null">spare29 = #{spare29},</if>
<if test="spare30 != null">spare30 = #{spare30},</if>
<if test="spare31 != null">spare31 = #{spare31},</if>
<if test="spare32 != null">spare32 = #{spare32},</if>
<if test="spare33 != null">spare33 = #{spare33},</if>
<if test="spare34 != null">spare34 = #{spare34},</if>
<if test="spare35 != null">spare35 = #{spare35},</if>
<if test="spare36 != null">spare36 = #{spare36},</if>
<if test="spare37 != null">spare37 = #{spare37},</if>
<if test="spare38 != null">spare38 = #{spare38},</if>
<if test="spare39 != null">spare39 = #{spare39},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="productType != null">productType = #{productType},</if>
<if test="systemItem != null">systemItem = #{systemItem},</if>
<if test="productCtm != null">productCtm = #{productCtm},</if>
<if test="productCtu != null">productCtu = #{productCtu},</if>
<if test="upperNum != null">upperNum = #{upperNum},</if>
<if test="limitNum != null">limitNum = #{limitNum},</if>
<if test="enableFlag != null">enableFlag = #{enableFlag},</if>
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
<if test="lotNo != null">lot_no = #{lotNo},</if>
<if test="inOrOutId != null">in_or_out_id = #{inOrOutId},</if>
<if test="inOrOutDId != null">in_or_out_d_id = #{inOrOutDId},</if>
<if test="priceTotal != null">priceTotal = #{priceTotal},</if>
<if test="origin != null">origin = #{origin},</if>
<if test="turnovertype != null">turnovertype = #{turnovertype},</if>
<if test="account != null">account = #{account},</if>
<if test="purpose != null">purpose = #{purpose},</if>
<if test="units != null">units = #{units},</if>
<if test="contract != null">contract = #{contract},</if>
<if test="cases != null">cases = #{cases},</if>
<if test="quality != null">quality = #{quality},</if>
<if test="managementNo != null">managementNo = #{managementNo},</if>
</trim>
where job_id = #{jobId}
where job_detail_id = #{jobDetailId}
</update>
<delete id="deleteViewOutJobFlowByJobId" parameterType="String">
delete from view_out_job_flow where job_id = #{jobId}
<delete id="deleteViewOutJobFlowByJobDetailId" parameterType="String">
delete from view_out_job_flow where job_detail_id = #{jobDetailId}
</delete>
<delete id="deleteViewOutJobFlowByJobIds" parameterType="String">
delete from view_out_job_flow where job_id in
<foreach item="jobId" collection="array" open="(" separator="," close=")">
#{jobId}
<delete id="deleteViewOutJobFlowByJobDetailIds" parameterType="String">
delete from view_out_job_flow where job_detail_id in
<foreach item="jobDetailId" collection="array" open="(" separator="," close=")">
#{jobDetailId}
</foreach>
</delete>
</mapper>

View File

@@ -5,480 +5,85 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.search.ViewStockWarning.mapper.ViewStockWarningMapper">
<resultMap type="ViewStockWarning" id="ViewStockWarningResult">
<result property="stockId" column="stock_id" />
<result property="cargoSpaceId" column="cargo_space_id" />
<result property="stockStatus" column="stock_status" />
<result property="productStatus" column="product_status" />
<result property="lotNo" column="lot_no" />
<result property="inDate" column="in_date" />
<result property="backDate" column="back_date" />
<result property="quantity" column="quantity" />
<result property="jobId" column="job_id" />
<result property="trayCode" column="tray_code" />
<result property="outQuantity" column="out_quantity" />
<result property="stockinDetailId" column="stockin_detail_id" />
<result property="stockinId" column="stockin_id" />
<result property="inType" column="in_type" />
<result property="inClassId" column="in_class_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="stackingId" column="stacking_id" />
<result property="warehouseName" column="warehouse_name" />
<result property="address" column="address" />
<result property="cDesc" column="c_desc" />
<result property="warehouseKind" column="warehouse_kind" />
<result property="warehouseType" column="warehouse_type" />
<result property="isCurrent" column="is_current" />
<result property="productGuid" column="product_guid" />
<result property="productId" column="product_id" />
<result property="parentId" column="parent_id" />
<result property="price" column="price" />
<result property="cargoNo" column="cargo_no" />
<result property="unit" column="unit" />
<result property="spec" column="spec" />
<result property="remark" column="remark" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="spare4" column="spare4" />
<result property="productName" column="product_name" />
<result property="quantity" column="quantity" />
<result property="spare5" column="spare5" />
<result property="spare6" column="spare6" />
<result property="productName" column="product_name" />
<result property="spare7" column="spare7" />
<result property="spare8" column="spare8" />
<result property="spare9" column="spare9" />
<result property="spare10" column="spare10" />
<result property="spare11" column="spare11" />
<result property="spare12" column="spare12" />
<result property="spare13" column="spare13" />
<result property="spare14" column="spare14" />
<result property="spare15" column="spare15" />
<result property="spare16" column="spare16" />
<result property="spare17" column="spare17" />
<result property="spare18" column="spare18" />
<result property="spare19" column="spare19" />
<result property="spare20" column="spare20" />
<result property="spare21" column="spare21" />
<result property="spare22" column="spare22" />
<result property="spare23" column="spare23" />
<result property="spare24" column="spare24" />
<result property="spare25" column="spare25" />
<result property="spare26" column="spare26" />
<result property="spare27" column="spare27" />
<result property="spare28" column="spare28" />
<result property="spare29" column="spare29" />
<result property="spare30" column="spare30" />
<result property="spare31" column="spare31" />
<result property="spare32" column="spare32" />
<result property="spare33" column="spare33" />
<result property="spare34" column="spare34" />
<result property="spare35" column="spare35" />
<result property="spare36" column="spare36" />
<result property="spare37" column="spare37" />
<result property="spare38" column="spare38" />
<result property="spare39" column="spare39" />
<result property="cargoSpaceName" column="cargo_space_name" />
<result property="roadwayId" column="roadway_id" />
<result property="cargoAreaId" column="cargo_area_id" />
<result property="theType" column="the_type" />
<result property="theTypeName" column="the_type_name" />
<result property="thePlatoon" column="the_platoon" />
<result property="theColumn" column="the_column" />
<result property="theFloor" column="the_floor" />
<result property="cargoStatus" column="cargo_status" />
<result property="locked" column="locked" />
<result property="cargoHight" column="cargo_hight" />
<result property="issDouble" column="iss_double" />
<result property="groupCodingNo" column="group_coding_no" />
<result property="groupCoding" column="group_coding" />
<result property="cargoSpaceLogo" column="cargo_space_logo" />
<result property="thisCargoArea" column="this_cargo_area" />
<result property="flag" column="flag" />
</resultMap>
<sql id="selectViewStockWarningVo">
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_warning
select warehouse_id, warehouse_name, product_id, product_name, quantity, spare5, spare6, flag from view_stock_warning
</sql>
<select id="selectViewStockWarningList" parameterType="ViewStockWarning" resultMap="ViewStockWarningResult">
<include refid="selectViewStockWarningVo"/>
<where>
<if test="stockId != null and stockId != ''"> and stock_id like concat('%', #{stockId}, '%')</if>
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
<if test="productStatus != null and productStatus != ''"> and product_status = #{productStatus}</if>
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
<if test="inDate != null and inDate != ''"> and in_date like concat('%', #{inDate}, '%')</if>
<if test="backDate != null and backDate != ''"> and back_date like concat('%', #{backDate}, '%')</if>
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
<if test="stockinId != null and stockinId != ''"> and stockin_id like concat('%', #{stockinId}, '%')</if>
<if test="inType != null and inType != ''"> and in_type = #{inType}</if>
<if test="inClassId != null and inClassId != ''"> and in_class_id like concat('%', #{inClassId}, '%')</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id like concat('%', #{cargoAreaId}, '%')</if>
<if test="theType != null and theType != ''"> and the_type like concat('%', #{theType}, '%')</if>
<if test="theTypeName != null and theTypeName != ''"> and the_type_name like concat('%', #{theTypeName}, '%')</if>
<if test="thePlatoon != null "> and the_platoon like concat('%', #{thePlatoon}, '%')</if>
<if test="theColumn != null "> and the_column like concat('%', #{theColumn}, '%')</if>
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
<if test="cargoStatus != null and cargoStatus != ''"> and cargo_status = #{cargoStatus}</if>
<if test="locked != null and locked != ''"> and locked = #{locked}</if>
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight like concat('%', #{cargoHight}, '%')</if>
<if test="issDouble != null and issDouble != ''"> and iss_double like concat('%', #{issDouble}, '%')</if>
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no like concat('%', #{groupCodingNo}, '%')</if>
<if test="groupCoding != null and groupCoding != ''"> and group_coding like concat('%', #{groupCoding}, '%')</if>
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo like concat('%', #{cargoSpaceLogo}, '%')</if>
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area like concat('%', #{thisCargoArea}, '%')</if>
<if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if>
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
<if test="flag != null "> and flag = #{flag}</if>
</where>
</select>
<select id="selectViewStockWarningByStockId" parameterType="String" resultMap="ViewStockWarningResult">
<select id="selectViewStockWarningByWarehouseId" parameterType="String" resultMap="ViewStockWarningResult">
<include refid="selectViewStockWarningVo"/>
where stock_id = #{stockId}
where warehouse_id = #{warehouseId}
</select>
<insert id="insertViewStockWarning" parameterType="ViewStockWarning">
insert into view_stock_warning
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="stockId != null and stockId != ''">stock_id,</if>
<if test="cargoSpaceId != null">cargo_space_id,</if>
<if test="stockStatus != null">stock_status,</if>
<if test="productStatus != null">product_status,</if>
<if test="lotNo != null">lot_no,</if>
<if test="inDate != null">in_date,</if>
<if test="backDate != null">back_date,</if>
<if test="quantity != null">quantity,</if>
<if test="jobId != null">job_id,</if>
<if test="trayCode != null">tray_code,</if>
<if test="outQuantity != null">out_quantity,</if>
<if test="stockinDetailId != null">stockin_detail_id,</if>
<if test="stockinId != null">stockin_id,</if>
<if test="inType != null">in_type,</if>
<if test="inClassId != null">in_class_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="stackingId != null">stacking_id,</if>
<if test="warehouseName != null">warehouse_name,</if>
<if test="address != null">address,</if>
<if test="cDesc != null">c_desc,</if>
<if test="warehouseKind != null">warehouse_kind,</if>
<if test="warehouseType != null">warehouse_type,</if>
<if test="isCurrent != null">is_current,</if>
<if test="productGuid != null">product_guid,</if>
<if test="productId != null">product_id,</if>
<if test="parentId != null">parent_id,</if>
<if test="price != null">price,</if>
<if test="cargoNo != null">cargo_no,</if>
<if test="unit != null">unit,</if>
<if test="spec != null">spec,</if>
<if test="remark != null">remark,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="spare4 != null">spare4,</if>
<if test="productName != null">product_name,</if>
<if test="quantity != null">quantity,</if>
<if test="spare5 != null">spare5,</if>
<if test="spare6 != null">spare6,</if>
<if test="productName != null">product_name,</if>
<if test="spare7 != null">spare7,</if>
<if test="spare8 != null">spare8,</if>
<if test="spare9 != null">spare9,</if>
<if test="spare10 != null">spare10,</if>
<if test="spare11 != null">spare11,</if>
<if test="spare12 != null">spare12,</if>
<if test="spare13 != null">spare13,</if>
<if test="spare14 != null">spare14,</if>
<if test="spare15 != null">spare15,</if>
<if test="spare16 != null">spare16,</if>
<if test="spare17 != null">spare17,</if>
<if test="spare18 != null">spare18,</if>
<if test="spare19 != null">spare19,</if>
<if test="spare20 != null">spare20,</if>
<if test="spare21 != null">spare21,</if>
<if test="spare22 != null">spare22,</if>
<if test="spare23 != null">spare23,</if>
<if test="spare24 != null">spare24,</if>
<if test="spare25 != null">spare25,</if>
<if test="spare26 != null">spare26,</if>
<if test="spare27 != null">spare27,</if>
<if test="spare28 != null">spare28,</if>
<if test="spare29 != null">spare29,</if>
<if test="spare30 != null">spare30,</if>
<if test="spare31 != null">spare31,</if>
<if test="spare32 != null">spare32,</if>
<if test="spare33 != null">spare33,</if>
<if test="spare34 != null">spare34,</if>
<if test="spare35 != null">spare35,</if>
<if test="spare36 != null">spare36,</if>
<if test="spare37 != null">spare37,</if>
<if test="spare38 != null">spare38,</if>
<if test="spare39 != null">spare39,</if>
<if test="cargoSpaceName != null">cargo_space_name,</if>
<if test="roadwayId != null">roadway_id,</if>
<if test="cargoAreaId != null">cargo_area_id,</if>
<if test="theType != null">the_type,</if>
<if test="theTypeName != null">the_type_name,</if>
<if test="thePlatoon != null">the_platoon,</if>
<if test="theColumn != null">the_column,</if>
<if test="theFloor != null">the_floor,</if>
<if test="cargoStatus != null">cargo_status,</if>
<if test="locked != null">locked,</if>
<if test="cargoHight != null">cargo_hight,</if>
<if test="issDouble != null">iss_double,</if>
<if test="groupCodingNo != null">group_coding_no,</if>
<if test="groupCoding != null">group_coding,</if>
<if test="cargoSpaceLogo != null">cargo_space_logo,</if>
<if test="thisCargoArea != null">this_cargo_area,</if>
<if test="flag != null">flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="stockId != null and stockId != ''">#{stockId},</if>
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
<if test="stockStatus != null">#{stockStatus},</if>
<if test="productStatus != null">#{productStatus},</if>
<if test="lotNo != null">#{lotNo},</if>
<if test="inDate != null">#{inDate},</if>
<if test="backDate != null">#{backDate},</if>
<if test="quantity != null">#{quantity},</if>
<if test="jobId != null">#{jobId},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="outQuantity != null">#{outQuantity},</if>
<if test="stockinDetailId != null">#{stockinDetailId},</if>
<if test="stockinId != null">#{stockinId},</if>
<if test="inType != null">#{inType},</if>
<if test="inClassId != null">#{inClassId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="stackingId != null">#{stackingId},</if>
<if test="warehouseName != null">#{warehouseName},</if>
<if test="address != null">#{address},</if>
<if test="cDesc != null">#{cDesc},</if>
<if test="warehouseKind != null">#{warehouseKind},</if>
<if test="warehouseType != null">#{warehouseType},</if>
<if test="isCurrent != null">#{isCurrent},</if>
<if test="productGuid != null">#{productGuid},</if>
<if test="productId != null">#{productId},</if>
<if test="parentId != null">#{parentId},</if>
<if test="price != null">#{price},</if>
<if test="cargoNo != null">#{cargoNo},</if>
<if test="unit != null">#{unit},</if>
<if test="spec != null">#{spec},</if>
<if test="remark != null">#{remark},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="spare4 != null">#{spare4},</if>
<if test="productName != null">#{productName},</if>
<if test="quantity != null">#{quantity},</if>
<if test="spare5 != null">#{spare5},</if>
<if test="spare6 != null">#{spare6},</if>
<if test="productName != null">#{productName},</if>
<if test="spare7 != null">#{spare7},</if>
<if test="spare8 != null">#{spare8},</if>
<if test="spare9 != null">#{spare9},</if>
<if test="spare10 != null">#{spare10},</if>
<if test="spare11 != null">#{spare11},</if>
<if test="spare12 != null">#{spare12},</if>
<if test="spare13 != null">#{spare13},</if>
<if test="spare14 != null">#{spare14},</if>
<if test="spare15 != null">#{spare15},</if>
<if test="spare16 != null">#{spare16},</if>
<if test="spare17 != null">#{spare17},</if>
<if test="spare18 != null">#{spare18},</if>
<if test="spare19 != null">#{spare19},</if>
<if test="spare20 != null">#{spare20},</if>
<if test="spare21 != null">#{spare21},</if>
<if test="spare22 != null">#{spare22},</if>
<if test="spare23 != null">#{spare23},</if>
<if test="spare24 != null">#{spare24},</if>
<if test="spare25 != null">#{spare25},</if>
<if test="spare26 != null">#{spare26},</if>
<if test="spare27 != null">#{spare27},</if>
<if test="spare28 != null">#{spare28},</if>
<if test="spare29 != null">#{spare29},</if>
<if test="spare30 != null">#{spare30},</if>
<if test="spare31 != null">#{spare31},</if>
<if test="spare32 != null">#{spare32},</if>
<if test="spare33 != null">#{spare33},</if>
<if test="spare34 != null">#{spare34},</if>
<if test="spare35 != null">#{spare35},</if>
<if test="spare36 != null">#{spare36},</if>
<if test="spare37 != null">#{spare37},</if>
<if test="spare38 != null">#{spare38},</if>
<if test="spare39 != null">#{spare39},</if>
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
<if test="roadwayId != null">#{roadwayId},</if>
<if test="cargoAreaId != null">#{cargoAreaId},</if>
<if test="theType != null">#{theType},</if>
<if test="theTypeName != null">#{theTypeName},</if>
<if test="thePlatoon != null">#{thePlatoon},</if>
<if test="theColumn != null">#{theColumn},</if>
<if test="theFloor != null">#{theFloor},</if>
<if test="cargoStatus != null">#{cargoStatus},</if>
<if test="locked != null">#{locked},</if>
<if test="cargoHight != null">#{cargoHight},</if>
<if test="issDouble != null">#{issDouble},</if>
<if test="groupCodingNo != null">#{groupCodingNo},</if>
<if test="groupCoding != null">#{groupCoding},</if>
<if test="cargoSpaceLogo != null">#{cargoSpaceLogo},</if>
<if test="thisCargoArea != null">#{thisCargoArea},</if>
<if test="flag != null">#{flag},</if>
</trim>
</insert>
<update id="updateViewStockWarning" parameterType="ViewStockWarning">
update view_stock_warning
<trim prefix="SET" suffixOverrides=",">
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
<if test="productStatus != null">product_status = #{productStatus},</if>
<if test="lotNo != null">lot_no = #{lotNo},</if>
<if test="inDate != null">in_date = #{inDate},</if>
<if test="backDate != null">back_date = #{backDate},</if>
<if test="quantity != null">quantity = #{quantity},</if>
<if test="jobId != null">job_id = #{jobId},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
<if test="stockinDetailId != null">stockin_detail_id = #{stockinDetailId},</if>
<if test="stockinId != null">stockin_id = #{stockinId},</if>
<if test="inType != null">in_type = #{inType},</if>
<if test="inClassId != null">in_class_id = #{inClassId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="stackingId != null">stacking_id = #{stackingId},</if>
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
<if test="address != null">address = #{address},</if>
<if test="cDesc != null">c_desc = #{cDesc},</if>
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
<if test="isCurrent != null">is_current = #{isCurrent},</if>
<if test="productGuid != null">product_guid = #{productGuid},</if>
<if test="productId != null">product_id = #{productId},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="price != null">price = #{price},</if>
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="spec != null">spec = #{spec},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="spare4 != null">spare4 = #{spare4},</if>
<if test="productName != null">product_name = #{productName},</if>
<if test="quantity != null">quantity = #{quantity},</if>
<if test="spare5 != null">spare5 = #{spare5},</if>
<if test="spare6 != null">spare6 = #{spare6},</if>
<if test="productName != null">product_name = #{productName},</if>
<if test="spare7 != null">spare7 = #{spare7},</if>
<if test="spare8 != null">spare8 = #{spare8},</if>
<if test="spare9 != null">spare9 = #{spare9},</if>
<if test="spare10 != null">spare10 = #{spare10},</if>
<if test="spare11 != null">spare11 = #{spare11},</if>
<if test="spare12 != null">spare12 = #{spare12},</if>
<if test="spare13 != null">spare13 = #{spare13},</if>
<if test="spare14 != null">spare14 = #{spare14},</if>
<if test="spare15 != null">spare15 = #{spare15},</if>
<if test="spare16 != null">spare16 = #{spare16},</if>
<if test="spare17 != null">spare17 = #{spare17},</if>
<if test="spare18 != null">spare18 = #{spare18},</if>
<if test="spare19 != null">spare19 = #{spare19},</if>
<if test="spare20 != null">spare20 = #{spare20},</if>
<if test="spare21 != null">spare21 = #{spare21},</if>
<if test="spare22 != null">spare22 = #{spare22},</if>
<if test="spare23 != null">spare23 = #{spare23},</if>
<if test="spare24 != null">spare24 = #{spare24},</if>
<if test="spare25 != null">spare25 = #{spare25},</if>
<if test="spare26 != null">spare26 = #{spare26},</if>
<if test="spare27 != null">spare27 = #{spare27},</if>
<if test="spare28 != null">spare28 = #{spare28},</if>
<if test="spare29 != null">spare29 = #{spare29},</if>
<if test="spare30 != null">spare30 = #{spare30},</if>
<if test="spare31 != null">spare31 = #{spare31},</if>
<if test="spare32 != null">spare32 = #{spare32},</if>
<if test="spare33 != null">spare33 = #{spare33},</if>
<if test="spare34 != null">spare34 = #{spare34},</if>
<if test="spare35 != null">spare35 = #{spare35},</if>
<if test="spare36 != null">spare36 = #{spare36},</if>
<if test="spare37 != null">spare37 = #{spare37},</if>
<if test="spare38 != null">spare38 = #{spare38},</if>
<if test="spare39 != null">spare39 = #{spare39},</if>
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
<if test="cargoAreaId != null">cargo_area_id = #{cargoAreaId},</if>
<if test="theType != null">the_type = #{theType},</if>
<if test="theTypeName != null">the_type_name = #{theTypeName},</if>
<if test="thePlatoon != null">the_platoon = #{thePlatoon},</if>
<if test="theColumn != null">the_column = #{theColumn},</if>
<if test="theFloor != null">the_floor = #{theFloor},</if>
<if test="cargoStatus != null">cargo_status = #{cargoStatus},</if>
<if test="locked != null">locked = #{locked},</if>
<if test="cargoHight != null">cargo_hight = #{cargoHight},</if>
<if test="issDouble != null">iss_double = #{issDouble},</if>
<if test="groupCodingNo != null">group_coding_no = #{groupCodingNo},</if>
<if test="groupCoding != null">group_coding = #{groupCoding},</if>
<if test="cargoSpaceLogo != null">cargo_space_logo = #{cargoSpaceLogo},</if>
<if test="thisCargoArea != null">this_cargo_area = #{thisCargoArea},</if>
<if test="flag != null">flag = #{flag},</if>
</trim>
where stock_id = #{stockId}
where warehouse_id = #{warehouseId}
</update>
<delete id="deleteViewStockWarningByStockId" parameterType="String">
delete from view_stock_warning where stock_id = #{stockId}
<delete id="deleteViewStockWarningByWarehouseId" parameterType="String">
delete from view_stock_warning where warehouse_id = #{warehouseId}
</delete>
<delete id="deleteViewStockWarningByStockIds" parameterType="String">
delete from view_stock_warning where stock_id in
<foreach item="stockId" collection="array" open="(" separator="," close=")">
#{stockId}
<delete id="deleteViewStockWarningByWarehouseIds" parameterType="String">
delete from view_stock_warning where warehouse_id in
<foreach item="warehouseId" collection="array" open="(" separator="," close=")">
#{warehouseId}
</foreach>
</delete>
</mapper>

View File

@@ -10,9 +10,9 @@ export function listViewInJobFlow(query) {
}
// 查询入库作业流水详细
export function getViewInJobFlow(jobId) {
export function getViewInJobFlow(jobDetailId) {
return request({
url: '/search/ViewInJobFlow/' + jobId,
url: '/search/ViewInJobFlow/' + jobDetailId,
method: 'get'
})
}
@@ -36,9 +36,9 @@ export function updateViewInJobFlow(data) {
}
// 删除入库作业流水
export function delViewInJobFlow(jobId) {
export function delViewInJobFlow(jobDetailId) {
return request({
url: '/search/ViewInJobFlow/' + jobId,
url: '/search/ViewInJobFlow/' + jobDetailId,
method: 'delete'
})
}

View File

@@ -1,6 +1,6 @@
import request from '@/utils/request'
// 查询出库作业流水列表
// 查询出库作业流水Controller列表
export function listViewOutJobFlow(query) {
return request({
url: '/search/ViewOutJobFlow/list',
@@ -9,15 +9,15 @@ export function listViewOutJobFlow(query) {
})
}
// 查询出库作业流水详细
export function getViewOutJobFlow(jobId) {
// 查询出库作业流水Controller详细
export function getViewOutJobFlow(jobDetailId) {
return request({
url: '/search/ViewOutJobFlow/' + jobId,
url: '/search/ViewOutJobFlow/' + jobDetailId,
method: 'get'
})
}
// 新增出库作业流水
// 新增出库作业流水Controller
export function addViewOutJobFlow(data) {
return request({
url: '/search/ViewOutJobFlow',
@@ -26,7 +26,7 @@ export function addViewOutJobFlow(data) {
})
}
// 修改出库作业流水
// 修改出库作业流水Controller
export function updateViewOutJobFlow(data) {
return request({
url: '/search/ViewOutJobFlow',
@@ -35,10 +35,10 @@ export function updateViewOutJobFlow(data) {
})
}
// 删除出库作业流水
export function delViewOutJobFlow(jobId) {
// 删除出库作业流水Controller
export function delViewOutJobFlow(jobDetailId) {
return request({
url: '/search/ViewOutJobFlow/' + jobId,
url: '/search/ViewOutJobFlow/' + jobDetailId,
method: 'delete'
})
}

View File

@@ -1,6 +1,6 @@
import request from '@/utils/request'
// 查询库存预警查询列表
// 查询库存预警查询Controller列表
export function listViewStockWarning(query) {
return request({
url: '/search/ViewStockWarning/list',
@@ -9,15 +9,15 @@ export function listViewStockWarning(query) {
})
}
// 查询库存预警查询详细
export function getViewStockWarning(stockId) {
// 查询库存预警查询Controller详细
export function getViewStockWarning(warehouseId) {
return request({
url: '/search/ViewStockWarning/' + stockId,
url: '/search/ViewStockWarning/' + warehouseId,
method: 'get'
})
}
// 新增库存预警查询
// 新增库存预警查询Controller
export function addViewStockWarning(data) {
return request({
url: '/search/ViewStockWarning',
@@ -26,7 +26,7 @@ export function addViewStockWarning(data) {
})
}
// 修改库存预警查询
// 修改库存预警查询Controller
export function updateViewStockWarning(data) {
return request({
url: '/search/ViewStockWarning',
@@ -35,10 +35,10 @@ export function updateViewStockWarning(data) {
})
}
// 删除库存预警查询
export function delViewStockWarning(stockId) {
// 删除库存预警查询Controller
export function delViewStockWarning(warehouseId) {
return request({
url: '/search/ViewStockWarning/' + stockId,
url: '/search/ViewStockWarning/' + warehouseId,
method: 'delete'
})
}

View File

@@ -3,82 +3,55 @@
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="分组选项">
<el-checkbox-group v-model="queryParams.groupFields" @change="handleQuery">
<el-checkbox label="orderId">订单号</el-checkbox>
<el-checkbox label="productId">物料编号</el-checkbox>
<el-checkbox label="productName">物料名称</el-checkbox>
<el-checkbox label="lotNo">批号</el-checkbox>
<!-- <el-checkbox label="unit">单位</el-checkbox> -->
<!-- <el-checkbox label="warehouseId">仓库</el-checkbox> -->
<el-checkbox label="roadwayId">巷道</el-checkbox>
<el-checkbox label="cargoSpaceId">货位</el-checkbox>
<el-checkbox label="price">品号描述</el-checkbox>
<el-checkbox label="spec">规格</el-checkbox>
<!-- <el-checkbox label="parentId">产品分类</el-checkbox> -->
<el-checkbox label="cargoNo">英文描述</el-checkbox>
<!-- <el-checkbox label="spare1">型号</el-checkbox> -->
<el-checkbox label="spare2">单件净重</el-checkbox>
<!-- <el-checkbox label="spare3">颜色</el-checkbox> -->
<!-- <el-checkbox label="spare4">序列号</el-checkbox> -->
<!-- <el-checkbox label="spare5">电压</el-checkbox> -->
<!-- <el-checkbox label="spare6">功率</el-checkbox> -->
<!-- <el-checkbox label="spare7">相位</el-checkbox> -->
<!-- <el-checkbox label="spare8">毛重</el-checkbox> -->
<el-checkbox label="spare9">NC号</el-checkbox>
<el-checkbox label="spare10">电源线</el-checkbox>
<el-checkbox label="spare11">插头</el-checkbox>
<el-checkbox label="spare12">接嘴</el-checkbox>
<el-checkbox label="spare13">快捷码</el-checkbox>
<el-checkbox label="spare14">库存单位编号</el-checkbox>
<el-checkbox label="spare15">库存单位名称</el-checkbox>
<el-checkbox label="spare16">品号群组</el-checkbox>
<el-checkbox label="spare17">归类品</el-checkbox>
<el-checkbox label="spare18">计量体系</el-checkbox>
<el-checkbox label="spare19">群组名称</el-checkbox>
<el-checkbox label="spare20">批号管理</el-checkbox>
<el-checkbox label="spare21">状态</el-checkbox>
<el-checkbox label="spare22">产品大类</el-checkbox>
<el-checkbox label="spare23">产品二类</el-checkbox>
<el-checkbox label="spare24">产品线/产品系列</el-checkbox>
<el-checkbox label="spare25">BOM状态</el-checkbox>
<el-checkbox label="spare26">产品定位</el-checkbox>
<el-checkbox label="spare27">电脑板型号</el-checkbox>
<el-checkbox label="spare28">非标要求</el-checkbox>
<el-checkbox label="spare29">品牌</el-checkbox>
<el-checkbox label="spare30">非标颜色</el-checkbox>
<el-checkbox label="spare31">主颜色</el-checkbox>
<el-checkbox label="spare32">辅助颜色</el-checkbox>
<el-checkbox label="spare33">是否标准款</el-checkbox>
<el-checkbox label="spare34">包装方式</el-checkbox>
<el-checkbox label="spare35">主要包装方式</el-checkbox>
<el-checkbox label="spare36">长</el-checkbox>
<el-checkbox label="spare37">宽</el-checkbox>
<el-checkbox label="spare38">高</el-checkbox>
<el-checkbox label="spare39">包装材积</el-checkbox>
<el-checkbox label="orderId">库存状态</el-checkbox>
<el-checkbox label="orderId">套账</el-checkbox>
<el-checkbox label="orderId">托盘</el-checkbox>
<el-checkbox label="orderId">物料编码</el-checkbox>
<el-checkbox label="orderId">规格</el-checkbox>
<el-checkbox label="orderId">单价</el-checkbox>
<el-checkbox label="orderId">物料状态</el-checkbox>
<el-checkbox label="orderId">图号</el-checkbox>
<el-checkbox label="orderId">合同号</el-checkbox>
<el-checkbox label="orderId">台次</el-checkbox>
<el-checkbox label="orderId">件次</el-checkbox>
<el-checkbox label="orderId">质量</el-checkbox>
<el-checkbox label="orderId">常用编码</el-checkbox>
<el-checkbox label="orderId">入库单号</el-checkbox>
<el-checkbox label="orderId">供应商编码</el-checkbox>
<el-checkbox label="orderId">来源</el-checkbox>
<el-checkbox label="orderId">用途</el-checkbox>
</el-checkbox-group>
</el-form-item>
<br>
<!-- <el-form-item label="仓库" prop="warehouseId">
<el-select v-model="queryParams.warehouseId" placeholder="请选择仓库" clearable>
<el-option
v-for="dict in warehouseOptions"
:key="dict.warehouseId"
:label="dict.warehouseName"
:value="dict.warehouseId"
/>
</el-select>
</el-form-item> -->
<el-form-item label="订单号" prop="orderId">
<el-form-item label="巷道" prop="roadwayId">
<el-input
v-model="queryParams.orderId"
placeholder="请输入订单号"
v-model="queryParams.roadwayId"
placeholder="请输入巷道"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="货位" prop="cargoSpaceName">
<el-form-item label="层" prop="theFloor">
<el-input
v-model="queryParams.cargoSpaceName"
placeholder="请输入货位"
v-model="queryParams.theFloor"
placeholder="请输入层"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="排" prop="thePlatoon">
<el-input
v-model="queryParams.thePlatoon"
placeholder="请输入排"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="列" prop="theColumn">
<el-input
v-model="queryParams.theColumn"
placeholder="请输入列"
clearable
@keyup.enter.native="handleQuery"
/>
@@ -91,30 +64,169 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="规格型号" prop="spec">
<el-input
v-model="queryParams.spec"
placeholder="请输入规格型号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="常用编码" prop="parentId">
<el-input
v-model="queryParams.parentId"
placeholder="请输入常用编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="供应代号" prop="supplierId">
<el-input
v-model="queryParams.supplierId"
placeholder="请输入供应商代号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="供应名称" prop="supplierName">
<el-input
v-model="queryParams.supplierName"
placeholder="请输入供应商名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="物料名称" prop="productName">
<el-input
v-model="queryParams.productName"
placeholder="请输入物料名称关键字"
placeholder="请输入物料名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="NC号" prop="spare9">
<el-form-item label="入库单号" prop="stockinId">
<el-input
v-model="queryParams.spare9"
placeholder="请输入NC号"
v-model="queryParams.stockinId"
placeholder="请输入入库单号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="单价" prop="price">
<el-input
v-model="queryParams.price"
placeholder="请输入单价"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="托盘号" prop="trayCode">
<el-input
v-model="queryParams.trayCode"
placeholder="请输入托盘号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="合同号" prop="orderId">
<el-input
v-model="queryParams.orderId"
placeholder="请输入合同号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="用途" prop="spare4">
<el-select v-model="queryParams.spare4" placeholder="请选择用途" clearable>
<el-option
v-for="dict in dict.type.purpose_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="起始时间" prop="inDateStart">
<el-date-picker clearable
v-model="queryParams.inDateStart"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择起始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="截止日期" prop="inDateEnd">
<el-date-picker clearable
v-model="queryParams.inDateEnd"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择截止时间">
</el-date-picker>
</el-form-item>
<el-form-item label="周转类型" prop="voltage">
<el-select v-model="queryParams.voltage" placeholder="请选择周转类型" clearable>
<el-option
v-for="dict in dict.type.turnover_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="来源" prop="spare1">
<el-select v-model="queryParams.spare1" placeholder="请选择来源" clearable>
<el-option
v-for="dict in dict.type.origin_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="套账" prop="spare3">
<el-select v-model="queryParams.spare3" placeholder="请选择套账" clearable>
<el-option
v-for="dict in dict.type.account_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="形态类型" prop="productType">
<el-select v-model="queryParams.productType" placeholder="请选择形态类型" clearable>
<el-option
v-for="dict in dict.type.product_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="台次" prop="spare5">
<el-input
v-model="queryParams.spare5"
placeholder="请输入台次"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="件次" prop="power">
<el-input
v-model="queryParams.power"
placeholder="请输入件次"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="库外" prop="outside">
<el-input
v-model="queryParams.outside"
placeholder="请输入库外"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="货位" prop="cargoSpaceId">-->
<!-- <el-input-->
<!-- v-model="queryParams.cargoSpaceId"-->
<!-- placeholder="请输入货位"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -211,6 +323,7 @@ import { listWarehouse } from "@/api/bas/warehouse"
export default {
name: "StockSummary",
dicts:['product_status', 'stock_status','cargo_space_status','cargo_space_lock_status','product_type','origin_type','account_type','turnover_type','purpose_type','quality_type','check_flag'],
data() {
return {
// 遮罩层

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -288,13 +288,13 @@
</el-table-column>
<el-table-column label="库位编码" align="center" prop="cargoSpaceId" width="160"/>
<el-table-column label="托盘" align="center" prop="trayCode"/>
<el-table-column label="产品编码" align="center" prop="productId"/>
<el-table-column label="产品名称" align="center" prop="productName" width="160" />
<el-table-column label="物料编码" align="center" prop="productId"/>
<el-table-column label="物料名称" align="center" prop="productName" width="160" />
<el-table-column label="规格" align="center" prop="spec" width="160"/>
<el-table-column label="数量" align="center" prop="quantity"/>
<el-table-column label="单价" align="center" prop="price"/>
<el-table-column label="金额" align="center" prop="spare6"/>
<el-table-column label="产品状态" align="center" prop="productType">
<el-table-column label="物料状态" align="center" prop="productType">
<template slot-scope="scope">
<dict-tag :options="dict.type.product_type" :value="scope.row.productType"/>
</template>

File diff suppressed because it is too large Load Diff

View File

@@ -33,7 +33,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="规格型号" prop="spec">
<!-- <el-form-item label="规格型号" prop="spec">
<el-input
v-model="queryParams.spec"
placeholder="请输入规格型号"
@@ -198,7 +198,7 @@
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-form-item>-->
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -252,13 +252,13 @@
</el-row>
<el-table v-loading="loading" :data="ViewStockinHistoryList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="入库单号" align="center" prop="stockinId" />
<el-table-column label="入库子单号" align="center" prop="stockinDetailId" />
<!-- <el-table-column type="selection" width="55" align="center" />-->
<el-table-column label="入库单号" align="center" prop="stockinId" width="160"/>
<el-table-column label="入库子单号" align="center" prop="stockinDetailId" width="160"/>
<el-table-column label="物料编码" align="center" prop="productId" />
<el-table-column label="物料名称" align="center" prop="productName" />
<el-table-column label="规格型号" align="center" prop="spec" />
<el-table-column label="生产图号" align="center" prop="cargoNo" />
<el-table-column label="物料名称" align="center" prop="productName" width="160"/>
<el-table-column label="规格型号" align="center" prop="spec" width="160"/>
<el-table-column label="生产图号" align="center" prop="cargoNo" width="160"/>
<el-table-column label="产品状态" align="center" prop="productType">
<template slot-scope="scope">
<dict-tag :options="dict.type.product_type" :value="scope.row.productType"/>
@@ -270,8 +270,8 @@
<el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="单价" align="center" prop="price" />
<el-table-column label="单据金额" align="center" prop="priceTotal" />
<el-table-column label="供应商代号" align="center" prop="supplierNo" />
<el-table-column label="供应商名称" align="center" prop="supplierName" />
<el-table-column label="供应商代号" align="center" prop="supplierNo" width="120"/>
<el-table-column label="供应商名称" align="center" prop="supplierName" width="160"/>
<el-table-column label="合同号" align="center" prop="spare6" />
<el-table-column label="台次" align="center" prop="spare5" />
<el-table-column label="件次" align="center" prop="spare7" />
@@ -281,7 +281,7 @@
</template>
</el-table-column>
<el-table-column label="创建用户" align="center" prop="createManId" />
<el-table-column label="创建时间" align="center" prop="createDate" />
<el-table-column label="创建时间" align="center" prop="createDate" width="160"/>
<el-table-column label="单据状态" align="center" prop="status">
<template slot-scope="scope">
<dict-tag :options="dict.type.in_bill_status" :value="scope.row.status"/>

View File

@@ -33,7 +33,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="规格" prop="spec">
<!-- <el-form-item label="规格" prop="spec">
<el-input
v-model="queryParams.spec"
placeholder="请输入规格"
@@ -254,7 +254,7 @@
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-form-item>-->
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -262,7 +262,7 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="primary"
plain
@@ -293,7 +293,7 @@
@click="handleDelete"
v-hasPermi="['search:ViewStockoutHistory:remove']"
>删除</el-button>
</el-col>
</el-col>-->
<el-col :span="1.5">
<el-button
type="warning"
@@ -308,13 +308,13 @@
</el-row>
<el-table v-loading="loading" :data="ViewStockoutHistoryList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="出库单号" align="center" prop="stockoutId" />
<el-table-column label="出库子单号" align="center" prop="stockoutDetailId" />
<!-- <el-table-column type="selection" width="55" align="center" />-->
<el-table-column label="出库单号" align="center" prop="stockoutId" width="160"/>
<el-table-column label="出库子单号" align="center" prop="stockoutDetailId" width="160"/>
<el-table-column label="物料编码" align="center" prop="productId" />
<el-table-column label="物料名称" align="center" prop="productName" />
<el-table-column label="规格" align="center" prop="spec" />
<el-table-column label="图号" align="center" prop="cargoNo" />
<el-table-column label="物料名称" align="center" prop="productName" width="160"/>
<el-table-column label="规格" align="center" prop="spec" width="160"/>
<el-table-column label="图号" align="center" prop="cargoNo" width="160"/>
<el-table-column label="物料状态" align="center" prop="productType">
<template slot-scope="scope">
<dict-tag :options="dict.type.product_type" :value="scope.row.productType"/>
@@ -328,15 +328,15 @@
<el-table-column label="件次" align="center" prop="phase" />
<el-table-column label="单价" align="center" prop="price" />
<el-table-column label="出库金额" align="center" prop="priceTotal" />
<el-table-column label="客户编码" align="center" prop="customerNo" />
<el-table-column label="客户名称" align="center" prop="customerName" />
<el-table-column label="客户编码" align="center" prop="customerNo" width="120"/>
<el-table-column label="客户名称" align="center" prop="customerName" width="160"/>
<el-table-column label="单据状态" align="center" prop="status">
<template slot-scope="scope">
<dict-tag :options="dict.type.out_bill_status" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="创建人" align="center" prop="createManId" />
<el-table-column label="创建时间" align="center" prop="createDate" />
<el-table-column label="创建时间" align="center" prop="createDate" width="160"/>
<el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="套账" align="center" prop="account">
<template slot-scope="scope">
@@ -344,8 +344,8 @@
</template>
</el-table-column>
<el-table-column label="管理号" align="center" prop="managementNo" />
<el-table-column label="供应商编码" align="center" prop="supplierId" />
<el-table-column label="供应商" align="center" prop="supplierName" />
<el-table-column label="供应商编码" align="center" prop="supplierId" width="120"/>
<el-table-column label="供应商" align="center" prop="supplierName" width="160"/>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="用途" align="center" prop="purpose">
<template slot-scope="scope">
@@ -368,7 +368,7 @@
</template>
</el-table-column>
<el-table-column label="用途2" align="center" prop="purpose2" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
@@ -385,9 +385,9 @@
v-hasPermi="['search:ViewStockoutHistory:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table-column>-->
</el-table>
<pagination
v-show="total>0"
:total="total"