|
@@ -380,11 +380,13 @@
|
|
|
,tmo.org_name as "orgName"
|
|
,tmo.org_name as "orgName"
|
|
|
,tms.staff_name as "staffName"
|
|
,tms.staff_name as "staffName"
|
|
|
,tms1.staff_name as "makeStaffName"
|
|
,tms1.staff_name as "makeStaffName"
|
|
|
|
|
+ ,tmp.sup_name as "supplierName"
|
|
|
FROM dkic_b.t_psi_purchase tpp
|
|
FROM dkic_b.t_psi_purchase tpp
|
|
|
Left join dkic_b.t_mst_org tmo on tpp.org_id = tmo.org_id
|
|
Left join dkic_b.t_mst_org tmo on tpp.org_id = tmo.org_id
|
|
|
|
|
+ Left join dkic_b.t_mst_supplier tmp on tpp.sup_id = tmp.sup_id
|
|
|
Left join dkic_b.t_mst_staff tms on tpp.staff_id = tms.staff_id
|
|
Left join dkic_b.t_mst_staff tms on tpp.staff_id = tms.staff_id
|
|
|
Left join dkic_b.t_mst_staff tms1 on tpp.make_staff = tms1.staff_id
|
|
Left join dkic_b.t_mst_staff tms1 on tpp.make_staff = tms1.staff_id
|
|
|
- <include refid="Condition"/>
|
|
|
|
|
|
|
+ <include refid="Condition_1"/>
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
limit #{end} offset #{start}
|
|
|
</if>
|
|
</if>
|
|
@@ -394,8 +396,16 @@
|
|
|
<!-- 根据主键查询表dkic_b.t_psi_purchase的一行数据 -->
|
|
<!-- 根据主键查询表dkic_b.t_psi_purchase的一行数据 -->
|
|
|
<select id="selectById" resultMap="BaseResultMapResponse">
|
|
<select id="selectById" resultMap="BaseResultMapResponse">
|
|
|
SELECT
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
|
|
- FROM dkic_b.t_psi_purchase
|
|
|
|
|
|
|
+ <include refid="Base_Column_List_Left_join"/>
|
|
|
|
|
+ ,tmo.org_name as "orgName"
|
|
|
|
|
+ ,tms.staff_name as "staffName"
|
|
|
|
|
+ ,tms1.staff_name as "makeStaffName"
|
|
|
|
|
+ ,tmp.sup_name as "supplierName"
|
|
|
|
|
+ FROM dkic_b.t_psi_purchase tpp
|
|
|
|
|
+ Left join dkic_b.t_mst_org tmo on tpp.org_id = tmo.org_id
|
|
|
|
|
+ Left join dkic_b.t_mst_supplier tmp on tpp.sup_id = tmp.sup_id
|
|
|
|
|
+ Left join dkic_b.t_mst_staff tms on tpp.staff_id = tms.staff_id
|
|
|
|
|
+ Left join dkic_b.t_mst_staff tms1 on tpp.make_staff = tms1.staff_id
|
|
|
WHERE pur_id = #{purId}::uuid
|
|
WHERE pur_id = #{purId}::uuid
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -424,16 +434,4 @@
|
|
|
FROM dkic_b.t_psi_purchase tpp
|
|
FROM dkic_b.t_psi_purchase tpp
|
|
|
<include refid="Condition_1"/>
|
|
<include refid="Condition_1"/>
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <!--修改采购订单号-->
|
|
|
|
|
- <update id="updatePurNO" parameterType="com.dk.mdm.model.pojo.pur.Purchase">
|
|
|
|
|
- update dkic_b.t_psi_purchase
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="purNo != null">
|
|
|
|
|
- pur_no= #{purNo},
|
|
|
|
|
- </if>
|
|
|
|
|
- </set>
|
|
|
|
|
- where pur_id = #{purId}::uuid
|
|
|
|
|
- </update>
|
|
|
|
|
</mapper>
|
|
</mapper>
|