文档
测试

更新项目流水

POST
https://test.52miaosuan.com:8090/miaosuan/finance/project/flow/update

接口描述

更新基础财务流水,请求参数为json

请求头

参数名
类型
描述
必填
user_id
int
用户编号
必填

请求参数

参数名
类型
描述
必填
flow_record_id
int
流水编号
必填
flow_category_id
int
流水一级类型:0-项目收入、1-项目材料费、2-项目人工费、3-项目其他支出、4-基础收入、5-基础支出、9-其他
必填
flow_type_id
int
流水类型ID
必填
flow_done
int
流水是否完成,0 - 未收、未付,1 - 已收、已付
必填
flow_amount
float
流水金额
必填
related_name
string
流水交易相关方信息
必填
trade_type_id
int
交易类型ID
必填
description
string
流水备注
必填
add_files
array
新增的流水列表
必填
file_name
string
附件名称
必填
file_url
string
附件URL
必填
delete_files
array
删除的流水ID列表,如:[1,2,3]
必填
occur_time
string
流水发生时间
必填
out_sub_type
int
流水指出子类型
必填

说明 / 示例

请求参数为: ```json { "flow_record_id": 2, "flow_type_id": 11, "occur_time": "2021-02-25", "flow_done": 0, "flow_amount": 1024.21, "related_name": "测试更新流水", "trade_type_id": 1, "description": "测试更新流水的备注", "add_files": [{"file_name": "test.png", "file_url": "http://xxxxx"}], "delete_files": [1,2,3] } ``` 响应消息: ```json { "code": 0, "msg": "成功", "data": null } ```