feat(gear-oa):为应付账款模块添加采购详情关联字段
在 GearPayable、GearPayableBo 和 GearPayableVo 中新增 detailId 字段,并在 GearPayableMapper.xml 中增加对应字段映射及关联查询逻辑。 同时更新了查询条件构造器以支持 detailId 的筛选。 此外,修正 GearRequirementsMapper.xml 中 projectId 映射为 orderId。
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<result property="payableId" column="payable_id"/>
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="detailId" column="detail_id"/>
|
||||
<result property="dueDate" column="due_date"/>
|
||||
<result property="amount" column="amount"/>
|
||||
<result property="paidAmount" column="paid_amount"/>
|
||||
@@ -35,9 +36,11 @@
|
||||
p.create_time,
|
||||
p.create_by,
|
||||
p.update_time,
|
||||
p.update_by
|
||||
p.update_by,
|
||||
d.detail_code as detailCode
|
||||
from gear_payable p
|
||||
left join gear_supplier s on p.supplier_id = s.supplier_id and s.del_flag = 0
|
||||
left join gear_purchase_plan_detail d on p.detail_id = d.detail_id and d.del_flag = 0
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="title" column="title"/>
|
||||
<result property="requesterId" column="requester_id"/>
|
||||
<result property="ownerId" column="owner_id"/>
|
||||
<result property="projectId" column="project_id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="deadline" column="deadline"/>
|
||||
<result property="status" column="status"/>
|
||||
|
||||
Reference in New Issue
Block a user