liuxiaoxu
5 months ago
5 changed files with 665 additions and 0 deletions
@ -0,0 +1,247 @@ |
|||
package com.ruoyi.warehouse.domain; |
|||
|
|||
import java.util.Date; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
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; |
|||
|
|||
/** |
|||
* 仓库库存盘点详情对象 warehouse_inventory_check_detail |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-07 |
|||
*/ |
|||
public class WarehouseInventoryCheckDetail extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 库存盘点详情ID */ |
|||
private Long inventoryCheckDetailId; |
|||
|
|||
/** 库存盘点单号 */ |
|||
private String inventoryCheckCode; |
|||
|
|||
/** 库存盘点人名 */ |
|||
private String inventoryCheckName; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String materialNo; |
|||
|
|||
/** 物料名称 */ |
|||
@Excel(name = "物料名称") |
|||
private String materialName; |
|||
|
|||
/** 物料单位 */ |
|||
@Excel(name = "物料单位") |
|||
private String materialUnit; |
|||
|
|||
/** 物料描述 */ |
|||
@Excel(name = "物料描述") |
|||
private String materialDescribe; |
|||
|
|||
/** 库存盘点数量 */ |
|||
@Excel(name = "库存盘点数量") |
|||
private Integer inventoryCheckNum; |
|||
|
|||
/** 当时库存账上数量 */ |
|||
@Excel(name = "当时库存账上数量") |
|||
private Integer inventoryAccountNum; |
|||
|
|||
/** 仓库存放地址 */ |
|||
@Excel(name = "仓库存放地址") |
|||
private String warehouseStoreAddress; |
|||
|
|||
/** 批号 */ |
|||
@Excel(name = "批号") |
|||
private Integer batchNumber; |
|||
|
|||
/** 仓库号 */ |
|||
private String warehouseCode; |
|||
|
|||
/** 仓库名称 */ |
|||
private String warehouseName; |
|||
|
|||
/** 库存盘点日期 */ |
|||
private Date inventoryCheckDate; |
|||
|
|||
/** 物料数合计 */ |
|||
private Integer materialTotal; |
|||
|
|||
/** 数量合计 */ |
|||
private Integer numTotal; |
|||
|
|||
public void setInventoryCheckDetailId(Long inventoryCheckDetailId) |
|||
{ |
|||
this.inventoryCheckDetailId = inventoryCheckDetailId; |
|||
} |
|||
|
|||
public Long getInventoryCheckDetailId() |
|||
{ |
|||
return inventoryCheckDetailId; |
|||
} |
|||
public void setInventoryCheckCode(String inventoryCheckCode) |
|||
{ |
|||
this.inventoryCheckCode = inventoryCheckCode; |
|||
} |
|||
|
|||
public String getInventoryCheckCode() |
|||
{ |
|||
return inventoryCheckCode; |
|||
} |
|||
public void setInventoryCheckName(String inventoryCheckName) |
|||
{ |
|||
this.inventoryCheckName = inventoryCheckName; |
|||
} |
|||
|
|||
public String getInventoryCheckName() |
|||
{ |
|||
return inventoryCheckName; |
|||
} |
|||
public void setMaterialNo(String materialNo) |
|||
{ |
|||
this.materialNo = materialNo; |
|||
} |
|||
|
|||
public String getMaterialNo() |
|||
{ |
|||
return materialNo; |
|||
} |
|||
public void setMaterialName(String materialName) |
|||
{ |
|||
this.materialName = materialName; |
|||
} |
|||
|
|||
public String getMaterialName() |
|||
{ |
|||
return materialName; |
|||
} |
|||
public void setMaterialUnit(String materialUnit) |
|||
{ |
|||
this.materialUnit = materialUnit; |
|||
} |
|||
|
|||
public String getMaterialUnit() |
|||
{ |
|||
return materialUnit; |
|||
} |
|||
public void setMaterialDescribe(String materialDescribe) |
|||
{ |
|||
this.materialDescribe = materialDescribe; |
|||
} |
|||
|
|||
public String getMaterialDescribe() |
|||
{ |
|||
return materialDescribe; |
|||
} |
|||
public void setInventoryCheckNum(Integer inventoryCheckNum) |
|||
{ |
|||
this.inventoryCheckNum = inventoryCheckNum; |
|||
} |
|||
|
|||
public Integer getInventoryCheckNum() |
|||
{ |
|||
return inventoryCheckNum; |
|||
} |
|||
public void setInventoryAccountNum(Integer inventoryAccountNum) |
|||
{ |
|||
this.inventoryAccountNum = inventoryAccountNum; |
|||
} |
|||
|
|||
public Integer getInventoryAccountNum() |
|||
{ |
|||
return inventoryAccountNum; |
|||
} |
|||
public void setWarehouseStoreAddress(String warehouseStoreAddress) |
|||
{ |
|||
this.warehouseStoreAddress = warehouseStoreAddress; |
|||
} |
|||
|
|||
public String getWarehouseStoreAddress() |
|||
{ |
|||
return warehouseStoreAddress; |
|||
} |
|||
public void setBatchNumber(Integer batchNumber) |
|||
{ |
|||
this.batchNumber = batchNumber; |
|||
} |
|||
|
|||
public Integer getBatchNumber() |
|||
{ |
|||
return batchNumber; |
|||
} |
|||
public void setWarehouseCode(String warehouseCode) |
|||
{ |
|||
this.warehouseCode = warehouseCode; |
|||
} |
|||
|
|||
public String getWarehouseCode() |
|||
{ |
|||
return warehouseCode; |
|||
} |
|||
public void setWarehouseName(String warehouseName) |
|||
{ |
|||
this.warehouseName = warehouseName; |
|||
} |
|||
|
|||
public String getWarehouseName() |
|||
{ |
|||
return warehouseName; |
|||
} |
|||
public void setInventoryCheckDate(Date inventoryCheckDate) |
|||
{ |
|||
this.inventoryCheckDate = inventoryCheckDate; |
|||
} |
|||
|
|||
public Date getInventoryCheckDate() |
|||
{ |
|||
return inventoryCheckDate; |
|||
} |
|||
public void setMaterialTotal(Integer materialTotal) |
|||
{ |
|||
this.materialTotal = materialTotal; |
|||
} |
|||
|
|||
public Integer getMaterialTotal() |
|||
{ |
|||
return materialTotal; |
|||
} |
|||
public void setNumTotal(Integer numTotal) |
|||
{ |
|||
this.numTotal = numTotal; |
|||
} |
|||
|
|||
public Integer getNumTotal() |
|||
{ |
|||
return numTotal; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("inventoryCheckDetailId", getInventoryCheckDetailId()) |
|||
.append("inventoryCheckCode", getInventoryCheckCode()) |
|||
.append("inventoryCheckName", getInventoryCheckName()) |
|||
.append("materialNo", getMaterialNo()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialUnit", getMaterialUnit()) |
|||
.append("materialDescribe", getMaterialDescribe()) |
|||
.append("inventoryCheckNum", getInventoryCheckNum()) |
|||
.append("inventoryAccountNum", getInventoryAccountNum()) |
|||
.append("warehouseStoreAddress", getWarehouseStoreAddress()) |
|||
.append("batchNumber", getBatchNumber()) |
|||
.append("warehouseCode", getWarehouseCode()) |
|||
.append("warehouseName", getWarehouseName()) |
|||
.append("inventoryCheckDate", getInventoryCheckDate()) |
|||
.append("materialTotal", getMaterialTotal()) |
|||
.append("numTotal", getNumTotal()) |
|||
.append("remark", getRemark()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.toString(); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.ruoyi.warehouse.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.warehouse.domain.WarehouseInventoryCheckDetail; |
|||
|
|||
/** |
|||
* 仓库库存盘点详情Mapper接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-07 |
|||
*/ |
|||
public interface WarehouseInventoryCheckDetailMapper |
|||
{ |
|||
/** |
|||
* 查询仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 仓库库存盘点详情 |
|||
*/ |
|||
public WarehouseInventoryCheckDetail selectWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
|
|||
/** |
|||
* 查询仓库库存盘点详情列表 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 仓库库存盘点详情集合 |
|||
*/ |
|||
public List<WarehouseInventoryCheckDetail> selectWarehouseInventoryCheckDetailList(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail); |
|||
|
|||
/** |
|||
* 新增仓库库存盘点详情 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertWarehouseInventoryCheckDetail(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail); |
|||
|
|||
/** |
|||
* 修改仓库库存盘点详情 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateWarehouseInventoryCheckDetail(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail); |
|||
|
|||
/** |
|||
* 删除仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
|
|||
/** |
|||
* 批量删除仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseInventoryCheckDetailByIds(String[] inventoryCheckDetailIds); |
|||
|
|||
/** |
|||
* 作废仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
|
|||
/** |
|||
* 恢复仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.ruoyi.warehouse.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.warehouse.domain.WarehouseInventoryCheckDetail; |
|||
|
|||
/** |
|||
* 仓库库存盘点详情Service接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-07 |
|||
*/ |
|||
public interface IWarehouseInventoryCheckDetailService |
|||
{ |
|||
/** |
|||
* 查询仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 仓库库存盘点详情 |
|||
*/ |
|||
public WarehouseInventoryCheckDetail selectWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
|
|||
/** |
|||
* 查询仓库库存盘点详情列表 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 仓库库存盘点详情集合 |
|||
*/ |
|||
public List<WarehouseInventoryCheckDetail> selectWarehouseInventoryCheckDetailList(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail); |
|||
|
|||
/** |
|||
* 新增仓库库存盘点详情 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertWarehouseInventoryCheckDetail(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail); |
|||
|
|||
/** |
|||
* 修改仓库库存盘点详情 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateWarehouseInventoryCheckDetail(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail); |
|||
|
|||
/** |
|||
* 批量删除仓库库存盘点详情 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseInventoryCheckDetailByIds(String ids); |
|||
|
|||
/** |
|||
* 删除仓库库存盘点详情信息 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
|
|||
/** |
|||
* 作废仓库库存盘点详情 |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return |
|||
*/ |
|||
int cancelWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
|
|||
/** |
|||
* 恢复仓库库存盘点详情 |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return |
|||
*/ |
|||
int restoreWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId); |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ruoyi.warehouse.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.common.utils.DateUtils; |
|||
import com.ruoyi.common.utils.ShiroUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.warehouse.mapper.WarehouseInventoryCheckDetailMapper; |
|||
import com.ruoyi.warehouse.domain.WarehouseInventoryCheckDetail; |
|||
import com.ruoyi.warehouse.service.IWarehouseInventoryCheckDetailService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 仓库库存盘点详情Service业务层处理 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-06-07 |
|||
*/ |
|||
@Service |
|||
public class WarehouseInventoryCheckDetailServiceImpl implements IWarehouseInventoryCheckDetailService |
|||
{ |
|||
@Autowired |
|||
private WarehouseInventoryCheckDetailMapper warehouseInventoryCheckDetailMapper; |
|||
|
|||
/** |
|||
* 查询仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 仓库库存盘点详情 |
|||
*/ |
|||
@Override |
|||
public WarehouseInventoryCheckDetail selectWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId) |
|||
{ |
|||
return warehouseInventoryCheckDetailMapper.selectWarehouseInventoryCheckDetailById(inventoryCheckDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 查询仓库库存盘点详情列表 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 仓库库存盘点详情 |
|||
*/ |
|||
@Override |
|||
public List<WarehouseInventoryCheckDetail> selectWarehouseInventoryCheckDetailList(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail) |
|||
{ |
|||
return warehouseInventoryCheckDetailMapper.selectWarehouseInventoryCheckDetailList(warehouseInventoryCheckDetail); |
|||
} |
|||
|
|||
/** |
|||
* 新增仓库库存盘点详情 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertWarehouseInventoryCheckDetail(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail) |
|||
{ |
|||
warehouseInventoryCheckDetail.setCreateTime(DateUtils.getNowDate()); |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
warehouseInventoryCheckDetail.setCreateBy(loginName); |
|||
return warehouseInventoryCheckDetailMapper.insertWarehouseInventoryCheckDetail(warehouseInventoryCheckDetail); |
|||
} |
|||
|
|||
/** |
|||
* 修改仓库库存盘点详情 |
|||
* |
|||
* @param warehouseInventoryCheckDetail 仓库库存盘点详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateWarehouseInventoryCheckDetail(WarehouseInventoryCheckDetail warehouseInventoryCheckDetail) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
warehouseInventoryCheckDetail.setUpdateBy(loginName); |
|||
warehouseInventoryCheckDetail.setUpdateTime(DateUtils.getNowDate()); |
|||
return warehouseInventoryCheckDetailMapper.updateWarehouseInventoryCheckDetail(warehouseInventoryCheckDetail); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库库存盘点详情对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteWarehouseInventoryCheckDetailByIds(String ids) |
|||
{ |
|||
return warehouseInventoryCheckDetailMapper.deleteWarehouseInventoryCheckDetailByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库库存盘点详情信息 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId) |
|||
{ |
|||
return warehouseInventoryCheckDetailMapper.deleteWarehouseInventoryCheckDetailById(inventoryCheckDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 作废仓库库存盘点详情 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId) |
|||
{ |
|||
return warehouseInventoryCheckDetailMapper.cancelWarehouseInventoryCheckDetailById(inventoryCheckDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 恢复仓库库存盘点详情信息 |
|||
* |
|||
* @param inventoryCheckDetailId 仓库库存盘点详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreWarehouseInventoryCheckDetailById(Long inventoryCheckDetailId) |
|||
{ |
|||
return warehouseInventoryCheckDetailMapper.restoreWarehouseInventoryCheckDetailById(inventoryCheckDetailId); |
|||
} |
|||
} |
@ -0,0 +1,140 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.warehouse.mapper.WarehouseInventoryCheckDetailMapper"> |
|||
|
|||
<resultMap type="WarehouseInventoryCheckDetail" id="WarehouseInventoryCheckDetailResult"> |
|||
<result property="inventoryCheckDetailId" column="inventory_check_detail_id" /> |
|||
<result property="inventoryCheckCode" column="inventory_check_code" /> |
|||
<result property="inventoryCheckName" column="inventory_check_name" /> |
|||
<result property="materialNo" column="material_no" /> |
|||
<result property="materialName" column="material_name" /> |
|||
<result property="materialUnit" column="material_unit" /> |
|||
<result property="materialDescribe" column="material_describe" /> |
|||
<result property="inventoryCheckNum" column="inventory_check_num" /> |
|||
<result property="inventoryAccountNum" column="inventory_account_num" /> |
|||
<result property="warehouseStoreAddress" column="warehouse_store_address" /> |
|||
<result property="batchNumber" column="batch_number" /> |
|||
<result property="warehouseCode" column="warehouse_code" /> |
|||
<result property="warehouseName" column="warehouse_name" /> |
|||
<result property="inventoryCheckDate" column="inventory_check_date" /> |
|||
<result property="materialTotal" column="material_total" /> |
|||
<result property="numTotal" column="num_total" /> |
|||
<result property="remark" column="remark" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="updateBy" column="update_by" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectWarehouseInventoryCheckDetailVo"> |
|||
select inventory_check_detail_id, inventory_check_code, inventory_check_name, material_no, material_name, material_unit, material_describe, inventory_check_num, inventory_account_num, warehouse_store_address, batch_number, warehouse_code, warehouse_name, inventory_check_date, material_total, num_total, remark, create_time, create_by, update_by, update_time from warehouse_inventory_check_detail |
|||
</sql> |
|||
|
|||
<select id="selectWarehouseInventoryCheckDetailList" parameterType="WarehouseInventoryCheckDetail" resultMap="WarehouseInventoryCheckDetailResult"> |
|||
<include refid="selectWarehouseInventoryCheckDetailVo"/> |
|||
<where> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectWarehouseInventoryCheckDetailById" parameterType="Long" resultMap="WarehouseInventoryCheckDetailResult"> |
|||
<include refid="selectWarehouseInventoryCheckDetailVo"/> |
|||
where inventory_check_detail_id = #{inventoryCheckDetailId} |
|||
</select> |
|||
|
|||
<insert id="insertWarehouseInventoryCheckDetail" parameterType="WarehouseInventoryCheckDetail" useGeneratedKeys="true" keyProperty="inventoryCheckDetailId"> |
|||
insert into warehouse_inventory_check_detail |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="inventoryCheckCode != null">inventory_check_code,</if> |
|||
<if test="inventoryCheckName != null">inventory_check_name,</if> |
|||
<if test="materialNo != null">material_no,</if> |
|||
<if test="materialName != null">material_name,</if> |
|||
<if test="materialUnit != null">material_unit,</if> |
|||
<if test="materialDescribe != null">material_describe,</if> |
|||
<if test="inventoryCheckNum != null">inventory_check_num,</if> |
|||
<if test="inventoryAccountNum != null">inventory_account_num,</if> |
|||
<if test="warehouseStoreAddress != null">warehouse_store_address,</if> |
|||
<if test="batchNumber != null">batch_number,</if> |
|||
<if test="warehouseCode != null">warehouse_code,</if> |
|||
<if test="warehouseName != null">warehouse_name,</if> |
|||
<if test="inventoryCheckDate != null">inventory_check_date,</if> |
|||
<if test="materialTotal != null">material_total,</if> |
|||
<if test="numTotal != null">num_total,</if> |
|||
<if test="remark != null">remark,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="inventoryCheckCode != null">#{inventoryCheckCode},</if> |
|||
<if test="inventoryCheckName != null">#{inventoryCheckName},</if> |
|||
<if test="materialNo != null">#{materialNo},</if> |
|||
<if test="materialName != null">#{materialName},</if> |
|||
<if test="materialUnit != null">#{materialUnit},</if> |
|||
<if test="materialDescribe != null">#{materialDescribe},</if> |
|||
<if test="inventoryCheckNum != null">#{inventoryCheckNum},</if> |
|||
<if test="inventoryAccountNum != null">#{inventoryAccountNum},</if> |
|||
<if test="warehouseStoreAddress != null">#{warehouseStoreAddress},</if> |
|||
<if test="batchNumber != null">#{batchNumber},</if> |
|||
<if test="warehouseCode != null">#{warehouseCode},</if> |
|||
<if test="warehouseName != null">#{warehouseName},</if> |
|||
<if test="inventoryCheckDate != null">#{inventoryCheckDate},</if> |
|||
<if test="materialTotal != null">#{materialTotal},</if> |
|||
<if test="numTotal != null">#{numTotal},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateWarehouseInventoryCheckDetail" parameterType="WarehouseInventoryCheckDetail"> |
|||
update warehouse_inventory_check_detail |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="inventoryCheckCode != null">inventory_check_code = #{inventoryCheckCode},</if> |
|||
<if test="inventoryCheckName != null">inventory_check_name = #{inventoryCheckName},</if> |
|||
<if test="materialNo != null">material_no = #{materialNo},</if> |
|||
<if test="materialName != null">material_name = #{materialName},</if> |
|||
<if test="materialUnit != null">material_unit = #{materialUnit},</if> |
|||
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
|||
<if test="inventoryCheckNum != null">inventory_check_num = #{inventoryCheckNum},</if> |
|||
<if test="inventoryAccountNum != null">inventory_account_num = #{inventoryAccountNum},</if> |
|||
<if test="warehouseStoreAddress != null">warehouse_store_address = #{warehouseStoreAddress},</if> |
|||
<if test="batchNumber != null">batch_number = #{batchNumber},</if> |
|||
<if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if> |
|||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if> |
|||
<if test="inventoryCheckDate != null">inventory_check_date = #{inventoryCheckDate},</if> |
|||
<if test="materialTotal != null">material_total = #{materialTotal},</if> |
|||
<if test="numTotal != null">num_total = #{numTotal},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
</trim> |
|||
where inventory_check_detail_id = #{inventoryCheckDetailId} |
|||
</update> |
|||
|
|||
<delete id="deleteWarehouseInventoryCheckDetailById" parameterType="Long"> |
|||
delete from warehouse_inventory_check_detail where inventory_check_detail_id = #{inventoryCheckDetailId} |
|||
</delete> |
|||
|
|||
<delete id="deleteWarehouseInventoryCheckDetailByIds" parameterType="String"> |
|||
delete from warehouse_inventory_check_detail where inventory_check_detail_id in |
|||
<foreach item="inventoryCheckDetailId" collection="array" open="(" separator="," close=")"> |
|||
#{inventoryCheckDetailId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelWarehouseInventoryCheckDetailById" parameterType="Long"> |
|||
update warehouse_inventory_check_detail set del_flag = '1' where inventory_check_detail_id = #{inventoryCheckDetailId} |
|||
</update> |
|||
|
|||
<update id="restoreWarehouseInventoryCheckDetailById" parameterType="Long"> |
|||
update warehouse_inventory_check_detail set del_flag = '0' where inventory_check_detail_id = #{inventoryCheckDetailId} |
|||
</update> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue