|
|
@@ -263,11 +263,15 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
- <select id="selectByid" resultType="com.goafanti.expenseAccount.bo.OutExpenseAccount">
|
|
|
- SELECT a.id, a.prid, a.order_no orderNo, a.aid, a.aname, a.`type`, a.type_other typeOther , a.status, a.process_status processStatus,
|
|
|
+ <sql id="selectDtailsSql">
|
|
|
+ a.id, a.prid, a.order_no orderNo, a.aid, a.aname, a.`type`, a.type_other typeOther , a.status, a.process_status processStatus,
|
|
|
a.total_amount totalAmount, a.attachment_url attachmentUrl,a.apply_dep applyDep, a.pay_dep payDep, a.eaaid,
|
|
|
a.district_name districtName, a.user_names userNames,a.create_time, a.release_start,a.release_end, a.duration,
|
|
|
b.name appDepName,c.name payDepName
|
|
|
+ </sql>
|
|
|
+ <select id="selectByid" resultType="com.goafanti.expenseAccount.bo.OutExpenseAccount">
|
|
|
+ SELECT
|
|
|
+ <include refid="selectDtailsSql"/>
|
|
|
FROM expense_account a left join department b on a.apply_dep =b.id left join department c on a.pay_dep =c.id
|
|
|
WHERE a.id= #{id}
|
|
|
</select>
|
|
|
@@ -309,4 +313,11 @@
|
|
|
and a.aid= #{aid}
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <select id="selectByaidAndPrid" resultType="com.goafanti.expenseAccount.bo.OutExpenseAccount">
|
|
|
+ SELECT
|
|
|
+ <include refid="selectDtailsSql"/>
|
|
|
+ FROM expense_account a left join department b on a.apply_dep =b.id left join department c on a.pay_dep =c.id
|
|
|
+ WHERE a.status=0
|
|
|
+ and a.prid= #{prid} and a.aid = #{aid}
|
|
|
+ </select>
|
|
|
</mapper>
|