diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/controller/ToWmsApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/controller/ToWmsApiController.java index a92c5cd..fe05af8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/api/controller/ToWmsApiController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/controller/ToWmsApiController.java @@ -56,6 +56,14 @@ public class ToWmsApiController { requestLogService.insertRequestLog(requestLog); return ajaxResult; } + @PostMapping("/sendCargoSpace") + public AjaxResult sendCargoSpace(@RequestBody RequestEnter requestEnter) { + AjaxResult ajaxResult = toWmsService.requestEnterByTaskNo(requestEnter); + RequestLog requestLog = requestLogService.getRequestLog(JSONUtil.toJsonStr(requestEnter), "入库任务创建请求",ajaxResult); + requestLogService.insertRequestLog(requestLog); + return ajaxResult; + } + // 入库分货位 @PostMapping("/sendCargoSpace") diff --git a/ruoyi-admin/src/main/java/com/ruoyi/pda/domain/TrayCodeMsg.java b/ruoyi-admin/src/main/java/com/ruoyi/pda/domain/TrayCodeMsg.java index 71cb587..d3e3288 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/pda/domain/TrayCodeMsg.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/pda/domain/TrayCodeMsg.java @@ -41,6 +41,16 @@ private String stockoutDetailId; this.trayType = trayType; } +private String trayType; + + public String getTrayType() { + return trayType; + } + + public void setTrayType(String trayType) { + this.trayType = trayType; + } + public String getStatus() { return status; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/controller/BasStockHcController.java b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/controller/BasStockHcController.java new file mode 100644 index 0000000..4aa8a53 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/controller/BasStockHcController.java @@ -0,0 +1,104 @@ +package com.ruoyi.stock.hcstock.controller; + +import java.util.List; +import jakarta.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.stock.hcstock.domain.BasStockHc; +import com.ruoyi.stock.hcstock.service.IBasStockHcService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 缓存库存信息Controller + * + * @author ruoyi + * @date 2026-03-23 + */ +@RestController +@RequestMapping("/hcstock/hcstock") +public class BasStockHcController extends BaseController +{ + @Autowired + private IBasStockHcService basStockHcService; + + /** + * 查询缓存库存信息列表 + */ + @PreAuthorize("@ss.hasPermi('hcstock:hcstock:list')") + @GetMapping("/list") + public TableDataInfo list(BasStockHc basStockHc) + { + startPage(); + List list = basStockHcService.selectBasStockHcList(basStockHc); + return getDataTable(list); + } + + /** + * 导出缓存库存信息列表 + */ + @PreAuthorize("@ss.hasPermi('hcstock:hcstock:export')") + @Log(title = "缓存库存信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BasStockHc basStockHc) + { + List list = basStockHcService.selectBasStockHcList(basStockHc); + ExcelUtil util = new ExcelUtil(BasStockHc.class); + util.exportExcel(response, list, "缓存库存信息数据"); + } + + /** + * 获取缓存库存信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('hcstock:hcstock:query')") + @GetMapping(value = "/{stockId}") + public AjaxResult getInfo(@PathVariable("stockId") String stockId) + { + return success(basStockHcService.selectBasStockHcByStockId(stockId)); + } + + /** + * 新增缓存库存信息 + */ + @PreAuthorize("@ss.hasPermi('hcstock:hcstock:add')") + @Log(title = "缓存库存信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BasStockHc basStockHc) + { + return toAjax(basStockHcService.insertBasStockHc(basStockHc)); + } + + /** + * 修改缓存库存信息 + */ + @PreAuthorize("@ss.hasPermi('hcstock:hcstock:edit')") + @Log(title = "缓存库存信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BasStockHc basStockHc) + { + return toAjax(basStockHcService.updateBasStockHc(basStockHc)); + } + + /** + * 删除缓存库存信息 + */ + @PreAuthorize("@ss.hasPermi('hcstock:hcstock:remove')") + @Log(title = "缓存库存信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{stockIds}") + public AjaxResult remove(@PathVariable String[] stockIds) + { + return toAjax(basStockHcService.deleteBasStockHcByStockIds(stockIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/domain/BasStockHc.java b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/domain/BasStockHc.java new file mode 100644 index 0000000..7c7a5c6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/domain/BasStockHc.java @@ -0,0 +1,562 @@ +package com.ruoyi.stock.hcstock.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; + +/** + * 缓存库存信息对象 bas_stock_hc + * + * @author ruoyi + * @date 2026-03-23 + */ +public class BasStockHc extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 库存id */ + private String stockId; + + /** 货位id */ + @Excel(name = "货位id") + private String cargoSpaceId; + + /** 库存状态 1正常 2冻结 */ + @Excel(name = "库存状态 1正常 2冻结") + private String stockStatus; + + /** 物料状态 1正常 2盘点待审批 3异常 */ + @Excel(name = "物料状态 1正常 2盘点待审批 3异常") + private String productStatus; + + /** 546批号 */ + @Excel(name = "546批号") + private String lotNo; + + /** 入库时间 */ + @Excel(name = "入库时间") + private String inDate; + + /** 回流时间 */ + @Excel(name = "回流时间") + private String backDate; + + /** 物料GUID */ + @Excel(name = "物料GUID") + private String productGuid; + + /** 库存数量 */ + @Excel(name = "库存数量") + private String quantity; + + /** 作业ID */ + @Excel(name = "作业ID") + private String jobId; + + /** 托盘条码 */ + @Excel(name = "托盘条码") + private String trayCode; + + /** 出库数量 */ + @Excel(name = "出库数量") + private String outQuantity; + + /** 入库子单id */ + @Excel(name = "入库子单id") + private String stockinDetailId; + + /** 入库主单 */ + @Excel(name = "入库主单") + private String stockinId; + + /** 入库类型 */ + @Excel(name = "入库类型") + private String inType; + + /** 入库班组ID */ + @Excel(name = "入库班组ID") + private String inClassId; + + /** 仓库 */ + @Excel(name = "仓库") + private String warehouseId; + + /** 供应商名称546 */ + @Excel(name = "供应商名称546") + private String stackingId; + + /** 层级关系546 */ + @Excel(name = "层级关系546") + private String spare1; + + /** 上层物料546 */ + @Excel(name = "上层物料546") + private String spare2; + + /** 顶层物料546 */ + @Excel(name = "顶层物料546") + private String spare3; + + /** 项目号546 */ + @Excel(name = "项目号546") + private String spare4; + + /** 合同号546 */ + @Excel(name = "合同号546") + private String spare5; + + /** 销售订单号546 */ + @Excel(name = "销售订单号546") + private String spare6; + + /** 物料编码 */ + @Excel(name = "物料编码") + private String productId; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String productName; + + /** 供应商编码546 */ + @Excel(name = "供应商编码546") + private String voltage; + + /** 规格型号546 */ + @Excel(name = "规格型号546") + private String power; + + /** 计量单位546 */ + @Excel(name = "计量单位546") + private String phase; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String netWeight; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String grossWeight; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String distribution; + + /** 是否满盘546,0否1是 */ + @Excel(name = "是否满盘546,0否1是") + private String model; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String orderId; + + /** 盘点记录 0-未盘点 1-已盘点 */ + @Excel(name = "盘点记录 0-未盘点 1-已盘点") + private String spare7; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String spare8; + + public void setStockId(String stockId) + { + this.stockId = stockId; + } + + public String getStockId() + { + return stockId; + } + + public void setCargoSpaceId(String cargoSpaceId) + { + this.cargoSpaceId = cargoSpaceId; + } + + public String getCargoSpaceId() + { + return cargoSpaceId; + } + + public void setStockStatus(String stockStatus) + { + this.stockStatus = stockStatus; + } + + public String getStockStatus() + { + return stockStatus; + } + + public void setProductStatus(String productStatus) + { + this.productStatus = productStatus; + } + + public String getProductStatus() + { + return productStatus; + } + + public void setLotNo(String lotNo) + { + this.lotNo = lotNo; + } + + public String getLotNo() + { + return lotNo; + } + + public void setInDate(String inDate) + { + this.inDate = inDate; + } + + public String getInDate() + { + return inDate; + } + + public void setBackDate(String backDate) + { + this.backDate = backDate; + } + + public String getBackDate() + { + return backDate; + } + + public void setProductGuid(String productGuid) + { + this.productGuid = productGuid; + } + + public String getProductGuid() + { + return productGuid; + } + + public void setQuantity(String quantity) + { + this.quantity = quantity; + } + + public String getQuantity() + { + return quantity; + } + + public void setJobId(String jobId) + { + this.jobId = jobId; + } + + public String getJobId() + { + return jobId; + } + + public void setTrayCode(String trayCode) + { + this.trayCode = trayCode; + } + + public String getTrayCode() + { + return trayCode; + } + + public void setOutQuantity(String outQuantity) + { + this.outQuantity = outQuantity; + } + + public String getOutQuantity() + { + return outQuantity; + } + + public void setStockinDetailId(String stockinDetailId) + { + this.stockinDetailId = stockinDetailId; + } + + public String getStockinDetailId() + { + return stockinDetailId; + } + + public void setStockinId(String stockinId) + { + this.stockinId = stockinId; + } + + public String getStockinId() + { + return stockinId; + } + + public void setInType(String inType) + { + this.inType = inType; + } + + public String getInType() + { + return inType; + } + + public void setInClassId(String inClassId) + { + this.inClassId = inClassId; + } + + public String getInClassId() + { + return inClassId; + } + + public void setWarehouseId(String warehouseId) + { + this.warehouseId = warehouseId; + } + + public String getWarehouseId() + { + return warehouseId; + } + + public void setStackingId(String stackingId) + { + this.stackingId = stackingId; + } + + public String getStackingId() + { + return stackingId; + } + + 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; + } + + public void setSpare4(String spare4) + { + this.spare4 = spare4; + } + + public String getSpare4() + { + return spare4; + } + + public void setSpare5(String spare5) + { + this.spare5 = spare5; + } + + public String getSpare5() + { + return spare5; + } + + public void setSpare6(String spare6) + { + this.spare6 = spare6; + } + + public String getSpare6() + { + return spare6; + } + + public void setProductId(String productId) + { + this.productId = productId; + } + + public String getProductId() + { + return productId; + } + + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + + public void setVoltage(String voltage) + { + this.voltage = voltage; + } + + public String getVoltage() + { + return voltage; + } + + public void setPower(String power) + { + this.power = power; + } + + public String getPower() + { + return power; + } + + public void setPhase(String phase) + { + this.phase = phase; + } + + public String getPhase() + { + return phase; + } + + public void setNetWeight(String netWeight) + { + this.netWeight = netWeight; + } + + public String getNetWeight() + { + return netWeight; + } + + public void setGrossWeight(String grossWeight) + { + this.grossWeight = grossWeight; + } + + public String getGrossWeight() + { + return grossWeight; + } + + public void setDistribution(String distribution) + { + this.distribution = distribution; + } + + public String getDistribution() + { + return distribution; + } + + public void setModel(String model) + { + this.model = model; + } + + public String getModel() + { + return model; + } + + public void setOrderId(String orderId) + { + this.orderId = orderId; + } + + public String getOrderId() + { + return orderId; + } + + public void setSpare7(String spare7) + { + this.spare7 = spare7; + } + + public String getSpare7() + { + return spare7; + } + + public void setSpare8(String spare8) + { + this.spare8 = spare8; + } + + public String getSpare8() + { + return spare8; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("stockId", getStockId()) + .append("cargoSpaceId", getCargoSpaceId()) + .append("stockStatus", getStockStatus()) + .append("productStatus", getProductStatus()) + .append("lotNo", getLotNo()) + .append("inDate", getInDate()) + .append("backDate", getBackDate()) + .append("productGuid", getProductGuid()) + .append("quantity", getQuantity()) + .append("jobId", getJobId()) + .append("trayCode", getTrayCode()) + .append("outQuantity", getOutQuantity()) + .append("stockinDetailId", getStockinDetailId()) + .append("stockinId", getStockinId()) + .append("inType", getInType()) + .append("inClassId", getInClassId()) + .append("warehouseId", getWarehouseId()) + .append("stackingId", getStackingId()) + .append("spare1", getSpare1()) + .append("spare2", getSpare2()) + .append("spare3", getSpare3()) + .append("spare4", getSpare4()) + .append("spare5", getSpare5()) + .append("spare6", getSpare6()) + .append("productId", getProductId()) + .append("productName", getProductName()) + .append("voltage", getVoltage()) + .append("power", getPower()) + .append("phase", getPhase()) + .append("netWeight", getNetWeight()) + .append("grossWeight", getGrossWeight()) + .append("distribution", getDistribution()) + .append("model", getModel()) + .append("orderId", getOrderId()) + .append("spare7", getSpare7()) + .append("spare8", getSpare8()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/mapper/BasStockHcMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/mapper/BasStockHcMapper.java new file mode 100644 index 0000000..3e7b8c8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/mapper/BasStockHcMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.stock.hcstock.mapper; + +import java.util.List; +import com.ruoyi.stock.hcstock.domain.BasStockHc; + +/** + * 缓存库存信息Mapper接口 + * + * @author ruoyi + * @date 2026-03-23 + */ +public interface BasStockHcMapper +{ + /** + * 查询缓存库存信息 + * + * @param stockId 缓存库存信息主键 + * @return 缓存库存信息 + */ + public BasStockHc selectBasStockHcByStockId(String stockId); + + /** + * 查询缓存库存信息列表 + * + * @param basStockHc 缓存库存信息 + * @return 缓存库存信息集合 + */ + public List selectBasStockHcList(BasStockHc basStockHc); + + /** + * 新增缓存库存信息 + * + * @param basStockHc 缓存库存信息 + * @return 结果 + */ + public int insertBasStockHc(BasStockHc basStockHc); + + /** + * 修改缓存库存信息 + * + * @param basStockHc 缓存库存信息 + * @return 结果 + */ + public int updateBasStockHc(BasStockHc basStockHc); + + /** + * 删除缓存库存信息 + * + * @param stockId 缓存库存信息主键 + * @return 结果 + */ + public int deleteBasStockHcByStockId(String stockId); + + /** + * 批量删除缓存库存信息 + * + * @param stockIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBasStockHcByStockIds(String[] stockIds); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/service/IBasStockHcService.java b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/service/IBasStockHcService.java new file mode 100644 index 0000000..6b9be5b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/service/IBasStockHcService.java @@ -0,0 +1,61 @@ +package com.ruoyi.stock.hcstock.service; + +import java.util.List; +import com.ruoyi.stock.hcstock.domain.BasStockHc; + +/** + * 缓存库存信息Service接口 + * + * @author ruoyi + * @date 2026-03-23 + */ +public interface IBasStockHcService +{ + /** + * 查询缓存库存信息 + * + * @param stockId 缓存库存信息主键 + * @return 缓存库存信息 + */ + public BasStockHc selectBasStockHcByStockId(String stockId); + + /** + * 查询缓存库存信息列表 + * + * @param basStockHc 缓存库存信息 + * @return 缓存库存信息集合 + */ + public List selectBasStockHcList(BasStockHc basStockHc); + + /** + * 新增缓存库存信息 + * + * @param basStockHc 缓存库存信息 + * @return 结果 + */ + public int insertBasStockHc(BasStockHc basStockHc); + + /** + * 修改缓存库存信息 + * + * @param basStockHc 缓存库存信息 + * @return 结果 + */ + public int updateBasStockHc(BasStockHc basStockHc); + + /** + * 批量删除缓存库存信息 + * + * @param stockIds 需要删除的缓存库存信息主键集合 + * @return 结果 + */ + public int deleteBasStockHcByStockIds(String[] stockIds); + + /** + * 删除缓存库存信息信息 + * + * @param stockId 缓存库存信息主键 + * @return 结果 + */ + public int deleteBasStockHcByStockId(String stockId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/service/impl/BasStockHcServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/service/impl/BasStockHcServiceImpl.java new file mode 100644 index 0000000..94fc4a0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/stock/hcstock/service/impl/BasStockHcServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.stock.hcstock.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.stock.hcstock.mapper.BasStockHcMapper; +import com.ruoyi.stock.hcstock.domain.BasStockHc; +import com.ruoyi.stock.hcstock.service.IBasStockHcService; + +/** + * 缓存库存信息Service业务层处理 + * + * @author ruoyi + * @date 2026-03-23 + */ +@Service +public class BasStockHcServiceImpl implements IBasStockHcService +{ + @Autowired + private BasStockHcMapper basStockHcMapper; + + /** + * 查询缓存库存信息 + * + * @param stockId 缓存库存信息主键 + * @return 缓存库存信息 + */ + @Override + public BasStockHc selectBasStockHcByStockId(String stockId) + { + return basStockHcMapper.selectBasStockHcByStockId(stockId); + } + + /** + * 查询缓存库存信息列表 + * + * @param basStockHc 缓存库存信息 + * @return 缓存库存信息 + */ + @Override + public List selectBasStockHcList(BasStockHc basStockHc) + { + return basStockHcMapper.selectBasStockHcList(basStockHc); + } + + /** + * 新增缓存库存信息 + * + * @param basStockHc 缓存库存信息 + * @return 结果 + */ + @Override + public int insertBasStockHc(BasStockHc basStockHc) + { + return basStockHcMapper.insertBasStockHc(basStockHc); + } + + /** + * 修改缓存库存信息 + * + * @param basStockHc 缓存库存信息 + * @return 结果 + */ + @Override + public int updateBasStockHc(BasStockHc basStockHc) + { + return basStockHcMapper.updateBasStockHc(basStockHc); + } + + /** + * 批量删除缓存库存信息 + * + * @param stockIds 需要删除的缓存库存信息主键 + * @return 结果 + */ + @Override + public int deleteBasStockHcByStockIds(String[] stockIds) + { + return basStockHcMapper.deleteBasStockHcByStockIds(stockIds); + } + + /** + * 删除缓存库存信息信息 + * + * @param stockId 缓存库存信息主键 + * @return 结果 + */ + @Override + public int deleteBasStockHcByStockId(String stockId) + { + return basStockHcMapper.deleteBasStockHcByStockId(stockId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/agv/AgvContainerTaskMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/agv/AgvContainerTaskMapper.xml new file mode 100644 index 0000000..d77df5c --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/agv/AgvContainerTaskMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + select id, container, start_point, end_point, create_time, start_time, finish_time, task_no, status, spare1, spare2 from agv_container_task + + + + + + + + insert into agv_container_task + + container, + start_point, + end_point, + create_time, + start_time, + finish_time, + task_no, + status, + spare1, + spare2, + + + #{container}, + #{startPoint}, + #{endPoint}, + #{createTime}, + #{startTime}, + #{finishTime}, + #{taskNo}, + #{status}, + #{spare1}, + #{spare2}, + + + + insert into agv_container_task_finish + select * from agv_container_task where id = #{id} + + + + update agv_container_task + + container = #{container}, + start_point = #{startPoint}, + end_point = #{endPoint}, + create_time = #{createTime}, + start_time = #{startTime}, + finish_time = #{finishTime}, + task_no = #{taskNo}, + status = #{status}, + spare1 = #{spare1}, + spare2 = #{spare2}, + + where id = #{id} + + + + delete from agv_container_task where id = #{id} + + + + delete from agv_container_task where id in + + #{id} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/ai/ChatMessageMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/ai/ChatMessageMapper.xml new file mode 100644 index 0000000..60d0853 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/ai/ChatMessageMapper.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, session_id, conversation_id, content, role, deduct_cost, total_tokens, model_name, create_dept, create_by, create_time, update_by, update_time, remark from chat_message + + + + + + + + insert into chat_message + + id, + session_id, + conversation_id, + content, + role, + deduct_cost, + total_tokens, + model_name, + create_dept, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{id}, + #{sessionId}, + #{conversationId}, + #{content}, + #{role}, + #{deductCost}, + #{totalTokens}, + #{modelName}, + #{createDept}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update chat_message + + session_id = #{sessionId}, + conversation_id = #{conversationId}, + content = #{content}, + role = #{role}, + deduct_cost = #{deductCost}, + total_tokens = #{totalTokens}, + model_name = #{modelName}, + create_dept = #{createDept}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from chat_message where id = #{id} + + + + delete from chat_message where id in + + #{id} + + + + delete from chat_message where conversation_id = #{conversationId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/ai/ConversationsMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/ai/ConversationsMapper.xml new file mode 100644 index 0000000..aedf6cb --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/ai/ConversationsMapper.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + select id, session_id, user_id, title, status, metadata, first_query, message_count, token_usage, created_at, updated_at, last_interaction_at from conversations + + + + + + + + insert into conversations + + session_id, + user_id, + title, + status, + metadata, + first_query, + message_count, + token_usage, + created_at, + updated_at, + last_interaction_at, + + + #{sessionId}, + #{userId}, + #{title}, + #{status}, + #{metadata}, + #{firstQuery}, + #{messageCount}, + #{tokenUsage}, + #{createdAt}, + #{updatedAt}, + #{lastInteractionAt}, + + + + + update conversations + + session_id = #{sessionId}, + user_id = #{userId}, + title = #{title}, + status = #{status}, + metadata = #{metadata}, + first_query = #{firstQuery}, + message_count = #{messageCount}, + token_usage = #{tokenUsage}, + created_at = #{createdAt}, + updated_at = #{updatedAt}, + last_interaction_at = #{lastInteractionAt}, + + where id = #{id} + + + + delete from conversations where id = #{id} + + + + delete from conversations where id in + + #{id} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/api/JobStatisticsMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/api/JobStatisticsMapper.xml new file mode 100644 index 0000000..ed4264c --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/api/JobStatisticsMapper.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/api/KnowledgeFileMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/api/KnowledgeFileMapper.xml new file mode 100644 index 0000000..1e2fa32 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/api/KnowledgeFileMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + select id, knowledge_base_id, file_name, file_path, file_size, file_type, description, is_vectorized, vectorized_time, upload_time, updated_at, is_deleted from knowledge_file + + + + + + + + insert into knowledge_file + + knowledge_base_id, + file_name, + file_path, + file_size, + file_type, + description, + is_vectorized, + vectorized_time, + upload_time, + updated_at, + is_deleted, + + + #{knowledgeBaseId}, + #{fileName}, + #{filePath}, + #{fileSize}, + #{fileType}, + #{description}, + #{isVectorized}, + #{vectorizedTime}, + #{uploadTime}, + #{updatedAt}, + #{isDeleted}, + + + + + update knowledge_file + + knowledge_base_id = #{knowledgeBaseId}, + file_name = #{fileName}, + file_path = #{filePath}, + file_size = #{fileSize}, + file_type = #{fileType}, + description = #{description}, + is_vectorized = #{isVectorized}, + vectorized_time = #{vectorizedTime}, + upload_time = #{uploadTime}, + updated_at = #{updatedAt}, + is_deleted = #{isDeleted}, + + where id = #{id} + + + + delete from knowledge_file where id = #{id} + + + + delete from knowledge_file where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/api/MoveMsgMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/api/MoveMsgMapper.xml new file mode 100644 index 0000000..16d85c4 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/api/MoveMsgMapper.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + select id, tray_code, old_space, new_space, status, send_time, msg, spare1, spare2, spare3, spare4, spare5 from move_msg + + + + + + + + insert into move_msg + + id, + tray_code, + old_space, + new_space, + status, + send_time, + msg, + spare1, + spare2, + spare3, + spare4, + spare5, + + + #{id}, + #{trayCode}, + #{oldSpace}, + #{newSpace}, + #{status}, + #{sendTime}, + #{msg}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + + + + + update move_msg + + tray_code = #{trayCode}, + old_space = #{oldSpace}, + new_space = #{newSpace}, + status = #{status}, + send_time = #{sendTime}, + msg = #{msg}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + + where id = #{id} + + + + delete from move_msg where id = #{id} + + + + delete from move_msg where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasContainerDetailsMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasContainerDetailsMapper.xml new file mode 100644 index 0000000..14345c0 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasContainerDetailsMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + select id, container_id, product_id, product_name, quantity, unit, spare1, spare2, spare3 from bas_container_details + + + + + + + + insert into bas_container_details + + id, + container_id, + product_id, + product_name, + quantity, + unit, + spare1, + spare2, + spare3, + + + #{id}, + #{containerId}, + #{productId}, + #{productName}, + #{quantity}, + #{unit}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update bas_container_details + + container_id = #{containerId}, + product_id = #{productId}, + product_name = #{productName}, + quantity = #{quantity}, + unit = #{unit}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where id = #{id} + + + + delete from bas_container_details where id = #{id} + + + + delete from bas_container_details where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasContainerMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasContainerMapper.xml new file mode 100644 index 0000000..5eb173b --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasContainerMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + select container_id, port_name, status, product_type_quantity, capacity, create_time, update_time, operation_man, spare1, spare2, spare3 from bas_container + + + + + + + + insert into bas_container + + container_id, + port_name, + status, + product_type_quantity, + capacity, + create_time, + + update_time, + operation_man, + spare1, + spare2, + spare3, + + + #{containerId}, + #{portName}, + #{status}, + #{productTypeQuantity}, + #{capacity}, + #{createTime}, + + GETDATE(), + #{operationMan}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update bas_container + + port_name = #{portName}, + status = #{status}, + product_type_quantity = #{productTypeQuantity}, + capacity = #{capacity}, + create_time = #{createTime}, + update_time = GETDATE(), + operation_man = #{operationMan}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where container_id = #{containerId} + + + + delete from bas_container where container_id = #{containerId} + + + + delete from bas_container where container_id in + + #{containerId} + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasCustomerMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasCustomerMapper.xml new file mode 100644 index 0000000..fb0f468 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasCustomerMapper.xml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, customer_no, customer_group_no, customer_name, simple_name, useable, remark, business_department, salesman, mnemonic_code, type, taxpayer_registration_number, organization, sup_customer, retail_investor, country, time_zone, data_format, contact_name, shipment, tax_category from bas_customer + + + + + + + + insert into bas_customer + + id, + customer_no, + customer_group_no, + customer_name, + simple_name, + useable, + remark, + business_department, + salesman, + mnemonic_code, + type, + taxpayer_registration_number, + organization, + sup_customer, + retail_investor, + country, + time_zone, + data_format, + contact_name, + shipment, + tax_category, + + + #{id}, + #{customerNo}, + #{customerGroupNo}, + #{customerName}, + #{simpleName}, + #{useable}, + #{remark}, + #{businessDepartment}, + #{salesman}, + #{mnemonicCode}, + #{type}, + #{taxpayerRegistrationNumber}, + #{organization}, + #{supCustomer}, + #{retailInvestor}, + #{country}, + #{timeZone}, + #{dataFormat}, + #{contactName}, + #{shipment}, + #{taxCategory}, + + + + + update bas_customer + + customer_no = #{customerNo}, + customer_group_no = #{customerGroupNo}, + customer_name = #{customerName}, + simple_name = #{simpleName}, + useable = #{useable}, + remark = #{remark}, + business_department = #{businessDepartment}, + salesman = #{salesman}, + mnemonic_code = #{mnemonicCode}, + type = #{type}, + taxpayer_registration_number = #{taxpayerRegistrationNumber}, + organization = #{organization}, + sup_customer = #{supCustomer}, + retail_investor = #{retailInvestor}, + country = #{country}, + time_zone = #{timeZone}, + data_format = #{dataFormat}, + contact_name = #{contactName}, + shipment = #{shipment}, + tax_category = #{taxCategory}, + + where id = #{id} + + + + delete from bas_customer where id = #{id} + + + + delete from bas_customer where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasJobIdMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasJobIdMapper.xml new file mode 100644 index 0000000..66c83fd --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasJobIdMapper.xml @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, type, job_id, job_detail, stock_id, order_id, Exorder_id, job_id_R, job_detail_R, job_id_C, job_detail_C, temp_order_id, lot_no, stockin_id, stockin_detail_id, stockout_id, stockout_detail_id, plan_id, job_id_y, job_id_s from bas_job_id + + + + + + + + insert into bas_job_id + + id, + type, + job_id, + job_detail, + stock_id, + order_id, + Exorder_id, + job_id_R, + job_detail_R, + job_id_C, + job_detail_C, + temp_order_id, + lot_no, + stockin_id, + stockin_detail_id, + stockout_id, + stockout_detail_id, + plan_id, + job_id_y, + job_id_s, + + + #{id}, + #{type}, + #{jobId}, + #{jobDetail}, + #{stockId}, + #{orderId}, + #{exorderId}, + #{jobIdR}, + #{jobDetailR}, + #{jobIdC}, + #{jobDetailC}, + #{tempOrderId}, + #{lotNo}, + #{stockinId}, + #{stockinDetailId}, + #{stockoutId}, + #{stockoutDetailId}, + #{planId}, + #{jobIdY}, + #{jobIdS}, + + + + + update bas_job_id + + + job_id = #{jobId}, + job_detail = #{jobDetail}, + stock_id = #{stockId}, + order_id = #{orderId}, + Exorder_id = #{exorderId}, + job_id_R = #{jobIdR}, + job_detail_R = #{jobDetailR}, + job_id_C = #{jobIdC}, + job_detail_C = #{jobDetailC}, + temp_order_id = #{tempOrderId}, + lot_no = #{lotNo}, + stockin_id = #{stockinId}, + stockin_detail_id = #{stockinDetailId}, + stockout_id = #{stockoutId}, + stockout_detail_id = #{stockoutDetailId}, + plan_id = #{planId}, + job_id_y = #{jobIdY}, + job_id_s = #{jobIdS}, + + where type = #{type} + + + + delete from bas_job_id where id = #{id} + + + + delete from bas_job_id where id in + + #{id} + + + + + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductCodeMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductCodeMapper.xml new file mode 100644 index 0000000..8ca0ed2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductCodeMapper.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select id, model, color, serial, v, hz, ph, n_w, g_w, type, spare1, spare2, spare3, create_time, spare4, spare5, spare6 from bas_product_code + + + + + + + + insert into bas_product_code + + id, + model, + color, + serial, + v, + hz, + ph, + n_w, + g_w, + type, + spare1, + spare2, + spare3, + create_time, + spare4, + spare5, + spare6, + + + #{id}, + #{model}, + #{color}, + #{serial}, + #{v}, + #{hz}, + #{ph}, + #{nW}, + #{gW}, + #{type}, + #{spare1}, + #{spare2}, + #{spare3}, + #{createTime}, + #{spare4}, + #{spare5}, + #{spare6}, + + + + + update bas_product_code + + model = #{model}, + color = #{color}, + serial = #{serial}, + v = #{v}, + hz = #{hz}, + ph = #{ph}, + n_w = #{nW}, + g_w = #{gW}, + type = #{type}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + create_time = #{createTime}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + + where id = #{id} + + + + delete from bas_product_code where id = #{id} + + + + delete from bas_product_code where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductMapper.xml new file mode 100644 index 0000000..8c572db --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductMapper.xml @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39 from bas_product + + + + + + + + insert into bas_product + + product_guid, + product_id, + parent_id, + price, + cargo_no, + unit, + spec, + remark, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_name, + spare7, + spare8, + spare9, + spare10, + spare11, + spare12, + spare13, + spare14, + spare15, + spare16, + spare17, + spare18, + spare19, + spare20, + spare21, + spare22, + spare23, + spare24, + spare25, + spare26, + spare27, + spare28, + spare29, + spare30, + spare31, + spare32, + spare33, + spare34, + spare35, + spare36, + spare37, + spare38, + spare39, + + + #{productGuid}, + #{productId}, + #{parentId}, + #{price}, + #{cargoNo}, + #{unit}, + #{spec}, + #{remark}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productName}, + #{spare7}, + #{spare8}, + #{spare9}, + #{spare10}, + #{spare11}, + #{spare12}, + #{spare13}, + #{spare14}, + #{spare15}, + #{spare16}, + #{spare17}, + #{spare18}, + #{spare19}, + #{spare20}, + #{spare21}, + #{spare22}, + #{spare23}, + #{spare24}, + #{spare25}, + #{spare26}, + #{spare27}, + #{spare28}, + #{spare29}, + #{spare30}, + #{spare31}, + #{spare32}, + #{spare33}, + #{spare34}, + #{spare35}, + #{spare36}, + #{spare37}, + #{spare38}, + #{spare39}, + + + + + update bas_product + + product_id = #{productId}, + parent_id = #{parentId}, + price = #{price}, + cargo_no = #{cargoNo}, + unit = #{unit}, + spec = #{spec}, + remark = #{remark}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_name = #{productName}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + spare10 = #{spare10}, + spare11 = #{spare11}, + spare12 = #{spare12}, + spare13 = #{spare13}, + spare14 = #{spare14}, + spare15 = #{spare15}, + spare16 = #{spare16}, + spare17 = #{spare17}, + spare18 = #{spare18}, + spare19 = #{spare19}, + spare20 = #{spare20}, + spare21 = #{spare21}, + spare22 = #{spare22}, + spare23 = #{spare23}, + spare24 = #{spare24}, + spare25 = #{spare25}, + spare26 = #{spare26}, + spare27 = #{spare27}, + spare28 = #{spare28}, + spare29 = #{spare29}, + spare30 = #{spare30}, + spare31 = #{spare31}, + spare32 = #{spare32}, + spare33 = #{spare33}, + spare34 = #{spare34}, + spare35 = #{spare35}, + spare36 = #{spare36}, + spare37 = #{spare37}, + spare38 = #{spare38}, + spare39 = #{spare39}, + + where product_guid = #{productGuid} + + + + delete from bas_product where product_guid = #{productGuid} + + + + delete from bas_product where product_guid in + + #{productGuid} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductPortMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductPortMapper.xml new file mode 100644 index 0000000..62ff058 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductPortMapper.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + select id, port_name, port_type, port_desc, create_man, create_time from bas_product_port + + + + + + + + insert into bas_product_port + + id, + port_name, + port_type, + port_desc, + create_man, + create_time, + + + #{id}, + #{portName}, + #{portType}, + #{portDesc}, + #{createMan}, + #{createTime}, + + + + + update bas_product_port + + port_name = #{portName}, + port_type = #{portType}, + port_desc = #{portDesc}, + create_man = #{createMan}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from bas_product_port where id = #{id} + + + + delete from bas_product_port where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductPortRelMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductPortRelMapper.xml new file mode 100644 index 0000000..7ee65be --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasProductPortRelMapper.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + select id, product_guid, product_id, port_id from bas_product_port_rel + + + + + + + + + + + + + + + + + + + + + + + + + select product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name from bas_product + + + + + + + + + insert into bas_product_port_rel + + id, + product_guid, + product_id, + port_id, + + + #{id}, + #{productGuid}, + #{productId}, + #{portId}, + + + + + update bas_product_port_rel + + product_guid = #{productGuid}, + product_id = #{productId}, + port_id = #{portId}, + + where id = #{id} + + + + delete from bas_product_port_rel where id = #{id} + + + + delete from bas_product_port_rel where id in + + #{id} + + + + delete from bas_product_port_rel where port_id=#{portId} and product_id in + + #{productId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasRoadwayMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasRoadwayMapper.xml new file mode 100644 index 0000000..875bfaf --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasRoadwayMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + select id, roadway_id, warehouse_id, roadway_name, device_id, in_locked, out_locked, in_locked2, out_locked2 from bas_roadway + + + + + + + + insert into bas_roadway + + id, + roadway_id, + warehouse_id, + roadway_name, + device_id, + in_locked, + out_locked, + in_locked2, + out_locked2, + + + #{id}, + #{roadwayId}, + #{warehouseId}, + #{roadwayName}, + #{deviceId}, + #{inLocked}, + #{outLocked}, + #{inLocked2}, + #{outLocked2}, + + + + + update bas_roadway + + roadway_id = #{roadwayId}, + warehouse_id = #{warehouseId}, + roadway_name = #{roadwayName}, + device_id = #{deviceId}, + in_locked = #{inLocked}, + out_locked = #{outLocked}, + in_locked2 = #{inLocked2}, + out_locked2 = #{outLocked2}, + + where id = #{id} + + + + delete from bas_roadway where id = #{id} + + + + delete from bas_roadway where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasSupplierMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasSupplierMapper.xml new file mode 100644 index 0000000..750d04c --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasSupplierMapper.xml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, supplier_no, supplier_group_no, supplier_name, simple_name, useable, remark, supplier_arae, taxpayer_registration_number, country, time_zone, data_format, receiving_country, tax_category, legal_person, registered_capital, address, contact_name, contact_number from bas_supplier + + + + + + + + insert into bas_supplier + + id, + supplier_no, + supplier_group_no, + supplier_name, + simple_name, + useable, + remark, + supplier_arae, + taxpayer_registration_number, + country, + time_zone, + data_format, + receiving_country, + tax_category, + legal_person, + registered_capital, + address, + contact_name, + contact_number, + + + #{id}, + #{supplierNo}, + #{supplierGroupNo}, + #{supplierName}, + #{simpleName}, + #{useable}, + #{remark}, + #{supplierArae}, + #{taxpayerRegistrationNumber}, + #{country}, + #{timeZone}, + #{dataFormat}, + #{receivingCountry}, + #{taxCategory}, + #{legalPerson}, + #{registeredCapital}, + #{address}, + #{contactName}, + #{contactNumber}, + + + + + update bas_supplier + + supplier_no = #{supplierNo}, + supplier_group_no = #{supplierGroupNo}, + supplier_name = #{supplierName}, + simple_name = #{simpleName}, + useable = #{useable}, + remark = #{remark}, + supplier_arae = #{supplierArae}, + taxpayer_registration_number = #{taxpayerRegistrationNumber}, + country = #{country}, + time_zone = #{timeZone}, + data_format = #{dataFormat}, + receiving_country = #{receivingCountry}, + tax_category = #{taxCategory}, + legal_person = #{legalPerson}, + registered_capital = #{registeredCapital}, + address = #{address}, + contact_name = #{contactName}, + contact_number = #{contactNumber}, + + where id = #{id} + + + + delete from bas_supplier where id = #{id} + + + + delete from bas_supplier where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTagMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTagMapper.xml new file mode 100644 index 0000000..9aa802b --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTagMapper.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + select id, ip, pick_add, tray_code, cur_num, send_completed, spare1, spare2, spare3 from bas_tag + + + + + + + + + insert into bas_tag + + ip, + pick_add, + tray_code, + cur_num, + send_completed, + spare1, + spare2, + spare3, + + + #{ip}, + #{pickAdd}, + #{trayCode}, + #{curNum}, + #{sendCompleted}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update bas_tag + + ip = #{ip}, + pick_add = #{pickAdd}, + tray_code = #{trayCode}, + cur_num = #{curNum}, + send_completed = #{sendCompleted}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where id = #{id} + + + + delete from bas_tag where id = #{id} + + + + delete from bas_tag where id in + + #{id} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTaskNoMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTaskNoMapper.xml new file mode 100644 index 0000000..f7cd878 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTaskNoMapper.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + select id, task_type, type_name, task_no, min_no, max_no + from bas_task_no + + + + + update bas_task_no + + task_type = #{taskType}, + type_name = #{typeName}, + task_no = #{taskNo}, + min_no = #{minNo}, + max_no = #{maxNo}, + + where id = #{id} + + + + + + update bas_task_no + set task_no=#{taskNo} + where id = #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTraycodeFormatMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTraycodeFormatMapper.xml new file mode 100644 index 0000000..dbe6897 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTraycodeFormatMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + select id, barcode_format, serial_rule, serial_example, remarks, min_num, max_num, create_time, update_time, spare1, spare2, spare3 from bas_traycode_format + + + + + + + + insert into bas_traycode_format + + id, + barcode_format, + serial_rule, + serial_example, + remarks, + min_num, + max_num, + create_time, + update_time, + spare1, + spare2, + spare3, + + + #{id}, + #{barcodeFormat}, + #{serialRule}, + #{serialExample}, + #{remarks}, + #{minNum}, + #{maxNum}, + #{createTime}, + #{updateTime}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update bas_traycode_format + + barcode_format = #{barcodeFormat}, + serial_rule = #{serialRule}, + serial_example = #{serialExample}, + remarks = #{remarks}, + min_num = #{minNum}, + max_num = #{maxNum}, + create_time = #{createTime}, + update_time = #{updateTime}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where id = #{id} + + + + delete from bas_traycode_format where id = #{id} + + + + delete from bas_traycode_format where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTraycodeMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTraycodeMapper.xml new file mode 100644 index 0000000..6a24c34 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasTraycodeMapper.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + select bt.id, bt.format_id, bt.tray_code, bt.create_time, bt.update_time, bt.spare1, bt.spare2, bt.spare3,btf.remarks as format_name + from bas_traycode bt + left join bas_traycode_format btf on btf.id = bt.format_id + + + + + + + + + insert into bas_traycode + + id, + format_id, + tray_code, + create_time, + update_time, + spare1, + spare2, + spare3, + + + #{id}, + #{formatId}, + #{trayCode}, + #{createTime}, + #{updateTime}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + insert into bas_traycode( format_id, tray_code) values + + ( + + #{item.formatId}, + #{item.trayCode} + ) + + + + + update bas_traycode + + format_id = #{formatId}, + tray_code = #{trayCode}, + create_time = #{createTime}, + update_time = #{updateTime}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where id = #{id} + + + + delete from bas_traycode where id = #{id} + + + + delete from bas_traycode where id in + + #{id} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasWarehousePortMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasWarehousePortMapper.xml new file mode 100644 index 0000000..84f77ad --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/BasWarehousePortMapper.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + select id, warehouse_id, port_code, port_name, port_type from bas_warehouse_port + + + + + + + + insert into bas_warehouse_port + + id, + warehouse_id, + port_code, + port_name, + port_type, + + + #{id}, + #{warehouseId}, + #{portCode}, + #{portName}, + #{portType}, + + + + + update bas_warehouse_port + + warehouse_id = #{warehouseId}, + port_code = #{portCode}, + port_name = #{portName}, + port_type = #{portType}, + + where id = #{id} + + + + delete from bas_warehouse_port where id = #{id} + + + + delete from bas_warehouse_port where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml new file mode 100644 index 0000000..bba33c8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/cargoSpace/BasCargoSpaceMapper.xml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + bcs.cargo_space_id, + bcs.warehouse_id, + bcs.roadway_id, + bcs.cargo_area_id, + bcs.the_type, + bcs.the_type_name, + bcs.cargo_space_name, + bcs.the_platoon, + bcs.the_column, + bcs.the_floor, + bcs.status, + bcs.locked, + bcs.tray_code, + bcs.cargo_hight, + bcs.iss_double, + bcs.group_coding_no, + bcs.group_coding, + bcs.cargo_space_logo, + bcs.this_cargo_area, + bw.warehouse_name + from bas_cargo_space bcs + left join bas_warehouse bw on bcs.warehouse_id = bw.warehouse_id + + + + + + + + + insert into bas_cargo_space + + cargo_space_id, + warehouse_id, + roadway_id, + cargo_area_id, + the_type, + the_type_name, + cargo_space_name, + the_platoon, + the_column, + the_floor, + status, + locked, + tray_code, + cargo_hight, + iss_double, + group_coding_no, + group_coding, + cargo_space_logo, + this_cargo_area, + + + #{cargoSpaceId}, + #{warehouseId}, + #{roadwayId}, + #{cargoAreaId}, + #{theType}, + #{theTypeName}, + #{cargoSpaceName}, + #{thePlatoon}, + #{theColumn}, + #{theFloor}, + #{status}, + #{locked}, + #{trayCode}, + #{cargoHight}, + #{issDouble}, + #{groupCodingNo}, + #{groupCoding}, + #{cargoSpaceLogo}, + #{thisCargoArea}, + + + + + update bas_cargo_space + + warehouse_id = #{warehouseId}, + roadway_id = #{roadwayId}, + cargo_area_id = #{cargoAreaId}, + the_type = #{theType}, + the_type_name = #{theTypeName}, + cargo_space_name = #{cargoSpaceName}, + the_platoon = #{thePlatoon}, + the_column = #{theColumn}, + the_floor = #{theFloor}, + status = #{status}, + locked = #{locked}, + tray_code = #{trayCode}, + cargo_hight = #{cargoHight}, + iss_double = #{issDouble}, + group_coding_no = #{groupCodingNo}, + group_coding = #{groupCoding}, + cargo_space_logo = #{cargoSpaceLogo}, + this_cargo_area = #{thisCargoArea}, + + where cargo_space_id = #{cargoSpaceId} + + + + delete from bas_cargo_space where cargo_space_id = #{cargoSpaceId} + + + + delete from bas_cargo_space where cargo_space_id in + + #{cargoSpaceId} + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/bas/warehouse/BasWarehouseMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/bas/warehouse/BasWarehouseMapper.xml new file mode 100644 index 0000000..060f79e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/bas/warehouse/BasWarehouseMapper.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + select warehouse_id, warehouse_no, project_no, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current from bas_warehouse + + + + + + + + insert into bas_warehouse + + warehouse_id, + warehouse_no, + project_no, + warehouse_name, + address, + c_desc, + warehouse_kind, + warehouse_type, + is_current, + + + #{warehouseId}, + #{warehouseNo}, + #{projectNo}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + + + + + update bas_warehouse + + warehouse_no = #{warehouseNo}, + project_no = #{projectNo}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + + where warehouse_id = #{warehouseId} + + + + delete from bas_warehouse where warehouse_id = #{warehouseId} + + + + delete from bas_warehouse where warehouse_id in + + #{warehouseId} + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckCommitRecordMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckCommitRecordMapper.xml new file mode 100644 index 0000000..85a7fc8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckCommitRecordMapper.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + select pd_guid, tray_code, stock_id, quantity, spare1, spare2, spare3 from check_commit_record + + + + + + + + insert into check_commit_record + + tray_code, + stock_id, + quantity, + spare1, + spare2, + spare3, + + + #{trayCode}, + #{stockId}, + #{quantity}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update check_commit_record + + tray_code = #{trayCode}, + stock_id = #{stockId}, + quantity = #{quantity}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where pd_guid = #{pdGuid} + + + + delete from check_commit_record where pd_guid = #{pdGuid} + + + + delete from check_commit_record where pd_guid in + + #{pdGuid} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckDifferenceRecordFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckDifferenceRecordFinishMapper.xml new file mode 100644 index 0000000..303fb5a --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckDifferenceRecordFinishMapper.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select r.check_guid, + r.check_stock_detail_id, + r.stock_id, + r.tray_code, + r.cargo_space_id, + r.product_id, + r.lot_no, + r.supplier, + r.customer, + r.old_quantity, + r.new_quantity, + r.record_type, + r.create_time, + r.product_guid, + r.status, + r.warehouse_id, + w.warehouse_name, + bp.product_name, + bp.spare1 as englishDesc, + bp.spare2 as netWeight, + bp.spare5 as length, + bp.spare6 as width, + bp.spare7 as height, + bp.spare8 as volume, + bcs.cargo_space_name + from check_difference_record_finish r + left join bas_warehouse w on r.warehouse_id = w.warehouse_id + left join bas_product bp on r.product_id = bp.product_id + left join bas_cargo_space bcs on r.cargo_space_id = bcs.cargo_space_id + + + + + + + + insert into check_difference_record_finish + + check_guid, + check_stock_detail_id, + stock_id, + tray_code, + cargo_space_id, + product_id, + lot_no, + supplier, + customer, + old_quantity, + new_quantity, + record_type, + create_time, + product_guid, + status, + warehouse_id, + + + #{checkGuid}, + #{checkStockDetailId}, + #{stockId}, + #{trayCode}, + #{cargoSpaceId}, + #{productId}, + #{lotNo}, + #{supplier}, + #{customer}, + #{oldQuantity}, + #{newQuantity}, + #{recordType}, + #{createTime}, + #{productGuid}, + #{status}, + #{warehouseId}, + + + + + update check_difference_record_finish + + check_stock_detail_id = #{checkStockDetailId}, + stock_id = #{stockId}, + tray_code = #{trayCode}, + cargo_space_id = #{cargoSpaceId}, + product_id = #{productId}, + lot_no = #{lotNo}, + supplier = #{supplier}, + customer = #{customer}, + old_quantity = #{oldQuantity}, + new_quantity = #{newQuantity}, + record_type = #{recordType}, + create_time = #{createTime}, + product_guid = #{productGuid}, + status = #{status}, + warehouse_id = #{warehouseId}, + + where check_guid = #{checkGuid} + + + + delete + from check_difference_record_finish + where check_guid = #{checkGuid} + + + + delete from check_difference_record_finish where check_guid in + + #{checkGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckDifferenceRecordMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckDifferenceRecordMapper.xml new file mode 100644 index 0000000..d6fc4fc --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckDifferenceRecordMapper.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select r.check_guid, + r.check_stock_detail_id, + r.stock_id, + r.tray_code, + r.cargo_space_id, + r.product_id, + r.lot_no, + r.supplier, + r.customer, + r.old_quantity, + r.new_quantity, + r.record_type, + r.create_time, + r.product_guid, + r.status, + r.warehouse_id, + w.warehouse_name, + bp.product_name, + bp.spare1 as englishDesc, + bp.spare2 as netWeight, + bp.spare5 as length, + bp.spare6 as width, + bp.spare7 as height, + bp.spare8 as volume, + bcs.cargo_space_name + from check_difference_record r + left join bas_warehouse w on r.warehouse_id = w.warehouse_id + left join bas_product bp on r.product_id = bp.product_id + left join bas_cargo_space bcs on r.cargo_space_id = bcs.cargo_space_id + + + + + + + + insert into check_difference_record + + check_guid, + check_stock_detail_id, + stock_id, + tray_code, + cargo_space_id, + product_id, + lot_no, + supplier, + customer, + old_quantity, + new_quantity, + record_type, + create_time, + product_guid, + status, + warehouse_id, + + + #{checkGuid}, + #{checkStockDetailId}, + #{stockId}, + #{trayCode}, + #{cargoSpaceId}, + #{productId}, + #{lotNo}, + #{supplier}, + #{customer}, + #{oldQuantity}, + #{newQuantity}, + #{recordType}, + #{createTime}, + #{productGuid}, + #{status}, + #{warehouseId}, + + + + + update check_difference_record + + check_stock_detail_id = #{checkStockDetailId}, + stock_id = #{stockId}, + tray_code = #{trayCode}, + cargo_space_id = #{cargoSpaceId}, + product_id = #{productId}, + lot_no = #{lotNo}, + supplier = #{supplier}, + customer = #{customer}, + old_quantity = #{oldQuantity}, + new_quantity = #{newQuantity}, + record_type = #{recordType}, + create_time = #{createTime}, + product_guid = #{productGuid}, + status = #{status}, + warehouse_id = #{warehouseId}, + + where check_guid = #{checkGuid} + + + + delete + from check_difference_record + where check_guid = #{checkGuid} + + + + delete from check_difference_record where check_guid in + + #{checkGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinDetailFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinDetailFinishMapper.xml new file mode 100644 index 0000000..1a61a5f --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinDetailFinishMapper.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select csd.stock_check_detail_id, csd.stock_check_guid, csd.stock_check_id, csd.lot_no, csd.product_guid, csd.product_id, + csd.quantity, csd.quantity_x, csd.quantity_j, csd.price, csd.cargo_no, csd.remark, csd.assign_num, csd.assign_num_x, + csd.assign_num_j, csd.print_date, csd.stock_status, csd.supplier_id, csd.customer_id, csd.unit, csd.spec, + csd.scan_num, csd.scan_num_x, csd.scan_num_j, csd.spare1, csd.spare2, csd.spare3, csd.spare4,csd.spare5, csd.spare6, + bp.product_name, + bcs.cargo_space_name, + csd.spare7, + csd.spare8, + csd.spare9 + from check_stockin_detail_finish csd + left join bas_product bp on csd.product_id = bp.product_id + left join bas_cargo_space bcs on csd.cargo_space_id = bcs.cargo_space_id + + + + + select stock_check_detail_id, stock_check_guid, stock_check_id, lot_no, product_guid, product_id, quantity, quantity_x, quantity_j, price, cargo_no, remark, assign_num, assign_num_x, assign_num_j, print_date, stock_status, supplier_id, customer_id, unit, spec, spare1, spare2, spare3, spare4, spare5, spare6, scan_num, scan_num_x, scan_num_j from check_stockin_detail_finish + + + + + + + + + insert into check_stockin_detail_finish + + stock_check_detail_id, + stock_check_guid, + stock_check_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + scan_num, + scan_num_x, + scan_num_j, + + + #{stockCheckDetailId}, + #{stockCheckGuid}, + #{stockCheckId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{scanNum}, + #{scanNumX}, + #{scanNumJ}, + + + + + update check_stockin_detail_finish + + stock_check_guid = #{stockCheckGuid}, + stock_check_id = #{stockCheckId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + scan_num = #{scanNum}, + scan_num_x = #{scanNumX}, + scan_num_j = #{scanNumJ}, + + where stock_check_detail_id = #{stockCheckDetailId} + + + + delete from check_stockin_detail_finish where stock_check_detail_id = #{stockCheckDetailId} + + + + delete from check_stockin_detail_finish where stock_check_detail_id in + + #{stockCheckDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinDetailMapper.xml new file mode 100644 index 0000000..057a4e0 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinDetailMapper.xml @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select csd.stock_check_detail_id, csd.stock_check_guid, csd.stock_check_id, csd.lot_no, csd.product_guid, csd.product_id, + csd.quantity, csd.quantity_x, csd.quantity_j, csd.price, csd.cargo_no, csd.remark, csd.assign_num, csd.assign_num_x, + csd.assign_num_j, csd.print_date, csd.stock_status, csd.supplier_id, csd.customer_id, csd.unit, csd.spec, + csd.scan_num, csd.scan_num_x, csd.scan_num_j, csd.spare1, csd.spare2, csd.spare3, csd.spare4,csd.spare5, csd.spare6, + bp.product_name, + bcs.cargo_space_name, + csd.spare7, + csd.spare8, + csd.spare9, + csd.order_id + from check_stockin_detail csd + left join bas_product bp on csd.product_id = bp.product_id + left join bas_cargo_space bcs on csd.cargo_space_id = bcs.cargo_space_id + + + + + + + + insert into check_stockin_detail + + stock_check_detail_id, + stock_check_guid, + stock_check_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + scan_num, + scan_num_x, + scan_num_j, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + cargo_space_id, + spare7, + spare8, + spare9, + order_id, + + + #{stockCheckDetailId}, + #{stockCheckGuid}, + #{stockCheckId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{scanNum}, + #{scanNumX}, + #{scanNumJ}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{cargoSpaceId}, + #{spare7}, + #{spare8}, + #{spare9}, + #{orderId}, + + + + insert into check_stockin_detail_finish + select * from check_stockin_detail where stock_check_id = #{stockCheckId} + + + + update check_stockin_detail + + stock_check_guid = #{stockCheckGuid}, + stock_check_id = #{stockCheckId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + scan_num = #{scanNum}, + scan_num_x = #{scanNumX}, + scan_num_j = #{scanNumJ}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + + where stock_check_detail_id = #{stockCheckDetailId} + + + + delete from check_stockin_detail where stock_check_detail_id = #{stockCheckDetailId} + + + + delete from check_stockin_detail where stock_check_detail_id in + + #{stockCheckDetailId} + + + + delete from check_stockin_detail where stock_check_guid = #{stockCheckGuid} + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinFinishMapper.xml new file mode 100644 index 0000000..675d421 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinFinishMapper.xml @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_guid, stock_check_id, check_type, create_date, create_man_id, status, csf.warehouse_id,warehouse_name, finish_date, erp_bill, stock_source, department_no, customer_no, class_no, supplier_no, spare1, spare2, spare3, spare4, spare5 + from check_stockin_finish csf + left join bas_warehouse bw on bw.warehouse_id= csf.warehouse_id + + + select stock_guid, stock_check_id, check_type, create_date, create_man_id, status, warehouse_id, spare5, spare4, spare3, finish_date, spare2, spare1, erp_bill, stock_source, department_no, customer_no, class_no, supplier_no from check_stockin_finish + + + + + + + + + insert into check_stockin_finish + + stock_guid, + stock_check_id, + check_type, + create_date, + create_man_id, + status, + warehouse_id, + spare5, + spare4, + spare3, + finish_date, + spare2, + spare1, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + + + #{stockGuid}, + #{stockCheckId}, + #{checkType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{spare5}, + #{spare4}, + #{spare3}, + #{finishDate}, + #{spare2}, + #{spare1}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + + + + + update check_stockin_finish + + stock_check_id = #{stockCheckId}, + check_type = #{checkType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + spare5 = #{spare5}, + spare4 = #{spare4}, + spare3 = #{spare3}, + finish_date = #{finishDate}, + spare2 = #{spare2}, + spare1 = #{spare1}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + + where stock_guid = #{stockGuid} + + + + delete from check_stockin_finish where stock_guid = #{stockGuid} + + + + delete from check_stockin_finish where stock_guid in + + #{stockGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinMapper.xml new file mode 100644 index 0000000..7028bf3 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/check/CheckStockinMapper.xml @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select cs.stock_guid, + cs.stock_check_id, + cs.check_type, + cs.create_date, + cs.create_man_id, + cs.status, + cs.warehouse_id, + cs.finish_date, + cs.erp_bill, + cs.stock_source, + cs.department_no, + cs.customer_no, + cs.class_no, + cs.supplier_no, + cs.spare1, + cs.spare2, + cs.spare3, + cs.spare4, + cs.spare5, + bw.warehouse_name, + sd.dept_name as department_name + from check_stockin cs + left join bas_warehouse bw on cs.warehouse_id = bw.warehouse_id + left join sys_dept sd on cs.department_no = sd.dept_id + + + + + + + + + insert into check_stockin + + stock_guid, + stock_check_id, + check_type, + create_date, + create_man_id, + status, + warehouse_id, + finish_date, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + spare1, + spare2, + spare3, + spare4, + spare5, + + + #{stockGuid}, + #{stockCheckId}, + #{checkType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{finishDate}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + + + + insert into check_stockin_finish + select * from check_stockin where stock_guid = #{stockGuid} + + + + update check_stockin + + stock_check_id = #{stockCheckId}, + check_type = #{checkType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + finish_date = #{finishDate}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + + where stock_guid = #{stockGuid} + + + + delete from check_stockin where stock_guid = #{stockGuid} + + + + delete from check_stockin where stock_guid in + + #{stockGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinBackMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinBackMapper.xml new file mode 100644 index 0000000..52a7b9e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinBackMapper.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockin_guid, stockin_id, in_type, create_date, create_man_id, status, warehouse_id, + spare5, spare4, spare3, finish_date, spare2, spare1, erp_bill, stock_source, department_no, + customer_no, class_no, supplier_no,send_status,send_time,msg,company_short_name,account_set_no from in_stockin_back + + + + + + + + insert into in_stockin_back + + stockin_guid, + stockin_id, + in_type, + create_date, + create_man_id, + status, + warehouse_id, + spare5, + spare4, + spare3, + finish_date, + spare2, + spare1, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + send_status, + send_time, + msg, + + + #{stockinGuid}, + #{stockinId}, + #{inType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{spare5}, + #{spare4}, + #{spare3}, + #{finishDate}, + #{spare2}, + #{spare1}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + #{sendStatus}, + #{sendTime}, + #{msg}, + + + + + insert into in_stockin_back + select * from in_stockin where stockin_guid = #{stockinGuid} + + + + update in_stockin_back + + stockin_id = #{stockinId}, + in_type = #{inType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + spare5 = #{spare5}, + spare4 = #{spare4}, + spare3 = #{spare3}, + finish_date = #{finishDate}, + spare2 = #{spare2}, + spare1 = #{spare1}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + send_status = #{sendStatus}, + send_time = #{sendTime}, + msg = #{msg}, + + where stockin_guid = #{stockinGuid} + + + + delete from in_stockin_back where stockin_guid = #{stockinGuid} + + + + delete from in_stockin_back where stockin_guid in + + #{stockinGuid} + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailBackMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailBackMapper.xml new file mode 100644 index 0000000..4a7495f --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailBackMapper.xml @@ -0,0 +1,300 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + scan_num, + scan_num_x, + scan_num_j, + spare7, + spare8, + spare9, + product_name, + send_status, + send_time, + msg, + source_line_id, + bar_code, + is_batch_manage, + old_project_no + from in_stockin_detail_back + + + + + + + + insert into in_stockin_detail_back + + stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + scan_num, + scan_num_x, + scan_num_j, + spare7, + spare8, + spare9, + product_name, + send_status, + send_time, + msg, + + + #{stockinDetailId}, + #{stockinGuid}, + #{stockinId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{scanNum}, + #{scanNumX}, + #{scanNumJ}, + #{spare7}, + #{spare8}, + #{spare9}, + #{productName}, + #{sendStatus}, + #{sendTime}, + #{msg}, + + + + + + insert into in_stockin_detail_back + select * from in_stockin_detail where stockin_guid = #{stockinGuid} + + + + update in_stockin_detail_back + + stockin_guid = #{stockinGuid}, + + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + scan_num = #{scanNum}, + scan_num_x = #{scanNumX}, + scan_num_j = #{scanNumJ}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + product_name = #{productName}, + send_status = #{sendStatus}, + send_time = #{sendTime}, + msg = #{msg}, + + where stockin_id = #{stockinId} + + + + delete from in_stockin_detail_back where stockin_detail_id = #{stockinDetailId} + + + + delete from in_stockin_detail_back where stockin_detail_id in + + #{stockinDetailId} + + + + + INSERT INTO in_stockin_detail_back_finish + + SELECT * FROM in_stockin_detail_back + WHERE stockin_detail_id = #{item.stockinDetailId} + + + + + DELETE FROM in_stockin_detail_back + WHERE stockin_detail_id IN + + #{item.stockinDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailFinishMapper.xml new file mode 100644 index 0000000..dcf74ec --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailFinishMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + isd.stockin_detail_id, isd.stockin_guid, isd.stockin_id, isd.lot_no, isd.product_guid, + isd.product_id, isd.quantity, isd.quantity_x, isd.quantity_j, isd.price, isd.cargo_no, isd.remark, + isd.assign_num, isd.assign_num_x, isd.assign_num_j, isd.print_date, isd.stock_status, + isd.supplier_id, isd.customer_id, isd.unit, isd.spec, isd.spare1, isd.spare2, isd.spare3, isd.spare4, + isd.spare5, isd.spare6, isd.scan_num, isd.scan_num_x, isd.scan_num_j, + isd.product_name, + isd.spare7,isd.spare8,isd.spare9 + from in_stockin_detail_finish isd + left join bas_product bp on bp.product_id = isd.product_id + + + + + + + + + insert into in_stockin_detail_finish + + stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + scan_num, + scan_num_x, + scan_num_j, + + + #{stockinDetailId}, + #{stockinGuid}, + #{stockinId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{scanNum}, + #{scanNumX}, + #{scanNumJ}, + + + + + update in_stockin_detail_finish + + stockin_guid = #{stockinGuid}, + stockin_id = #{stockinId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + scan_num = #{scanNum}, + scan_num_x = #{scanNumX}, + scan_num_j = #{scanNumJ}, + + where stockin_detail_id = #{stockinDetailId} + + + + delete from in_stockin_detail_finish where stockin_detail_id = #{stockinDetailId} + + + + delete from in_stockin_detail_finish where stockin_detail_id in + + #{stockinDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailMapper.xml new file mode 100644 index 0000000..b1bcc7f --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinDetailMapper.xml @@ -0,0 +1,356 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + isd.stockin_detail_id, isd.stockin_guid, isd.stockin_id, isd.lot_no, isd.product_guid, + isd.product_id, isd.quantity, isd.quantity_x, isd.quantity_j, isd.price, isd.cargo_no, isd.remark, + isd.assign_num, isd.assign_num_x, isd.assign_num_j, isd.print_date, isd.stock_status, + isd.supplier_id, isd.customer_id, isd.unit, isd.spec, isd.spare1, isd.spare2, isd.spare3, isd.spare4, + isd.spare5, isd.spare6, isd.scan_num, isd.scan_num_x, isd.scan_num_j, + isd.product_name, + isd.spare7,isd.spare8,isd.spare9 + from in_stockin_detail isd + left join bas_product bp on bp.product_id = isd.product_id + + + + + + + + insert into in_stockin_detail + + stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + spare9, + + scan_num, + scan_num_x, + scan_num_j, + product_name, + source_line_id, + bar_code, + is_batch_manage, + old_project_no, + + + #{stockinDetailId}, + #{stockinGuid}, + #{stockinId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{spare9}, + + #{scanNum}, + #{scanNumX}, + #{scanNumJ}, + #{productName}, + + #{sourceLineId}, + #{barCode}, + #{isBatchManage}, + #{oldProjectNo}, + + + + + INSERT INTO in_stockin_detail + + + stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + scan_num, + scan_num_x, + scan_num_j, + + + + VALUES + + + #{item.stockinDetailId}, + #{item.stockinGuid}, + #{item.stockinId}, + #{item.lotNo}, + #{item.productGuid}, + #{item.productId}, + #{item.quantity}, + #{item.quantityX}, + #{item.quantityJ}, + #{item.price}, + #{item.cargoNo}, + #{item.remark}, + #{item.assignNum}, + #{item.assignNumX}, + #{item.assignNumJ}, + #{item.printDate}, + #{item.stockStatus}, + #{item.supplierId}, + #{item.customerId}, + #{item.unit}, + #{item.spec}, + #{item.spare1}, + #{item.spare2}, + #{item.spare3}, + #{item.spare4}, + #{item.spare5}, + #{item.spare6}, + #{item.scanNum}, + #{item.scanNumX}, + #{item.scanNumJ}, + + + + + insert into in_stockin_detail_finish + select * from in_stockin_detail where stockin_guid = #{stockinGuid} + + + + update in_stockin_detail + + stockin_guid = #{stockinGuid}, + stockin_id = #{stockinId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + scan_num = #{scanNum}, + scan_num_x = #{scanNumX}, + scan_num_j = #{scanNumJ}, + product_name = #{productName}, + + where stockin_detail_id = #{stockinDetailId} + + + + delete from in_stockin_detail where stockin_detail_id = #{stockinDetailId} + + + + delete from in_stockin_detail where stockin_detail_id in + + #{stockinDetailId} + + + + delete from in_stockin_detail where stockin_guid = #{stockinGuid} + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinFinishMapper.xml new file mode 100644 index 0000000..95b6a7e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinFinishMapper.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select is2.stockin_guid, + is2.stockin_id, + is2.in_type, + is2.create_date, + is2.create_man_id, + is2.status, + is2.warehouse_id, + is2.finish_date, + is2.erp_bill, + is2.stock_source, + is2.department_no, + is2.customer_no, + is2.class_no, + is2.supplier_no, + is2.spare1, + is2.spare2, + is2.spare4, + is2.spare3, + is2.spare5, + bw.warehouse_name +-- bs.supplier_name, +-- sd.dept_name , +-- su.user_name + from in_stockin_finish is2 + left join bas_warehouse bw on is2.warehouse_id = bw.warehouse_id +-- left join bas_supplier bs on bs.supplier_no = is2.supplier_no +-- left join sys_dept sd on is2.department_no = sd.dept_id +-- left join sys_user su on su.user_id = is2.create_man_id + + + + + + + + + + + + + insert into in_stockin_finish + + stockin_guid, + stockin_id, + in_type, + create_date, + create_man_id, + status, + warehouse_id, + finish_date, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + spare1, + spare2, + spare3, + spare4, + spare5, + + + #{stockinGuid}, + #{stockinId}, + #{inType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{finishDate}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + + + + + update in_stockin_finish + + stockin_id = #{stockinId}, + in_type = #{inType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + finish_date = #{finishDate}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + + where stockin_guid = #{stockinGuid} + + + + delete from in_stockin_finish where stockin_guid = #{stockinGuid} + + + + delete from in_stockin_finish where stockin_guid in + + #{stockinGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinMapper.xml new file mode 100644 index 0000000..46bcaff --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/InStockinMapper.xml @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select is2.stockin_guid, + is2.stockin_id, + is2.in_type, + is2.create_date, + is2.create_man_id, + is2.status, + is2.warehouse_id, + is2.finish_date, + is2.erp_bill, + is2.stock_source, + is2.department_no, + is2.customer_no, + is2.class_no, + is2.supplier_no, + is2.spare1, + is2.spare2, + is2.spare4, + is2.spare3, + is2.spare5, + bw.warehouse_name + from in_stockin is2 + left join bas_warehouse bw on is2.warehouse_id = bw.warehouse_id +-- left join bas_supplier bs on bs.supplier_no = is2.supplier_no +-- left join sys_dept sd on is2.department_no = sd.dept_id +-- left join sys_user su on su.user_id = is2.create_man_id + + + + + + + + + + insert into in_stockin + + stockin_guid, + stockin_id, + in_type, + create_date, + create_man_id, + status, + warehouse_id, + finish_date, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + spare1, + spare2, + spare4, + spare3, + spare5, + company_short_name, + account_set_no, + + + #{stockinGuid}, + #{stockinId}, + #{inType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{finishDate}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + #{spare1}, + #{spare2}, + #{spare4}, + #{spare3}, + #{spare5}, + #{companyShortName}, + #{accountSetNo}, + + + + insert into in_stockin_finish + select * from in_stockin where stockin_guid = #{stockinGuid} + + + + update in_stockin + + stockin_id = #{stockinId}, + in_type = #{inType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + finish_date = #{finishDate}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare4 = #{spare4}, + spare3 = #{spare3}, + spare5 = #{spare5}, + company_short_name = #{companyShortName}, + account_set_no = #{accountSetNo}, + + where stockin_guid = #{stockinGuid} + + + + delete from in_stockin where stockin_guid = #{stockinGuid} + + + + delete from in_stockin where stockin_guid in + + #{stockinGuid} + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/in/TransferBillCallbackMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/in/TransferBillCallbackMapper.xml new file mode 100644 index 0000000..52e9970 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/in/TransferBillCallbackMapper.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + select id, job_id, erp_bill, type, status, create_time, finish_time, spare1, spare2, spare3 from transfer_bill_callback + + + + + + + + insert into transfer_bill_callback + + job_id, + erp_bill, + type, + status, + create_time, + finish_time, + spare1, + spare2, + spare3, + + + #{jobId}, + #{erpBill}, + #{type}, + #{status}, + #{createTime}, + #{finishTime}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update transfer_bill_callback + + job_id = #{jobId}, + erp_bill = #{erpBill}, + type = #{type}, + status = #{status}, + create_time = #{createTime}, + finish_time = #{finishTime}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where id = #{id} + + + + delete from transfer_bill_callback where id = #{id} + + + + delete from transfer_bill_callback where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/index/BillStatusCountMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/index/BillStatusCountMapper.xml new file mode 100644 index 0000000..74cf270 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/index/BillStatusCountMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/index/CargoSpaceCountMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/index/CargoSpaceCountMapper.xml new file mode 100644 index 0000000..5263856 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/index/CargoSpaceCountMapper.xml @@ -0,0 +1,16 @@ + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/index/IndexCountMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/index/IndexCountMapper.xml new file mode 100644 index 0000000..78a4fe9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/index/IndexCountMapper.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/index/ViewIndexJobMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/index/ViewIndexJobMapper.xml new file mode 100644 index 0000000..11eb6df --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/index/ViewIndexJobMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/index/WeekJobCountMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/index/WeekJobCountMapper.xml new file mode 100644 index 0000000..4af7e81 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/index/WeekJobCountMapper.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobDetailFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobDetailFinishMapper.xml new file mode 100644 index 0000000..b055c22 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobDetailFinishMapper.xml @@ -0,0 +1,302 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into mydo_job_detail_finish + + job_detail_id, + job_id, + stock_id, + lot_no, + in_date, + in_or_out_id, + in_or_out_d_id, + product_guid, + product_id, + stock_status, + in_quantity, + stock_quantity, + out_quantity, + layer_quantity, + out_layer_quantity, + give_num, + stockin_id, + stacking_id, + exit_id, + print_date, + customer_id, + supplier_id, + spare1, + spare2, + spare3, + spare4, + + + #{jobDetailId}, + #{jobId}, + #{stockId}, + #{lotNo}, + #{inDate}, + #{inOrOutId}, + #{inOrOutDId}, + #{productGuid}, + #{productId}, + #{stockStatus}, + #{inQuantity}, + #{stockQuantity}, + #{outQuantity}, + #{layerQuantity}, + #{outLayerQuantity}, + #{giveNum}, + #{stockinId}, + #{stackingId}, + #{exitId}, + #{printDate}, + #{customerId}, + #{supplierId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + + + + + update mydo_job_detail_finish + + job_id = #{jobId}, + stock_id = #{stockId}, + lot_no = #{lotNo}, + in_date = #{inDate}, + in_or_out_id = #{inOrOutId}, + in_or_out_d_id = #{inOrOutDId}, + product_guid = #{productGuid}, + product_id = #{productId}, + stock_status = #{stockStatus}, + in_quantity = #{inQuantity}, + stock_quantity = #{stockQuantity}, + out_quantity = #{outQuantity}, + layer_quantity = #{layerQuantity}, + out_layer_quantity = #{outLayerQuantity}, + give_num = #{giveNum}, + stockin_id = #{stockinId}, + stacking_id = #{stackingId}, + exit_id = #{exitId}, + print_date = #{printDate}, + customer_id = #{customerId}, + supplier_id = #{supplierId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + + where job_detail_id = #{jobDetailId} + + + + delete from mydo_job_detail_finish where job_detail_id = #{jobDetailId} + + + + delete from mydo_job_detail_finish where job_detail_id in + + #{jobDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobDetailMapper.xml new file mode 100644 index 0000000..79de6fc --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobDetailMapper.xml @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into mydo_job_detail + + job_detail_id, + job_id, + stock_id, + lot_no, + in_date, + in_or_out_id, + in_or_out_d_id, + product_guid, + product_id, + stock_status, + in_quantity, + stock_quantity, + out_quantity, + layer_quantity, + out_layer_quantity, + give_num, + stockin_id, + stacking_id, + exit_id, + print_date, + customer_id, + supplier_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + spare9, + spec, + unit, + pick_quantity, + + + #{jobDetailId}, + #{jobId}, + #{stockId}, + #{lotNo}, + #{inDate}, + #{inOrOutId}, + #{inOrOutDId}, + #{productGuid}, + #{productId}, + #{stockStatus}, + #{inQuantity}, + #{stockQuantity}, + #{outQuantity}, + #{layerQuantity}, + #{outLayerQuantity}, + #{giveNum}, + #{stockinId}, + #{stackingId}, + #{exitId}, + #{printDate}, + #{customerId}, + #{supplierId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{spare9}, + #{spec}, + #{unit}, + #{pick_quantity}, + + + + insert into mydo_job_detail_finish select * from mydo_job_detail where job_id = #{jobId} + + + + update mydo_job_detail + + job_id = #{jobId}, + stock_id = #{stockId}, + lot_no = #{lotNo}, + in_date = #{inDate}, + in_or_out_id = #{inOrOutId}, + in_or_out_d_id = #{inOrOutDId}, + product_guid = #{productGuid}, + product_id = #{productId}, + stock_status = #{stockStatus}, + in_quantity = #{inQuantity}, + stock_quantity = #{stockQuantity}, + out_quantity = #{outQuantity}, + layer_quantity = #{layerQuantity}, + out_layer_quantity = #{outLayerQuantity}, + give_num = #{giveNum}, + stockin_id = #{stockinId}, + stacking_id = #{stackingId}, + exit_id = #{exitId}, + print_date = #{printDate}, + customer_id = #{customerId}, + supplier_id = #{supplierId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + pick_quantity = #{pickQuantity}, + + where job_detail_id = #{jobDetailId} + + + + delete from mydo_job_detail where job_detail_id = #{jobDetailId} + + + + delete from mydo_job_detail where job_detail_id in + + #{jobDetailId} + + + + delete from mydo_job_detail where job_id = #{jobId} + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobFinishMapper.xml new file mode 100644 index 0000000..6c88e70 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobFinishMapper.xml @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select mj.job_id, mj.status, mj.on_line_type, mj.task_no, mj.supplier_id, + mj.customer_id, mj.department_id, mj.tray_code, mj.roadway_id, mj.cargo_space_id, + mj.target_roadway_id, mj.target_cargo_space_id, mj.line_id, mj.workshop_id, mj.priority, + mj.execution_phase, mj.in_or_out, mj.create_time, mj.start_time, mj.finish_time, mj.entrance_id, + mj.exit_id, mj.class_id, mj.warehouse_id, mj.fault_flag, + bs.supplier_name as supplier_name, bc.customer_name as customer_name, + bcs.cargo_space_name as cargo_space_name, bcst.cargo_space_name as target_cargo_space_name, + bw.warehouse_name as warehouse_name,sd.dept_name + from mydo_job_finish mj + left join bas_supplier bs on mj.supplier_id = bs.id + left join bas_customer bc on mj.customer_id = bc.id + left join bas_cargo_space bcs on mj.cargo_space_id = bcs.cargo_space_id + left join bas_cargo_space bcst on mj.target_cargo_space_id = bcst.cargo_space_id + left join bas_warehouse bw on mj.warehouse_id = bw.warehouse_id + left join sys_dept sd on mj.department_id = sd.dept_id + + + + + + + + + + insert into mydo_job_finish + + job_id, + status, + on_line_type, + task_no, + supplier_id, + customer_id, + department_id, + tray_code, + roadway_id, + cargo_space_id, + target_roadway_id, + target_cargo_space_id, + line_id, + workshop_id, + priority, + execution_phase, + in_or_out, + create_time, + start_time, + finish_time, + entrance_id, + exit_id, + class_id, + warehouse_id, + fault_flag, + + + #{jobId}, + #{status}, + #{onLineType}, + #{taskNo}, + #{supplierId}, + #{customerId}, + #{departmentId}, + #{trayCode}, + #{roadwayId}, + #{cargoSpaceId}, + #{targetRoadwayId}, + #{targetCargoSpaceId}, + #{lineId}, + #{workshopId}, + #{priority}, + #{executionPhase}, + #{inOrOut}, + #{createTime}, + #{startTime}, + #{finishTime}, + #{entranceId}, + #{exitId}, + #{classId}, + #{warehouseId}, + #{faultFlag}, + + + + + update mydo_job_finish + + status = #{status}, + on_line_type = #{onLineType}, + task_no = #{taskNo}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + department_id = #{departmentId}, + tray_code = #{trayCode}, + roadway_id = #{roadwayId}, + cargo_space_id = #{cargoSpaceId}, + target_roadway_id = #{targetRoadwayId}, + target_cargo_space_id = #{targetCargoSpaceId}, + line_id = #{lineId}, + workshop_id = #{workshopId}, + priority = #{priority}, + execution_phase = #{executionPhase}, + in_or_out = #{inOrOut}, + create_time = #{createTime}, + start_time = #{startTime}, + finish_time = #{finishTime}, + entrance_id = #{entranceId}, + exit_id = #{exitId}, + class_id = #{classId}, + warehouse_id = #{warehouseId}, + fault_flag = #{faultFlag}, + + where job_id = #{jobId} + + + + delete from mydo_job_finish where job_id = #{jobId} + + + + delete from mydo_job_finish where job_id in + + #{jobId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobMapper.xml new file mode 100644 index 0000000..f5d0891 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/job/MydoJobMapper.xml @@ -0,0 +1,282 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select mj.job_id, mj.status, mj.on_line_type, mj.task_no, mj.supplier_id, + mj.customer_id, mj.department_id, mj.tray_code, mj.roadway_id, mj.cargo_space_id, + mj.target_roadway_id, mj.target_cargo_space_id, mj.line_id, mj.workshop_id, mj.priority, + mj.execution_phase, mj.in_or_out, mj.create_time, mj.start_time, mj.finish_time, mj.entrance_id, + mj.exit_id, mj.class_id, mj.warehouse_id, mj.fault_flag, + bs.supplier_name as supplier_name, bc.customer_name as customer_name, + bcs.cargo_space_name as cargo_space_name, bcst.cargo_space_name as target_cargo_space_name, + bw.warehouse_name as warehouse_name + from mydo_job mj + left join bas_supplier bs on mj.supplier_id = bs.id + left join bas_customer bc on mj.customer_id = bc.id + left join bas_cargo_space bcs on mj.cargo_space_id = bcs.cargo_space_id + left join bas_cargo_space bcst on mj.target_cargo_space_id = bcst.cargo_space_id + left join bas_warehouse bw on mj.warehouse_id = bw.warehouse_id + + + + + + + + + + insert into mydo_job + + job_id, + status, + on_line_type, + task_no, + supplier_id, + customer_id, + department_id, + tray_code, + roadway_id, + cargo_space_id, + target_roadway_id, + target_cargo_space_id, + line_id, + workshop_id, + priority, + execution_phase, + in_or_out, + create_time, + start_time, + finish_time, + entrance_id, + exit_id, + class_id, + warehouse_id, + fault_flag, + + + #{jobId}, + #{status}, + #{onLineType}, + #{taskNo}, + #{supplierId}, + #{customerId}, + #{departmentId}, + #{trayCode}, + #{roadwayId}, + #{cargoSpaceId}, + #{targetRoadwayId}, + #{targetCargoSpaceId}, + #{lineId}, + #{workshopId}, + #{priority}, + #{executionPhase}, + #{inOrOut}, + #{createTime}, + #{startTime}, + #{finishTime}, + #{entranceId}, + #{exitId}, + #{classId}, + #{warehouseId}, + #{faultFlag}, + + + + insert into mydo_job_finish + select * from mydo_job where job_id = #{jobId} + + + + update mydo_job + + status = #{status}, + on_line_type = #{onLineType}, + task_no = #{taskNo}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + department_id = #{departmentId}, + tray_code = #{trayCode}, + roadway_id = #{roadwayId}, + cargo_space_id = #{cargoSpaceId}, + target_roadway_id = #{targetRoadwayId}, + target_cargo_space_id = #{targetCargoSpaceId}, + line_id = #{lineId}, + workshop_id = #{workshopId}, + priority = #{priority}, + execution_phase = #{executionPhase}, + in_or_out = #{inOrOut}, + create_time = #{createTime}, + start_time = #{startTime}, + finish_time = #{finishTime}, + entrance_id = #{entranceId}, + exit_id = #{exitId}, + class_id = #{classId}, + warehouse_id = #{warehouseId}, + fault_flag = #{faultFlag}, + + where job_id = #{jobId} + + + + + delete from mydo_job where job_id = #{jobId} + + + + delete from mydo_job where job_id in + + #{jobId} + + + + + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/mp/UserlMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/mp/UserlMapper.xml new file mode 100644 index 0000000..df959ea --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/mp/UserlMapper.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutExceptionRecordMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutExceptionRecordMapper.xml new file mode 100644 index 0000000..580156d --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutExceptionRecordMapper.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + select out_guid, warehouse_id, stock_id, tray_code, product_id, spare1, spare2, spare3 from out_exception_record + + + + + + + + insert into out_exception_record + + warehouse_id, + stock_id, + tray_code, + product_id, + spare1, + spare2, + spare3, + + + #{warehouseId}, + #{stockId}, + #{trayCode}, + #{productId}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update out_exception_record + + warehouse_id = #{warehouseId}, + stock_id = #{stockId}, + tray_code = #{trayCode}, + product_id = #{productId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where out_guid = #{outGuid} + + + + delete from out_exception_record where out_guid = #{outGuid} + + + + delete from out_exception_record where out_guid in + + #{outGuid} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutPickSubmitMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutPickSubmitMapper.xml new file mode 100644 index 0000000..eb17b7e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutPickSubmitMapper.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + select id, tray_code, job_id, job_detail_id, product_id, quantity, warehouse_id, exit_id, spare1, spare2, spare3 from out_pick_submit + + + + + + + + insert into out_pick_submit + + tray_code, + job_id, + job_detail_id, + product_id, + quantity, + warehouse_id, + exit_id, + spare1, + spare2, + spare3, + + + #{trayCode}, + #{jobId}, + #{jobDetailId}, + #{productId}, + #{quantity}, + #{warehouseId}, + #{exitId}, + #{spare1}, + #{spare2}, + #{spare3}, + + + + + update out_pick_submit + + tray_code = #{trayCode}, + job_id = #{jobId}, + job_detail_id = #{jobDetailId}, + product_id = #{productId}, + quantity = #{quantity}, + warehouse_id = #{warehouseId}, + exit_id = #{exitId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + + where id = #{id} + + + + delete from out_pick_submit where id = #{id} + + + + delete from out_pick_submit where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutBackMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutBackMapper.xml new file mode 100644 index 0000000..6cfc269 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutBackMapper.xml @@ -0,0 +1,225 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockout_guid, + stockout_id, + out_type, + create_date, + department_no, + customer_no, + create_man_id, + status, + stockout_source, + warehouse_id, + class_now_id, + exit_id, + car_number, + FID, + erp_stockout_id, + start_date, + finish_date, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + send_status, + send_time, + msg, + company_short_name, + account_set_no + from out_stockout_back + + + + + + + + + + insert into out_stockout_back + + stockout_guid, + stockout_id, + out_type, + create_date, + department_no, + customer_no, + create_man_id, + status, + stockout_source, + warehouse_id, + class_now_id, + exit_id, + car_number, + FID, + erp_stockout_id, + start_date, + finish_date, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + send_status, + send_time, + msg, + + + #{stockoutGuid}, + #{stockoutId}, + #{outType}, + #{createDate}, + #{departmentNo}, + #{customerNo}, + #{createManId}, + #{status}, + #{stockoutSource}, + #{warehouseId}, + #{classNowId}, + #{exitId}, + #{carNumber}, + #{FID}, + #{erpStockoutId}, + #{startDate}, + #{finishDate}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{sendStatus}, + #{sendTime}, + #{msg}, + + + + + update out_stockout_back + + stockout_id = #{stockoutId}, + out_type = #{outType}, + create_date = #{createDate}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + create_man_id = #{createManId}, + status = #{status}, + stockout_source = #{stockoutSource}, + warehouse_id = #{warehouseId}, + class_now_id = #{classNowId}, + exit_id = #{exitId}, + car_number = #{carNumber}, + FID = #{FID}, + erp_stockout_id = #{erpStockoutId}, + start_date = #{startDate}, + finish_date = #{finishDate}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spare7 = #{spare7}, + spare8 = #{spare8}, + send_status = #{sendStatus}, + send_time = #{sendTime}, + msg = #{msg}, + + where stockout_guid = #{stockoutGuid} + + + + delete from out_stockout_back where stockout_guid = #{stockoutGuid} + + + + delete from out_stockout_back where stockout_guid in + + #{stockoutGuid} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailBackMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailBackMapper.xml new file mode 100644 index 0000000..89dc8cc --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailBackMapper.xml @@ -0,0 +1,320 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockout_detail_id, + stockout_guid, + stockout_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + assign_num, + assign_num_x, + assign_num_j, + allot_quantity, + allot_quantity_x, + allot_quantity_j, + price, + remark, + warehouse_id, + out_id, + bukechai_quantity, + kechai_quantity, + entryid, + flat_quantity, + fid, + erp_stockout_id, + unit, + spec, + product_name, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + spare9, + send_status, + send_time, + msg, + source_line_id, + bar_code, + is_batch_manage, + old_project_no + from out_stockout_detail_back + + + + + + + + insert into out_stockout_detail_back + + stockout_detail_id, + stockout_guid, + stockout_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + assign_num, + assign_num_x, + assign_num_j, + allot_quantity, + allot_quantity_x, + allot_quantity_j, + price, + remark, + warehouse_id, + out_id, + bukechai_quantity, + kechai_quantity, + entryid, + flat_quantity, + fid, + erp_stockout_id, + unit, + spec, + product_name, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + spare9, + send_status, + send_time, + msg, + + + #{stockoutDetailId}, + #{stockoutGuid}, + #{stockoutId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{allotQuantity}, + #{allotQuantityX}, + #{allotQuantityJ}, + #{price}, + #{remark}, + #{warehouseId}, + #{outId}, + #{bukechaiQuantity}, + #{kechaiQuantity}, + #{entryid}, + #{flatQuantity}, + #{fid}, + #{erpStockoutId}, + #{unit}, + #{spec}, + #{productName}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{spare9}, + #{sendStatus}, + #{sendTime}, + #{msg}, + + + + + update out_stockout_detail_back + + stockout_guid = #{stockoutGuid}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + allot_quantity = #{allotQuantity}, + allot_quantity_x = #{allotQuantityX}, + allot_quantity_j = #{allotQuantityJ}, + price = #{price}, + remark = #{remark}, + warehouse_id = #{warehouseId}, + out_id = #{outId}, + bukechai_quantity = #{bukechaiQuantity}, + kechai_quantity = #{kechaiQuantity}, + entryid = #{entryid}, + flat_quantity = #{flatQuantity}, + fid = #{fid}, + erp_stockout_id = #{erpStockoutId}, + unit = #{unit}, + spec = #{spec}, + product_name = #{productName}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + send_status = #{sendStatus}, + send_time = #{sendTime}, + msg = #{msg}, + + where stockout_id = #{stockoutId} + + + + delete + from out_stockout_detail_back + where stockout_detail_id = #{stockoutDetailId} + + + + delete from out_stockout_detail_back where stockout_detail_id in + + #{stockoutDetailId} + + + + + INSERT INTO out_stockout_detail_back_finish + + SELECT * FROM out_stockout_detail_back + WHERE stockout_detail_id = #{item.stockoutDetailId} + + + + + DELETE FROM out_stockout_detail_back + WHERE stockout_detail_id IN + + #{item.stockoutDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailFinishMapper.xml new file mode 100644 index 0000000..1ccd669 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailFinishMapper.xml @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockout_detail_id, stockout_guid, stockout_id, lot_no, product_guid, product_id, quantity, quantity_x, quantity_j, assign_num, assign_num_x, assign_num_j, allot_quantity, allot_quantity_x, allot_quantity_j, price, remark, warehouse_id, out_id, bukechai_quantity, kechai_quantity, entryid, flat_quantity, fid, erp_stockout_id, unit, spec, product_name, supplier_id, cargo_no, create_time, print_date from out_stockout_detail_finish + + + + + + + + insert into out_stockout_detail_finish + + stockout_detail_id, + stockout_guid, + stockout_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + assign_num, + assign_num_x, + assign_num_j, + allot_quantity, + allot_quantity_x, + allot_quantity_j, + price, + remark, + warehouse_id, + out_id, + bukechai_quantity, + kechai_quantity, + entryid, + flat_quantity, + fid, + erp_stockout_id, + unit, + spec, + product_name, + supplier_id, + cargo_no, + create_time, + print_date, + + + #{stockoutDetailId}, + #{stockoutGuid}, + #{stockoutId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{allotQuantity}, + #{allotQuantityX}, + #{allotQuantityJ}, + #{price}, + #{remark}, + #{warehouseId}, + #{outId}, + #{bukechaiQuantity}, + #{kechaiQuantity}, + #{entryid}, + #{flatQuantity}, + #{fid}, + #{erpStockoutId}, + #{unit}, + #{spec}, + #{productName}, + #{supplierId}, + #{cargoNo}, + #{createTime}, + #{printDate}, + + + + + update out_stockout_detail_finish + + stockout_guid = #{stockoutGuid}, + stockout_id = #{stockoutId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + allot_quantity = #{allotQuantity}, + allot_quantity_x = #{allotQuantityX}, + allot_quantity_j = #{allotQuantityJ}, + price = #{price}, + remark = #{remark}, + warehouse_id = #{warehouseId}, + out_id = #{outId}, + bukechai_quantity = #{bukechaiQuantity}, + kechai_quantity = #{kechaiQuantity}, + entryid = #{entryid}, + flat_quantity = #{flatQuantity}, + fid = #{fid}, + erp_stockout_id = #{erpStockoutId}, + unit = #{unit}, + spec = #{spec}, + product_name = #{productName}, + supplier_id = #{supplierId}, + cargo_no = #{cargoNo}, + create_time = #{createTime}, + print_date = #{printDate}, + + where stockout_detail_id = #{stockoutDetailId} + + + + delete from out_stockout_detail_finish where stockout_detail_id = #{stockoutDetailId} + + + + delete from out_stockout_detail_finish where stockout_detail_id in + + #{stockoutDetailId} + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailMapper.xml new file mode 100644 index 0000000..a56d66c --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutDetailMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select d.stockout_detail_id, d.stockout_guid, d.stockout_id, d.lot_no, d.product_guid, d.product_id, d.quantity, d.quantity_x, + d.quantity_j, d.assign_num, d.assign_num_x, d.assign_num_j, d.allot_quantity, d.allot_quantity_x, d.allot_quantity_j, + d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid, + d.erp_stockout_id, d.unit, d.spec, + d.product_name ,d.spare1, d.spare2, d.spare3, d.spare4,d.spare5, d.spare6,d.spare7,d.spare8,d.spare9 + from out_stockout_detail d + + + + + + + + insert into out_stockout_detail + + stockout_detail_id, + stockout_guid, + stockout_id, + lot_no, + product_guid, + product_id, + product_name, + quantity, + quantity_x, + quantity_j, + assign_num, + assign_num_x, + assign_num_j, + allot_quantity, + allot_quantity_x, + allot_quantity_j, + price, + remark, + warehouse_id, + out_id, + bukechai_quantity, + kechai_quantity, + entryid, + flat_quantity, + fid, + erp_stockout_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + spare9, + source_line_id, + bar_code, + is_batch_manage, + old_project_no, + + + + #{stockoutDetailId}, + #{stockoutGuid}, + #{stockoutId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{productName}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{allotQuantity}, + #{allotQuantityX}, + #{allotQuantityJ}, + #{price}, + #{remark}, + #{warehouseId}, + #{outId}, + #{bukechaiQuantity}, + #{kechaiQuantity}, + #{entryid}, + #{flatQuantity}, + #{fid}, + #{erpStockoutId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{spare9}, + #{sourceLineId}, + #{barCode}, + #{isBatchManage}, + #{oldProjectNo}, + + + + + update out_stockout_detail + + stockout_guid = #{stockoutGuid}, + stockout_id = #{stockoutId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + allot_quantity = #{allotQuantity}, + allot_quantity_x = #{allotQuantityX}, + allot_quantity_j = #{allotQuantityJ}, + price = #{price}, + remark = #{remark}, + warehouse_id = #{warehouseId}, + out_id = #{outId}, + bukechai_quantity = #{bukechaiQuantity}, + kechai_quantity = #{kechaiQuantity}, + entryid = #{entryid}, + flat_quantity = #{flatQuantity}, + fid = #{fid}, + erp_stockout_id = #{erpStockoutId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + + + where stockout_detail_id = #{stockoutDetailId} + + + + delete from out_stockout_detail where stockout_detail_id = #{stockoutDetailId} + + + + delete from out_stockout_detail where stockout_detail_id in + + #{stockoutDetailId} + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutFinishMapper.xml new file mode 100644 index 0000000..ec19b6e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutFinishMapper.xml @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, car_number, FID, erp_stockout_id, start_date, finish_date from out_stockout_finish + + + + + + + + insert into out_stockout_finish + + stockout_guid, + stockout_id, + out_type, + create_date, + department_no, + customer_no, + create_man_id, + status, + stockout_source, + warehouse_id, + class_now_id, + exit_id, + car_number, + FID, + erp_stockout_id, + start_date, + finish_date, + + + #{stockoutGuid}, + #{stockoutId}, + #{outType}, + #{createDate}, + #{departmentNo}, + #{customerNo}, + #{createManId}, + #{status}, + #{stockoutSource}, + #{warehouseId}, + #{classNowId}, + #{exitId}, + #{carNumber}, + #{FID}, + #{erpStockoutId}, + #{startDate}, + #{finishDate}, + + + + + update out_stockout_finish + + stockout_id = #{stockoutId}, + out_type = #{outType}, + create_date = #{createDate}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + create_man_id = #{createManId}, + status = #{status}, + stockout_source = #{stockoutSource}, + warehouse_id = #{warehouseId}, + class_now_id = #{classNowId}, + exit_id = #{exitId}, + car_number = #{carNumber}, + FID = #{FID}, + erp_stockout_id = #{erpStockoutId}, + start_date = #{startDate}, + finish_date = #{finishDate}, + + where stockout_guid = #{stockoutGuid} + + + + delete from out_stockout_finish where stockout_guid = #{stockoutGuid} + + + + delete from out_stockout_finish where stockout_guid in + + #{stockoutGuid} + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutMapper.xml new file mode 100644 index 0000000..58b314c --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/OutStockoutMapper.xml @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, car_number, FID, erp_stockout_id,start_date,finish_date,spare1,spare2,spare3,spare4,spare5,spare6,spare7,spare8 from out_stockout + + + + + + + + insert into out_stockout + + stockout_guid, + stockout_id, + out_type, + create_date, + department_no, + customer_no, + create_man_id, + status, + stockout_source, + warehouse_id, + class_now_id, + exit_id, + car_number, + FID, + erp_stockout_id, + spare1, + spare2, + spare4, + spare3, + spare5, + spare6, + spare7, + spare8, + company_short_name, + account_set_no, + + + #{stockoutGuid}, + #{stockoutId}, + #{outType}, + #{createDate}, + #{departmentNo}, + #{customerNo}, + #{createManId}, + #{status}, + #{stockoutSource}, + #{warehouseId}, + #{classNowId}, + #{exitId}, + #{carNumber}, + #{FID}, + #{erpStockoutId}, + #{spare1}, + #{spare2}, + #{spare4}, + #{spare3}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{companyShortName}, + #{accountSetNo}, + + + + + update out_stockout + + stockout_id = #{stockoutId}, + out_type = #{outType}, + create_date = #{createDate}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + create_man_id = #{createManId}, + status = #{status}, + stockout_source = #{stockoutSource}, + warehouse_id = #{warehouseId}, + class_now_id = #{classNowId}, + exit_id = #{exitId}, + car_number = #{carNumber}, + FID = #{FID}, + erp_stockout_id = #{erpStockoutId}, + start_date = #{startDate}, + finish_date = #{finishDate}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare4 = #{spare4}, + spare3 = #{spare3}, + spare5 = #{spare5}, + company_short_name = #{companyShortName}, + account_set_no = #{accountSetNo}, + + where stockout_id = #{stockoutId} + + + + delete from out_stockout where stockout_guid = #{stockoutGuid} + + + + delete from out_stockout where stockout_guid in + + #{stockoutGuid} + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/out/ViewHandAllotStockMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/out/ViewHandAllotStockMapper.xml new file mode 100644 index 0000000..f1db0d0 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/out/ViewHandAllotStockMapper.xml @@ -0,0 +1,264 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, product_name, voltage, power, phase, net_weight, gross_weight, distribution, model, order_id, spare7, spare8, cargo_space_name, roadway_id, the_platoon, the_column, the_floor, status, locked from view_hand_allot_stock + + + + + + + + insert into view_hand_allot_stock + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + product_guid, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_id, + product_name, + voltage, + power, + phase, + net_weight, + gross_weight, + distribution, + model, + order_id, + spare7, + spare8, + cargo_space_name, + roadway_id, + the_platoon, + the_column, + the_floor, + status, + locked, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{productGuid}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productId}, + #{productName}, + #{voltage}, + #{power}, + #{phase}, + #{netWeight}, + #{grossWeight}, + #{distribution}, + #{model}, + #{orderId}, + #{spare7}, + #{spare8}, + #{cargoSpaceName}, + #{roadwayId}, + #{thePlatoon}, + #{theColumn}, + #{theFloor}, + #{status}, + #{locked}, + + + + + update view_hand_allot_stock + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + product_guid = #{productGuid}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_id = #{productId}, + product_name = #{productName}, + voltage = #{voltage}, + power = #{power}, + phase = #{phase}, + net_weight = #{netWeight}, + gross_weight = #{grossWeight}, + distribution = #{distribution}, + model = #{model}, + order_id = #{orderId}, + spare7 = #{spare7}, + spare8 = #{spare8}, + cargo_space_name = #{cargoSpaceName}, + roadway_id = #{roadwayId}, + the_platoon = #{thePlatoon}, + the_column = #{theColumn}, + the_floor = #{theFloor}, + status = #{status}, + locked = #{locked}, + + where stock_id = #{stockId} + + + + delete from view_hand_allot_stock where stock_id = #{stockId} + + + + delete from view_hand_allot_stock where stock_id in + + #{stockId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/pda/PdaMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/pda/PdaMapper.xml new file mode 100644 index 0000000..62c82e9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/pda/PdaMapper.xml @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/pda/TrayMsgMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/pda/TrayMsgMapper.xml new file mode 100644 index 0000000..746fdd9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/pda/TrayMsgMapper.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + select id, tray_code, stockin_detail_id, quantity,warehouse_id from tray_msg + + + + + + + + insert into tray_msg + + id, + tray_code, + stockin_detail_id, + quantity, + warehouse_id, + + + #{id}, + #{trayCode}, + #{stockinDetailId}, + #{quantity}, + #{warehouseId}, + + + + + update tray_msg + + tray_code = #{trayCode}, + stockin_detail_id = #{stockinDetailId}, + quantity = #{quantity}, + + where id = #{id} + + + + delete from tray_msg where id = #{id} + + + + delete from tray_msg where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/productAndStock/ViewProductAndStockMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/productAndStock/ViewProductAndStockMapper.xml new file mode 100644 index 0000000..7cf3c89 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/productAndStock/ViewProductAndStockMapper.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select only_identity, product_id, lot_no, product_name, quantity, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, voltage, power, phase from view_product_and_stock + + + select only_identity, product_id, lot_no, product_name, quantity, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, voltage, power, phase from view_product_and_stock_pd + + + + + + + + + insert into view_product_and_stock + + only_identity, + product_id, + lot_no, + product_name, + quantity, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + voltage, + power, + phase, + + + #{onlyIdentity}, + #{productId}, + #{lotNo}, + #{productName}, + #{quantity}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{voltage}, + #{power}, + #{phase}, + + + + + update view_product_and_stock + + product_id = #{productId}, + lot_no = #{lotNo}, + product_name = #{productName}, + quantity = #{quantity}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + voltage = #{voltage}, + power = #{power}, + phase = #{phase}, + + where only_identity = #{onlyIdentity} + + + + delete from view_product_and_stock where only_identity = #{onlyIdentity} + + + + delete from view_product_and_stock where only_identity in + + #{onlyIdentity} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinDetailFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinDetailFinishMapper.xml new file mode 100644 index 0000000..f57ee75 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinDetailFinishMapper.xml @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select rsd.stockin_detail_id, rsd.stockin_guid, rsd.stockin_id, rsd.lot_no, rsd.product_guid, rsd.product_id, + rsd.quantity, rsd.quantity_x, rsd.quantity_j, rsd.price, rsd.cargo_no, rsd.remark, rsd.assign_num, + rsd.assign_num_x, rsd.assign_num_j, rsd.print_date, rsd.stock_status, rsd.supplier_id, rsd.customer_id, + rsd.unit, rsd.spec, rsd.spare1, rsd.spare2, rsd.spare3, rsd.spare4, rsd.spare5, rsd.spare6, + bp.product_name,bp.spare1 as englishDesc, + bp.spare2 as netWeight,bp.spare5 as length,bp.spare6 as width,bp.spare7 as height,bp.spare8 as volume + from receive_stockin_detail_finish rsd + left join bas_product bp on rsd.product_id = bp.product_id + + + + + + + + + insert into receive_stockin_detail_finish + + stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + + + #{stockinDetailId}, + #{stockinGuid}, + #{stockinId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + + + + + update receive_stockin_detail_finish + + stockin_guid = #{stockinGuid}, + stockin_id = #{stockinId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + + where stockin_detail_id = #{stockinDetailId} + + + + delete from receive_stockin_detail_finish where stockin_detail_id = #{stockinDetailId} + + + + delete from receive_stockin_detail_finish where stockin_detail_id in + + #{stockinDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinDetailMapper.xml new file mode 100644 index 0000000..6790d91 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinDetailMapper.xml @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select rsd.stockin_detail_id, rsd.stockin_guid, rsd.stockin_id, rsd.lot_no, rsd.product_guid, rsd.product_id, + rsd.quantity, rsd.quantity_x, rsd.quantity_j, rsd.price, rsd.cargo_no, rsd.remark, rsd.assign_num, + rsd.assign_num_x, rsd.assign_num_j, rsd.print_date, rsd.stock_status, rsd.supplier_id, rsd.customer_id, + rsd.unit, rsd.spec, rsd.spare1, rsd.spare2, rsd.spare3, rsd.spare4, rsd.spare5, rsd.spare6, + bp.product_name,bp.spare1 as englishDesc, + bp.spare2 as netWeight,bp.spare5 as length,bp.spare6 as width,bp.spare7 as height,bp.spare8 as volume + from receive_stockin_detail rsd + left join bas_product bp on rsd.product_id = bp.product_id + + + + + + + + insert into receive_stockin_detail + + stockin_detail_id, + stockin_guid, + stockin_id, + lot_no, + product_guid, + product_id, + quantity, + quantity_x, + quantity_j, + price, + cargo_no, + remark, + assign_num, + assign_num_x, + assign_num_j, + print_date, + stock_status, + supplier_id, + customer_id, + unit, + spec, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + + + #{stockinDetailId}, + #{stockinGuid}, + #{stockinId}, + #{lotNo}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityX}, + #{quantityJ}, + #{price}, + #{cargoNo}, + #{remark}, + #{assignNum}, + #{assignNumX}, + #{assignNumJ}, + #{printDate}, + #{stockStatus}, + #{supplierId}, + #{customerId}, + #{unit}, + #{spec}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + + + + insert into receive_stockin_detail_finish + select * from receive_stockin_detail where stockin_guid = #{receiveStockinGuid} + + + + update receive_stockin_detail + + stockin_guid = #{stockinGuid}, + stockin_id = #{stockinId}, + lot_no = #{lotNo}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_x = #{quantityX}, + quantity_j = #{quantityJ}, + price = #{price}, + cargo_no = #{cargoNo}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_x = #{assignNumX}, + assign_num_j = #{assignNumJ}, + print_date = #{printDate}, + stock_status = #{stockStatus}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + unit = #{unit}, + spec = #{spec}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + + where stockin_detail_id = #{stockinDetailId} + + + + delete from receive_stockin_detail where stockin_detail_id = #{stockinDetailId} + + + + delete from receive_stockin_detail where stockin_detail_id in + + #{stockinDetailId} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinFinishMapper.xml new file mode 100644 index 0000000..7acb93b --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinFinishMapper.xml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + rs.stockin_guid , + rs.stockin_id , + rs.in_type , + rs.create_date , + rs.create_man_id , + rs.status , + rs.warehouse_id , + bw.warehouse_name , + rs.spare5 , + rs.spare4 , + rs.spare3 , + rs.finish_date , + rs.spare2 , + rs.spare1, + rs.erp_bill , + rs.stock_source, + rs.department_no, + rs.customer_no, + rs.class_no, + rs.supplier_no, + bs.supplier_name, + sd.dept_name, + su.user_name + from receive_stockin_finish rs + left join bas_warehouse bw on rs.warehouse_id = bw.warehouse_id + left join bas_supplier bs on rs.supplier_no = bs.supplier_no + left join sys_dept sd on rs.department_no = sd.dept_id + left join sys_user su on su.user_id = rs.create_man_id + + + + + + + + + insert into receive_stockin_finish + + stockin_guid, + stockin_id, + in_type, + create_date, + create_man_id, + status, + warehouse_id, + spare5, + spare4, + spare3, + finish_date, + spare2, + spare1, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + + + #{stockinGuid}, + #{stockinId}, + #{inType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{spare5}, + #{spare4}, + #{spare3}, + #{finishDate}, + #{spare2}, + #{spare1}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + + + + + update receive_stockin_finish + + stockin_id = #{stockinId}, + in_type = #{inType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + spare5 = #{spare5}, + spare4 = #{spare4}, + spare3 = #{spare3}, + finish_date = #{finishDate}, + spare2 = #{spare2}, + spare1 = #{spare1}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + + where stockin_guid = #{stockinGuid} + + + + delete from receive_stockin_finish where stockin_guid = #{stockinGuid} + + + + delete from receive_stockin_finish where stockin_guid in + + #{stockinGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinMapper.xml new file mode 100644 index 0000000..bd93721 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/receive/ReceiveStockinMapper.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + rs.stockin_guid , + rs.stockin_id , + rs.in_type , + rs.create_date , + rs.create_man_id , + rs.status , + rs.warehouse_id , + bw.warehouse_name , + rs.spare5 , + rs.spare4 , + rs.spare3 , + rs.finish_date , + rs.spare2 , + rs.spare1, + rs.erp_bill , + rs.stock_source, + rs.department_no, + rs.customer_no, + rs.class_no, + rs.supplier_no, + bs.supplier_name, + sd.dept_name, + su.user_name + from receive_stockin rs + left join bas_warehouse bw on rs.warehouse_id = bw.warehouse_id + left join bas_supplier bs on rs.supplier_no = bs.supplier_no + left join sys_dept sd on rs.department_no = sd.dept_id + left join sys_user su on su.user_id = rs.create_man_id + + + + + + + + + insert into receive_stockin + + stockin_guid, + stockin_id, + in_type, + create_date, + create_man_id, + status, + warehouse_id, + spare5, + spare4, + spare3, + finish_date, + spare2, + spare1, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + + + #{stockinGuid}, + #{stockinId}, + #{inType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{spare5}, + #{spare4}, + #{spare3}, + #{finishDate}, + #{spare2}, + #{spare1}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + + + + insert into receive_stockin_finish + select * from receive_stockin where stockin_guid = #{stockinGuid} + + + + update receive_stockin + + stockin_id = #{stockinId}, + in_type = #{inType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + spare5 = #{spare5}, + spare4 = #{spare4}, + spare3 = #{spare3}, + finish_date = #{finishDate}, + spare2 = #{spare2}, + spare1 = #{spare1}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + + where stockin_guid = #{stockinGuid} + + + + delete from receive_stockin where stockin_guid = #{stockinGuid} + + + + delete from receive_stockin where stockin_guid in + + #{stockinGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/requestInterface/RequestLogMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/requestInterface/RequestLogMapper.xml new file mode 100644 index 0000000..56a21c2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/requestInterface/RequestLogMapper.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + select request_id, request_time, source_system, target_system, endpoint, request_url, request_method, request_headers, request_body, response_time, response_body, response_status, error_details, duration, Is_successful from request_log + + + + + + + + insert into request_log + + request_time, + source_system, + target_system, + endpoint, + request_url, + request_method, + request_headers, + request_body, + response_time, + response_body, + response_status, + error_details, + duration, + Is_successful, + + + #{requestTime}, + #{sourceSystem}, + #{targetSystem}, + #{endpoint}, + #{requestUrl}, + #{requestMethod}, + #{requestHeaders}, + #{requestBody}, + #{responseTime}, + #{responseBody}, + #{responseStatus}, + #{errorDetails}, + #{duration}, + #{isSuccessful}, + + + + + update request_log + + request_time = #{requestTime}, + source_system = #{sourceSystem}, + target_system = #{targetSystem}, + endpoint = #{endpoint}, + request_url = #{requestUrl}, + request_method = #{requestMethod}, + request_headers = #{requestHeaders}, + request_body = #{requestBody}, + response_time = #{responseTime}, + response_body = #{responseBody}, + response_status = #{responseStatus}, + error_details = #{errorDetails}, + duration = #{duration}, + Is_successful = #{isSuccessful}, + + where request_id = #{requestId} + + + + delete from request_log where request_id = #{requestId} + + + + delete from request_log where request_id in + + #{requestId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/StockSummaryMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/StockSummaryMapper.xml new file mode 100644 index 0000000..81e64fe --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/StockSummaryMapper.xml @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT + + + s.stock_id, + s.cargo_space_id, + s.stock_status, + s.product_status, + s.lot_no, + s.in_date, + s.back_date, + s.product_guid, + s.job_id, + s.tray_code, + s.out_quantity, + s.stockin_detail_id, + s.stockin_id, + s.in_type, + s.in_class_id, + s.warehouse_id, + s.stacking_id, + s.product_id, + s.product_name, + s.voltage, + s.power, + s.phase, + s.order_id, + bcs.cargo_space_name, + bcs.status as cargo_space_status, + bcs.locked, + s.spare1, + s.spare2, + s.spare3, + s.spare4, + s.spare5, + s.spare6, + s.spare7, + s.spare8, + s.net_weight, + s.gross_weight, + s.distribution, + s.model, + SUM(CAST(s.quantity AS DECIMAL(18,2))) as quantity + FROM bas_stock s + LEFT JOIN bas_cargo_space bcs ON bcs.cargo_space_id = s.cargo_space_id + + AND s.stock_id like concat('%', #{stockId}, '%') + AND s.cargo_space_id like concat('%', #{cargoSpaceId}, '%') + AND s.stock_status like concat('%', #{stockStatus}, '%') + AND s.product_status like concat('%', #{productStatus}, '%') + AND s.lot_no like concat('%', #{lotNo}, '%') + AND s.in_date like concat('%', #{inDate}, '%') + AND s.back_date like concat('%', #{backDate}, '%') + AND s.product_guid like concat('%', #{productGuid}, '%') + AND s.job_id like concat('%', #{jobId}, '%') + AND s.tray_code like concat('%', #{trayCode}, '%') + AND s.out_quantity like concat('%', #{outQuantity}, '%') + AND s.stockin_detail_id like concat('%', #{stockinDetailId}, '%') + AND s.stockin_id like concat('%', #{stockinId}, '%') + AND s.in_type like concat('%', #{inType}, '%') + AND s.in_class_id like concat('%', #{inClassId}, '%') + AND s.warehouse_id like concat('%', #{warehouseId}, '%') + AND s.stacking_id like concat('%', #{stackingId}, '%') + AND s.product_id like concat('%', #{productId}, '%') + AND s.product_name like concat('%', #{productName}, '%') + AND s.voltage like concat('%', #{voltage}, '%') + AND s.power like concat('%', #{power}, '%') + AND s.phase like concat('%', #{phase}, '%') + AND s.order_id like concat('%', #{orderId}, '%') + AND bcs.cargo_space_name like concat('%', #{cargoSpaceName}, '%') + AND bcs.status like concat('%', #{cargoSpaceStatus}, '%') + AND bcs.locked like concat('%', #{locked}, '%') + AND s.spare1 like concat('%', #{spare1}, '%') + AND s.spare2 like concat('%', #{spare2}, '%') + AND s.spare3 like concat('%', #{spare3}, '%') + AND s.spare4 like concat('%', #{spare4}, '%') + AND s.spare5 like concat('%', #{spare5}, '%') + AND s.spare6 like concat('%', #{spare6}, '%') + AND s.spare7 like concat('%', #{spare7}, '%') + AND s.spare8 like concat('%', #{spare8}, '%') + AND s.net_weight like concat('%', #{netWeight}, '%') + AND s.gross_weight like concat('%', #{grossWeight}, '%') + AND s.distribution like concat('%', #{distribution}, '%') + AND s.model like concat('%', #{model}, '%') + + GROUP BY + + ,s.stock_id + ,s.cargo_space_id + ,s.stock_status + ,s.product_status + ,s.lot_no + ,s.in_date + ,s.back_date + ,s.product_guid + ,s.job_id + ,s.tray_code + ,s.out_quantity + ,s.stockin_detail_id + ,s.stockin_id + ,s.in_type + ,s.in_class_id + ,s.warehouse_id + ,s.stacking_id + ,s.product_id + ,s.product_name + ,s.voltage + ,s.power + ,s.phase + ,s.order_id + ,bcs.cargo_space_name + ,bcs.status + ,bcs.locked + ,s.spare1 + ,s.spare2 + ,s.spare3 + ,s.spare4 + ,s.spare5 + ,s.spare6 + ,s.spare7 + ,s.spare8 + ,s.net_weight + ,s.gross_weight + ,s.distribution + ,s.model + + + + 1 as group_all, + SUM(CAST(s.quantity AS DECIMAL(18,2))) as quantity + FROM bas_stock s + LEFT JOIN bas_cargo_space bcs ON bcs.cargo_space_id = s.cargo_space_id + + AND s.stock_id like concat('%', #{stockId}, '%') + AND s.cargo_space_id like concat('%', #{cargoSpaceId}, '%') + AND s.stock_status like concat('%', #{stockStatus}, '%') + AND s.product_status like concat('%', #{productStatus}, '%') + AND s.lot_no like concat('%', #{lotNo}, '%') + AND s.in_date like concat('%', #{inDate}, '%') + AND s.back_date like concat('%', #{backDate}, '%') + AND s.product_guid like concat('%', #{productGuid}, '%') + AND s.job_id like concat('%', #{jobId}, '%') + AND s.tray_code like concat('%', #{trayCode}, '%') + AND s.out_quantity like concat('%', #{outQuantity}, '%') + AND s.stockin_detail_id like concat('%', #{stockinDetailId}, '%') + AND s.stockin_id like concat('%', #{stockinId}, '%') + AND s.in_type like concat('%', #{inType}, '%') + AND s.in_class_id like concat('%', #{inClassId}, '%') + AND s.warehouse_id like concat('%', #{warehouseId}, '%') + AND s.stacking_id like concat('%', #{stackingId}, '%') + AND s.product_id like concat('%', #{productId}, '%') + AND s.product_name like concat('%', #{productName}, '%') + AND s.voltage like concat('%', #{voltage}, '%') + AND s.power like concat('%', #{power}, '%') + AND s.phase like concat('%', #{phase}, '%') + AND s.order_id like concat('%', #{orderId}, '%') + AND bcs.cargo_space_name like concat('%', #{cargoSpaceName}, '%') + AND bcs.status like concat('%', #{cargoSpaceStatus}, '%') + AND bcs.locked like concat('%', #{locked}, '%') + AND s.spare1 like concat('%', #{spare1}, '%') + AND s.spare2 like concat('%', #{spare2}, '%') + AND s.spare3 like concat('%', #{spare3}, '%') + AND s.spare4 like concat('%', #{spare4}, '%') + AND s.spare5 like concat('%', #{spare5}, '%') + AND s.spare6 like concat('%', #{spare6}, '%') + AND s.spare7 like concat('%', #{spare7}, '%') + AND s.spare8 like concat('%', #{spare8}, '%') + AND s.net_weight like concat('%', #{netWeight}, '%') + AND s.gross_weight like concat('%', #{grossWeight}, '%') + AND s.distribution like concat('%', #{distribution}, '%') + AND s.model like concat('%', #{model}, '%') + + + + + + + + + + + insert into stock_summary + + only_identity, + product_id, + product_name, + spec, + unit, + price, + parent_id, + cargo_no, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + spare7, + spare8, + spare9, + spare10, + spare11, + spare12, + spare13, + spare14, + spare15, + spare16, + spare17, + spare18, + spare19, + spare20, + spare21, + spare22, + spare23, + spare24, + spare25, + spare26, + spare27, + spare28, + spare29, + spare30, + spare31, + spare32, + spare33, + spare34, + spare35, + spare36, + spare37, + spare38, + spare39, + remark, + lot_no, + warehouse_id, + cargo_space_id, + quantity, + + + #{onlyIdentity}, + #{productId}, + #{productName}, + #{spec}, + #{unit}, + #{price}, + #{parentId}, + #{cargoNo}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + #{spare9}, + #{spare10}, + #{spare11}, + #{spare12}, + #{spare13}, + #{spare14}, + #{spare15}, + #{spare16}, + #{spare17}, + #{spare18}, + #{spare19}, + #{spare20}, + #{spare21}, + #{spare22}, + #{spare23}, + #{spare24}, + #{spare25}, + #{spare26}, + #{spare27}, + #{spare28}, + #{spare29}, + #{spare30}, + #{spare31}, + #{spare32}, + #{spare33}, + #{spare34}, + #{spare35}, + #{spare36}, + #{spare37}, + #{spare38}, + #{spare39}, + #{remark}, + #{lotNo}, + #{warehouseId}, + #{cargoSpaceId}, + #{quantity}, + + + + + update stock_summary + + product_id = #{productId}, + product_name = #{productName}, + spec = #{spec}, + unit = #{unit}, + price = #{price}, + parent_id = #{parentId}, + cargo_no = #{cargoNo}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + spare10 = #{spare10}, + spare11 = #{spare11}, + spare12 = #{spare12}, + spare13 = #{spare13}, + spare14 = #{spare14}, + spare15 = #{spare15}, + spare16 = #{spare16}, + spare17 = #{spare17}, + spare18 = #{spare18}, + spare19 = #{spare19}, + spare20 = #{spare20}, + spare21 = #{spare21}, + spare22 = #{spare22}, + spare23 = #{spare23}, + spare24 = #{spare24}, + spare25 = #{spare25}, + spare26 = #{spare26}, + spare27 = #{spare27}, + spare28 = #{spare28}, + spare29 = #{spare29}, + spare30 = #{spare30}, + spare31 = #{spare31}, + spare32 = #{spare32}, + spare33 = #{spare33}, + spare34 = #{spare34}, + spare35 = #{spare35}, + spare36 = #{spare36}, + spare37 = #{spare37}, + spare38 = #{spare38}, + spare39 = #{spare39}, + remark = #{remark}, + lot_no = #{lotNo}, + warehouse_id = #{warehouseId}, + cargo_space_id = #{cargoSpaceId}, + quantity = #{quantity}, + + where only_identity = #{onlyIdentity} + + + + delete from stock_summary where only_identity = #{onlyIdentity} + + + + delete from stock_summary where only_identity in + + #{onlyIdentity} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewFlatWarehouseInFlowMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewFlatWarehouseInFlowMapper.xml new file mode 100644 index 0000000..79a1a0a --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewFlatWarehouseInFlowMapper.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, unit, price, remark,spare1,spare2,spare5,spare6,spare7,spare8 from view_flat_warehouse_in_flow vfwif + + + + + + + + insert into view_flat_warehouse_in_flow + + 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, + unit, + price, + remark, + spare1, + spare2, + spare5, + spare6, + spare7, + spare8, + + + #{id}, + #{inOrOut}, + #{inOrOutSotckId}, + #{inOrOutSotckDetailId}, + #{productGuid}, + #{productId}, + #{quantity}, + #{createTime}, + #{createMan}, + #{warehouseId}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + #{productName}, + #{spec}, + #{unit}, + #{price}, + #{remark}, + #{spare1}, + #{spare2}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + + + + + update view_flat_warehouse_in_flow + + in_or_out = #{inOrOut}, + in_or_out_sotck_id = #{inOrOutSotckId}, + in_or_out_sotck_detail_id = #{inOrOutSotckDetailId}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + create_time = #{createTime}, + create_man = #{createMan}, + warehouse_id = #{warehouseId}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + product_name = #{productName}, + spec = #{spec}, + unit = #{unit}, + price = #{price}, + remark = #{remark}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spare7 = #{spare7}, + spare8 = #{spare8}, + + where id = #{id} + + + + delete from view_flat_warehouse_in_flow where id = #{id} + + + + delete from view_flat_warehouse_in_flow where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewFlatWarehouseOutFlowMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewFlatWarehouseOutFlowMapper.xml new file mode 100644 index 0000000..5b617ec --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewFlatWarehouseOutFlowMapper.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, unit, price, remark,spare1,spare2,spare5,spare6,spare7,spare8 from view_flat_warehouse_out_flow vfwof + + + + + + + + insert into view_flat_warehouse_out_flow + + 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, + unit, + price, + remark, + spare1, + spare2, + spare5, + spare6, + spare7, + spare8, + + + #{id}, + #{inOrOut}, + #{inOrOutSotckId}, + #{inOrOutSotckDetailId}, + #{productGuid}, + #{productId}, + #{quantity}, + #{createTime}, + #{createMan}, + #{warehouseId}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + #{productName}, + #{spec}, + #{unit}, + #{price}, + #{remark}, + #{spare1}, + #{spare2}, + #{spare5}, + #{spare6}, + #{spare7}, + #{spare8}, + + + + + update view_flat_warehouse_out_flow + + in_or_out = #{inOrOut}, + in_or_out_sotck_id = #{inOrOutSotckId}, + in_or_out_sotck_detail_id = #{inOrOutSotckDetailId}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + create_time = #{createTime}, + create_man = #{createMan}, + warehouse_id = #{warehouseId}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + product_name = #{productName}, + spec = #{spec}, + unit = #{unit}, + price = #{price}, + remark = #{remark}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spare7 = #{spare7}, + spare8 = #{spare8}, + + where id = #{id} + + + + delete from view_flat_warehouse_out_flow where id = #{id} + + + + delete from view_flat_warehouse_out_flow where id in + + #{id} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewInJobFlowMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewInJobFlowMapper.xml new file mode 100644 index 0000000..827b64a --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewInJobFlowMapper.xml @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select job_id, status, on_line_type, task_no, supplier_id, customer_id, department_id, tray_code, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, line_id, workshop_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, class_id, warehouse_id, fault_flag, job_detail_id, stock_id, lot_no, in_date, in_or_out_id, in_or_out_d_id, product_guid, stock_status, in_quantity, stock_quantity, out_quantity, stockin_id, stacking_id, spare1, spare2, spare3, stockin_detail_id, spare5, spare6, spec, unit, product_id, product_name, cargo_space_name from view_in_job_flow + + + + + + + + insert into view_in_job_flow + + job_id, + status, + on_line_type, + task_no, + supplier_id, + customer_id, + department_id, + tray_code, + roadway_id, + cargo_space_id, + target_roadway_id, + target_cargo_space_id, + line_id, + workshop_id, + priority, + execution_phase, + in_or_out, + create_time, + start_time, + finish_time, + entrance_id, + exit_id, + class_id, + warehouse_id, + fault_flag, + job_detail_id, + stock_id, + lot_no, + in_date, + in_or_out_id, + in_or_out_d_id, + product_guid, + stock_status, + in_quantity, + stock_quantity, + out_quantity, + stockin_id, + stacking_id, + spare1, + spare2, + spare3, + stockin_detail_id, + spare5, + spare6, + spec, + unit, + product_id, + product_name, + cargo_space_name, + + + #{jobId}, + #{status}, + #{onLineType}, + #{taskNo}, + #{supplierId}, + #{customerId}, + #{departmentId}, + #{trayCode}, + #{roadwayId}, + #{cargoSpaceId}, + #{targetRoadwayId}, + #{targetCargoSpaceId}, + #{lineId}, + #{workshopId}, + #{priority}, + #{executionPhase}, + #{inOrOut}, + #{createTime}, + #{startTime}, + #{finishTime}, + #{entranceId}, + #{exitId}, + #{classId}, + #{warehouseId}, + #{faultFlag}, + #{jobDetailId}, + #{stockId}, + #{lotNo}, + #{inDate}, + #{inOrOutId}, + #{inOrOutDId}, + #{productGuid}, + #{stockStatus}, + #{inQuantity}, + #{stockQuantity}, + #{outQuantity}, + #{stockinId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{stockinDetailId}, + #{spare5}, + #{spare6}, + #{spec}, + #{unit}, + #{productId}, + #{productName}, + #{cargoSpaceName}, + + + + + update view_in_job_flow + + status = #{status}, + on_line_type = #{onLineType}, + task_no = #{taskNo}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + department_id = #{departmentId}, + tray_code = #{trayCode}, + roadway_id = #{roadwayId}, + cargo_space_id = #{cargoSpaceId}, + target_roadway_id = #{targetRoadwayId}, + target_cargo_space_id = #{targetCargoSpaceId}, + line_id = #{lineId}, + workshop_id = #{workshopId}, + priority = #{priority}, + execution_phase = #{executionPhase}, + in_or_out = #{inOrOut}, + create_time = #{createTime}, + start_time = #{startTime}, + finish_time = #{finishTime}, + entrance_id = #{entranceId}, + exit_id = #{exitId}, + class_id = #{classId}, + warehouse_id = #{warehouseId}, + fault_flag = #{faultFlag}, + job_detail_id = #{jobDetailId}, + stock_id = #{stockId}, + lot_no = #{lotNo}, + in_date = #{inDate}, + in_or_out_id = #{inOrOutId}, + in_or_out_d_id = #{inOrOutDId}, + product_guid = #{productGuid}, + stock_status = #{stockStatus}, + in_quantity = #{inQuantity}, + stock_quantity = #{stockQuantity}, + out_quantity = #{outQuantity}, + stockin_id = #{stockinId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + stockin_detail_id = #{stockinDetailId}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spec = #{spec}, + unit = #{unit}, + product_id = #{productId}, + product_name = #{productName}, + cargo_space_name = #{cargoSpaceName}, + + where job_id = #{jobId} + + + + delete from view_in_job_flow where job_id = #{jobId} + + + + delete from view_in_job_flow where job_id in + + #{jobId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewOutJobFlowMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewOutJobFlowMapper.xml new file mode 100644 index 0000000..0b54225 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewOutJobFlowMapper.xml @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select job_id, status, on_line_type, task_no, supplier_id, customer_id, department_id, tray_code, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, line_id, workshop_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, class_id, warehouse_id, fault_flag, job_detail_id, stock_id, lot_no, in_date, in_or_out_id, in_or_out_d_id, product_guid, stock_status, in_quantity, stock_quantity, out_quantity, stockin_id, stacking_id, spare1, spare2, spare3, stockin_detail_id, spare5, spare6, spec, unit, product_id, product_name, cargo_space_name from view_out_job_flow + + + + + + + + insert into view_out_job_flow + + job_id, + status, + on_line_type, + task_no, + supplier_id, + customer_id, + department_id, + tray_code, + roadway_id, + cargo_space_id, + target_roadway_id, + target_cargo_space_id, + line_id, + workshop_id, + priority, + execution_phase, + in_or_out, + create_time, + start_time, + finish_time, + entrance_id, + exit_id, + class_id, + warehouse_id, + fault_flag, + job_detail_id, + stock_id, + lot_no, + in_date, + in_or_out_id, + in_or_out_d_id, + product_guid, + stock_status, + in_quantity, + stock_quantity, + out_quantity, + stockin_id, + stacking_id, + spare1, + spare2, + spare3, + stockin_detail_id, + spare5, + spare6, + spec, + unit, + product_id, + product_name, + cargo_space_name, + + + #{jobId}, + #{status}, + #{onLineType}, + #{taskNo}, + #{supplierId}, + #{customerId}, + #{departmentId}, + #{trayCode}, + #{roadwayId}, + #{cargoSpaceId}, + #{targetRoadwayId}, + #{targetCargoSpaceId}, + #{lineId}, + #{workshopId}, + #{priority}, + #{executionPhase}, + #{inOrOut}, + #{createTime}, + #{startTime}, + #{finishTime}, + #{entranceId}, + #{exitId}, + #{classId}, + #{warehouseId}, + #{faultFlag}, + #{jobDetailId}, + #{stockId}, + #{lotNo}, + #{inDate}, + #{inOrOutId}, + #{inOrOutDId}, + #{productGuid}, + #{stockStatus}, + #{inQuantity}, + #{stockQuantity}, + #{outQuantity}, + #{stockinId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{stockinDetailId}, + #{spare5}, + #{spare6}, + #{spec}, + #{unit}, + #{productId}, + #{productName}, + #{cargoSpaceName}, + + + + + update view_out_job_flow + + status = #{status}, + on_line_type = #{onLineType}, + task_no = #{taskNo}, + supplier_id = #{supplierId}, + customer_id = #{customerId}, + department_id = #{departmentId}, + tray_code = #{trayCode}, + roadway_id = #{roadwayId}, + cargo_space_id = #{cargoSpaceId}, + target_roadway_id = #{targetRoadwayId}, + target_cargo_space_id = #{targetCargoSpaceId}, + line_id = #{lineId}, + workshop_id = #{workshopId}, + priority = #{priority}, + execution_phase = #{executionPhase}, + in_or_out = #{inOrOut}, + create_time = #{createTime}, + start_time = #{startTime}, + finish_time = #{finishTime}, + entrance_id = #{entranceId}, + exit_id = #{exitId}, + class_id = #{classId}, + warehouse_id = #{warehouseId}, + fault_flag = #{faultFlag}, + job_detail_id = #{jobDetailId}, + stock_id = #{stockId}, + lot_no = #{lotNo}, + in_date = #{inDate}, + in_or_out_id = #{inOrOutId}, + in_or_out_d_id = #{inOrOutDId}, + product_guid = #{productGuid}, + stock_status = #{stockStatus}, + in_quantity = #{inQuantity}, + stock_quantity = #{stockQuantity}, + out_quantity = #{outQuantity}, + stockin_id = #{stockinId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + stockin_detail_id = #{stockinDetailId}, + spare5 = #{spare5}, + spare6 = #{spare6}, + spec = #{spec}, + unit = #{unit}, + product_id = #{productId}, + product_name = #{productName}, + cargo_space_name = #{cargoSpaceName}, + + where job_id = #{jobId} + + + + delete from view_out_job_flow where job_id = #{jobId} + + + + delete from view_out_job_flow where job_id in + + #{jobId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockDetailMapper.xml new file mode 100644 index 0000000..1d1885e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockDetailMapper.xml @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select only_identity, stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, product_name, voltage, power, phase, net_weight, gross_weight, distribution, model, order_id, spare7, spare8, cargo_space_name, cargo_space_status, locked from view_stock_detail + + + + + + + + insert into view_stock_detail + + only_identity, + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + product_guid, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_id, + product_name, + voltage, + power, + phase, + net_weight, + gross_weight, + distribution, + model, + order_id, + spare7, + spare8, + cargo_space_name, + cargo_space_status, + locked, + + + #{onlyIdentity}, + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{productGuid}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productId}, + #{productName}, + #{voltage}, + #{power}, + #{phase}, + #{netWeight}, + #{grossWeight}, + #{distribution}, + #{model}, + #{orderId}, + #{spare7}, + #{spare8}, + #{cargoSpaceName}, + #{cargoSpaceStatus}, + #{locked}, + + + + + update view_stock_detail + + stock_id = #{stockId}, + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + product_guid = #{productGuid}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_id = #{productId}, + product_name = #{productName}, + voltage = #{voltage}, + power = #{power}, + phase = #{phase}, + net_weight = #{netWeight}, + gross_weight = #{grossWeight}, + distribution = #{distribution}, + model = #{model}, + order_id = #{orderId}, + spare7 = #{spare7}, + spare8 = #{spare8}, + cargo_space_name = #{cargoSpaceName}, + cargo_space_status = #{cargoSpaceStatus}, + locked = #{locked}, + + where only_identity = #{onlyIdentity} + + + + delete from view_stock_detail where only_identity = #{onlyIdentity} + + + + delete from view_stock_detail where only_identity in + + #{onlyIdentity} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockSecureMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockSecureMapper.xml new file mode 100644 index 0000000..888dfc5 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockSecureMapper.xml @@ -0,0 +1,484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_secure + + + + + + + + insert into view_stock_secure + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + warehouse_name, + address, + c_desc, + warehouse_kind, + warehouse_type, + is_current, + product_guid, + product_id, + parent_id, + price, + cargo_no, + unit, + spec, + remark, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_name, + spare7, + spare8, + spare9, + spare10, + spare11, + spare12, + spare13, + spare14, + spare15, + spare16, + spare17, + spare18, + spare19, + spare20, + spare21, + spare22, + spare23, + spare24, + spare25, + spare26, + spare27, + spare28, + spare29, + spare30, + spare31, + spare32, + spare33, + spare34, + spare35, + spare36, + spare37, + spare38, + spare39, + cargo_space_name, + roadway_id, + cargo_area_id, + the_type, + the_type_name, + the_platoon, + the_column, + the_floor, + cargo_status, + locked, + cargo_hight, + iss_double, + group_coding_no, + group_coding, + cargo_space_logo, + this_cargo_area, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + #{productGuid}, + #{productId}, + #{parentId}, + #{price}, + #{cargoNo}, + #{unit}, + #{spec}, + #{remark}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productName}, + #{spare7}, + #{spare8}, + #{spare9}, + #{spare10}, + #{spare11}, + #{spare12}, + #{spare13}, + #{spare14}, + #{spare15}, + #{spare16}, + #{spare17}, + #{spare18}, + #{spare19}, + #{spare20}, + #{spare21}, + #{spare22}, + #{spare23}, + #{spare24}, + #{spare25}, + #{spare26}, + #{spare27}, + #{spare28}, + #{spare29}, + #{spare30}, + #{spare31}, + #{spare32}, + #{spare33}, + #{spare34}, + #{spare35}, + #{spare36}, + #{spare37}, + #{spare38}, + #{spare39}, + #{cargoSpaceName}, + #{roadwayId}, + #{cargoAreaId}, + #{theType}, + #{theTypeName}, + #{thePlatoon}, + #{theColumn}, + #{theFloor}, + #{cargoStatus}, + #{locked}, + #{cargoHight}, + #{issDouble}, + #{groupCodingNo}, + #{groupCoding}, + #{cargoSpaceLogo}, + #{thisCargoArea}, + + + + + update view_stock_secure + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + product_guid = #{productGuid}, + product_id = #{productId}, + parent_id = #{parentId}, + price = #{price}, + cargo_no = #{cargoNo}, + unit = #{unit}, + spec = #{spec}, + remark = #{remark}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_name = #{productName}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + spare10 = #{spare10}, + spare11 = #{spare11}, + spare12 = #{spare12}, + spare13 = #{spare13}, + spare14 = #{spare14}, + spare15 = #{spare15}, + spare16 = #{spare16}, + spare17 = #{spare17}, + spare18 = #{spare18}, + spare19 = #{spare19}, + spare20 = #{spare20}, + spare21 = #{spare21}, + spare22 = #{spare22}, + spare23 = #{spare23}, + spare24 = #{spare24}, + spare25 = #{spare25}, + spare26 = #{spare26}, + spare27 = #{spare27}, + spare28 = #{spare28}, + spare29 = #{spare29}, + spare30 = #{spare30}, + spare31 = #{spare31}, + spare32 = #{spare32}, + spare33 = #{spare33}, + spare34 = #{spare34}, + spare35 = #{spare35}, + spare36 = #{spare36}, + spare37 = #{spare37}, + spare38 = #{spare38}, + spare39 = #{spare39}, + cargo_space_name = #{cargoSpaceName}, + roadway_id = #{roadwayId}, + cargo_area_id = #{cargoAreaId}, + the_type = #{theType}, + the_type_name = #{theTypeName}, + the_platoon = #{thePlatoon}, + the_column = #{theColumn}, + the_floor = #{theFloor}, + cargo_status = #{cargoStatus}, + locked = #{locked}, + cargo_hight = #{cargoHight}, + iss_double = #{issDouble}, + group_coding_no = #{groupCodingNo}, + group_coding = #{groupCoding}, + cargo_space_logo = #{cargoSpaceLogo}, + this_cargo_area = #{thisCargoArea}, + + where stock_id = #{stockId} + + + + delete from view_stock_secure where stock_id = #{stockId} + + + + delete from view_stock_secure where stock_id in + + #{stockId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockWarningMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockWarningMapper.xml new file mode 100644 index 0000000..b6edfe6 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockWarningMapper.xml @@ -0,0 +1,484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_warning + + + + + + + + insert into view_stock_warning + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + warehouse_name, + address, + c_desc, + warehouse_kind, + warehouse_type, + is_current, + product_guid, + product_id, + parent_id, + price, + cargo_no, + unit, + spec, + remark, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_name, + spare7, + spare8, + spare9, + spare10, + spare11, + spare12, + spare13, + spare14, + spare15, + spare16, + spare17, + spare18, + spare19, + spare20, + spare21, + spare22, + spare23, + spare24, + spare25, + spare26, + spare27, + spare28, + spare29, + spare30, + spare31, + spare32, + spare33, + spare34, + spare35, + spare36, + spare37, + spare38, + spare39, + cargo_space_name, + roadway_id, + cargo_area_id, + the_type, + the_type_name, + the_platoon, + the_column, + the_floor, + cargo_status, + locked, + cargo_hight, + iss_double, + group_coding_no, + group_coding, + cargo_space_logo, + this_cargo_area, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{warehouseName}, + #{address}, + #{cDesc}, + #{warehouseKind}, + #{warehouseType}, + #{isCurrent}, + #{productGuid}, + #{productId}, + #{parentId}, + #{price}, + #{cargoNo}, + #{unit}, + #{spec}, + #{remark}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productName}, + #{spare7}, + #{spare8}, + #{spare9}, + #{spare10}, + #{spare11}, + #{spare12}, + #{spare13}, + #{spare14}, + #{spare15}, + #{spare16}, + #{spare17}, + #{spare18}, + #{spare19}, + #{spare20}, + #{spare21}, + #{spare22}, + #{spare23}, + #{spare24}, + #{spare25}, + #{spare26}, + #{spare27}, + #{spare28}, + #{spare29}, + #{spare30}, + #{spare31}, + #{spare32}, + #{spare33}, + #{spare34}, + #{spare35}, + #{spare36}, + #{spare37}, + #{spare38}, + #{spare39}, + #{cargoSpaceName}, + #{roadwayId}, + #{cargoAreaId}, + #{theType}, + #{theTypeName}, + #{thePlatoon}, + #{theColumn}, + #{theFloor}, + #{cargoStatus}, + #{locked}, + #{cargoHight}, + #{issDouble}, + #{groupCodingNo}, + #{groupCoding}, + #{cargoSpaceLogo}, + #{thisCargoArea}, + + + + + update view_stock_warning + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + warehouse_name = #{warehouseName}, + address = #{address}, + c_desc = #{cDesc}, + warehouse_kind = #{warehouseKind}, + warehouse_type = #{warehouseType}, + is_current = #{isCurrent}, + product_guid = #{productGuid}, + product_id = #{productId}, + parent_id = #{parentId}, + price = #{price}, + cargo_no = #{cargoNo}, + unit = #{unit}, + spec = #{spec}, + remark = #{remark}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_name = #{productName}, + spare7 = #{spare7}, + spare8 = #{spare8}, + spare9 = #{spare9}, + spare10 = #{spare10}, + spare11 = #{spare11}, + spare12 = #{spare12}, + spare13 = #{spare13}, + spare14 = #{spare14}, + spare15 = #{spare15}, + spare16 = #{spare16}, + spare17 = #{spare17}, + spare18 = #{spare18}, + spare19 = #{spare19}, + spare20 = #{spare20}, + spare21 = #{spare21}, + spare22 = #{spare22}, + spare23 = #{spare23}, + spare24 = #{spare24}, + spare25 = #{spare25}, + spare26 = #{spare26}, + spare27 = #{spare27}, + spare28 = #{spare28}, + spare29 = #{spare29}, + spare30 = #{spare30}, + spare31 = #{spare31}, + spare32 = #{spare32}, + spare33 = #{spare33}, + spare34 = #{spare34}, + spare35 = #{spare35}, + spare36 = #{spare36}, + spare37 = #{spare37}, + spare38 = #{spare38}, + spare39 = #{spare39}, + cargo_space_name = #{cargoSpaceName}, + roadway_id = #{roadwayId}, + cargo_area_id = #{cargoAreaId}, + the_type = #{theType}, + the_type_name = #{theTypeName}, + the_platoon = #{thePlatoon}, + the_column = #{theColumn}, + the_floor = #{theFloor}, + cargo_status = #{cargoStatus}, + locked = #{locked}, + cargo_hight = #{cargoHight}, + iss_double = #{issDouble}, + group_coding_no = #{groupCodingNo}, + group_coding = #{groupCoding}, + cargo_space_logo = #{cargoSpaceLogo}, + this_cargo_area = #{thisCargoArea}, + + where stock_id = #{stockId} + + + + delete from view_stock_warning where stock_id = #{stockId} + + + + delete from view_stock_warning where stock_id in + + #{stockId} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockinHistoryMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockinHistoryMapper.xml new file mode 100644 index 0000000..dfcd35f --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockinHistoryMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockin_guid, stockin_id, in_type, create_date, create_man_id, status, warehouse_id, spare5, spare4, spare3, finish_date, spare2, spare1, erp_bill, stock_source, department_no, customer_no, class_no, supplier_no, lot_no, stockin_detail_id, product_guid, product_id, quantity, quantity_j, quantity_x, remark, assign_num, assign_num_j, assign_num_x, unit, spec, cjgx, scwl, dcwl, scan_num, scan_num_j, scan_num_x, product_name from view_stockin_history + + + + + + + + insert into view_stockin_history + + stockin_guid, + stockin_id, + in_type, + create_date, + create_man_id, + status, + warehouse_id, + spare5, + spare4, + spare3, + finish_date, + spare2, + spare1, + erp_bill, + stock_source, + department_no, + customer_no, + class_no, + supplier_no, + lot_no, + stockin_detail_id, + product_guid, + product_id, + quantity, + quantity_j, + quantity_x, + remark, + assign_num, + assign_num_j, + assign_num_x, + unit, + spec, + cjgx, + scwl, + dcwl, + scan_num, + scan_num_j, + scan_num_x, + product_name, + + + #{stockinGuid}, + #{stockinId}, + #{inType}, + #{createDate}, + #{createManId}, + #{status}, + #{warehouseId}, + #{spare5}, + #{spare4}, + #{spare3}, + #{finishDate}, + #{spare2}, + #{spare1}, + #{erpBill}, + #{stockSource}, + #{departmentNo}, + #{customerNo}, + #{classNo}, + #{supplierNo}, + #{lotNo}, + #{stockinDetailId}, + #{productGuid}, + #{productId}, + #{quantity}, + #{quantityJ}, + #{quantityX}, + #{remark}, + #{assignNum}, + #{assignNumJ}, + #{assignNumX}, + #{unit}, + #{spec}, + #{cjgx}, + #{scwl}, + #{dcwl}, + #{scanNum}, + #{scanNumJ}, + #{scanNumX}, + #{productName}, + + + + + update view_stockin_history + + stockin_id = #{stockinId}, + in_type = #{inType}, + create_date = #{createDate}, + create_man_id = #{createManId}, + status = #{status}, + warehouse_id = #{warehouseId}, + spare5 = #{spare5}, + spare4 = #{spare4}, + spare3 = #{spare3}, + finish_date = #{finishDate}, + spare2 = #{spare2}, + spare1 = #{spare1}, + erp_bill = #{erpBill}, + stock_source = #{stockSource}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + class_no = #{classNo}, + supplier_no = #{supplierNo}, + lot_no = #{lotNo}, + stockin_detail_id = #{stockinDetailId}, + product_guid = #{productGuid}, + product_id = #{productId}, + quantity = #{quantity}, + quantity_j = #{quantityJ}, + quantity_x = #{quantityX}, + remark = #{remark}, + assign_num = #{assignNum}, + assign_num_j = #{assignNumJ}, + assign_num_x = #{assignNumX}, + unit = #{unit}, + spec = #{spec}, + cjgx = #{cjgx}, + scwl = #{scwl}, + dcwl = #{dcwl}, + scan_num = #{scanNum}, + scan_num_j = #{scanNumJ}, + scan_num_x = #{scanNumX}, + product_name = #{productName}, + + where stockin_guid = #{stockinGuid} + + + + delete from view_stockin_history where stockin_guid = #{stockinGuid} + + + + delete from view_stockin_history where stockin_guid in + + #{stockinGuid} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockoutHistoryMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockoutHistoryMapper.xml new file mode 100644 index 0000000..88e434d --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/search/ViewStockoutHistoryMapper.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, spare1, spare2, spare3, spare4, spare5, stockout_detail_id, lot_no, product_id, quantity, assign_num, allot_quantity, remark, unit, spec, product_name, cjgx, scwl, dcwl, spare9 from view_stockout_history + + + + + + + + insert into view_stockout_history + + stockout_guid, + stockout_id, + out_type, + create_date, + department_no, + customer_no, + create_man_id, + status, + stockout_source, + warehouse_id, + class_now_id, + exit_id, + spare1, + spare2, + spare3, + spare4, + spare5, + stockout_detail_id, + lot_no, + product_id, + quantity, + assign_num, + allot_quantity, + remark, + unit, + spec, + product_name, + cjgx, + scwl, + dcwl, + spare9, + + + #{stockoutGuid}, + #{stockoutId}, + #{outType}, + #{createDate}, + #{departmentNo}, + #{customerNo}, + #{createManId}, + #{status}, + #{stockoutSource}, + #{warehouseId}, + #{classNowId}, + #{exitId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{stockoutDetailId}, + #{lotNo}, + #{productId}, + #{quantity}, + #{assignNum}, + #{allotQuantity}, + #{remark}, + #{unit}, + #{spec}, + #{productName}, + #{cjgx}, + #{scwl}, + #{dcwl}, + #{spare9}, + + + + + update view_stockout_history + + stockout_id = #{stockoutId}, + out_type = #{outType}, + create_date = #{createDate}, + department_no = #{departmentNo}, + customer_no = #{customerNo}, + create_man_id = #{createManId}, + status = #{status}, + stockout_source = #{stockoutSource}, + warehouse_id = #{warehouseId}, + class_now_id = #{classNowId}, + exit_id = #{exitId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + stockout_detail_id = #{stockoutDetailId}, + lot_no = #{lotNo}, + product_id = #{productId}, + quantity = #{quantity}, + assign_num = #{assignNum}, + allot_quantity = #{allotQuantity}, + remark = #{remark}, + unit = #{unit}, + spec = #{spec}, + product_name = #{productName}, + cjgx = #{cjgx}, + scwl = #{scwl}, + dcwl = #{dcwl}, + spare9 = #{spare9}, + + where stockout_guid = #{stockoutGuid} + + + + delete from view_stockout_history where stockout_guid = #{stockoutGuid} + + + + delete from view_stockout_history where stockout_guid in + + #{stockoutGuid} + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockFreezeRecordMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockFreezeRecordMapper.xml new file mode 100644 index 0000000..58d3edd --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockFreezeRecordMapper.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select wh_guid, stock_id, bsfr.cargo_space_id,bw.warehouse_name, bcs.cargo_space_name, bsfr.tray_code, product_id, product_name, print_date, lot_no, old_status, curr_status, method, bsfr.warehouse_id, create_time, stock_detail_id, operating_target, bar_code_old_quantity, bar_code_quantity, product_guid + from bas_stock_freeze_record bsfr + left join bas_cargo_space bcs on bsfr.cargo_space_id=bcs.cargo_space_id + left join bas_warehouse bw on bsfr.warehouse_id=bw.warehouse_id + + + + + + + + insert into bas_stock_freeze_record + + wh_guid, + stock_id, + cargo_space_id, + tray_code, + product_id, + product_name, + print_date, + lot_no, + old_status, + curr_status, + method, + warehouse_id, + create_time, + stock_detail_id, + operating_target, + bar_code_old_quantity, + bar_code_quantity, + product_guid, + + + #{whGuid}, + #{stockId}, + #{cargoSpaceId}, + #{trayCode}, + #{productId}, + #{productName}, + #{printDate}, + #{lotNo}, + #{oldStatus}, + #{currStatus}, + #{method}, + #{warehouseId}, + #{createTime}, + #{stockDetailId}, + #{operatingTarget}, + #{barCodeOldQuantity}, + #{barCodeQuantity}, + #{productGuid}, + + + + + update bas_stock_freeze_record + + stock_id = #{stockId}, + cargo_space_id = #{cargoSpaceId}, + tray_code = #{trayCode}, + product_id = #{productId}, + product_name = #{productName}, + print_date = #{printDate}, + lot_no = #{lotNo}, + old_status = #{oldStatus}, + curr_status = #{currStatus}, + method = #{method}, + warehouse_id = #{warehouseId}, + create_time = #{createTime}, + stock_detail_id = #{stockDetailId}, + operating_target = #{operatingTarget}, + bar_code_old_quantity = #{barCodeOldQuantity}, + bar_code_quantity = #{barCodeQuantity}, + product_guid = #{productGuid}, + + where wh_guid = #{whGuid} + + + + delete from bas_stock_freeze_record where wh_guid = #{whGuid} + + + + delete from bas_stock_freeze_record where wh_guid in + + #{whGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockMaintainRecordMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockMaintainRecordMapper.xml new file mode 100644 index 0000000..45e5f74 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockMaintainRecordMapper.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select wh_guid, stock_id, bsmr.cargo_space_id,bw.warehouse_name, bcs.cargo_space_name, bsmr.tray_code, product_id, product_name, print_date, lot_no, old_quantity, quantity, method, bsmr.warehouse_id, create_time, stock_detail_id, operating_target, bar_code_old_quantity, bar_code_quantity, product_guid + from bas_stock_maintain_record bsmr + left join bas_cargo_space bcs on bsmr.cargo_space_id=bcs.cargo_space_id + left join bas_warehouse bw on bsmr.warehouse_id=bw.warehouse_id + + + + + + + + insert into bas_stock_maintain_record + + wh_guid, + stock_id, + cargo_space_id, + tray_code, + product_id, + product_name, + print_date, + lot_no, + old_quantity, + quantity, + method, + warehouse_id, + create_time, + stock_detail_id, + operating_target, + bar_code_old_quantity, + bar_code_quantity, + product_guid, + + + #{whGuid}, + #{stockId}, + #{cargoSpaceId}, + #{trayCode}, + #{productId}, + #{productName}, + #{printDate}, + #{lotNo}, + #{oldQuantity}, + #{quantity}, + #{method}, + #{warehouseId}, + #{createTime}, + #{stockDetailId}, + #{operatingTarget}, + #{barCodeOldQuantity}, + #{barCodeQuantity}, + #{productGuid}, + + + + + update bas_stock_maintain_record + + stock_id = #{stockId}, + cargo_space_id = #{cargoSpaceId}, + tray_code = #{trayCode}, + product_id = #{productId}, + product_name = #{productName}, + print_date = #{printDate}, + lot_no = #{lotNo}, + old_quantity = #{oldQuantity}, + quantity = #{quantity}, + method = #{method}, + warehouse_id = #{warehouseId}, + create_time = #{createTime}, + stock_detail_id = #{stockDetailId}, + operating_target = #{operatingTarget}, + bar_code_old_quantity = #{barCodeOldQuantity}, + bar_code_quantity = #{barCodeQuantity}, + product_guid = #{productGuid}, + + where wh_guid = #{whGuid} + + + + delete from bas_stock_maintain_record where wh_guid = #{whGuid} + + + + delete from bas_stock_maintain_record where wh_guid in + + #{whGuid} + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockMapper.xml new file mode 100644 index 0000000..638437d --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/stock/BasStockMapper.xml @@ -0,0 +1,264 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select bs.stock_id, bs.cargo_space_id, bs.stock_status, bs.product_status, bs.lot_no, bs.in_date, + bs.back_date, bs.product_guid, bs.quantity, bs.job_id, bs.tray_code, bs.out_quantity, + bs.stockin_detail_id, bs.stockin_id, bs.in_type, bs.in_class_id, bs.warehouse_id, bs.stacking_id, + bs.spare1, bs.spare2, bs.spare3, bs.spare4, bs.spare5, bs.spare6 , + bs.voltage,bs.power,bs.phase,bs.net_weight,bs.gross_weight,bs.distribution,bs.model,bs.order_id, + bs.product_name,bp.spare1 as englishDesc, + bp.spare2 as netWeight,bp.spare5 as length,bp.spare6 as width,bp.spare7 as height,bp.spare8 as volume,bw.warehouse_name,bs.product_id, + bcs.locked,bcs.cargo_space_name,bcs.status as cargoSpaceStockStatus + from bas_stock bs + left join bas_product bp on bs.product_id = bp.product_id + left join bas_warehouse bw on bs.warehouse_id = bw.warehouse_id + left join bas_cargo_space bcs on bs.cargo_space_id = bcs.cargo_space_id + + + + + + + + insert into bas_stock + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + product_guid, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_id, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{productGuid}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productId}, + + + + INSERT INTO bas_stock + (stock_id,cargo_space_id,stock_status,product_status,lot_no,in_date,back_date,product_guid,quantity,job_id,tray_code,out_quantity,stockin_detail_id,stockin_id,in_type,in_class_id,warehouse_id,stacking_id,spare1,spare2,spare3,spare4,spare5,spare6,product_id,product_name,voltage,power,phase,net_weight,gross_weight,distribution,model,order_id,spare7) + VALUES + + (#{item.stockId},#{item.cargoSpaceId},#{item.stockStatus},#{item.productStatus},#{item.lotNo},#{item.inDate},#{item.backDate},#{item.productGuid},#{item.quantity},#{item.jobId},#{item.trayCode},#{item.outQuantity},#{item.stockinDetailId},#{item.stockinId},#{item.inType},#{item.inClassId},#{item.warehouseId},#{item.stackingId},#{item.spare1},#{item.spare2},#{item.spare3},#{item.spare4},#{item.spare5},#{item.spare6},#{item.productId} + ,#{item.productName},#{item.voltage},#{item.power},#{item.phase},#{item.netWeight},#{item.grossWeight},#{item.distribution},#{item.model},#{item.orderId},#{item.spare7}) + + + + + update bas_stock + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + product_guid = #{productGuid}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_id = #{productId}, + + where stock_id = #{stockId} + + + update bas_stock set stock_status = #{stockStatus} where tray_code = #{trayCode} + + + update bas_stock set spare7 = '0' + + + + delete from bas_stock where stock_id = #{stockId} + + + + delete from bas_stock where stock_id in + + #{stockId} + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mapper/mapper/work/ViewNoDoneOutWorkMapper.xml b/ruoyi-admin/src/main/resources/mapper/mapper/work/ViewNoDoneOutWorkMapper.xml new file mode 100644 index 0000000..79869d6 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/mapper/work/ViewNoDoneOutWorkMapper.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/stock/BasStockHcMapper.xml b/ruoyi-admin/src/main/resources/mapper/stock/BasStockHcMapper.xml new file mode 100644 index 0000000..40efd25 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/stock/BasStockHcMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, product_name, voltage, power, phase, net_weight, gross_weight, distribution, model, order_id, spare7, spare8 from bas_stock_hc + + + + + + + + insert into bas_stock_hc + + stock_id, + cargo_space_id, + stock_status, + product_status, + lot_no, + in_date, + back_date, + product_guid, + quantity, + job_id, + tray_code, + out_quantity, + stockin_detail_id, + stockin_id, + in_type, + in_class_id, + warehouse_id, + stacking_id, + spare1, + spare2, + spare3, + spare4, + spare5, + spare6, + product_id, + product_name, + voltage, + power, + phase, + net_weight, + gross_weight, + distribution, + model, + order_id, + spare7, + spare8, + + + #{stockId}, + #{cargoSpaceId}, + #{stockStatus}, + #{productStatus}, + #{lotNo}, + #{inDate}, + #{backDate}, + #{productGuid}, + #{quantity}, + #{jobId}, + #{trayCode}, + #{outQuantity}, + #{stockinDetailId}, + #{stockinId}, + #{inType}, + #{inClassId}, + #{warehouseId}, + #{stackingId}, + #{spare1}, + #{spare2}, + #{spare3}, + #{spare4}, + #{spare5}, + #{spare6}, + #{productId}, + #{productName}, + #{voltage}, + #{power}, + #{phase}, + #{netWeight}, + #{grossWeight}, + #{distribution}, + #{model}, + #{orderId}, + #{spare7}, + #{spare8}, + + + + + update bas_stock_hc + + cargo_space_id = #{cargoSpaceId}, + stock_status = #{stockStatus}, + product_status = #{productStatus}, + lot_no = #{lotNo}, + in_date = #{inDate}, + back_date = #{backDate}, + product_guid = #{productGuid}, + quantity = #{quantity}, + job_id = #{jobId}, + tray_code = #{trayCode}, + out_quantity = #{outQuantity}, + stockin_detail_id = #{stockinDetailId}, + stockin_id = #{stockinId}, + in_type = #{inType}, + in_class_id = #{inClassId}, + warehouse_id = #{warehouseId}, + stacking_id = #{stackingId}, + spare1 = #{spare1}, + spare2 = #{spare2}, + spare3 = #{spare3}, + spare4 = #{spare4}, + spare5 = #{spare5}, + spare6 = #{spare6}, + product_id = #{productId}, + product_name = #{productName}, + voltage = #{voltage}, + power = #{power}, + phase = #{phase}, + net_weight = #{netWeight}, + gross_weight = #{grossWeight}, + distribution = #{distribution}, + model = #{model}, + order_id = #{orderId}, + spare7 = #{spare7}, + spare8 = #{spare8}, + + where stock_id = #{stockId} + + + + delete from bas_stock_hc where stock_id = #{stockId} + + + + delete from bas_stock_hc where stock_id in + + #{stockId} + + + \ No newline at end of file diff --git a/ruoyi-ui/src/api/out/outStockout.js b/ruoyi-ui/src/api/out/outStockout.js index ec9bb84..8fbea28 100644 --- a/ruoyi-ui/src/api/out/outStockout.js +++ b/ruoyi-ui/src/api/out/outStockout.js @@ -62,7 +62,7 @@ export function getOutStockoutDetail(query) { export function autoAllot(data) { return request({ url: '/out/outStockout/autoAllot', - method: 'get', + method: 'post', params: data }) } diff --git a/ruoyi-ui/src/views/check/create/index.vue b/ruoyi-ui/src/views/check/create/index.vue index 8df60cb..9344b79 100644 --- a/ruoyi-ui/src/views/check/create/index.vue +++ b/ruoyi-ui/src/views/check/create/index.vue @@ -670,9 +670,15 @@ export default { console.log(data) // 这里需要调用保存接口 saveCheckStock(data).then(response => { + if (response.code==200){ + this.$modal.msgSuccess('保存成功:' + response.msg); + this.$tab.refreshPage(this.$route); + } + else { + this.$modal.msgError('建单失败:' + response.msg); + } + - this.$modal.msgSuccess('保存成功:' + response.msg); - this.$tab.refreshPage(this.$route); // this.reset(); }); } diff --git a/ruoyi-ui/src/views/in/job/index.vue b/ruoyi-ui/src/views/in/job/index.vue index a150dde..eeb7c94 100644 --- a/ruoyi-ui/src/views/in/job/index.vue +++ b/ruoyi-ui/src/views/in/job/index.vue @@ -135,7 +135,7 @@ - +