|
|
@@ -234,11 +234,12 @@
|
|
|
<select id="selectByCond" resultMap="BaseResultMapResponse">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List_Response"/>
|
|
|
- tmo.org_name AS "orgName",
|
|
|
+ ,tmo.org_name AS "orgName",
|
|
|
tmp.sup_name AS "supplierName",
|
|
|
tms.staff_name AS "staffName",
|
|
|
tms.staff_name AS "makeStaffName",
|
|
|
tmw.wh_name as "whName",
|
|
|
+ tpi.sum_quantity, tpi.sum_amount,
|
|
|
sys.f_get_name_i18n(tdk.kind_name_i18n, 'zh_CN') AS "intoStatusName"
|
|
|
FROM dkic_b.t_psi_inbound tpi
|
|
|
Left join dkic_b.t_mst_org tmo on tmo.org_id = tpi.org_id
|
|
|
@@ -257,7 +258,7 @@
|
|
|
<select id="countByCond" resultType="Long">
|
|
|
SELECT
|
|
|
count(1)
|
|
|
- FROM dkic_b.t_psi_inbound
|
|
|
+ FROM dkic_b.t_psi_inbound tpi
|
|
|
<include refid="Condition"/>
|
|
|
</select>
|
|
|
|
|
|
@@ -265,7 +266,17 @@
|
|
|
<select id="selectById" resultMap="BaseResultMapResponse">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List_Response"/>
|
|
|
+ ,tmo.org_name as "orgName"
|
|
|
+ ,tms.staff_name as "staffName"
|
|
|
+ ,tms1.staff_name as "makeStaffName"
|
|
|
+ ,tmp.sup_name as "supplierName"
|
|
|
+ ,tmw.wh_name as "whName"
|
|
|
FROM dkic_b.t_psi_inbound tpi
|
|
|
+ Left join dkic_b.t_mst_org tmo on tmo.org_id = tpi.org_id
|
|
|
+ Left join dkic_b.t_mst_supplier tmp on tmp.sup_id = tpi.sup_id
|
|
|
+ Left join dkic_b.t_mst_staff tms on tms.staff_id = tpi.staff_id
|
|
|
+ Left join dkic_b.t_mst_staff tms1 on tms1.staff_id = tpi.make_staff
|
|
|
+ Left join dkic_b.t_mst_warehouse tmw on tmw.wh_id = tpi.wh_id
|
|
|
WHERE tpi.into_id = #{intoId}::uuid
|
|
|
</select>
|
|
|
|
|
|
@@ -430,18 +441,5 @@
|
|
|
</update>
|
|
|
|
|
|
|
|
|
- <!-- 查询表t_psi_inbound,(条件查询+分页)列表 -->
|
|
|
- <select id="selectInboundAndItemById" resultMap="BaseResultMapItemResponse">
|
|
|
- SELECT
|
|
|
- <include refid="Base_Column_List_Item_Response"/>,
|
|
|
- <include refid="Base_Column_List_Item_Response_Join"/>
|
|
|
- FROM dkic_b.t_psi_inbound tpi
|
|
|
- left join dkic_b.t_psi_inbound_item tpii on tpi.into_id = tpii.into_id
|
|
|
- left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tpii.sku_id
|
|
|
- left join dkic_b.t_psi_inventory tpit on tpit.sku_id = tpii.sku_id
|
|
|
- <include refid="Condition"/>
|
|
|
- <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
- limit #{end} offset #{start}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
+
|
|
|
</mapper>
|