领料接口优化
This commit is contained in:
parent
19cba7f73e
commit
3db75704c5
|
|
@ -230,7 +230,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="getAuditListByLeaseInfo" resultType="com.bonus.material.lease.domain.LeaseApplyInfo">
|
<select id="getAuditListByLeaseInfo" resultType="com.bonus.material.lease.domain.LeaseApplyInfo">
|
||||||
SELECT
|
SELECT
|
||||||
lai.*
|
lai.id, lai.code, lai.task_id as taskId, lai.lease_person as leasePerson, lai.phone, lai.type,
|
||||||
|
lai.create_by as createBy, lai.create_time as createTime, lai.remark, lai.company_id as companyId,
|
||||||
|
lai.status, lai.direct_id as directId, lai.lease_type as leaseType, lai.estimate_lease_time as estimateLeaseTime,
|
||||||
|
lai.cost_bearing_party as costBearingParty
|
||||||
FROM
|
FROM
|
||||||
lease_apply_info lai
|
lease_apply_info lai
|
||||||
WHERE
|
WHERE
|
||||||
|
|
@ -248,7 +251,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id
|
LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id
|
||||||
LEFT JOIN ma_machine mm ON lad.type_id = mm.type_id
|
LEFT JOIN ma_machine mm ON lad.type_id = mm.type_id
|
||||||
WHERE
|
WHERE
|
||||||
lad.parent_id = #{record.id} AND lad.company_id = #{record.companyId}
|
lad.parent_id = #{record.taskId}
|
||||||
GROUP BY
|
GROUP BY
|
||||||
lad.id
|
lad.id
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue