初始化
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
package com.ruoyi.out.outStockoutFinish.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.out.outStockoutFinish.domain.OutStockoutFinish;
|
||||
import com.ruoyi.out.outStockoutFinish.service.IOutStockoutFinishService;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库单据完成表Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/out/outStockoutFinish")
|
||||
public class OutStockoutFinishController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IOutStockoutFinishService outStockoutFinishService;
|
||||
|
||||
/**
|
||||
* 查询出库单据完成表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:outStockoutFinish:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
startPage();
|
||||
List<OutStockoutFinish> list = outStockoutFinishService.selectOutStockoutFinishList(outStockoutFinish);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出出库单据完成表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:outStockoutFinish:export')")
|
||||
@Log(title = "出库单据完成表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
List<OutStockoutFinish> list = outStockoutFinishService.selectOutStockoutFinishList(outStockoutFinish);
|
||||
ExcelUtil<OutStockoutFinish> util = new ExcelUtil<OutStockoutFinish>(OutStockoutFinish.class);
|
||||
util.exportExcel(response, list, "出库单据完成表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库单据完成表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:outStockoutFinish:query')")
|
||||
@GetMapping(value = "/{stockoutGuid}")
|
||||
public AjaxResult getInfo(@PathVariable("stockoutGuid") String stockoutGuid)
|
||||
{
|
||||
return success(outStockoutFinishService.selectOutStockoutFinishByStockoutGuid(stockoutGuid));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库单据完成表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:outStockoutFinish:add')")
|
||||
@Log(title = "出库单据完成表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
return toAjax(outStockoutFinishService.insertOutStockoutFinish(outStockoutFinish));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库单据完成表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:outStockoutFinish:edit')")
|
||||
@Log(title = "出库单据完成表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
return toAjax(outStockoutFinishService.updateOutStockoutFinish(outStockoutFinish));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库单据完成表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:outStockoutFinish:remove')")
|
||||
@Log(title = "出库单据完成表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{stockoutGuids}")
|
||||
public AjaxResult remove(@PathVariable String[] stockoutGuids)
|
||||
{
|
||||
return toAjax(outStockoutFinishService.deleteOutStockoutFinishByStockoutGuids(stockoutGuids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
package com.ruoyi.out.outStockoutFinish.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 出库单据完成表对象 out_stockout_finish
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-23
|
||||
*/
|
||||
public class OutStockoutFinish extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 出库单据guid */
|
||||
@Excel(name = "出库单据guid")
|
||||
private String stockoutGuid;
|
||||
|
||||
/** 出库单编码 */
|
||||
@Excel(name = "出库单编码")
|
||||
private String stockoutId;
|
||||
|
||||
/** 出库类型 */
|
||||
@Excel(name = "出库类型")
|
||||
private String outType;
|
||||
|
||||
/** 创建时间 */
|
||||
@Excel(name = "创建时间")
|
||||
private String createDate;
|
||||
|
||||
/** 部门编号 */
|
||||
@Excel(name = "部门编号")
|
||||
private String departmentNo;
|
||||
|
||||
/** 客户编号 */
|
||||
@Excel(name = "客户编号")
|
||||
private String customerNo;
|
||||
|
||||
/** 建单人 */
|
||||
@Excel(name = "建单人")
|
||||
private String createManId;
|
||||
|
||||
/** 单据状态 */
|
||||
@Excel(name = "单据状态")
|
||||
private String status;
|
||||
|
||||
/** 单据来源 */
|
||||
@Excel(name = "单据来源")
|
||||
private String stockoutSource;
|
||||
|
||||
/** 仓库 */
|
||||
@Excel(name = "仓库")
|
||||
private String warehouseId;
|
||||
|
||||
/** 班组 */
|
||||
@Excel(name = "班组")
|
||||
private String classNowId;
|
||||
|
||||
/** 出口 */
|
||||
@Excel(name = "出口")
|
||||
private String exitId;
|
||||
|
||||
/** 车牌 */
|
||||
@Excel(name = "车牌")
|
||||
private String carNumber;
|
||||
|
||||
/** 外部订单号 */
|
||||
@Excel(name = "外部订单号")
|
||||
private String FID;
|
||||
|
||||
/** erp订单号 */
|
||||
@Excel(name = "erp订单号")
|
||||
private String erpStockoutId;
|
||||
|
||||
/** 开始时间 */
|
||||
@Excel(name = "开始时间")
|
||||
private String startDate;
|
||||
|
||||
/** 完成时间 */
|
||||
@Excel(name = "完成时间")
|
||||
private String finishDate;
|
||||
|
||||
private String customerName;
|
||||
|
||||
private String warehouseName;
|
||||
|
||||
public String getCustomerName() {
|
||||
return customerName;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName) {
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getWarehouseName() {
|
||||
return warehouseName;
|
||||
}
|
||||
|
||||
public void setWarehouseName(String warehouseName) {
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
|
||||
public void setStockoutGuid(String stockoutGuid)
|
||||
{
|
||||
this.stockoutGuid = stockoutGuid;
|
||||
}
|
||||
|
||||
public String getStockoutGuid()
|
||||
{
|
||||
return stockoutGuid;
|
||||
}
|
||||
|
||||
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 setDepartmentNo(String departmentNo)
|
||||
{
|
||||
this.departmentNo = departmentNo;
|
||||
}
|
||||
|
||||
public String getDepartmentNo()
|
||||
{
|
||||
return departmentNo;
|
||||
}
|
||||
|
||||
public void setCustomerNo(String customerNo)
|
||||
{
|
||||
this.customerNo = customerNo;
|
||||
}
|
||||
|
||||
public String getCustomerNo()
|
||||
{
|
||||
return customerNo;
|
||||
}
|
||||
|
||||
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 setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setClassNowId(String classNowId)
|
||||
{
|
||||
this.classNowId = classNowId;
|
||||
}
|
||||
|
||||
public String getClassNowId()
|
||||
{
|
||||
return classNowId;
|
||||
}
|
||||
|
||||
public void setExitId(String exitId)
|
||||
{
|
||||
this.exitId = exitId;
|
||||
}
|
||||
|
||||
public String getExitId()
|
||||
{
|
||||
return exitId;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber)
|
||||
{
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public String getCarNumber()
|
||||
{
|
||||
return carNumber;
|
||||
}
|
||||
|
||||
public void setFID(String FID)
|
||||
{
|
||||
this.FID = FID;
|
||||
}
|
||||
|
||||
public String getFID()
|
||||
{
|
||||
return FID;
|
||||
}
|
||||
|
||||
public void setErpStockoutId(String erpStockoutId)
|
||||
{
|
||||
this.erpStockoutId = erpStockoutId;
|
||||
}
|
||||
|
||||
public String getErpStockoutId()
|
||||
{
|
||||
return erpStockoutId;
|
||||
}
|
||||
|
||||
public void setStartDate(String startDate)
|
||||
{
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
public String getStartDate()
|
||||
{
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setFinishDate(String finishDate)
|
||||
{
|
||||
this.finishDate = finishDate;
|
||||
}
|
||||
|
||||
public String getFinishDate()
|
||||
{
|
||||
return finishDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("stockoutGuid", getStockoutGuid())
|
||||
.append("stockoutId", getStockoutId())
|
||||
.append("outType", getOutType())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("departmentNo", getDepartmentNo())
|
||||
.append("customerNo", getCustomerNo())
|
||||
.append("createManId", getCreateManId())
|
||||
.append("status", getStatus())
|
||||
.append("stockoutSource", getStockoutSource())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("classNowId", getClassNowId())
|
||||
.append("exitId", getExitId())
|
||||
.append("carNumber", getCarNumber())
|
||||
.append("FID", getFID())
|
||||
.append("erpStockoutId", getErpStockoutId())
|
||||
.append("startDate", getStartDate())
|
||||
.append("finishDate", getFinishDate())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.out.outStockoutFinish.mapper;
|
||||
|
||||
import com.ruoyi.out.outStockout.domain.OutStockout;
|
||||
import com.ruoyi.out.outStockoutFinish.domain.OutStockoutFinish;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库单据完成表Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-23
|
||||
*/
|
||||
public interface OutStockoutFinishMapper
|
||||
{
|
||||
/**
|
||||
* 查询出库单据完成表
|
||||
*
|
||||
* @param stockoutGuid 出库单据完成表主键
|
||||
* @return 出库单据完成表
|
||||
*/
|
||||
public OutStockoutFinish selectOutStockoutFinishByStockoutGuid(String stockoutGuid);
|
||||
|
||||
/**
|
||||
* 查询出库单据完成表列表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 出库单据完成表集合
|
||||
*/
|
||||
public List<OutStockoutFinish> selectOutStockoutFinishList(OutStockoutFinish outStockoutFinish);
|
||||
|
||||
/**
|
||||
* 新增出库单据完成表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOutStockoutFinish(OutStockoutFinish outStockoutFinish);
|
||||
|
||||
/**
|
||||
* 修改出库单据完成表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOutStockoutFinish(OutStockoutFinish outStockoutFinish);
|
||||
|
||||
/**
|
||||
* 删除出库单据完成表
|
||||
*
|
||||
* @param stockoutGuid 出库单据完成表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutStockoutFinishByStockoutGuid(String stockoutGuid);
|
||||
|
||||
/**
|
||||
* 批量删除出库单据完成表
|
||||
*
|
||||
* @param stockoutGuids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutStockoutFinishByStockoutGuids(String[] stockoutGuids);
|
||||
|
||||
public List<OutStockout> selectOutStockoutFinishListByOutStockout(OutStockout outStockout);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.out.outStockoutFinish.service;
|
||||
|
||||
import com.ruoyi.out.outStockout.domain.OutStockout;
|
||||
import com.ruoyi.out.outStockoutFinish.domain.OutStockoutFinish;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库单据完成表Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-23
|
||||
*/
|
||||
public interface IOutStockoutFinishService
|
||||
{
|
||||
/**
|
||||
* 查询出库单据完成表
|
||||
*
|
||||
* @param stockoutGuid 出库单据完成表主键
|
||||
* @return 出库单据完成表
|
||||
*/
|
||||
public OutStockoutFinish selectOutStockoutFinishByStockoutGuid(String stockoutGuid);
|
||||
|
||||
/**
|
||||
* 查询出库单据完成表列表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 出库单据完成表集合
|
||||
*/
|
||||
public List<OutStockoutFinish> selectOutStockoutFinishList(OutStockoutFinish outStockoutFinish);
|
||||
|
||||
/**
|
||||
* 新增出库单据完成表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOutStockoutFinish(OutStockoutFinish outStockoutFinish);
|
||||
|
||||
/**
|
||||
* 修改出库单据完成表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOutStockoutFinish(OutStockoutFinish outStockoutFinish);
|
||||
|
||||
/**
|
||||
* 批量删除出库单据完成表
|
||||
*
|
||||
* @param stockoutGuids 需要删除的出库单据完成表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutStockoutFinishByStockoutGuids(String[] stockoutGuids);
|
||||
|
||||
/**
|
||||
* 删除出库单据完成表信息
|
||||
*
|
||||
* @param stockoutGuid 出库单据完成表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutStockoutFinishByStockoutGuid(String stockoutGuid);
|
||||
|
||||
public List<OutStockout> selectOutStockoutFinishListByOutStockout(OutStockout outStockout);
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.ruoyi.out.outStockoutFinish.service.impl;
|
||||
|
||||
import com.ruoyi.out.outStockout.domain.OutStockout;
|
||||
import com.ruoyi.out.outStockoutFinish.domain.OutStockoutFinish;
|
||||
import com.ruoyi.out.outStockoutFinish.mapper.OutStockoutFinishMapper;
|
||||
import com.ruoyi.out.outStockoutFinish.service.IOutStockoutFinishService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库单据完成表Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-23
|
||||
*/
|
||||
@Service
|
||||
public class OutStockoutFinishServiceImpl implements IOutStockoutFinishService
|
||||
{
|
||||
@Autowired
|
||||
private OutStockoutFinishMapper outStockoutFinishMapper;
|
||||
|
||||
/**
|
||||
* 查询出库单据完成表
|
||||
*
|
||||
* @param stockoutGuid 出库单据完成表主键
|
||||
* @return 出库单据完成表
|
||||
*/
|
||||
@Override
|
||||
public OutStockoutFinish selectOutStockoutFinishByStockoutGuid(String stockoutGuid)
|
||||
{
|
||||
return outStockoutFinishMapper.selectOutStockoutFinishByStockoutGuid(stockoutGuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出库单据完成表列表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 出库单据完成表
|
||||
*/
|
||||
@Override
|
||||
public List<OutStockoutFinish> selectOutStockoutFinishList(OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
return outStockoutFinishMapper.selectOutStockoutFinishList(outStockoutFinish);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库单据完成表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOutStockoutFinish(OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
return outStockoutFinishMapper.insertOutStockoutFinish(outStockoutFinish);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库单据完成表
|
||||
*
|
||||
* @param outStockoutFinish 出库单据完成表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOutStockoutFinish(OutStockoutFinish outStockoutFinish)
|
||||
{
|
||||
return outStockoutFinishMapper.updateOutStockoutFinish(outStockoutFinish);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除出库单据完成表
|
||||
*
|
||||
* @param stockoutGuids 需要删除的出库单据完成表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOutStockoutFinishByStockoutGuids(String[] stockoutGuids)
|
||||
{
|
||||
return outStockoutFinishMapper.deleteOutStockoutFinishByStockoutGuids(stockoutGuids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库单据完成表信息
|
||||
*
|
||||
* @param stockoutGuid 出库单据完成表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOutStockoutFinishByStockoutGuid(String stockoutGuid)
|
||||
{
|
||||
return outStockoutFinishMapper.deleteOutStockoutFinishByStockoutGuid(stockoutGuid);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OutStockout> selectOutStockoutFinishListByOutStockout(OutStockout outStockout) {
|
||||
return outStockoutFinishMapper.selectOutStockoutFinishListByOutStockout(outStockout);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user