查询统计-库存预警 入库作业流水 出库作业流水
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user