maxianghua 4 лет назад
Родитель
Сommit
28371cd6ff

+ 98 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/warehouseBusiness/domain/TWarehousebillsLog.java

@@ -0,0 +1,98 @@
+package com.ruoyi.warehouseBusiness.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;
+
+/**
+ * 入出库状态对象 t_warehousebills_log
+ * 
+ * @author ruoyi
+ * @date 2021-01-15
+ */
+public class TWarehousebillsLog extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long fId;
+
+    /** PID,对应主表id */
+    @Excel(name = "PID,对应主表id")
+    private Long fPid;
+
+    /** PID,对应明细表id */
+    @Excel(name = "PID,对应明细表id")
+    private Long fItmeid;
+
+    /** 对应库存明细状态  10 计划入库、20待入库、30卸货中、40 已入库、 60计划出库、70待出库、80装货中、90已出库 */
+    @Excel(name = "对应库存明细状态  10 计划入库、20待入库、30卸货中、40 已入库、 60计划出库、70待出库、80装货中、90已出库")
+    private Long fItmestatus;
+
+    /** 0正常 、1 删除 */
+    @Excel(name = "0正常 、1 删除")
+    private String fBillstatus;
+
+    public void setfId(Long fId) 
+    {
+        this.fId = fId;
+    }
+
+    public Long getfId() 
+    {
+        return fId;
+    }
+    public void setfPid(Long fPid) 
+    {
+        this.fPid = fPid;
+    }
+
+    public Long getfPid() 
+    {
+        return fPid;
+    }
+    public void setfItmeid(Long fItmeid) 
+    {
+        this.fItmeid = fItmeid;
+    }
+
+    public Long getfItmeid() 
+    {
+        return fItmeid;
+    }
+    public void setfItmestatus(Long fItmestatus) 
+    {
+        this.fItmestatus = fItmestatus;
+    }
+
+    public Long getfItmestatus() 
+    {
+        return fItmestatus;
+    }
+    public void setfBillstatus(String fBillstatus) 
+    {
+        this.fBillstatus = fBillstatus;
+    }
+
+    public String getfBillstatus() 
+    {
+        return fBillstatus;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("fId", getfId())
+            .append("fPid", getfPid())
+            .append("fItmeid", getfItmeid())
+            .append("fItmestatus", getfItmestatus())
+            .append("fBillstatus", getfBillstatus())
+            .append("createTime", getCreateTime())
+            .append("createBy", getCreateBy())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 63 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/warehouseBusiness/mapper/TWarehousebillsLogMapper.java

@@ -0,0 +1,63 @@
+package com.ruoyi.warehouseBusiness.mapper;
+
+
+import com.ruoyi.warehouseBusiness.domain.TWarehousebillsLog;
+
+import java.util.List;
+
+/**
+ * 入出库状态Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2021-01-15
+ */
+public interface TWarehousebillsLogMapper 
+{
+    /**
+     * 查询入出库状态
+     * 
+     * @param fId 入出库状态ID
+     * @return 入出库状态
+     */
+    public TWarehousebillsLog selectTWarehousebillsLogById(Long fId);
+
+    /**
+     * 查询入出库状态列表
+     * 
+     * @param tWarehousebillsLog 入出库状态
+     * @return 入出库状态集合
+     */
+    public List<TWarehousebillsLog> selectTWarehousebillsLogList(TWarehousebillsLog tWarehousebillsLog);
+
+    /**
+     * 新增入出库状态
+     * 
+     * @param tWarehousebillsLog 入出库状态
+     * @return 结果
+     */
+    public int insertTWarehousebillsLog(TWarehousebillsLog tWarehousebillsLog);
+
+    /**
+     * 修改入出库状态
+     * 
+     * @param tWarehousebillsLog 入出库状态
+     * @return 结果
+     */
+    public int updateTWarehousebillsLog(TWarehousebillsLog tWarehousebillsLog);
+
+    /**
+     * 删除入出库状态
+     * 
+     * @param fId 入出库状态ID
+     * @return 结果
+     */
+    public int deleteTWarehousebillsLogById(Long fId);
+
+    /**
+     * 批量删除入出库状态
+     * 
+     * @param fIds 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTWarehousebillsLogByIds(Long[] fIds);
+}

+ 92 - 0
ruoyi-warehouse/src/main/resources/mapper/warehouseBusiness/TWarehousebillsLogMapper.xml

@@ -0,0 +1,92 @@
+<?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.warehouseBusiness.mapper.TWarehousebillsLogMapper">
+    
+    <resultMap type="TWarehousebillsLog" id="TWarehousebillsLogResult">
+        <result property="fId"    column="f_id"    />
+        <result property="fPid"    column="f_pid"    />
+        <result property="fItmeid"    column="f_itmeid"    />
+        <result property="fItmestatus"    column="f_itmestatus"    />
+        <result property="fBillstatus"    column="f_billstatus"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTWarehousebillsLogVo">
+        select f_id, f_pid, f_itmeid, f_itmestatus, f_billstatus, create_time, create_by, update_by, update_time, remark from t_warehousebills_log
+    </sql>
+
+    <select id="selectTWarehousebillsLogList" parameterType="TWarehousebillsLog" resultMap="TWarehousebillsLogResult">
+        <include refid="selectTWarehousebillsLogVo"/>
+        <where>  
+            <if test="fPid != null "> and f_pid = #{fPid}</if>
+            <if test="fItmeid != null "> and f_itmeid = #{fItmeid}</if>
+            <if test="fItmestatus != null "> and f_itmestatus = #{fItmestatus}</if>
+            <if test="fBillstatus != null  and fBillstatus != ''"> and f_billstatus = #{fBillstatus}</if>
+        </where>
+    </select>
+    
+    <select id="selectTWarehousebillsLogById" parameterType="Long" resultMap="TWarehousebillsLogResult">
+        <include refid="selectTWarehousebillsLogVo"/>
+        where f_id = #{fId}
+    </select>
+        
+    <insert id="insertTWarehousebillsLog" parameterType="TWarehousebillsLog" useGeneratedKeys="true" keyProperty="fId">
+        insert into t_warehousebills_log
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="fPid != null">f_pid,</if>
+            <if test="fItmeid != null">f_itmeid,</if>
+            <if test="fItmestatus != null">f_itmestatus,</if>
+            <if test="fBillstatus != null">f_billstatus,</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>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="fPid != null">#{fPid},</if>
+            <if test="fItmeid != null">#{fItmeid},</if>
+            <if test="fItmestatus != null">#{fItmestatus},</if>
+            <if test="fBillstatus != null">#{fBillstatus},</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>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTWarehousebillsLog" parameterType="TWarehousebillsLog">
+        update t_warehousebills_log
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="fPid != null">f_pid = #{fPid},</if>
+            <if test="fItmeid != null">f_itmeid = #{fItmeid},</if>
+            <if test="fItmestatus != null">f_itmestatus = #{fItmestatus},</if>
+            <if test="fBillstatus != null">f_billstatus = #{fBillstatus},</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>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where f_id = #{fId}
+    </update>
+
+    <delete id="deleteTWarehousebillsLogById" parameterType="Long">
+        delete from t_warehousebills_log where f_id = #{fId}
+    </delete>
+
+    <delete id="deleteTWarehousebillsLogByIds" parameterType="String">
+        delete from t_warehousebills_log where f_id in 
+        <foreach item="fId" collection="array" open="(" separator="," close=")">
+            #{fId}
+        </foreach>
+    </delete>
+    
+</mapper>