KPI修改入出库类型判断、出库单据流水、平库入库流水、平库出库流水
This commit is contained in:
@@ -50,7 +50,7 @@ public class KpiServiceImpl implements KpiService
|
||||
|
||||
for (MydoJobFinish job : list) {
|
||||
// 检查入库作业标识是否小于10
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) >= 10) {
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) >= 20) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -89,11 +89,11 @@ public class KpiServiceImpl implements KpiService
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库均匀分析数据
|
||||
* 获取出库均匀分析数据
|
||||
*
|
||||
* @param warehouseId 仓库ID
|
||||
* @param yearMonth 年月(格式:yyyy-MM)
|
||||
* @return 入库均匀分析数据
|
||||
* @return 出库均匀分析数据
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> getOutAnalysis(String warehouseId, String yearMonth)
|
||||
@@ -106,7 +106,7 @@ public class KpiServiceImpl implements KpiService
|
||||
|
||||
for (MydoJobFinish job : list) {
|
||||
// 检查出入库作业标识是否大于10
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) < 10) {
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) < 20) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ public class KpiServiceImpl implements KpiService
|
||||
// 区分入库和出库作业
|
||||
if (job.getInOrOut() != null) {
|
||||
int inOrOut = Integer.parseInt(job.getInOrOut());
|
||||
if (inOrOut < 10) {
|
||||
if (inOrOut < 20) {
|
||||
// 入库作业
|
||||
inCounts.put(roadwayId, inCounts.getOrDefault(roadwayId, 0) + 1);
|
||||
} else {
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.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.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.service.IViewFlatWarehouseInFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.bas.warehouse.domain.BasWarehouse;
|
||||
import com.ruoyi.bas.warehouse.service.IBasWarehouseService;
|
||||
|
||||
/**
|
||||
* 平库入库流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewFlatWarehouseInFlow")
|
||||
public class ViewFlatWarehouseInFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewFlatWarehouseInFlowService viewFlatWarehouseInFlowService;
|
||||
|
||||
@Autowired
|
||||
private IBasWarehouseService basWarehouseService;
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewFlatWarehouseInFlow> list = viewFlatWarehouseInFlowService.selectViewFlatWarehouseInFlowList(viewFlatWarehouseInFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出平库入库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:export')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
List<ViewFlatWarehouseInFlow> list = viewFlatWarehouseInFlowService.selectViewFlatWarehouseInFlowList(viewFlatWarehouseInFlow);
|
||||
ExcelUtil<ViewFlatWarehouseInFlow> util = new ExcelUtil<ViewFlatWarehouseInFlow>(ViewFlatWarehouseInFlow.class);
|
||||
util.exportExcel(response, list, "平库入库流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取平库入库流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(viewFlatWarehouseInFlowService.selectViewFlatWarehouseInFlowById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:add')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseInFlowService.insertViewFlatWarehouseInFlow(viewFlatWarehouseInFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:edit')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseInFlowService.updateViewFlatWarehouseInFlow(viewFlatWarehouseInFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库入库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:remove')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseInFlowService.deleteViewFlatWarehouseInFlowByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询仓库管理列表(warehouse_type=3)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:list')")
|
||||
@GetMapping("/warehouseList")
|
||||
public TableDataInfo warehouseList()
|
||||
{
|
||||
startPage();
|
||||
BasWarehouse basWarehouse = new BasWarehouse();
|
||||
basWarehouse.setWarehouseType("3");
|
||||
List<BasWarehouse> list = basWarehouseService.selectBasWarehouseList(basWarehouse);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,324 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.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_flat_warehouse_in_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public class ViewFlatWarehouseInFlow extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 入出库类型 */
|
||||
@Excel(name = "入出库类型")
|
||||
private String inOrOut;
|
||||
|
||||
/** 入出库主单据ID */
|
||||
@Excel(name = "入出库主单据ID")
|
||||
private String inOrOutSotckId;
|
||||
|
||||
/** 入出库主子单据ID */
|
||||
@Excel(name = "入出库主子单据ID")
|
||||
private String inOrOutSotckDetailId;
|
||||
|
||||
/** 物料GUID */
|
||||
@Excel(name = "物料GUID")
|
||||
private String productGuid;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
private String productId;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private String quantity;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createMan;
|
||||
|
||||
/** 仓库id */
|
||||
@Excel(name = "仓库id")
|
||||
private String warehouseId;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 仓库地址 */
|
||||
@Excel(name = "仓库地址")
|
||||
private String address;
|
||||
|
||||
/** 仓库描述 */
|
||||
@Excel(name = "仓库描述")
|
||||
private String cDesc;
|
||||
|
||||
/** 仓库级别 */
|
||||
@Excel(name = "仓库级别")
|
||||
private String warehouseKind;
|
||||
|
||||
/** 仓库类型 */
|
||||
@Excel(name = "仓库类型")
|
||||
private String warehouseType;
|
||||
|
||||
/** 是否可用 */
|
||||
@Excel(name = "是否可用")
|
||||
private String isCurrent;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 价格 */
|
||||
@Excel(name = "价格")
|
||||
private String price;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setInOrOut(String inOrOut)
|
||||
{
|
||||
this.inOrOut = inOrOut;
|
||||
}
|
||||
|
||||
public String getInOrOut()
|
||||
{
|
||||
return inOrOut;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckId(String inOrOutSotckId)
|
||||
{
|
||||
this.inOrOutSotckId = inOrOutSotckId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckId()
|
||||
{
|
||||
return inOrOutSotckId;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckDetailId(String inOrOutSotckDetailId)
|
||||
{
|
||||
this.inOrOutSotckDetailId = inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckDetailId()
|
||||
{
|
||||
return inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public void setProductGuid(String productGuid)
|
||||
{
|
||||
this.productGuid = productGuid;
|
||||
}
|
||||
|
||||
public String getProductGuid()
|
||||
{
|
||||
return productGuid;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setQuantity(String quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public String getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setCreateMan(String createMan)
|
||||
{
|
||||
this.createMan = createMan;
|
||||
}
|
||||
|
||||
public String getCreateMan()
|
||||
{
|
||||
return createMan;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setcDesc(String cDesc)
|
||||
{
|
||||
this.cDesc = cDesc;
|
||||
}
|
||||
|
||||
public String getcDesc()
|
||||
{
|
||||
return cDesc;
|
||||
}
|
||||
|
||||
public void setWarehouseKind(String warehouseKind)
|
||||
{
|
||||
this.warehouseKind = warehouseKind;
|
||||
}
|
||||
|
||||
public String getWarehouseKind()
|
||||
{
|
||||
return warehouseKind;
|
||||
}
|
||||
|
||||
public void setWarehouseType(String warehouseType)
|
||||
{
|
||||
this.warehouseType = warehouseType;
|
||||
}
|
||||
|
||||
public String getWarehouseType()
|
||||
{
|
||||
return warehouseType;
|
||||
}
|
||||
|
||||
public void setIsCurrent(String isCurrent)
|
||||
{
|
||||
this.isCurrent = isCurrent;
|
||||
}
|
||||
|
||||
public String getIsCurrent()
|
||||
{
|
||||
return isCurrent;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public void setPrice(String price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("inOrOut", getInOrOut())
|
||||
.append("inOrOutSotckId", getInOrOutSotckId())
|
||||
.append("inOrOutSotckDetailId", getInOrOutSotckDetailId())
|
||||
.append("productGuid", getProductGuid())
|
||||
.append("productId", getProductId())
|
||||
.append("quantity", getQuantity())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createMan", getCreateMan())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("address", getAddress())
|
||||
.append("cDesc", getcDesc())
|
||||
.append("warehouseKind", getWarehouseKind())
|
||||
.append("warehouseType", getWarehouseType())
|
||||
.append("isCurrent", getIsCurrent())
|
||||
.append("productName", getProductName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.append("price", getPrice())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
|
||||
/**
|
||||
* 平库入库流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface ViewFlatWarehouseInFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
public ViewFlatWarehouseInFlow selectViewFlatWarehouseInFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 平库入库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseInFlow> selectViewFlatWarehouseInFlowList(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 删除平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除平库入库流水
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
|
||||
/**
|
||||
* 平库入库流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface IViewFlatWarehouseInFlowService
|
||||
{
|
||||
/**
|
||||
* 查询平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
public ViewFlatWarehouseInFlow selectViewFlatWarehouseInFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 平库入库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseInFlow> selectViewFlatWarehouseInFlowList(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 批量删除平库入库流水
|
||||
*
|
||||
* @param ids 需要删除的平库入库流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除平库入库流水信息
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.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.ViewFlatWarehouseInFlow.mapper.ViewFlatWarehouseInFlowMapper;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.service.IViewFlatWarehouseInFlowService;
|
||||
|
||||
/**
|
||||
* 平库入库流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewFlatWarehouseInFlowServiceImpl implements IViewFlatWarehouseInFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewFlatWarehouseInFlowMapper viewFlatWarehouseInFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
@Override
|
||||
public ViewFlatWarehouseInFlow selectViewFlatWarehouseInFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.selectViewFlatWarehouseInFlowById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewFlatWarehouseInFlow> selectViewFlatWarehouseInFlowList(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.selectViewFlatWarehouseInFlowList(viewFlatWarehouseInFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
viewFlatWarehouseInFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewFlatWarehouseInFlowMapper.insertViewFlatWarehouseInFlow(viewFlatWarehouseInFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.updateViewFlatWarehouseInFlow(viewFlatWarehouseInFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除平库入库流水
|
||||
*
|
||||
* @param ids 需要删除的平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseInFlowByIds(Long[] ids)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.deleteViewFlatWarehouseInFlowByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库入库流水信息
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseInFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.deleteViewFlatWarehouseInFlowById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.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.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.service.IViewFlatWarehouseOutFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 平库出库流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewFlatWarehouseOutFlow")
|
||||
public class ViewFlatWarehouseOutFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewFlatWarehouseOutFlowService viewFlatWarehouseOutFlowService;
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewFlatWarehouseOutFlow> list = viewFlatWarehouseOutFlowService.selectViewFlatWarehouseOutFlowList(viewFlatWarehouseOutFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出平库出库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:export')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
List<ViewFlatWarehouseOutFlow> list = viewFlatWarehouseOutFlowService.selectViewFlatWarehouseOutFlowList(viewFlatWarehouseOutFlow);
|
||||
ExcelUtil<ViewFlatWarehouseOutFlow> util = new ExcelUtil<ViewFlatWarehouseOutFlow>(ViewFlatWarehouseOutFlow.class);
|
||||
util.exportExcel(response, list, "平库出库流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取平库出库流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(viewFlatWarehouseOutFlowService.selectViewFlatWarehouseOutFlowById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:add')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseOutFlowService.insertViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:edit')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseOutFlowService.updateViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库出库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:remove')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseOutFlowService.deleteViewFlatWarehouseOutFlowByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,324 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.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_flat_warehouse_out_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public class ViewFlatWarehouseOutFlow extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 入出库类型 */
|
||||
@Excel(name = "入出库类型")
|
||||
private String inOrOut;
|
||||
|
||||
/** 入出库主单据ID */
|
||||
@Excel(name = "入出库主单据ID")
|
||||
private String inOrOutSotckId;
|
||||
|
||||
/** 入出库主子单据ID */
|
||||
@Excel(name = "入出库主子单据ID")
|
||||
private String inOrOutSotckDetailId;
|
||||
|
||||
/** 物料GUID */
|
||||
@Excel(name = "物料GUID")
|
||||
private String productGuid;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
private String productId;
|
||||
|
||||
/** 入出库数量 */
|
||||
@Excel(name = "入出库数量")
|
||||
private String quantity;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createMan;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
private String warehouseId;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 仓库地址 */
|
||||
@Excel(name = "仓库地址")
|
||||
private String address;
|
||||
|
||||
/** 仓库描述 */
|
||||
@Excel(name = "仓库描述")
|
||||
private String cDesc;
|
||||
|
||||
/** 仓库级别 */
|
||||
@Excel(name = "仓库级别")
|
||||
private String warehouseKind;
|
||||
|
||||
/** 仓库类型 */
|
||||
@Excel(name = "仓库类型")
|
||||
private String warehouseType;
|
||||
|
||||
/** 是否可用 */
|
||||
@Excel(name = "是否可用")
|
||||
private String isCurrent;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 价格 */
|
||||
@Excel(name = "价格")
|
||||
private String price;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setInOrOut(String inOrOut)
|
||||
{
|
||||
this.inOrOut = inOrOut;
|
||||
}
|
||||
|
||||
public String getInOrOut()
|
||||
{
|
||||
return inOrOut;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckId(String inOrOutSotckId)
|
||||
{
|
||||
this.inOrOutSotckId = inOrOutSotckId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckId()
|
||||
{
|
||||
return inOrOutSotckId;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckDetailId(String inOrOutSotckDetailId)
|
||||
{
|
||||
this.inOrOutSotckDetailId = inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckDetailId()
|
||||
{
|
||||
return inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public void setProductGuid(String productGuid)
|
||||
{
|
||||
this.productGuid = productGuid;
|
||||
}
|
||||
|
||||
public String getProductGuid()
|
||||
{
|
||||
return productGuid;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setQuantity(String quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public String getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setCreateMan(String createMan)
|
||||
{
|
||||
this.createMan = createMan;
|
||||
}
|
||||
|
||||
public String getCreateMan()
|
||||
{
|
||||
return createMan;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setcDesc(String cDesc)
|
||||
{
|
||||
this.cDesc = cDesc;
|
||||
}
|
||||
|
||||
public String getcDesc()
|
||||
{
|
||||
return cDesc;
|
||||
}
|
||||
|
||||
public void setWarehouseKind(String warehouseKind)
|
||||
{
|
||||
this.warehouseKind = warehouseKind;
|
||||
}
|
||||
|
||||
public String getWarehouseKind()
|
||||
{
|
||||
return warehouseKind;
|
||||
}
|
||||
|
||||
public void setWarehouseType(String warehouseType)
|
||||
{
|
||||
this.warehouseType = warehouseType;
|
||||
}
|
||||
|
||||
public String getWarehouseType()
|
||||
{
|
||||
return warehouseType;
|
||||
}
|
||||
|
||||
public void setIsCurrent(String isCurrent)
|
||||
{
|
||||
this.isCurrent = isCurrent;
|
||||
}
|
||||
|
||||
public String getIsCurrent()
|
||||
{
|
||||
return isCurrent;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public void setPrice(String price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("inOrOut", getInOrOut())
|
||||
.append("inOrOutSotckId", getInOrOutSotckId())
|
||||
.append("inOrOutSotckDetailId", getInOrOutSotckDetailId())
|
||||
.append("productGuid", getProductGuid())
|
||||
.append("productId", getProductId())
|
||||
.append("quantity", getQuantity())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createMan", getCreateMan())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("address", getAddress())
|
||||
.append("cDesc", getcDesc())
|
||||
.append("warehouseKind", getWarehouseKind())
|
||||
.append("warehouseType", getWarehouseType())
|
||||
.append("isCurrent", getIsCurrent())
|
||||
.append("productName", getProductName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.append("price", getPrice())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
|
||||
/**
|
||||
* 平库出库流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface ViewFlatWarehouseOutFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
public ViewFlatWarehouseOutFlow selectViewFlatWarehouseOutFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 平库出库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseOutFlow> selectViewFlatWarehouseOutFlowList(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 删除平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除平库出库流水
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
|
||||
/**
|
||||
* 平库出库流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface IViewFlatWarehouseOutFlowService
|
||||
{
|
||||
/**
|
||||
* 查询平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
public ViewFlatWarehouseOutFlow selectViewFlatWarehouseOutFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 平库出库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseOutFlow> selectViewFlatWarehouseOutFlowList(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 批量删除平库出库流水
|
||||
*
|
||||
* @param ids 需要删除的平库出库流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除平库出库流水信息
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.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.ViewFlatWarehouseOutFlow.mapper.ViewFlatWarehouseOutFlowMapper;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.service.IViewFlatWarehouseOutFlowService;
|
||||
|
||||
/**
|
||||
* 平库出库流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewFlatWarehouseOutFlowServiceImpl implements IViewFlatWarehouseOutFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewFlatWarehouseOutFlowMapper viewFlatWarehouseOutFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
@Override
|
||||
public ViewFlatWarehouseOutFlow selectViewFlatWarehouseOutFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.selectViewFlatWarehouseOutFlowById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewFlatWarehouseOutFlow> selectViewFlatWarehouseOutFlowList(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.selectViewFlatWarehouseOutFlowList(viewFlatWarehouseOutFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
viewFlatWarehouseOutFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewFlatWarehouseOutFlowMapper.insertViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.updateViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除平库出库流水
|
||||
*
|
||||
* @param ids 需要删除的平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseOutFlowByIds(Long[] ids)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.deleteViewFlatWarehouseOutFlowByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库出库流水信息
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseOutFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.deleteViewFlatWarehouseOutFlowById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.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.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
import com.ruoyi.search.ViewOutJobFlow.service.IViewOutJobFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewOutJobFlow")
|
||||
public class ViewOutJobFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewOutJobFlowService viewOutJobFlowService;
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewOutJobFlow> list = viewOutJobFlowService.selectViewOutJobFlowList(viewOutJobFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出出库做业务流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:export')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
List<ViewOutJobFlow> list = viewOutJobFlowService.selectViewOutJobFlowList(viewOutJobFlow);
|
||||
ExcelUtil<ViewOutJobFlow> util = new ExcelUtil<ViewOutJobFlow>(ViewOutJobFlow.class);
|
||||
util.exportExcel(response, list, "出库做业务流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库做业务流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:query')")
|
||||
@GetMapping(value = "/{jobId}")
|
||||
public AjaxResult getInfo(@PathVariable("jobId") String jobId)
|
||||
{
|
||||
return success(viewOutJobFlowService.selectViewOutJobFlowByJobId(jobId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:add')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return toAjax(viewOutJobFlowService.insertViewOutJobFlow(viewOutJobFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:edit')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return toAjax(viewOutJobFlowService.updateViewOutJobFlow(viewOutJobFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:remove')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{jobIds}")
|
||||
public AjaxResult remove(@PathVariable String[] jobIds)
|
||||
{
|
||||
return toAjax(viewOutJobFlowService.deleteViewOutJobFlowByJobIds(jobIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,489 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.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_out_job_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public class ViewOutJobFlow 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 exitId;
|
||||
|
||||
/** 物料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 outQuantity;
|
||||
|
||||
/** 回流数量 */
|
||||
@Excel(name = "回流数量")
|
||||
private String giveNum;
|
||||
|
||||
/** 单据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;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
private String customerName;
|
||||
|
||||
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 setExitId(String exitId)
|
||||
{
|
||||
this.exitId = exitId;
|
||||
}
|
||||
|
||||
public String getExitId()
|
||||
{
|
||||
return exitId;
|
||||
}
|
||||
|
||||
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 setOutQuantity(String outQuantity)
|
||||
{
|
||||
this.outQuantity = outQuantity;
|
||||
}
|
||||
|
||||
public String getOutQuantity()
|
||||
{
|
||||
return outQuantity;
|
||||
}
|
||||
|
||||
public void setGiveNum(String giveNum)
|
||||
{
|
||||
this.giveNum = giveNum;
|
||||
}
|
||||
|
||||
public String getGiveNum()
|
||||
{
|
||||
return giveNum;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName)
|
||||
{
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getCustomerName()
|
||||
{
|
||||
return customerName;
|
||||
}
|
||||
|
||||
@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("exitId", getExitId())
|
||||
.append("productId", getProductId())
|
||||
.append("lotNo", getLotNo())
|
||||
.append("stackingId", getStackingId())
|
||||
.append("stockStatus", getStockStatus())
|
||||
.append("outQuantity", getOutQuantity())
|
||||
.append("giveNum", getGiveNum())
|
||||
.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())
|
||||
.append("customerName", getCustomerName())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface ViewOutJobFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 出库做业务流水集合
|
||||
*/
|
||||
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 批量删除出库做业务流水
|
||||
*
|
||||
* @param jobIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobIds(String[] jobIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface IViewOutJobFlowService
|
||||
{
|
||||
/**
|
||||
* 查询出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 出库做业务流水集合
|
||||
*/
|
||||
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 批量删除出库做业务流水
|
||||
*
|
||||
* @param jobIds 需要删除的出库做业务流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobIds(String[] jobIds);
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水信息
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobId(String jobId);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.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.ViewOutJobFlow.mapper.ViewOutJobFlowMapper;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
import com.ruoyi.search.ViewOutJobFlow.service.IViewOutJobFlowService;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewOutJobFlowMapper viewOutJobFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
@Override
|
||||
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId)
|
||||
{
|
||||
return viewOutJobFlowMapper.selectViewOutJobFlowByJobId(jobId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return viewOutJobFlowMapper.selectViewOutJobFlowList(viewOutJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
viewOutJobFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewOutJobFlowMapper.insertViewOutJobFlow(viewOutJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return viewOutJobFlowMapper.updateViewOutJobFlow(viewOutJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除出库做业务流水
|
||||
*
|
||||
* @param jobIds 需要删除的出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewOutJobFlowByJobIds(String[] jobIds)
|
||||
{
|
||||
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobIds(jobIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水信息
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewOutJobFlowByJobId(String jobId)
|
||||
{
|
||||
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobId(jobId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
<?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.ViewFlatWarehouseInFlow.mapper.ViewFlatWarehouseInFlowMapper">
|
||||
|
||||
<resultMap type="ViewFlatWarehouseInFlow" id="ViewFlatWarehouseInFlowResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="inOrOutSotckId" column="in_or_out_sotck_id" />
|
||||
<result property="inOrOutSotckDetailId" column="in_or_out_sotck_detail_id" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createMan" column="create_man" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="cDesc" column="c_desc" />
|
||||
<result property="warehouseKind" column="warehouse_kind" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="isCurrent" column="is_current" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewFlatWarehouseInFlowVo">
|
||||
select id, in_or_out, in_or_out_sotck_id, in_or_out_sotck_detail_id, product_guid, product_id, quantity, create_time, create_man, warehouse_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark from view_flat_warehouse_in_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewFlatWarehouseInFlowList" parameterType="ViewFlatWarehouseInFlow" resultMap="ViewFlatWarehouseInFlowResult">
|
||||
<include refid="selectViewFlatWarehouseInFlowVo"/>
|
||||
<where>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="inOrOutSotckId != null and inOrOutSotckId != ''"> and in_or_out_sotck_id like concat('%', #{inOrOutSotckId}, '%')</if>
|
||||
<if test="inOrOutSotckDetailId != null and inOrOutSotckDetailId != ''"> and in_or_out_sotck_detail_id like concat('%', #{inOrOutSotckDetailId}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="createMan != null and createMan != ''"> and create_man like concat('%', #{createMan}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
|
||||
<if test="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>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewFlatWarehouseInFlowById" parameterType="Long" resultMap="ViewFlatWarehouseInFlowResult">
|
||||
<include refid="selectViewFlatWarehouseInFlowVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewFlatWarehouseInFlow" parameterType="ViewFlatWarehouseInFlow">
|
||||
insert into view_flat_warehouse_in_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id,</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createMan != null">create_man,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="cDesc != null">c_desc,</if>
|
||||
<if test="warehouseKind != null">warehouse_kind,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="isCurrent != null">is_current,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">#{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">#{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createMan != null">#{createMan},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="cDesc != null">#{cDesc},</if>
|
||||
<if test="warehouseKind != null">#{warehouseKind},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="isCurrent != null">#{isCurrent},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewFlatWarehouseInFlow" parameterType="ViewFlatWarehouseInFlow">
|
||||
update view_flat_warehouse_in_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id = #{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id = #{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createMan != null">create_man = #{createMan},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
||||
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
||||
<if test="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>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseInFlowById" parameterType="Long">
|
||||
delete from view_flat_warehouse_in_flow where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseInFlowByIds" parameterType="String">
|
||||
delete from view_flat_warehouse_in_flow where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,156 @@
|
||||
<?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.ViewFlatWarehouseOutFlow.mapper.ViewFlatWarehouseOutFlowMapper">
|
||||
|
||||
<resultMap type="ViewFlatWarehouseOutFlow" id="ViewFlatWarehouseOutFlowResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="inOrOutSotckId" column="in_or_out_sotck_id" />
|
||||
<result property="inOrOutSotckDetailId" column="in_or_out_sotck_detail_id" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createMan" column="create_man" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="cDesc" column="c_desc" />
|
||||
<result property="warehouseKind" column="warehouse_kind" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="isCurrent" column="is_current" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewFlatWarehouseOutFlowVo">
|
||||
select id, in_or_out, in_or_out_sotck_id, in_or_out_sotck_detail_id, product_guid, product_id, quantity, create_time, create_man, warehouse_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark from view_flat_warehouse_out_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewFlatWarehouseOutFlowList" parameterType="ViewFlatWarehouseOutFlow" resultMap="ViewFlatWarehouseOutFlowResult">
|
||||
<include refid="selectViewFlatWarehouseOutFlowVo"/>
|
||||
<where>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="inOrOutSotckId != null and inOrOutSotckId != ''"> and in_or_out_sotck_id like concat('%', #{inOrOutSotckId}, '%')</if>
|
||||
<if test="inOrOutSotckDetailId != null and inOrOutSotckDetailId != ''"> and in_or_out_sotck_detail_id like concat('%', #{inOrOutSotckDetailId}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="createMan != null and createMan != ''"> and create_man like concat('%', #{createMan}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
|
||||
<if test="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>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewFlatWarehouseOutFlowById" parameterType="Long" resultMap="ViewFlatWarehouseOutFlowResult">
|
||||
<include refid="selectViewFlatWarehouseOutFlowVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewFlatWarehouseOutFlow" parameterType="ViewFlatWarehouseOutFlow">
|
||||
insert into view_flat_warehouse_out_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id,</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createMan != null">create_man,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="cDesc != null">c_desc,</if>
|
||||
<if test="warehouseKind != null">warehouse_kind,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="isCurrent != null">is_current,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">#{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">#{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createMan != null">#{createMan},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="cDesc != null">#{cDesc},</if>
|
||||
<if test="warehouseKind != null">#{warehouseKind},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="isCurrent != null">#{isCurrent},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewFlatWarehouseOutFlow" parameterType="ViewFlatWarehouseOutFlow">
|
||||
update view_flat_warehouse_out_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id = #{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id = #{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createMan != null">create_man = #{createMan},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
||||
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
||||
<if test="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>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseOutFlowById" parameterType="Long">
|
||||
delete from view_flat_warehouse_out_flow where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseOutFlowByIds" parameterType="String">
|
||||
delete from view_flat_warehouse_out_flow where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?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.ViewOutJobFlow.mapper.ViewOutJobFlowMapper">
|
||||
|
||||
<resultMap type="ViewOutJobFlow" id="ViewOutJobFlowResult">
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="jobDetailId" column="job_detail_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="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="exitId" column="exit_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="outQuantity" column="out_quantity" />
|
||||
<result property="giveNum" column="give_num" />
|
||||
<result property="inOrOutId" column="in_or_out_id" />
|
||||
<result property="inOrOutDId" column="in_or_out_d_id" />
|
||||
<result property="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" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewOutJobFlowVo">
|
||||
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, exit_id, product_id, lot_no, stacking_id, stock_status, out_quantity, give_num, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_name, spec, cargo_no, unit, customer_name from view_out_job_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewOutJobFlowList" parameterType="ViewOutJobFlow" resultMap="ViewOutJobFlowResult">
|
||||
<include refid="selectViewOutJobFlowVo"/>
|
||||
<where>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id like concat('%', #{jobDetailId}, '%')</if>
|
||||
<if test="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="exitId != null and exitId != ''"> and exit_id like concat('%', #{exitId}, '%')</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="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||
<if test="giveNum != null and giveNum != ''"> and give_num like concat('%', #{giveNum}, '%')</if>
|
||||
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id like concat('%', #{inOrOutId}, '%')</if>
|
||||
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id like concat('%', #{inOrOutDId}, '%')</if>
|
||||
<if test="createTime != null and createTime != ''"> and create_time like concat('%', #{createTime}, '%')</if>
|
||||
<if test="startTime != null and startTime != ''"> and start_time like concat('%', #{startTime}, '%')</if>
|
||||
<if test="finishTime != null and finishTime != ''"> and finish_time like concat('%', #{finishTime}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="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>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewOutJobFlowByJobId" parameterType="String" resultMap="ViewOutJobFlowResult">
|
||||
<include refid="selectViewOutJobFlowVo"/>
|
||||
where job_id = #{jobId}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewOutJobFlow" parameterType="ViewOutJobFlow">
|
||||
insert into view_out_job_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null and jobId != ''">job_id,</if>
|
||||
<if test="jobDetailId != null">job_detail_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="taskNo != null">task_no,</if>
|
||||
<if test="trayCode != null">tray_code,</if>
|
||||
<if test="roadwayId != null">roadway_id,</if>
|
||||
<if test="cargoSpaceId != null">cargo_space_id,</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name,</if>
|
||||
<if test="thePlatoon != null">the_platoon,</if>
|
||||
<if test="theColumn != null">the_column,</if>
|
||||
<if test="theFloor != null">the_floor,</if>
|
||||
<if test="priority != null">priority,</if>
|
||||
<if test="executionPhase != null">execution_phase,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="exitId != null">exit_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="outQuantity != null">out_quantity,</if>
|
||||
<if test="giveNum != null">give_num,</if>
|
||||
<if test="inOrOutId != null">in_or_out_id,</if>
|
||||
<if test="inOrOutDId != null">in_or_out_d_id,</if>
|
||||
<if test="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>
|
||||
<if test="customerName != null">customer_name,</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="exitId != null">#{exitId},</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="outQuantity != null">#{outQuantity},</if>
|
||||
<if test="giveNum != null">#{giveNum},</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>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewOutJobFlow" parameterType="ViewOutJobFlow">
|
||||
update view_out_job_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="jobDetailId != null">job_detail_id = #{jobDetailId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="taskNo != null">task_no = #{taskNo},</if>
|
||||
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
|
||||
<if test="thePlatoon != null">the_platoon = #{thePlatoon},</if>
|
||||
<if test="theColumn != null">the_column = #{theColumn},</if>
|
||||
<if test="theFloor != null">the_floor = #{theFloor},</if>
|
||||
<if test="priority != null">priority = #{priority},</if>
|
||||
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="exitId != null">exit_id = #{exitId},</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="outQuantity != null">out_quantity = #{outQuantity},</if>
|
||||
<if test="giveNum != null">give_num = #{giveNum},</if>
|
||||
<if test="inOrOutId != null">in_or_out_id = #{inOrOutId},</if>
|
||||
<if test="inOrOutDId != null">in_or_out_d_id = #{inOrOutDId},</if>
|
||||
<if test="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>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
</trim>
|
||||
where job_id = #{jobId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewOutJobFlowByJobId" parameterType="String">
|
||||
delete from view_out_job_flow where job_id = #{jobId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewOutJobFlowByJobIds" parameterType="String">
|
||||
delete from view_out_job_flow where job_id in
|
||||
<foreach item="jobId" collection="array" open="(" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user