入库作业流水、入库单据历史、出库单据历史、KPI所有页面改仓库下拉框
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewInJobFlow.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.search.ViewInJobFlow.domain.ViewInJobFlow;
|
||||
import com.ruoyi.search.ViewInJobFlow.service.IViewInJobFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 入库作业流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewInJobFlow")
|
||||
public class ViewInJobFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewInJobFlowService viewInJobFlowService;
|
||||
|
||||
/**
|
||||
* 查询入库作业流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewInJobFlow> list = viewInJobFlowService.selectViewInJobFlowList(viewInJobFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入库作业流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:export')")
|
||||
@Log(title = "入库作业流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
List<ViewInJobFlow> list = viewInJobFlowService.selectViewInJobFlowList(viewInJobFlow);
|
||||
ExcelUtil<ViewInJobFlow> util = new ExcelUtil<ViewInJobFlow>(ViewInJobFlow.class);
|
||||
util.exportExcel(response, list, "入库作业流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库作业流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:query')")
|
||||
@GetMapping(value = "/{jobId}")
|
||||
public AjaxResult getInfo(@PathVariable("jobId") String jobId)
|
||||
{
|
||||
return success(viewInJobFlowService.selectViewInJobFlowByJobId(jobId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库作业流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:add')")
|
||||
@Log(title = "入库作业流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
return toAjax(viewInJobFlowService.insertViewInJobFlow(viewInJobFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入库作业流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:edit')")
|
||||
@Log(title = "入库作业流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
return toAjax(viewInJobFlowService.updateViewInJobFlow(viewInJobFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入库作业流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewInJobFlow:remove')")
|
||||
@Log(title = "入库作业流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{jobIds}")
|
||||
public AjaxResult remove(@PathVariable String[] jobIds)
|
||||
{
|
||||
return toAjax(viewInJobFlowService.deleteViewInJobFlowByJobIds(jobIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,459 @@
|
||||
package com.ruoyi.search.ViewInJobFlow.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 入库作业流水对象 view_in_job_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public class ViewInJobFlow extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 作业ID */
|
||||
@Excel(name = "作业ID")
|
||||
private String jobId;
|
||||
|
||||
/** 子作业ID */
|
||||
@Excel(name = "子作业ID")
|
||||
private String jobDetailId;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private String taskNo;
|
||||
|
||||
/** 托盘号 */
|
||||
@Excel(name = "托盘号")
|
||||
private String trayCode;
|
||||
|
||||
/** 巷道ID */
|
||||
@Excel(name = "巷道ID")
|
||||
private String roadwayId;
|
||||
|
||||
/** 货位ID */
|
||||
@Excel(name = "货位ID")
|
||||
private String cargoSpaceId;
|
||||
|
||||
/** 货位名称 */
|
||||
@Excel(name = "货位名称")
|
||||
private String cargoSpaceName;
|
||||
|
||||
/** 排 */
|
||||
@Excel(name = "排")
|
||||
private Long thePlatoon;
|
||||
|
||||
/** 列 */
|
||||
@Excel(name = "列")
|
||||
private Long theColumn;
|
||||
|
||||
/** 层 */
|
||||
@Excel(name = "层")
|
||||
private Long theFloor;
|
||||
|
||||
/** 优先级 */
|
||||
@Excel(name = "优先级")
|
||||
private Long priority;
|
||||
|
||||
/** 执行阶段 */
|
||||
@Excel(name = "执行阶段")
|
||||
private String executionPhase;
|
||||
|
||||
/** 作业类型 */
|
||||
@Excel(name = "作业类型")
|
||||
private String inOrOut;
|
||||
|
||||
/** 入口ID */
|
||||
@Excel(name = "入口ID")
|
||||
private String entranceId;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
private String productId;
|
||||
|
||||
/** 批号 */
|
||||
@Excel(name = "批号")
|
||||
private String lotNo;
|
||||
|
||||
/** 垛型ID */
|
||||
@Excel(name = "垛型ID")
|
||||
private String stackingId;
|
||||
|
||||
/** 库存状态 */
|
||||
@Excel(name = "库存状态")
|
||||
private String stockStatus;
|
||||
|
||||
/** 入库数量 */
|
||||
@Excel(name = "入库数量")
|
||||
private String inQuantity;
|
||||
|
||||
/** 单据ID */
|
||||
@Excel(name = "单据ID")
|
||||
private String inOrOutId;
|
||||
|
||||
/** 子单据ID */
|
||||
@Excel(name = "子单据ID")
|
||||
private String inOrOutDId;
|
||||
|
||||
/** 开始时间 */
|
||||
@Excel(name = "开始时间")
|
||||
private String startTime;
|
||||
|
||||
/** 结束时间 */
|
||||
@Excel(name = "结束时间")
|
||||
private String finishTime;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
private String warehouseId;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
public void setJobId(String jobId)
|
||||
{
|
||||
this.jobId = jobId;
|
||||
}
|
||||
|
||||
public String getJobId()
|
||||
{
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobDetailId(String jobDetailId)
|
||||
{
|
||||
this.jobDetailId = jobDetailId;
|
||||
}
|
||||
|
||||
public String getJobDetailId()
|
||||
{
|
||||
return jobDetailId;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setTaskNo(String taskNo)
|
||||
{
|
||||
this.taskNo = taskNo;
|
||||
}
|
||||
|
||||
public String getTaskNo()
|
||||
{
|
||||
return taskNo;
|
||||
}
|
||||
|
||||
public void setTrayCode(String trayCode)
|
||||
{
|
||||
this.trayCode = trayCode;
|
||||
}
|
||||
|
||||
public String getTrayCode()
|
||||
{
|
||||
return trayCode;
|
||||
}
|
||||
|
||||
public void setRoadwayId(String roadwayId)
|
||||
{
|
||||
this.roadwayId = roadwayId;
|
||||
}
|
||||
|
||||
public String getRoadwayId()
|
||||
{
|
||||
return roadwayId;
|
||||
}
|
||||
|
||||
public void setCargoSpaceId(String cargoSpaceId)
|
||||
{
|
||||
this.cargoSpaceId = cargoSpaceId;
|
||||
}
|
||||
|
||||
public String getCargoSpaceId()
|
||||
{
|
||||
return cargoSpaceId;
|
||||
}
|
||||
|
||||
public void setCargoSpaceName(String cargoSpaceName)
|
||||
{
|
||||
this.cargoSpaceName = cargoSpaceName;
|
||||
}
|
||||
|
||||
public String getCargoSpaceName()
|
||||
{
|
||||
return cargoSpaceName;
|
||||
}
|
||||
|
||||
public void setThePlatoon(Long thePlatoon)
|
||||
{
|
||||
this.thePlatoon = thePlatoon;
|
||||
}
|
||||
|
||||
public Long getThePlatoon()
|
||||
{
|
||||
return thePlatoon;
|
||||
}
|
||||
|
||||
public void setTheColumn(Long theColumn)
|
||||
{
|
||||
this.theColumn = theColumn;
|
||||
}
|
||||
|
||||
public Long getTheColumn()
|
||||
{
|
||||
return theColumn;
|
||||
}
|
||||
|
||||
public void setTheFloor(Long theFloor)
|
||||
{
|
||||
this.theFloor = theFloor;
|
||||
}
|
||||
|
||||
public Long getTheFloor()
|
||||
{
|
||||
return theFloor;
|
||||
}
|
||||
|
||||
public void setPriority(Long priority)
|
||||
{
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public Long getPriority()
|
||||
{
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setExecutionPhase(String executionPhase)
|
||||
{
|
||||
this.executionPhase = executionPhase;
|
||||
}
|
||||
|
||||
public String getExecutionPhase()
|
||||
{
|
||||
return executionPhase;
|
||||
}
|
||||
|
||||
public void setInOrOut(String inOrOut)
|
||||
{
|
||||
this.inOrOut = inOrOut;
|
||||
}
|
||||
|
||||
public String getInOrOut()
|
||||
{
|
||||
return inOrOut;
|
||||
}
|
||||
|
||||
public void setEntranceId(String entranceId)
|
||||
{
|
||||
this.entranceId = entranceId;
|
||||
}
|
||||
|
||||
public String getEntranceId()
|
||||
{
|
||||
return entranceId;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setLotNo(String lotNo)
|
||||
{
|
||||
this.lotNo = lotNo;
|
||||
}
|
||||
|
||||
public String getLotNo()
|
||||
{
|
||||
return lotNo;
|
||||
}
|
||||
|
||||
public void setStackingId(String stackingId)
|
||||
{
|
||||
this.stackingId = stackingId;
|
||||
}
|
||||
|
||||
public String getStackingId()
|
||||
{
|
||||
return stackingId;
|
||||
}
|
||||
|
||||
public void setStockStatus(String stockStatus)
|
||||
{
|
||||
this.stockStatus = stockStatus;
|
||||
}
|
||||
|
||||
public String getStockStatus()
|
||||
{
|
||||
return stockStatus;
|
||||
}
|
||||
|
||||
public void setInQuantity(String inQuantity)
|
||||
{
|
||||
this.inQuantity = inQuantity;
|
||||
}
|
||||
|
||||
public String getInQuantity()
|
||||
{
|
||||
return inQuantity;
|
||||
}
|
||||
|
||||
public void setInOrOutId(String inOrOutId)
|
||||
{
|
||||
this.inOrOutId = inOrOutId;
|
||||
}
|
||||
|
||||
public String getInOrOutId()
|
||||
{
|
||||
return inOrOutId;
|
||||
}
|
||||
|
||||
public void setInOrOutDId(String inOrOutDId)
|
||||
{
|
||||
this.inOrOutDId = inOrOutDId;
|
||||
}
|
||||
|
||||
public String getInOrOutDId()
|
||||
{
|
||||
return inOrOutDId;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setFinishTime(String finishTime)
|
||||
{
|
||||
this.finishTime = finishTime;
|
||||
}
|
||||
|
||||
public String getFinishTime()
|
||||
{
|
||||
return finishTime;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setSpec(String spec)
|
||||
{
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec()
|
||||
{
|
||||
return spec;
|
||||
}
|
||||
|
||||
public void setCargoNo(String cargoNo)
|
||||
{
|
||||
this.cargoNo = cargoNo;
|
||||
}
|
||||
|
||||
public String getCargoNo()
|
||||
{
|
||||
return cargoNo;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("jobId", getJobId())
|
||||
.append("jobDetailId", getJobDetailId())
|
||||
.append("status", getStatus())
|
||||
.append("taskNo", getTaskNo())
|
||||
.append("trayCode", getTrayCode())
|
||||
.append("roadwayId", getRoadwayId())
|
||||
.append("cargoSpaceId", getCargoSpaceId())
|
||||
.append("cargoSpaceName", getCargoSpaceName())
|
||||
.append("thePlatoon", getThePlatoon())
|
||||
.append("theColumn", getTheColumn())
|
||||
.append("theFloor", getTheFloor())
|
||||
.append("priority", getPriority())
|
||||
.append("executionPhase", getExecutionPhase())
|
||||
.append("inOrOut", getInOrOut())
|
||||
.append("entranceId", getEntranceId())
|
||||
.append("productId", getProductId())
|
||||
.append("lotNo", getLotNo())
|
||||
.append("stackingId", getStackingId())
|
||||
.append("stockStatus", getStockStatus())
|
||||
.append("inQuantity", getInQuantity())
|
||||
.append("inOrOutId", getInOrOutId())
|
||||
.append("inOrOutDId", getInOrOutDId())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("startTime", getStartTime())
|
||||
.append("finishTime", getFinishTime())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("productName", getProductName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewInJobFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewInJobFlow.domain.ViewInJobFlow;
|
||||
|
||||
/**
|
||||
* 入库作业流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public interface ViewInJobFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询入库作业流水
|
||||
*
|
||||
* @param jobId 入库作业流水主键
|
||||
* @return 入库作业流水
|
||||
*/
|
||||
public ViewInJobFlow selectViewInJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 查询入库作业流水列表
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 入库作业流水集合
|
||||
*/
|
||||
public List<ViewInJobFlow> selectViewInJobFlowList(ViewInJobFlow viewInJobFlow);
|
||||
|
||||
/**
|
||||
* 新增入库作业流水
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewInJobFlow(ViewInJobFlow viewInJobFlow);
|
||||
|
||||
/**
|
||||
* 修改入库作业流水
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewInJobFlow(ViewInJobFlow viewInJobFlow);
|
||||
|
||||
/**
|
||||
* 删除入库作业流水
|
||||
*
|
||||
* @param jobId 入库作业流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewInJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 批量删除入库作业流水
|
||||
*
|
||||
* @param jobIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewInJobFlowByJobIds(String[] jobIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewInJobFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewInJobFlow.domain.ViewInJobFlow;
|
||||
|
||||
/**
|
||||
* 入库作业流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public interface IViewInJobFlowService
|
||||
{
|
||||
/**
|
||||
* 查询入库作业流水
|
||||
*
|
||||
* @param jobId 入库作业流水主键
|
||||
* @return 入库作业流水
|
||||
*/
|
||||
public ViewInJobFlow selectViewInJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 查询入库作业流水列表
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 入库作业流水集合
|
||||
*/
|
||||
public List<ViewInJobFlow> selectViewInJobFlowList(ViewInJobFlow viewInJobFlow);
|
||||
|
||||
/**
|
||||
* 新增入库作业流水
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewInJobFlow(ViewInJobFlow viewInJobFlow);
|
||||
|
||||
/**
|
||||
* 修改入库作业流水
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewInJobFlow(ViewInJobFlow viewInJobFlow);
|
||||
|
||||
/**
|
||||
* 批量删除入库作业流水
|
||||
*
|
||||
* @param jobIds 需要删除的入库作业流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewInJobFlowByJobIds(String[] jobIds);
|
||||
|
||||
/**
|
||||
* 删除入库作业流水信息
|
||||
*
|
||||
* @param jobId 入库作业流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewInJobFlowByJobId(String jobId);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewInJobFlow.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.search.ViewInJobFlow.mapper.ViewInJobFlowMapper;
|
||||
import com.ruoyi.search.ViewInJobFlow.domain.ViewInJobFlow;
|
||||
import com.ruoyi.search.ViewInJobFlow.service.IViewInJobFlowService;
|
||||
|
||||
/**
|
||||
* 入库作业流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewInJobFlowServiceImpl implements IViewInJobFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewInJobFlowMapper viewInJobFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询入库作业流水
|
||||
*
|
||||
* @param jobId 入库作业流水主键
|
||||
* @return 入库作业流水
|
||||
*/
|
||||
@Override
|
||||
public ViewInJobFlow selectViewInJobFlowByJobId(String jobId)
|
||||
{
|
||||
return viewInJobFlowMapper.selectViewInJobFlowByJobId(jobId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入库作业流水列表
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 入库作业流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewInJobFlow> selectViewInJobFlowList(ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
return viewInJobFlowMapper.selectViewInJobFlowList(viewInJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库作业流水
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewInJobFlow(ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
viewInJobFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewInJobFlowMapper.insertViewInJobFlow(viewInJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入库作业流水
|
||||
*
|
||||
* @param viewInJobFlow 入库作业流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewInJobFlow(ViewInJobFlow viewInJobFlow)
|
||||
{
|
||||
return viewInJobFlowMapper.updateViewInJobFlow(viewInJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除入库作业流水
|
||||
*
|
||||
* @param jobIds 需要删除的入库作业流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewInJobFlowByJobIds(String[] jobIds)
|
||||
{
|
||||
return viewInJobFlowMapper.deleteViewInJobFlowByJobIds(jobIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入库作业流水信息
|
||||
*
|
||||
* @param jobId 入库作业流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewInJobFlowByJobId(String jobId)
|
||||
{
|
||||
return viewInJobFlowMapper.deleteViewInJobFlowByJobId(jobId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewStockinHistory.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.search.ViewStockinHistory.domain.ViewStockinHistory;
|
||||
import com.ruoyi.search.ViewStockinHistory.service.IViewStockinHistoryService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 入库单据历史Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewStockinHistory")
|
||||
public class ViewStockinHistoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewStockinHistoryService viewStockinHistoryService;
|
||||
|
||||
/**
|
||||
* 查询入库单据历史列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockinHistory:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
startPage();
|
||||
List<ViewStockinHistory> list = viewStockinHistoryService.selectViewStockinHistoryList(viewStockinHistory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入库单据历史列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockinHistory:export')")
|
||||
@Log(title = "入库单据历史", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
List<ViewStockinHistory> list = viewStockinHistoryService.selectViewStockinHistoryList(viewStockinHistory);
|
||||
ExcelUtil<ViewStockinHistory> util = new ExcelUtil<ViewStockinHistory>(ViewStockinHistory.class);
|
||||
util.exportExcel(response, list, "入库单据历史数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库单据历史详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockinHistory:query')")
|
||||
@GetMapping(value = "/{stockinGuid}")
|
||||
public AjaxResult getInfo(@PathVariable("stockinGuid") String stockinGuid)
|
||||
{
|
||||
return success(viewStockinHistoryService.selectViewStockinHistoryByStockinGuid(stockinGuid));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库单据历史
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockinHistory:add')")
|
||||
@Log(title = "入库单据历史", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
return toAjax(viewStockinHistoryService.insertViewStockinHistory(viewStockinHistory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入库单据历史
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockinHistory:edit')")
|
||||
@Log(title = "入库单据历史", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
return toAjax(viewStockinHistoryService.updateViewStockinHistory(viewStockinHistory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入库单据历史
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockinHistory:remove')")
|
||||
@Log(title = "入库单据历史", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{stockinGuids}")
|
||||
public AjaxResult remove(@PathVariable String[] stockinGuids)
|
||||
{
|
||||
return toAjax(viewStockinHistoryService.deleteViewStockinHistoryByStockinGuids(stockinGuids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,579 @@
|
||||
package com.ruoyi.search.ViewStockinHistory.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 入库单据历史对象 view_stockin_history
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public class ViewStockinHistory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 入库单guid */
|
||||
@Excel(name = "入库单guid")
|
||||
private String stockinGuid;
|
||||
|
||||
/** 入库单号 */
|
||||
@Excel(name = "入库单号")
|
||||
private String stockinId;
|
||||
|
||||
/** 入库类型 */
|
||||
@Excel(name = "入库类型")
|
||||
private String inType;
|
||||
|
||||
/** 创建时间 */
|
||||
@Excel(name = "创建时间")
|
||||
private String createDate;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createManId;
|
||||
|
||||
/** 单据状态 */
|
||||
@Excel(name = "单据状态")
|
||||
private String status;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
private String warehouseId;
|
||||
|
||||
/** 完成时间 */
|
||||
@Excel(name = "完成时间")
|
||||
private String finishDate;
|
||||
|
||||
/** ERP单号 */
|
||||
@Excel(name = "ERP单号")
|
||||
private String erpBill;
|
||||
|
||||
/** 单据来源 */
|
||||
@Excel(name = "单据来源")
|
||||
private String stockSource;
|
||||
|
||||
/** 部门编码 */
|
||||
@Excel(name = "部门编码")
|
||||
private String departmentNo;
|
||||
|
||||
/** 班组编码 */
|
||||
@Excel(name = "班组编码")
|
||||
private String classNo;
|
||||
|
||||
/** 供应商编号 */
|
||||
@Excel(name = "供应商编号")
|
||||
private String supplierNo;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 供应商简称 */
|
||||
@Excel(name = "供应商简称")
|
||||
private String simpleName;
|
||||
|
||||
/** 联系人 */
|
||||
@Excel(name = "联系人")
|
||||
private String contactName;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String contactNumber;
|
||||
|
||||
/** 供应商地址 */
|
||||
@Excel(name = "供应商地址")
|
||||
private String address;
|
||||
|
||||
/** 入库明细ID */
|
||||
@Excel(name = "入库明细ID")
|
||||
private String stockinDetailId;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String lotNo;
|
||||
|
||||
/** 计划数量 */
|
||||
@Excel(name = "计划数量")
|
||||
private String quantity;
|
||||
|
||||
/** 计划箱数 */
|
||||
@Excel(name = "计划箱数")
|
||||
private String quantityX;
|
||||
|
||||
/** 计划件数 */
|
||||
@Excel(name = "计划件数")
|
||||
private String quantityJ;
|
||||
|
||||
/** 实际数量 */
|
||||
@Excel(name = "实际数量")
|
||||
private String assignNum;
|
||||
|
||||
/** 实际箱数 */
|
||||
@Excel(name = "实际箱数")
|
||||
private String assignNumX;
|
||||
|
||||
/** 实际件数 */
|
||||
@Excel(name = "实际件数")
|
||||
private String assignNumJ;
|
||||
|
||||
/** 扫码数量 */
|
||||
@Excel(name = "扫码数量")
|
||||
private String scanNum;
|
||||
|
||||
/** 扫码箱数 */
|
||||
@Excel(name = "扫码箱数")
|
||||
private String scanNumX;
|
||||
|
||||
/** 扫码件数 */
|
||||
@Excel(name = "扫码件数")
|
||||
private String scanNumJ;
|
||||
|
||||
/** 入库日期 */
|
||||
@Excel(name = "入库日期")
|
||||
private String printDate;
|
||||
|
||||
/** 库存状态 */
|
||||
@Excel(name = "库存状态")
|
||||
private String stockStatus;
|
||||
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
private String price;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
private String productId;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
public void setStockinGuid(String stockinGuid)
|
||||
{
|
||||
this.stockinGuid = stockinGuid;
|
||||
}
|
||||
|
||||
public String getStockinGuid()
|
||||
{
|
||||
return stockinGuid;
|
||||
}
|
||||
|
||||
public void setStockinId(String stockinId)
|
||||
{
|
||||
this.stockinId = stockinId;
|
||||
}
|
||||
|
||||
public String getStockinId()
|
||||
{
|
||||
return stockinId;
|
||||
}
|
||||
|
||||
public void setInType(String inType)
|
||||
{
|
||||
this.inType = inType;
|
||||
}
|
||||
|
||||
public String getInType()
|
||||
{
|
||||
return inType;
|
||||
}
|
||||
|
||||
public void setCreateDate(String createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
public String getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateManId(String createManId)
|
||||
{
|
||||
this.createManId = createManId;
|
||||
}
|
||||
|
||||
public String getCreateManId()
|
||||
{
|
||||
return createManId;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setFinishDate(String finishDate)
|
||||
{
|
||||
this.finishDate = finishDate;
|
||||
}
|
||||
|
||||
public String getFinishDate()
|
||||
{
|
||||
return finishDate;
|
||||
}
|
||||
|
||||
public void setErpBill(String erpBill)
|
||||
{
|
||||
this.erpBill = erpBill;
|
||||
}
|
||||
|
||||
public String getErpBill()
|
||||
{
|
||||
return erpBill;
|
||||
}
|
||||
|
||||
public void setStockSource(String stockSource)
|
||||
{
|
||||
this.stockSource = stockSource;
|
||||
}
|
||||
|
||||
public String getStockSource()
|
||||
{
|
||||
return stockSource;
|
||||
}
|
||||
|
||||
public void setDepartmentNo(String departmentNo)
|
||||
{
|
||||
this.departmentNo = departmentNo;
|
||||
}
|
||||
|
||||
public String getDepartmentNo()
|
||||
{
|
||||
return departmentNo;
|
||||
}
|
||||
|
||||
public void setClassNo(String classNo)
|
||||
{
|
||||
this.classNo = classNo;
|
||||
}
|
||||
|
||||
public String getClassNo()
|
||||
{
|
||||
return classNo;
|
||||
}
|
||||
|
||||
public void setSupplierNo(String supplierNo)
|
||||
{
|
||||
this.supplierNo = supplierNo;
|
||||
}
|
||||
|
||||
public String getSupplierNo()
|
||||
{
|
||||
return supplierNo;
|
||||
}
|
||||
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
|
||||
public void setSimpleName(String simpleName)
|
||||
{
|
||||
this.simpleName = simpleName;
|
||||
}
|
||||
|
||||
public String getSimpleName()
|
||||
{
|
||||
return simpleName;
|
||||
}
|
||||
|
||||
public void setContactName(String contactName)
|
||||
{
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public String getContactName()
|
||||
{
|
||||
return contactName;
|
||||
}
|
||||
|
||||
public void setContactNumber(String contactNumber)
|
||||
{
|
||||
this.contactNumber = contactNumber;
|
||||
}
|
||||
|
||||
public String getContactNumber()
|
||||
{
|
||||
return contactNumber;
|
||||
}
|
||||
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setStockinDetailId(String stockinDetailId)
|
||||
{
|
||||
this.stockinDetailId = stockinDetailId;
|
||||
}
|
||||
|
||||
public String getStockinDetailId()
|
||||
{
|
||||
return stockinDetailId;
|
||||
}
|
||||
|
||||
public void setLotNo(String lotNo)
|
||||
{
|
||||
this.lotNo = lotNo;
|
||||
}
|
||||
|
||||
public String getLotNo()
|
||||
{
|
||||
return lotNo;
|
||||
}
|
||||
|
||||
public void setQuantity(String quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public String getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantityX(String quantityX)
|
||||
{
|
||||
this.quantityX = quantityX;
|
||||
}
|
||||
|
||||
public String getQuantityX()
|
||||
{
|
||||
return quantityX;
|
||||
}
|
||||
|
||||
public void setQuantityJ(String quantityJ)
|
||||
{
|
||||
this.quantityJ = quantityJ;
|
||||
}
|
||||
|
||||
public String getQuantityJ()
|
||||
{
|
||||
return quantityJ;
|
||||
}
|
||||
|
||||
public void setAssignNum(String assignNum)
|
||||
{
|
||||
this.assignNum = assignNum;
|
||||
}
|
||||
|
||||
public String getAssignNum()
|
||||
{
|
||||
return assignNum;
|
||||
}
|
||||
|
||||
public void setAssignNumX(String assignNumX)
|
||||
{
|
||||
this.assignNumX = assignNumX;
|
||||
}
|
||||
|
||||
public String getAssignNumX()
|
||||
{
|
||||
return assignNumX;
|
||||
}
|
||||
|
||||
public void setAssignNumJ(String assignNumJ)
|
||||
{
|
||||
this.assignNumJ = assignNumJ;
|
||||
}
|
||||
|
||||
public String getAssignNumJ()
|
||||
{
|
||||
return assignNumJ;
|
||||
}
|
||||
|
||||
public void setScanNum(String scanNum)
|
||||
{
|
||||
this.scanNum = scanNum;
|
||||
}
|
||||
|
||||
public String getScanNum()
|
||||
{
|
||||
return scanNum;
|
||||
}
|
||||
|
||||
public void setScanNumX(String scanNumX)
|
||||
{
|
||||
this.scanNumX = scanNumX;
|
||||
}
|
||||
|
||||
public String getScanNumX()
|
||||
{
|
||||
return scanNumX;
|
||||
}
|
||||
|
||||
public void setScanNumJ(String scanNumJ)
|
||||
{
|
||||
this.scanNumJ = scanNumJ;
|
||||
}
|
||||
|
||||
public String getScanNumJ()
|
||||
{
|
||||
return scanNumJ;
|
||||
}
|
||||
|
||||
public void setPrintDate(String printDate)
|
||||
{
|
||||
this.printDate = printDate;
|
||||
}
|
||||
|
||||
public String getPrintDate()
|
||||
{
|
||||
return printDate;
|
||||
}
|
||||
|
||||
public void setStockStatus(String stockStatus)
|
||||
{
|
||||
this.stockStatus = stockStatus;
|
||||
}
|
||||
|
||||
public String getStockStatus()
|
||||
{
|
||||
return stockStatus;
|
||||
}
|
||||
|
||||
public void setPrice(String price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setCargoNo(String cargoNo)
|
||||
{
|
||||
this.cargoNo = cargoNo;
|
||||
}
|
||||
|
||||
public String getCargoNo()
|
||||
{
|
||||
return cargoNo;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setSpec(String spec)
|
||||
{
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec()
|
||||
{
|
||||
return spec;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("stockinGuid", getStockinGuid())
|
||||
.append("stockinId", getStockinId())
|
||||
.append("inType", getInType())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("createManId", getCreateManId())
|
||||
.append("status", getStatus())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("finishDate", getFinishDate())
|
||||
.append("erpBill", getErpBill())
|
||||
.append("stockSource", getStockSource())
|
||||
.append("departmentNo", getDepartmentNo())
|
||||
.append("classNo", getClassNo())
|
||||
.append("supplierNo", getSupplierNo())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("simpleName", getSimpleName())
|
||||
.append("contactName", getContactName())
|
||||
.append("contactNumber", getContactNumber())
|
||||
.append("address", getAddress())
|
||||
.append("stockinDetailId", getStockinDetailId())
|
||||
.append("lotNo", getLotNo())
|
||||
.append("quantity", getQuantity())
|
||||
.append("quantityX", getQuantityX())
|
||||
.append("quantityJ", getQuantityJ())
|
||||
.append("assignNum", getAssignNum())
|
||||
.append("assignNumX", getAssignNumX())
|
||||
.append("assignNumJ", getAssignNumJ())
|
||||
.append("scanNum", getScanNum())
|
||||
.append("scanNumX", getScanNumX())
|
||||
.append("scanNumJ", getScanNumJ())
|
||||
.append("printDate", getPrintDate())
|
||||
.append("stockStatus", getStockStatus())
|
||||
.append("price", getPrice())
|
||||
.append("remark", getRemark())
|
||||
.append("productId", getProductId())
|
||||
.append("productName", getProductName())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.append("spec", getSpec())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewStockinHistory.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewStockinHistory.domain.ViewStockinHistory;
|
||||
|
||||
/**
|
||||
* 入库单据历史Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public interface ViewStockinHistoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询入库单据历史
|
||||
*
|
||||
* @param stockinGuid 入库单据历史主键
|
||||
* @return 入库单据历史
|
||||
*/
|
||||
public ViewStockinHistory selectViewStockinHistoryByStockinGuid(String stockinGuid);
|
||||
|
||||
/**
|
||||
* 查询入库单据历史列表
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 入库单据历史集合
|
||||
*/
|
||||
public List<ViewStockinHistory> selectViewStockinHistoryList(ViewStockinHistory viewStockinHistory);
|
||||
|
||||
/**
|
||||
* 新增入库单据历史
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewStockinHistory(ViewStockinHistory viewStockinHistory);
|
||||
|
||||
/**
|
||||
* 修改入库单据历史
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewStockinHistory(ViewStockinHistory viewStockinHistory);
|
||||
|
||||
/**
|
||||
* 删除入库单据历史
|
||||
*
|
||||
* @param stockinGuid 入库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockinHistoryByStockinGuid(String stockinGuid);
|
||||
|
||||
/**
|
||||
* 批量删除入库单据历史
|
||||
*
|
||||
* @param stockinGuids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockinHistoryByStockinGuids(String[] stockinGuids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewStockinHistory.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewStockinHistory.domain.ViewStockinHistory;
|
||||
|
||||
/**
|
||||
* 入库单据历史Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public interface IViewStockinHistoryService
|
||||
{
|
||||
/**
|
||||
* 查询入库单据历史
|
||||
*
|
||||
* @param stockinGuid 入库单据历史主键
|
||||
* @return 入库单据历史
|
||||
*/
|
||||
public ViewStockinHistory selectViewStockinHistoryByStockinGuid(String stockinGuid);
|
||||
|
||||
/**
|
||||
* 查询入库单据历史列表
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 入库单据历史集合
|
||||
*/
|
||||
public List<ViewStockinHistory> selectViewStockinHistoryList(ViewStockinHistory viewStockinHistory);
|
||||
|
||||
/**
|
||||
* 新增入库单据历史
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewStockinHistory(ViewStockinHistory viewStockinHistory);
|
||||
|
||||
/**
|
||||
* 修改入库单据历史
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewStockinHistory(ViewStockinHistory viewStockinHistory);
|
||||
|
||||
/**
|
||||
* 批量删除入库单据历史
|
||||
*
|
||||
* @param stockinGuids 需要删除的入库单据历史主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockinHistoryByStockinGuids(String[] stockinGuids);
|
||||
|
||||
/**
|
||||
* 删除入库单据历史信息
|
||||
*
|
||||
* @param stockinGuid 入库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockinHistoryByStockinGuid(String stockinGuid);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.search.ViewStockinHistory.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.search.ViewStockinHistory.mapper.ViewStockinHistoryMapper;
|
||||
import com.ruoyi.search.ViewStockinHistory.domain.ViewStockinHistory;
|
||||
import com.ruoyi.search.ViewStockinHistory.service.IViewStockinHistoryService;
|
||||
|
||||
/**
|
||||
* 入库单据历史Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewStockinHistoryServiceImpl implements IViewStockinHistoryService
|
||||
{
|
||||
@Autowired
|
||||
private ViewStockinHistoryMapper viewStockinHistoryMapper;
|
||||
|
||||
/**
|
||||
* 查询入库单据历史
|
||||
*
|
||||
* @param stockinGuid 入库单据历史主键
|
||||
* @return 入库单据历史
|
||||
*/
|
||||
@Override
|
||||
public ViewStockinHistory selectViewStockinHistoryByStockinGuid(String stockinGuid)
|
||||
{
|
||||
return viewStockinHistoryMapper.selectViewStockinHistoryByStockinGuid(stockinGuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入库单据历史列表
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 入库单据历史
|
||||
*/
|
||||
@Override
|
||||
public List<ViewStockinHistory> selectViewStockinHistoryList(ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
return viewStockinHistoryMapper.selectViewStockinHistoryList(viewStockinHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库单据历史
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewStockinHistory(ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
return viewStockinHistoryMapper.insertViewStockinHistory(viewStockinHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入库单据历史
|
||||
*
|
||||
* @param viewStockinHistory 入库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewStockinHistory(ViewStockinHistory viewStockinHistory)
|
||||
{
|
||||
return viewStockinHistoryMapper.updateViewStockinHistory(viewStockinHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除入库单据历史
|
||||
*
|
||||
* @param stockinGuids 需要删除的入库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewStockinHistoryByStockinGuids(String[] stockinGuids)
|
||||
{
|
||||
return viewStockinHistoryMapper.deleteViewStockinHistoryByStockinGuids(stockinGuids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入库单据历史信息
|
||||
*
|
||||
* @param stockinGuid 入库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewStockinHistoryByStockinGuid(String stockinGuid)
|
||||
{
|
||||
return viewStockinHistoryMapper.deleteViewStockinHistoryByStockinGuid(stockinGuid);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewStockoutHistory.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.search.ViewStockoutHistory.domain.ViewStockoutHistory;
|
||||
import com.ruoyi.search.ViewStockoutHistory.service.IViewStockoutHistoryService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 出库单据历史Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewStockoutHistory")
|
||||
public class ViewStockoutHistoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewStockoutHistoryService viewStockoutHistoryService;
|
||||
|
||||
/**
|
||||
* 查询出库单据历史列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockoutHistory:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
startPage();
|
||||
List<ViewStockoutHistory> list = viewStockoutHistoryService.selectViewStockoutHistoryList(viewStockoutHistory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出出库单据历史列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockoutHistory:export')")
|
||||
@Log(title = "出库单据历史", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
List<ViewStockoutHistory> list = viewStockoutHistoryService.selectViewStockoutHistoryList(viewStockoutHistory);
|
||||
ExcelUtil<ViewStockoutHistory> util = new ExcelUtil<ViewStockoutHistory>(ViewStockoutHistory.class);
|
||||
util.exportExcel(response, list, "出库单据历史数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库单据历史详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockoutHistory:query')")
|
||||
@GetMapping(value = "/{stockoutId}")
|
||||
public AjaxResult getInfo(@PathVariable("stockoutId") String stockoutId)
|
||||
{
|
||||
return success(viewStockoutHistoryService.selectViewStockoutHistoryByStockoutId(stockoutId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库单据历史
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockoutHistory:add')")
|
||||
@Log(title = "出库单据历史", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
return toAjax(viewStockoutHistoryService.insertViewStockoutHistory(viewStockoutHistory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库单据历史
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockoutHistory:edit')")
|
||||
@Log(title = "出库单据历史", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
return toAjax(viewStockoutHistoryService.updateViewStockoutHistory(viewStockoutHistory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库单据历史
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewStockoutHistory:remove')")
|
||||
@Log(title = "出库单据历史", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{stockoutIds}")
|
||||
public AjaxResult remove(@PathVariable String[] stockoutIds)
|
||||
{
|
||||
return toAjax(viewStockoutHistoryService.deleteViewStockoutHistoryByStockoutIds(stockoutIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,324 @@
|
||||
package com.ruoyi.search.ViewStockoutHistory.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 出库单据历史对象 view_stockout_history
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public class ViewStockoutHistory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 出库单号 */
|
||||
@Excel(name = "出库单号")
|
||||
private String stockoutId;
|
||||
|
||||
/** 出库类型 */
|
||||
@Excel(name = "出库类型")
|
||||
private String outType;
|
||||
|
||||
/** 创建日期 */
|
||||
@Excel(name = "创建日期")
|
||||
private String createDate;
|
||||
|
||||
/** 创建人ID */
|
||||
@Excel(name = "创建人ID")
|
||||
private String createManId;
|
||||
|
||||
/** 出库状态 */
|
||||
@Excel(name = "出库状态")
|
||||
private String status;
|
||||
|
||||
/** 出库来源 */
|
||||
@Excel(name = "出库来源")
|
||||
private String stockoutSource;
|
||||
|
||||
/** 出口类型 */
|
||||
@Excel(name = "出口类型")
|
||||
private String exitId;
|
||||
|
||||
/** 出库明细ID */
|
||||
@Excel(name = "出库明细ID")
|
||||
private String stockoutDetailId;
|
||||
|
||||
/** 产品ID */
|
||||
@Excel(name = "产品ID")
|
||||
private String productId;
|
||||
|
||||
/** 产品名称 */
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String lotNo;
|
||||
|
||||
/** 出库数量 */
|
||||
@Excel(name = "出库数量")
|
||||
private BigDecimal quantity;
|
||||
|
||||
/** 分配数量 */
|
||||
@Excel(name = "分配数量")
|
||||
private BigDecimal allotQuantity;
|
||||
|
||||
/** 分配编号 */
|
||||
@Excel(name = "分配编号")
|
||||
private BigDecimal assignNum;
|
||||
|
||||
/** ERP出库单ID */
|
||||
@Excel(name = "ERP出库单ID")
|
||||
private String erpStockoutId;
|
||||
|
||||
/** 客户编号 */
|
||||
@Excel(name = "客户编号")
|
||||
private String entryid;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
private String customerName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
public void setStockoutId(String stockoutId)
|
||||
{
|
||||
this.stockoutId = stockoutId;
|
||||
}
|
||||
|
||||
public String getStockoutId()
|
||||
{
|
||||
return stockoutId;
|
||||
}
|
||||
|
||||
public void setOutType(String outType)
|
||||
{
|
||||
this.outType = outType;
|
||||
}
|
||||
|
||||
public String getOutType()
|
||||
{
|
||||
return outType;
|
||||
}
|
||||
|
||||
public void setCreateDate(String createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
public String getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateManId(String createManId)
|
||||
{
|
||||
this.createManId = createManId;
|
||||
}
|
||||
|
||||
public String getCreateManId()
|
||||
{
|
||||
return createManId;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStockoutSource(String stockoutSource)
|
||||
{
|
||||
this.stockoutSource = stockoutSource;
|
||||
}
|
||||
|
||||
public String getStockoutSource()
|
||||
{
|
||||
return stockoutSource;
|
||||
}
|
||||
|
||||
public void setExitId(String exitId)
|
||||
{
|
||||
this.exitId = exitId;
|
||||
}
|
||||
|
||||
public String getExitId()
|
||||
{
|
||||
return exitId;
|
||||
}
|
||||
|
||||
public void setStockoutDetailId(String stockoutDetailId)
|
||||
{
|
||||
this.stockoutDetailId = stockoutDetailId;
|
||||
}
|
||||
|
||||
public String getStockoutDetailId()
|
||||
{
|
||||
return stockoutDetailId;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setLotNo(String lotNo)
|
||||
{
|
||||
this.lotNo = lotNo;
|
||||
}
|
||||
|
||||
public String getLotNo()
|
||||
{
|
||||
return lotNo;
|
||||
}
|
||||
|
||||
public void setQuantity(BigDecimal quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public BigDecimal getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setAllotQuantity(BigDecimal allotQuantity)
|
||||
{
|
||||
this.allotQuantity = allotQuantity;
|
||||
}
|
||||
|
||||
public BigDecimal getAllotQuantity()
|
||||
{
|
||||
return allotQuantity;
|
||||
}
|
||||
|
||||
public void setAssignNum(BigDecimal assignNum)
|
||||
{
|
||||
this.assignNum = assignNum;
|
||||
}
|
||||
|
||||
public BigDecimal getAssignNum()
|
||||
{
|
||||
return assignNum;
|
||||
}
|
||||
|
||||
public void setErpStockoutId(String erpStockoutId)
|
||||
{
|
||||
this.erpStockoutId = erpStockoutId;
|
||||
}
|
||||
|
||||
public String getErpStockoutId()
|
||||
{
|
||||
return erpStockoutId;
|
||||
}
|
||||
|
||||
public void setEntryid(String entryid)
|
||||
{
|
||||
this.entryid = entryid;
|
||||
}
|
||||
|
||||
public String getEntryid()
|
||||
{
|
||||
return entryid;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName)
|
||||
{
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getCustomerName()
|
||||
{
|
||||
return customerName;
|
||||
}
|
||||
|
||||
public void setSpec(String spec)
|
||||
{
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec()
|
||||
{
|
||||
return spec;
|
||||
}
|
||||
|
||||
public void setCargoNo(String cargoNo)
|
||||
{
|
||||
this.cargoNo = cargoNo;
|
||||
}
|
||||
|
||||
public String getCargoNo()
|
||||
{
|
||||
return cargoNo;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("stockoutId", getStockoutId())
|
||||
.append("outType", getOutType())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("createManId", getCreateManId())
|
||||
.append("status", getStatus())
|
||||
.append("stockoutSource", getStockoutSource())
|
||||
.append("exitId", getExitId())
|
||||
.append("stockoutDetailId", getStockoutDetailId())
|
||||
.append("productId", getProductId())
|
||||
.append("productName", getProductName())
|
||||
.append("lotNo", getLotNo())
|
||||
.append("quantity", getQuantity())
|
||||
.append("allotQuantity", getAllotQuantity())
|
||||
.append("assignNum", getAssignNum())
|
||||
.append("erpStockoutId", getErpStockoutId())
|
||||
.append("entryid", getEntryid())
|
||||
.append("customerName", getCustomerName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewStockoutHistory.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewStockoutHistory.domain.ViewStockoutHistory;
|
||||
|
||||
/**
|
||||
* 出库单据历史Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public interface ViewStockoutHistoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询出库单据历史
|
||||
*
|
||||
* @param stockoutId 出库单据历史主键
|
||||
* @return 出库单据历史
|
||||
*/
|
||||
public ViewStockoutHistory selectViewStockoutHistoryByStockoutId(String stockoutId);
|
||||
|
||||
/**
|
||||
* 查询出库单据历史列表
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 出库单据历史集合
|
||||
*/
|
||||
public List<ViewStockoutHistory> selectViewStockoutHistoryList(ViewStockoutHistory viewStockoutHistory);
|
||||
|
||||
/**
|
||||
* 新增出库单据历史
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewStockoutHistory(ViewStockoutHistory viewStockoutHistory);
|
||||
|
||||
/**
|
||||
* 修改出库单据历史
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewStockoutHistory(ViewStockoutHistory viewStockoutHistory);
|
||||
|
||||
/**
|
||||
* 删除出库单据历史
|
||||
*
|
||||
* @param stockoutId 出库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockoutHistoryByStockoutId(String stockoutId);
|
||||
|
||||
/**
|
||||
* 批量删除出库单据历史
|
||||
*
|
||||
* @param stockoutIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockoutHistoryByStockoutIds(String[] stockoutIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewStockoutHistory.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewStockoutHistory.domain.ViewStockoutHistory;
|
||||
|
||||
/**
|
||||
* 出库单据历史Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
public interface IViewStockoutHistoryService
|
||||
{
|
||||
/**
|
||||
* 查询出库单据历史
|
||||
*
|
||||
* @param stockoutId 出库单据历史主键
|
||||
* @return 出库单据历史
|
||||
*/
|
||||
public ViewStockoutHistory selectViewStockoutHistoryByStockoutId(String stockoutId);
|
||||
|
||||
/**
|
||||
* 查询出库单据历史列表
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 出库单据历史集合
|
||||
*/
|
||||
public List<ViewStockoutHistory> selectViewStockoutHistoryList(ViewStockoutHistory viewStockoutHistory);
|
||||
|
||||
/**
|
||||
* 新增出库单据历史
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewStockoutHistory(ViewStockoutHistory viewStockoutHistory);
|
||||
|
||||
/**
|
||||
* 修改出库单据历史
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewStockoutHistory(ViewStockoutHistory viewStockoutHistory);
|
||||
|
||||
/**
|
||||
* 批量删除出库单据历史
|
||||
*
|
||||
* @param stockoutIds 需要删除的出库单据历史主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockoutHistoryByStockoutIds(String[] stockoutIds);
|
||||
|
||||
/**
|
||||
* 删除出库单据历史信息
|
||||
*
|
||||
* @param stockoutId 出库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewStockoutHistoryByStockoutId(String stockoutId);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.search.ViewStockoutHistory.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.search.ViewStockoutHistory.mapper.ViewStockoutHistoryMapper;
|
||||
import com.ruoyi.search.ViewStockoutHistory.domain.ViewStockoutHistory;
|
||||
import com.ruoyi.search.ViewStockoutHistory.service.IViewStockoutHistoryService;
|
||||
|
||||
/**
|
||||
* 出库单据历史Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewStockoutHistoryServiceImpl implements IViewStockoutHistoryService
|
||||
{
|
||||
@Autowired
|
||||
private ViewStockoutHistoryMapper viewStockoutHistoryMapper;
|
||||
|
||||
/**
|
||||
* 查询出库单据历史
|
||||
*
|
||||
* @param stockoutId 出库单据历史主键
|
||||
* @return 出库单据历史
|
||||
*/
|
||||
@Override
|
||||
public ViewStockoutHistory selectViewStockoutHistoryByStockoutId(String stockoutId)
|
||||
{
|
||||
return viewStockoutHistoryMapper.selectViewStockoutHistoryByStockoutId(stockoutId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出库单据历史列表
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 出库单据历史
|
||||
*/
|
||||
@Override
|
||||
public List<ViewStockoutHistory> selectViewStockoutHistoryList(ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
return viewStockoutHistoryMapper.selectViewStockoutHistoryList(viewStockoutHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库单据历史
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewStockoutHistory(ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
return viewStockoutHistoryMapper.insertViewStockoutHistory(viewStockoutHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库单据历史
|
||||
*
|
||||
* @param viewStockoutHistory 出库单据历史
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewStockoutHistory(ViewStockoutHistory viewStockoutHistory)
|
||||
{
|
||||
return viewStockoutHistoryMapper.updateViewStockoutHistory(viewStockoutHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除出库单据历史
|
||||
*
|
||||
* @param stockoutIds 需要删除的出库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewStockoutHistoryByStockoutIds(String[] stockoutIds)
|
||||
{
|
||||
return viewStockoutHistoryMapper.deleteViewStockoutHistoryByStockoutIds(stockoutIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库单据历史信息
|
||||
*
|
||||
* @param stockoutId 出库单据历史主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewStockoutHistoryByStockoutId(String stockoutId)
|
||||
{
|
||||
return viewStockoutHistoryMapper.deleteViewStockoutHistoryByStockoutId(stockoutId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<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="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="inOrOut" column="in_or_out" />
|
||||
<result property="entranceId" column="entrance_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<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="createTime" column="create_time" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="finishTime" column="finish_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewInJobFlowVo">
|
||||
select job_id, job_detail_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, product_id, 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_name, spec, cargo_no, unit 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="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="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</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 = #{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="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewInJobFlowByJobId" parameterType="String" resultMap="ViewInJobFlowResult">
|
||||
<include refid="selectViewInJobFlowVo"/>
|
||||
where job_id = #{jobId}
|
||||
</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="inOrOut != null">in_or_out,</if>
|
||||
<if test="entranceId != null">entrance_id,</if>
|
||||
<if test="productId != null">product_id,</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="createTime != null">create_time,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="finishTime != null">finish_time,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</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="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="entranceId != null">#{entranceId},</if>
|
||||
<if test="productId != null">#{productId},</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="createTime != null">#{createTime},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</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="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="entranceId != null">entrance_id = #{entranceId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</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="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
</trim>
|
||||
where job_id = #{jobId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewInJobFlowByJobId" parameterType="String">
|
||||
delete from view_in_job_flow where job_id = #{jobId}
|
||||
</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}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,239 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewStockinHistory.mapper.ViewStockinHistoryMapper">
|
||||
|
||||
<resultMap type="ViewStockinHistory" id="ViewStockinHistoryResult">
|
||||
<result property="stockinGuid" column="stockin_guid" />
|
||||
<result property="stockinId" column="stockin_id" />
|
||||
<result property="inType" column="in_type" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="createManId" column="create_man_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="finishDate" column="finish_date" />
|
||||
<result property="erpBill" column="erp_bill" />
|
||||
<result property="stockSource" column="stock_source" />
|
||||
<result property="departmentNo" column="department_no" />
|
||||
<result property="classNo" column="class_no" />
|
||||
<result property="supplierNo" column="supplier_no" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="simpleName" column="simple_name" />
|
||||
<result property="contactName" column="contact_name" />
|
||||
<result property="contactNumber" column="contact_number" />
|
||||
<result property="address" column="address" />
|
||||
<result property="stockinDetailId" column="stockin_detail_id" />
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="quantityX" column="quantity_x" />
|
||||
<result property="quantityJ" column="quantity_j" />
|
||||
<result property="assignNum" column="assign_num" />
|
||||
<result property="assignNumX" column="assign_num_x" />
|
||||
<result property="assignNumJ" column="assign_num_j" />
|
||||
<result property="scanNum" column="scan_num" />
|
||||
<result property="scanNumX" column="scan_num_x" />
|
||||
<result property="scanNumJ" column="scan_num_j" />
|
||||
<result property="printDate" column="print_date" />
|
||||
<result property="stockStatus" column="stock_status" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockinHistoryVo">
|
||||
select stockin_guid, stockin_id, in_type, create_date, create_man_id, status, warehouse_id, finish_date, erp_bill, stock_source, department_no, class_no, supplier_no, supplier_name, simple_name, contact_name, contact_number, address, stockin_detail_id, lot_no, quantity, quantity_x, quantity_j, assign_num, assign_num_x, assign_num_j, scan_num, scan_num_x, scan_num_j, print_date, stock_status, price, remark, product_id, product_name, cargo_no, unit, spec from view_stockin_history
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockinHistoryList" parameterType="ViewStockinHistory" resultMap="ViewStockinHistoryResult">
|
||||
<include refid="selectViewStockinHistoryVo"/>
|
||||
<where>
|
||||
<if test="stockinGuid != null and stockinGuid != ''"> and stockin_guid like concat('%', #{stockinGuid}, '%')</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="createDate != null and createDate != ''"> and create_date like concat('%', #{createDate}, '%')</if>
|
||||
<if test="createManId != null and createManId != ''"> and create_man_id like concat('%', #{createManId}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="finishDate != null and finishDate != ''"> and finish_date like concat('%', #{finishDate}, '%')</if>
|
||||
<if test="erpBill != null and erpBill != ''"> and erp_bill like concat('%', #{erpBill}, '%')</if>
|
||||
<if test="stockSource != null and stockSource != ''"> and stock_source like concat('%', #{stockSource}, '%')</if>
|
||||
<if test="departmentNo != null and departmentNo != ''"> and department_no like concat('%', #{departmentNo}, '%')</if>
|
||||
<if test="classNo != null and classNo != ''"> and class_no like concat('%', #{classNo}, '%')</if>
|
||||
<if test="supplierNo != null and supplierNo != ''"> and supplier_no like concat('%', #{supplierNo}, '%')</if>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="simpleName != null and simpleName != ''"> and simple_name like concat('%', #{simpleName}, '%')</if>
|
||||
<if test="contactName != null and contactName != ''"> and contact_name like concat('%', #{contactName}, '%')</if>
|
||||
<if test="contactNumber != null and contactNumber != ''"> and contact_number like concat('%', #{contactNumber}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="quantityX != null and quantityX != ''"> and quantity_x like concat('%', #{quantityX}, '%')</if>
|
||||
<if test="quantityJ != null and quantityJ != ''"> and quantity_j like concat('%', #{quantityJ}, '%')</if>
|
||||
<if test="assignNum != null and assignNum != ''"> and assign_num = #{assignNum}</if>
|
||||
<if test="assignNumX != null and assignNumX != ''"> and assign_num_x = #{assignNumX}</if>
|
||||
<if test="assignNumJ != null and assignNumJ != ''"> and assign_num_j = #{assignNumJ}</if>
|
||||
<if test="scanNum != null and scanNum != ''"> and scan_num = #{scanNum}</if>
|
||||
<if test="scanNumX != null and scanNumX != ''"> and scan_num_x = #{scanNumX}</if>
|
||||
<if test="scanNumJ != null and scanNumJ != ''"> and scan_num_j = #{scanNumJ}</if>
|
||||
<if test="printDate != null and printDate != ''"> and print_date like concat('%', #{printDate}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewStockinHistoryByStockinGuid" parameterType="String" resultMap="ViewStockinHistoryResult">
|
||||
<include refid="selectViewStockinHistoryVo"/>
|
||||
where stockin_guid = #{stockinGuid}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewStockinHistory" parameterType="ViewStockinHistory">
|
||||
insert into view_stockin_history
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="stockinGuid != null and stockinGuid != ''">stockin_guid,</if>
|
||||
<if test="stockinId != null">stockin_id,</if>
|
||||
<if test="inType != null">in_type,</if>
|
||||
<if test="createDate != null">create_date,</if>
|
||||
<if test="createManId != null">create_man_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="finishDate != null">finish_date,</if>
|
||||
<if test="erpBill != null">erp_bill,</if>
|
||||
<if test="stockSource != null">stock_source,</if>
|
||||
<if test="departmentNo != null">department_no,</if>
|
||||
<if test="classNo != null">class_no,</if>
|
||||
<if test="supplierNo != null">supplier_no,</if>
|
||||
<if test="supplierName != null">supplier_name,</if>
|
||||
<if test="simpleName != null">simple_name,</if>
|
||||
<if test="contactName != null">contact_name,</if>
|
||||
<if test="contactNumber != null">contact_number,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="stockinDetailId != null">stockin_detail_id,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="quantityX != null">quantity_x,</if>
|
||||
<if test="quantityJ != null">quantity_j,</if>
|
||||
<if test="assignNum != null">assign_num,</if>
|
||||
<if test="assignNumX != null">assign_num_x,</if>
|
||||
<if test="assignNumJ != null">assign_num_j,</if>
|
||||
<if test="scanNum != null">scan_num,</if>
|
||||
<if test="scanNumX != null">scan_num_x,</if>
|
||||
<if test="scanNumJ != null">scan_num_j,</if>
|
||||
<if test="printDate != null">print_date,</if>
|
||||
<if test="stockStatus != null">stock_status,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stockinGuid != null and stockinGuid != ''">#{stockinGuid},</if>
|
||||
<if test="stockinId != null">#{stockinId},</if>
|
||||
<if test="inType != null">#{inType},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="createManId != null">#{createManId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="finishDate != null">#{finishDate},</if>
|
||||
<if test="erpBill != null">#{erpBill},</if>
|
||||
<if test="stockSource != null">#{stockSource},</if>
|
||||
<if test="departmentNo != null">#{departmentNo},</if>
|
||||
<if test="classNo != null">#{classNo},</if>
|
||||
<if test="supplierNo != null">#{supplierNo},</if>
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="simpleName != null">#{simpleName},</if>
|
||||
<if test="contactName != null">#{contactName},</if>
|
||||
<if test="contactNumber != null">#{contactNumber},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="stockinDetailId != null">#{stockinDetailId},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="quantityX != null">#{quantityX},</if>
|
||||
<if test="quantityJ != null">#{quantityJ},</if>
|
||||
<if test="assignNum != null">#{assignNum},</if>
|
||||
<if test="assignNumX != null">#{assignNumX},</if>
|
||||
<if test="assignNumJ != null">#{assignNumJ},</if>
|
||||
<if test="scanNum != null">#{scanNum},</if>
|
||||
<if test="scanNumX != null">#{scanNumX},</if>
|
||||
<if test="scanNumJ != null">#{scanNumJ},</if>
|
||||
<if test="printDate != null">#{printDate},</if>
|
||||
<if test="stockStatus != null">#{stockStatus},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewStockinHistory" parameterType="ViewStockinHistory">
|
||||
update view_stockin_history
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="stockinId != null">stockin_id = #{stockinId},</if>
|
||||
<if test="inType != null">in_type = #{inType},</if>
|
||||
<if test="createDate != null">create_date = #{createDate},</if>
|
||||
<if test="createManId != null">create_man_id = #{createManId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="finishDate != null">finish_date = #{finishDate},</if>
|
||||
<if test="erpBill != null">erp_bill = #{erpBill},</if>
|
||||
<if test="stockSource != null">stock_source = #{stockSource},</if>
|
||||
<if test="departmentNo != null">department_no = #{departmentNo},</if>
|
||||
<if test="classNo != null">class_no = #{classNo},</if>
|
||||
<if test="supplierNo != null">supplier_no = #{supplierNo},</if>
|
||||
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
||||
<if test="simpleName != null">simple_name = #{simpleName},</if>
|
||||
<if test="contactName != null">contact_name = #{contactName},</if>
|
||||
<if test="contactNumber != null">contact_number = #{contactNumber},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="stockinDetailId != null">stockin_detail_id = #{stockinDetailId},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="quantityX != null">quantity_x = #{quantityX},</if>
|
||||
<if test="quantityJ != null">quantity_j = #{quantityJ},</if>
|
||||
<if test="assignNum != null">assign_num = #{assignNum},</if>
|
||||
<if test="assignNumX != null">assign_num_x = #{assignNumX},</if>
|
||||
<if test="assignNumJ != null">assign_num_j = #{assignNumJ},</if>
|
||||
<if test="scanNum != null">scan_num = #{scanNum},</if>
|
||||
<if test="scanNumX != null">scan_num_x = #{scanNumX},</if>
|
||||
<if test="scanNumJ != null">scan_num_j = #{scanNumJ},</if>
|
||||
<if test="printDate != null">print_date = #{printDate},</if>
|
||||
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
</trim>
|
||||
where stockin_guid = #{stockinGuid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewStockinHistoryByStockinGuid" parameterType="String">
|
||||
delete from view_stockin_history where stockin_guid = #{stockinGuid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewStockinHistoryByStockinGuids" parameterType="String">
|
||||
delete from view_stockin_history where stockin_guid in
|
||||
<foreach item="stockinGuid" collection="array" open="(" separator="," close=")">
|
||||
#{stockinGuid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewStockoutHistory.mapper.ViewStockoutHistoryMapper">
|
||||
|
||||
<resultMap type="ViewStockoutHistory" id="ViewStockoutHistoryResult">
|
||||
<result property="stockoutId" column="stockout_id" />
|
||||
<result property="outType" column="out_type" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="createManId" column="create_man_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="stockoutSource" column="stockout_source" />
|
||||
<result property="exitId" column="exit_id" />
|
||||
<result property="stockoutDetailId" column="stockout_detail_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="allotQuantity" column="allot_quantity" />
|
||||
<result property="assignNum" column="assign_num" />
|
||||
<result property="erpStockoutId" column="erp_stockout_id" />
|
||||
<result property="entryid" column="entryid" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockoutHistoryVo">
|
||||
select stockout_id, out_type, create_date, create_man_id, status, stockout_source, exit_id, stockout_detail_id, product_id, product_name, lot_no, quantity, allot_quantity, assign_num, erp_stockout_id, entryid, customer_name, spec, cargo_no, unit from view_stockout_history
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockoutHistoryList" parameterType="ViewStockoutHistory" resultMap="ViewStockoutHistoryResult">
|
||||
<include refid="selectViewStockoutHistoryVo"/>
|
||||
<where>
|
||||
<if test="stockoutId != null and stockoutId != ''"> and stockout_id like concat('%', #{stockoutId}, '%')</if>
|
||||
<if test="outType != null and outType != ''"> and out_type = #{outType}</if>
|
||||
<if test="createDate != null and createDate != ''"> and create_date like concat('%', #{createDate}, '%')</if>
|
||||
<if test="createManId != null and createManId != ''"> and create_man_id like concat('%', #{createManId}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="stockoutSource != null and stockoutSource != ''"> and stockout_source like concat('%', #{stockoutSource}, '%')</if>
|
||||
<if test="exitId != null and exitId != ''"> and exit_id like concat('%', #{exitId}, '%')</if>
|
||||
<if test="stockoutDetailId != null and stockoutDetailId != ''"> and stockout_detail_id like concat('%', #{stockoutDetailId}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="quantity != null "> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="allotQuantity != null "> and allot_quantity like concat('%', #{allotQuantity}, '%')</if>
|
||||
<if test="assignNum != null "> and assign_num like concat('%', #{assignNum}, '%')</if>
|
||||
<if test="erpStockoutId != null and erpStockoutId != ''"> and erp_stockout_id like concat('%', #{erpStockoutId}, '%')</if>
|
||||
<if test="entryid != null and entryid != ''"> and entryid like concat('%', #{entryid}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewStockoutHistoryByStockoutId" parameterType="String" resultMap="ViewStockoutHistoryResult">
|
||||
<include refid="selectViewStockoutHistoryVo"/>
|
||||
where stockout_id = #{stockoutId}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewStockoutHistory" parameterType="ViewStockoutHistory">
|
||||
insert into view_stockout_history
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="stockoutId != null and stockoutId != ''">stockout_id,</if>
|
||||
<if test="outType != null">out_type,</if>
|
||||
<if test="createDate != null">create_date,</if>
|
||||
<if test="createManId != null">create_man_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="stockoutSource != null">stockout_source,</if>
|
||||
<if test="exitId != null">exit_id,</if>
|
||||
<if test="stockoutDetailId != null">stockout_detail_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="allotQuantity != null">allot_quantity,</if>
|
||||
<if test="assignNum != null">assign_num,</if>
|
||||
<if test="erpStockoutId != null">erp_stockout_id,</if>
|
||||
<if test="entryid != null">entryid,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stockoutId != null and stockoutId != ''">#{stockoutId},</if>
|
||||
<if test="outType != null">#{outType},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="createManId != null">#{createManId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="stockoutSource != null">#{stockoutSource},</if>
|
||||
<if test="exitId != null">#{exitId},</if>
|
||||
<if test="stockoutDetailId != null">#{stockoutDetailId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="allotQuantity != null">#{allotQuantity},</if>
|
||||
<if test="assignNum != null">#{assignNum},</if>
|
||||
<if test="erpStockoutId != null">#{erpStockoutId},</if>
|
||||
<if test="entryid != null">#{entryid},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewStockoutHistory" parameterType="ViewStockoutHistory">
|
||||
update view_stockout_history
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="outType != null">out_type = #{outType},</if>
|
||||
<if test="createDate != null">create_date = #{createDate},</if>
|
||||
<if test="createManId != null">create_man_id = #{createManId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="stockoutSource != null">stockout_source = #{stockoutSource},</if>
|
||||
<if test="exitId != null">exit_id = #{exitId},</if>
|
||||
<if test="stockoutDetailId != null">stockout_detail_id = #{stockoutDetailId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="allotQuantity != null">allot_quantity = #{allotQuantity},</if>
|
||||
<if test="assignNum != null">assign_num = #{assignNum},</if>
|
||||
<if test="erpStockoutId != null">erp_stockout_id = #{erpStockoutId},</if>
|
||||
<if test="entryid != null">entryid = #{entryid},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
</trim>
|
||||
where stockout_id = #{stockoutId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewStockoutHistoryByStockoutId" parameterType="String">
|
||||
delete from view_stockout_history where stockout_id = #{stockoutId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewStockoutHistoryByStockoutIds" parameterType="String">
|
||||
delete from view_stockout_history where stockout_id in
|
||||
<foreach item="stockoutId" collection="array" open="(" separator="," close=")">
|
||||
#{stockoutId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user