会计科目表新增接口
接口 /accounting/subject/save POST JSON
Method:POST
数据格式:JSON
请求参数
参数 | 类型 | 必须 | 默认值 | 主键 | 描述 |
---|---|---|---|---|---|
groupDtos | List<AccountingSubjectGroupSimplifyDto> | Y | 属性类型对象AccountingSubjectGroupSimplifyDto说明如下 |
参数 | 类型 | 必须 | 默认值 | 主键 | 描述 |
---|---|---|---|---|---|
groupBizCode | string | Y | 会计科目表编码 | ||
groupName | string | Y | 会计科目表名称 | ||
groupNameEn | string | N | 会计科目表英文名称 | ||
records | List<AccountingSubjectSimplifyDto> | N | 科目对象AccountingSubjectSimplifyDto说明如下 |
参数 | 类型 | 必须 | 默认值 | 主键 | 描述 |
---|---|---|---|---|---|
parentBizCode | string | N | 父级科目代码 | ||
code | string | Y | 科目代码 | ||
name | string | Y | 科目名称 | ||
nameEn | string | N | 科目名称英文 | ||
enabled | string | N | 启用状态:可选值 1、启用 2、禁用 | ||
accountingItemBizCode1 | string | N | 核算项目编码 | ||
accountingItemBizCode2 | string | N | 核算项目编码 | ||
accountingItemBizCode3 | string | N | 核算项目编码 | ||
accountingItemBizCode4 | string | N | 核算项目编码 | ||
accountingItemBizCode5 | string | N | 核算项目编码 | ||
accountingItemBizCode6 | string | N | 核算项目编码 | ||
accountingItemBizCode7 | string | N | 核算项目编码 | ||
accountingItemBizCode8 | string | N | 核算项目编码 | ||
accountingItemBizCode9 | string | N | 核算项目编码 | ||
accountingItemBizCode10 | string | N | 核算项目编码 |
- 返回数据
字段 | 类型 | 描述 |
---|---|---|
code | string | ACK:成功;NACK:失败 |
message | string | 错误提示 |
data | string | 部分成功的错误提示 |
- 请求示例:
{
"groupDtos": [{
"groupBizCode": "ASG190521126LO5U5",
"groupName": "会计科目表名称",
"groupNameEn": "accounting subject",
"records": [{
"parentBizCode": "",
"code": "code66",
"name": "科目名称",
"nameEn": "name",
"enabled": "启用",
"accountingItemBizCode1": "ASA001",
"accountingItemBizCode2": "ASA002",
"accountingItemBizCode3": "ASA003",
"accountingItemBizCode4": "ASA004",
"accountingItemBizCode5": "",
"accountingItemBizCode6": "",
"accountingItemBizCode7": "",
"accountingItemBizCode8": "",
"accountingItemBizCode9": "",
"accountingItemBizCode10": ""
},
{
"parentBizCode": "code66",
"code": "code77",
"name": "科目名称1",
"nameEn": "name1",
"enabled": "禁用",
"accountingItemBizCode1": "ASA001",
"accountingItemBizCode2": "",
"accountingItemBizCode3": "",
"accountingItemBizCode4": "",
"accountingItemBizCode5": "",
"accountingItemBizCode6": "",
"accountingItemBizCode7": "",
"accountingItemBizCode8": "",
"accountingItemBizCode9": "",
"accountingItemBizCode10": ""
}]
}, {
"groupBizCode": "ASG1nsdmnfs",
"groupName": "会计科目表名称2",
"groupNameEn": "accounting subject2",
"records": [{
"parentBizCode": "",
"code": "255542",
"name": "科目名称2",
"nameEn": "name2",
"enabled": "启用",
"accountingItemBizCode1": "ASA002",
"accountingItemBizCode2": "ASA006",
"accountingItemBizCode3": "",
"accountingItemBizCode4": "",
"accountingItemBizCode5": "",
"accountingItemBizCode6": "",
"accountingItemBizCode7": "",
"accountingItemBizCode8": "",
"accountingItemBizCode9": "",
"accountingItemBizCode10": ""
},
{
"parentBizCode": "255542",
"code": "code7557",
"name": "科目名称4",
"nameEn": "name4",
"enabled": "禁用",
"accountingItemBizCode1": "ASA011",
"accountingItemBizCode2": "ASA003",
"accountingItemBizCode3": "",
"accountingItemBizCode4": "",
"accountingItemBizCode5": "",
"accountingItemBizCode6": "",
"accountingItemBizCode7": "",
"accountingItemBizCode8": "",
"accountingItemBizCode9": "",
"accountingItemBizCode10": ""
}]
}]
}
返回数据(成功)
{
"code": "ACK",
"message": "",
"data": [],
"args": null,
"linkDetail": false,
"nonBizError": false
}
返回数据(部分成功)
{
"code": "ACK",
"message": "",
"data": [
"会计科目表名称会计科目Second7重复!"
],
"args": null,
"linkDetail": false,
"nonBizError": false
}
返回数据(失败)
{
"code": "NACK",
"message": "会计科目表名称重复",
"data": null,
"args": null,
"linkDetail": false,
"nonBizError": false
}