|
@@ -863,6 +863,7 @@
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<select id="ExpenseMainList" resultMap="MainMap">
|
|
<select id="ExpenseMainList" resultMap="MainMap">
|
|
|
select b.id,b.check_no,b.total_amount,b.real_amount ,b.order_no,o.contract_no ,b.aname,b.apply_dep,b.pay_dep,b.amount,
|
|
select b.id,b.check_no,b.total_amount,b.real_amount ,b.order_no,o.contract_no ,b.aname,b.apply_dep,b.pay_dep,b.amount,
|
|
|
date_format(b.create_time,'%Y-%m-%d %H:%i:%S')createTimeStr,b.status,b.process_status,b.examine_name,
|
|
date_format(b.create_time,'%Y-%m-%d %H:%i:%S')createTimeStr,b.status,b.process_status,b.examine_name,
|
|
@@ -1051,8 +1052,9 @@
|
|
|
left join department dep on b.apply_dep =dep.id left join department dep2 on b.pay_dep =dep2.id
|
|
left join department dep on b.apply_dep =dep.id left join department dep2 on b.pay_dep =dep2.id
|
|
|
left join t_order_new o on b.order_no =o.order_no left join expense_account c on a.ea_id =c.id
|
|
left join t_order_new o on b.order_no =o.order_no left join expense_account c on a.ea_id =c.id
|
|
|
left join admin ad on b.aid=ad.id left join department adDep on ad.department_id=adDep.id
|
|
left join admin ad on b.aid=ad.id left join department adDep on ad.department_id=adDep.id
|
|
|
- where c.id in (#{id})
|
|
|
|
|
|
|
+ where b.id in (select id from expense_relationship where ea_id = #{id} )
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
<select id="selectDeleteIdBySonId" resultType="java.lang.Integer">
|
|
<select id="selectDeleteIdBySonId" resultType="java.lang.Integer">
|
|
|
select b.id
|
|
select b.id
|
|
|
from expense_account a left join expense_relationship b on a.id =b.ea_id
|
|
from expense_account a left join expense_relationship b on a.id =b.ea_id
|
|
@@ -1060,4 +1062,9 @@
|
|
|
where a.id= #{id} and c.id is null
|
|
where a.id= #{id} and c.id is null
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <update id="updateSonTypeOther">
|
|
|
|
|
+ update expense_account a
|
|
|
|
|
+ set a.type_other = #{types}
|
|
|
|
|
+ where a.id in (select id from expense_relationship where ea_id = #{id} )
|
|
|
|
|
+ </update>
|
|
|
</mapper>
|
|
</mapper>
|