|
@@ -19,6 +19,33 @@
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
+ <sql id="selectElabel">
|
|
|
|
+ select f_id,
|
|
|
|
+ f_g_pid,
|
|
|
|
+ f_pid,
|
|
|
|
+ f_content,
|
|
|
|
+ f_qty,
|
|
|
|
+ f_weight,
|
|
|
|
+ f_type,
|
|
|
|
+ f_status,
|
|
|
|
+ create_by,
|
|
|
|
+ create_time,
|
|
|
|
+ update_by,
|
|
|
|
+ update_time
|
|
|
|
+ from t_warehousebillsitems_elabel
|
|
|
|
+ </sql>
|
|
|
|
+
|
|
|
|
+ <select id="selectList" parameterType="TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
|
|
+ <include refid="selectElabel"/>
|
|
|
|
+ <where>
|
|
|
|
+ <if test="fGPid != null">and f_g_pid = #{fGPid}</if>
|
|
|
|
+ <if test="fPid != null">and f_pid = #{fPid}</if>
|
|
|
|
+ <if test="fContent != null and fContent != ''">and f_content = #{fContent}</if>
|
|
|
|
+ <if test="fType != null">and f_type = #{fType}</if>
|
|
|
|
+ <if test="fStatus != null">and f_status = #{fStatus}</if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<insert id="insert" parameterType="TWarehousebillsitemsElabel" useGeneratedKeys="true" keyProperty="fId">
|
|
<insert id="insert" parameterType="TWarehousebillsitemsElabel" useGeneratedKeys="true" keyProperty="fId">
|
|
insert into t_warehousebillsitems_elabel
|
|
insert into t_warehousebillsitems_elabel
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -82,78 +109,22 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<select id="selectById" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
<select id="selectById" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
- SELECT
|
|
|
|
- f_id,
|
|
|
|
- f_g_pid,
|
|
|
|
- f_pid,
|
|
|
|
- f_content,
|
|
|
|
- f_qty,
|
|
|
|
- f_weight,
|
|
|
|
- f_type,
|
|
|
|
- f_status,
|
|
|
|
- create_by,
|
|
|
|
- create_time,
|
|
|
|
- update_by,
|
|
|
|
- update_time
|
|
|
|
- FROM
|
|
|
|
- t_warehousebillsitems_elabel
|
|
|
|
|
|
+ <include refid="selectElabel"/>
|
|
WHERE f_id = #{fId}
|
|
WHERE f_id = #{fId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectByfContent" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
<select id="selectByfContent" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
- SELECT
|
|
|
|
- f_id,
|
|
|
|
- f_g_pid,
|
|
|
|
- f_pid,
|
|
|
|
- f_content,
|
|
|
|
- f_qty,
|
|
|
|
- f_weight,
|
|
|
|
- f_type,
|
|
|
|
- f_status,
|
|
|
|
- create_by,
|
|
|
|
- create_time,
|
|
|
|
- update_by,
|
|
|
|
- update_time
|
|
|
|
- FROM
|
|
|
|
- t_warehousebillsitems_elabel
|
|
|
|
|
|
+ <include refid="selectElabel"/>
|
|
WHERE f_content = #{fContent}
|
|
WHERE f_content = #{fContent}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectByfPid" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
<select id="selectByfPid" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
- SELECT
|
|
|
|
- f_id,
|
|
|
|
- f_g_pid,
|
|
|
|
- f_pid,
|
|
|
|
- f_content,
|
|
|
|
- f_qty,
|
|
|
|
- f_weight,
|
|
|
|
- f_type,
|
|
|
|
- f_status,
|
|
|
|
- create_by,
|
|
|
|
- create_time,
|
|
|
|
- update_by,
|
|
|
|
- update_time
|
|
|
|
- FROM
|
|
|
|
- t_warehousebillsitems_elabel
|
|
|
|
|
|
+ <include refid="selectElabel"/>
|
|
WHERE f_pid = #{fPid}
|
|
WHERE f_pid = #{fPid}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectByfGPid" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
<select id="selectByfGPid" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehousebillsitemsElabel" resultMap="ElabelResult">
|
|
- SELECT
|
|
|
|
- f_id,
|
|
|
|
- f_g_pid,
|
|
|
|
- f_pid,
|
|
|
|
- f_content,
|
|
|
|
- f_qty,
|
|
|
|
- f_weight,
|
|
|
|
- f_type,
|
|
|
|
- f_status,
|
|
|
|
- create_by,
|
|
|
|
- create_time,
|
|
|
|
- update_by,
|
|
|
|
- update_time
|
|
|
|
- FROM
|
|
|
|
- t_warehousebillsitems_elabel
|
|
|
|
|
|
+ <include refid="selectElabel"/>
|
|
WHERE f_g_pid = #{fGPid}
|
|
WHERE f_g_pid = #{fGPid}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -164,17 +135,26 @@
|
|
where t2.f_originalbillno = #{billNo} and t1.f_type = 3 and t1.f_status = 0
|
|
where t2.f_originalbillno = #{billNo} and t1.f_type = 3 and t1.f_status = 0
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getLabelByTop" parameterType="string" resultType="string">
|
|
|
|
|
|
+ <select id="getLabelByTop" parameterType="long" resultType="string">
|
|
select t1.f_content
|
|
select t1.f_content
|
|
from t_warehousebillsitems_elabel t1
|
|
from t_warehousebillsitems_elabel t1
|
|
left join t_warehousebills t2 on t2.f_id = t1.f_g_pid
|
|
left join t_warehousebills t2 on t2.f_id = t1.f_g_pid
|
|
where t1.f_g_pid = #{topId}
|
|
where t1.f_g_pid = #{topId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getLabelByPid" parameterType="string" resultType="string">
|
|
|
|
|
|
+ <select id="getLabelByPid" parameterType="long" resultType="string">
|
|
select t1.f_content
|
|
select t1.f_content
|
|
from t_warehousebillsitems_elabel t1
|
|
from t_warehousebillsitems_elabel t1
|
|
left join t_warehousebillsitems t2 on t2.f_id = t1.f_pid
|
|
left join t_warehousebillsitems t2 on t2.f_id = t1.f_pid
|
|
where t1.f_pid = #{pid}
|
|
where t1.f_pid = #{pid}
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="selectByStockId" parameterType="long" resultMap="ElabelResult">
|
|
|
|
+ select
|
|
|
|
+ t1.*
|
|
|
|
+ from t_warehousebillsitems_elabel t1
|
|
|
|
+ left join t_warehousebillsitems t2 on t2.f_id = t1.f_pid
|
|
|
|
+ left join t_whgenleg t3 on t3.f_originalbillno = t2.f_billno
|
|
|
|
+ where t3.f_id = #{stockId}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|