@@ -48,4 +48,6 @@ public interface ExpenseAccountMapper {
void updateByIds(@Param("list") List<String> list, @Param("status") Integer status);
MainExpenseAccount selectByMainId(Integer id);
+
+ void updateByMainId(@Param("id") Integer id, @Param("status") Integer status);
}
@@ -699,5 +699,10 @@
#{id}
</foreach>
</update>
+ <update id="updateByMainId">
+ update expense_relationship a ,expense_account b
+ set b.status= #{status}
+ where a.id= #{id} and a.ea_id=b.id
+ </update>
</mapper>