初始化
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
package com.ruoyi.out.submit.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.submit.domain.OutPickSubmit;
|
||||
import com.ruoyi.out.submit.service.IOutPickSubmitService;
|
||||
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-08-07
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/out/submit")
|
||||
public class OutPickSubmitController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IOutPickSubmitService outPickSubmitService;
|
||||
|
||||
/**
|
||||
* 查询出库拣选缓存记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:submit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OutPickSubmit outPickSubmit)
|
||||
{
|
||||
startPage();
|
||||
List<OutPickSubmit> list = outPickSubmitService.selectOutPickSubmitList(outPickSubmit);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出出库拣选缓存记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:submit:export')")
|
||||
@Log(title = "出库拣选缓存记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OutPickSubmit outPickSubmit)
|
||||
{
|
||||
List<OutPickSubmit> list = outPickSubmitService.selectOutPickSubmitList(outPickSubmit);
|
||||
ExcelUtil<OutPickSubmit> util = new ExcelUtil<OutPickSubmit>(OutPickSubmit.class);
|
||||
util.exportExcel(response, list, "出库拣选缓存记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库拣选缓存记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:submit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(outPickSubmitService.selectOutPickSubmitById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库拣选缓存记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:submit:add')")
|
||||
@Log(title = "出库拣选缓存记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody OutPickSubmit outPickSubmit)
|
||||
{
|
||||
return toAjax(outPickSubmitService.insertOutPickSubmit(outPickSubmit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库拣选缓存记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:submit:edit')")
|
||||
@Log(title = "出库拣选缓存记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody OutPickSubmit outPickSubmit)
|
||||
{
|
||||
return toAjax(outPickSubmitService.updateOutPickSubmit(outPickSubmit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库拣选缓存记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('out:submit:remove')")
|
||||
@Log(title = "出库拣选缓存记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(outPickSubmitService.deleteOutPickSubmitByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
package com.ruoyi.out.submit.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_pick_submit
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-07
|
||||
*/
|
||||
public class OutPickSubmit extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 托盘码 */
|
||||
@Excel(name = "托盘码")
|
||||
private String trayCode;
|
||||
|
||||
/** 任务id */
|
||||
@Excel(name = "任务id")
|
||||
private String jobId;
|
||||
|
||||
/** 子任务id */
|
||||
@Excel(name = "子任务id")
|
||||
private String jobDetailId;
|
||||
|
||||
/** 品号 */
|
||||
@Excel(name = "品号")
|
||||
private String productId;
|
||||
|
||||
/** 物料数量 */
|
||||
@Excel(name = "物料数量")
|
||||
private String quantity;
|
||||
|
||||
/** 仓库 */
|
||||
@Excel(name = "仓库")
|
||||
private String warehouseId;
|
||||
|
||||
/** 出口 */
|
||||
@Excel(name = "出口")
|
||||
private String exitId;
|
||||
|
||||
/** 备用字段1 */
|
||||
@Excel(name = "备用字段1")
|
||||
private String spare1;
|
||||
|
||||
/** 备用字段2 */
|
||||
@Excel(name = "备用字段2")
|
||||
private String spare2;
|
||||
|
||||
/** 备用字段3 */
|
||||
@Excel(name = "备用字段3")
|
||||
private String spare3;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setTrayCode(String trayCode)
|
||||
{
|
||||
this.trayCode = trayCode;
|
||||
}
|
||||
|
||||
public String getTrayCode()
|
||||
{
|
||||
return trayCode;
|
||||
}
|
||||
|
||||
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 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 setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setExitId(String exitId)
|
||||
{
|
||||
this.exitId = exitId;
|
||||
}
|
||||
|
||||
public String getExitId()
|
||||
{
|
||||
return exitId;
|
||||
}
|
||||
|
||||
public void setSpare1(String spare1)
|
||||
{
|
||||
this.spare1 = spare1;
|
||||
}
|
||||
|
||||
public String getSpare1()
|
||||
{
|
||||
return spare1;
|
||||
}
|
||||
|
||||
public void setSpare2(String spare2)
|
||||
{
|
||||
this.spare2 = spare2;
|
||||
}
|
||||
|
||||
public String getSpare2()
|
||||
{
|
||||
return spare2;
|
||||
}
|
||||
|
||||
public void setSpare3(String spare3)
|
||||
{
|
||||
this.spare3 = spare3;
|
||||
}
|
||||
|
||||
public String getSpare3()
|
||||
{
|
||||
return spare3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("trayCode", getTrayCode())
|
||||
.append("jobId", getJobId())
|
||||
.append("jobDetailId", getJobDetailId())
|
||||
.append("productId", getProductId())
|
||||
.append("quantity", getQuantity())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("exitId", getExitId())
|
||||
.append("spare1", getSpare1())
|
||||
.append("spare2", getSpare2())
|
||||
.append("spare3", getSpare3())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.ruoyi.out.submit.mapper;
|
||||
|
||||
import com.ruoyi.out.submit.domain.OutPickSubmit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库拣选缓存记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-07
|
||||
*/
|
||||
public interface OutPickSubmitMapper
|
||||
{
|
||||
/**
|
||||
* 查询出库拣选缓存记录
|
||||
*
|
||||
* @param id 出库拣选缓存记录主键
|
||||
* @return 出库拣选缓存记录
|
||||
*/
|
||||
public OutPickSubmit selectOutPickSubmitById(Long id);
|
||||
|
||||
/**
|
||||
* 查询出库拣选缓存记录列表
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 出库拣选缓存记录集合
|
||||
*/
|
||||
public List<OutPickSubmit> selectOutPickSubmitList(OutPickSubmit outPickSubmit);
|
||||
|
||||
/**
|
||||
* 新增出库拣选缓存记录
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOutPickSubmit(OutPickSubmit outPickSubmit);
|
||||
|
||||
/**
|
||||
* 修改出库拣选缓存记录
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOutPickSubmit(OutPickSubmit outPickSubmit);
|
||||
|
||||
/**
|
||||
* 删除出库拣选缓存记录
|
||||
*
|
||||
* @param id 出库拣选缓存记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutPickSubmitById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除出库拣选缓存记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutPickSubmitByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.ruoyi.out.submit.service;
|
||||
|
||||
import com.ruoyi.out.submit.domain.OutPickSubmit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库拣选缓存记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-07
|
||||
*/
|
||||
public interface IOutPickSubmitService
|
||||
{
|
||||
/**
|
||||
* 查询出库拣选缓存记录
|
||||
*
|
||||
* @param id 出库拣选缓存记录主键
|
||||
* @return 出库拣选缓存记录
|
||||
*/
|
||||
public OutPickSubmit selectOutPickSubmitById(Long id);
|
||||
|
||||
/**
|
||||
* 查询出库拣选缓存记录列表
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 出库拣选缓存记录集合
|
||||
*/
|
||||
public List<OutPickSubmit> selectOutPickSubmitList(OutPickSubmit outPickSubmit);
|
||||
|
||||
/**
|
||||
* 新增出库拣选缓存记录
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOutPickSubmit(OutPickSubmit outPickSubmit);
|
||||
|
||||
/**
|
||||
* 修改出库拣选缓存记录
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOutPickSubmit(OutPickSubmit outPickSubmit);
|
||||
|
||||
/**
|
||||
* 批量删除出库拣选缓存记录
|
||||
*
|
||||
* @param ids 需要删除的出库拣选缓存记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutPickSubmitByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除出库拣选缓存记录信息
|
||||
*
|
||||
* @param id 出库拣选缓存记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOutPickSubmitById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package com.ruoyi.out.submit.service.impl;
|
||||
|
||||
import com.ruoyi.out.submit.domain.OutPickSubmit;
|
||||
import com.ruoyi.out.submit.mapper.OutPickSubmitMapper;
|
||||
import com.ruoyi.out.submit.service.IOutPickSubmitService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出库拣选缓存记录Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-07
|
||||
*/
|
||||
@Service
|
||||
public class OutPickSubmitServiceImpl implements IOutPickSubmitService
|
||||
{
|
||||
@Autowired
|
||||
private OutPickSubmitMapper outPickSubmitMapper;
|
||||
|
||||
/**
|
||||
* 查询出库拣选缓存记录
|
||||
*
|
||||
* @param id 出库拣选缓存记录主键
|
||||
* @return 出库拣选缓存记录
|
||||
*/
|
||||
@Override
|
||||
public OutPickSubmit selectOutPickSubmitById(Long id)
|
||||
{
|
||||
return outPickSubmitMapper.selectOutPickSubmitById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出库拣选缓存记录列表
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 出库拣选缓存记录
|
||||
*/
|
||||
@Override
|
||||
public List<OutPickSubmit> selectOutPickSubmitList(OutPickSubmit outPickSubmit)
|
||||
{
|
||||
return outPickSubmitMapper.selectOutPickSubmitList(outPickSubmit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库拣选缓存记录
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOutPickSubmit(OutPickSubmit outPickSubmit)
|
||||
{
|
||||
return outPickSubmitMapper.insertOutPickSubmit(outPickSubmit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库拣选缓存记录
|
||||
*
|
||||
* @param outPickSubmit 出库拣选缓存记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOutPickSubmit(OutPickSubmit outPickSubmit)
|
||||
{
|
||||
return outPickSubmitMapper.updateOutPickSubmit(outPickSubmit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除出库拣选缓存记录
|
||||
*
|
||||
* @param ids 需要删除的出库拣选缓存记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOutPickSubmitByIds(Long[] ids)
|
||||
{
|
||||
return outPickSubmitMapper.deleteOutPickSubmitByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库拣选缓存记录信息
|
||||
*
|
||||
* @param id 出库拣选缓存记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOutPickSubmitById(Long id)
|
||||
{
|
||||
return outPickSubmitMapper.deleteOutPickSubmitById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user