# 资产类APIs

本组API用于获取账号相关信息。

# 申请

申请资产类API接口,请通过数据资源申请流程 (opens new window)完成申请。

# 资产信息

# 请求参数

参数名 类型 必填 参数说明
assessType string 否 资产类型(见下方代码表)
companyCode string 否 资产所属二级部门代码
applyUserAccount string 否 申请人jAccount
applyUserCode string 否 申请人工号
keeperAccount string 否 保管人jAccount
keeperCode string 否 保管人工号
businessYear string 否 业务年度
status int 否 资产状态
timestamp string 否 更新时间(yyyy-MM-dd/yyyy-MM-dd HH:mm:ss),取大于等于该时间戳的数据
first int 否 分页起始位置 分页参数说明
offset int 否 分页偏移量

# 响应参数

所有数据资源API响应参数都有相同的通用结构

  • 账号信息 Structure
{
    "id":{string}                                        //唯一标识
    "assetType":{string}                                 //资产状态(见下方代码表)
    "cardCode":{string}                                  //资产编号
    "sumPrice":{double}                                  //总价资产原值
    "chineseName":{string}                               //中文名称
    "assetClassCode":{string}                            //资产分类代码
    "assetClassName":{string}                            //资产分类名称
    "measureUnit":{string}                               //计量单位
    "useDirectionCode":{string}                          //使用方向代码(见下方代码表)                
    "useDirectionName":{string}                          //使用方向
    "applyCompanyCode":{string}                          //申报单位二级单位代码
    "applyCompanyName":{string}                          //申报单位二级单位名称
    "companyCode":{string}                               //所属二级单位代码
    "companyName":{string}                               //所属二级单位名称
    "useDeptCode":{string}                               //保管部门代码
    "useDeptName":{string}                               //保管部门名称
    "applyUserCode":{string}                             //申请人工号
    "applyUserAccount":{string}                          //申请人jAccount
    "applyUserName":{string}                             //申请人姓名
    "keeperCode":{string}                                //保管人工号
    "keeperAccount":{string}                             //保管人jAccount
    "keeperName":{string}                                //保管人姓名
    "businessYear":{string}                              //年份
    "status":{int}                                       //资产状态(见下方代码表) 
    "applyDate":{string}                                 //申请日期(yyyy-MM-dd)
    "buyInDate":{string}                                 //购置日期(yyyy-MM-dd)
    "accountingDate":{string}                            //入账日期(yyyy-MM-dd)
    "productNum":{int}                                   //数量
    "productPrice":{double}                              //价格
    "campusCode":{string}                                //校区代码
    "campusName":{string}                                //校区
    "buildingNo":{string}                                //大楼代码
    "buildingName":{string}                              //大楼
    "placeSiteId":{string}                               //存放地点Id
    "placeSiteName":{string}                             //存放地点
    "outerSchoolPlaceSite":{string}                      //校外存放地点
    "assetCountryCode":{string}                          //生产国别代码
    "assetCountryName":{string}                          //生产国别
    "remainUseMonth":{int}                               //剩余使用月
    "minusYear":{int}                                    //最少使用年
    "totalUseMonth":{int}                                //已使用月
    "originalPrice":{double}                             //初始值
    "totalDiscountMonth":{int}                           //总折旧月
    "totalDiscountPrice":{double}                        //总折旧金额
    "curPrice":{double}                                  //净值
    "isDiscountEnd":{int}                                //是否折旧完成(0:未完成  1:已完成)
    "timestamp":{string}                                 //更新时间            
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

# 请求示例

GET /v1/asset/info?access_token=token HTTP/1.1
Host: graphql.sjtu.edu.cn

companyCode=40100&assessType=1
1
2
3
4

# 响应示例


示例 成功返回的数据
HTTP/1.1 200 
Content-Type: application/json;charset=UTF-8

{
	"errno": 0,
	"error": null,
	"total": 1,
	"entities": [{
		"id": "135320",
		"assetType": "1",
		"cardCode": "00000000",
		"sumPrice": 1197,
		"chineseName": "计算机网络集线器",
		"assetClassCode": "0501051201",
		"assetClassName": "多接口解调器",
		"measureUnit": "台件  ",
		"useDirectionCode": "1",
		"useDirectionName": "教学",
		"applyCompanyCode": "40100",
		"applyCompanyName": "网络信息中心",
		"companyCode": "40100",
		"companyName": "网络信息中心",
		"useDeptCode": "s4010",
		"useDeptName": "网络信息中心        ",
		"applyUserCode": "99999",
		"applyUserAccount": "test01",
		"applyUserName": "test",
		"keeperCode": "99999",
		"keeperAccount": "test01",
		"keeperName": "test",
		"businessYear": 2020,
		"status": 1,
		"applyDate": "2009-12-31",
		"buyInDate": "1996-12-01",
		"accountingDate": "1996-12-01",
		"productNum": 1,
		"productPrice": 1197,
		"campusCode": "2",
		"campusName": "闵行",
		"buildingNo": "737",
		"buildingName": "图信大楼",
		"placeSiteId": "13218",
		"placeSiteName": "闵-图信大楼-信412、414",
		"outerSchoolPlaceSite": null,
		"assetCountryCode": "156",
		"assetCountryName": "中国",
		"remainUseMonth": 72,
		"minusYear": 6,
		"totalUseMonth": 0,
		"originalPrice": 0,
		"totalDiscountMonth": 72,
		"totalDiscountPrice": 1197,
		"curPrice": 0,
		"isDiscountEnd": 0,
		"timestamp": "2019-12-18 09:21:33"
	}]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  • assessType资产类型列表 Data
Value Description
1 设备
2 家具
3 房屋
4 土地
5 文物陈列品
6 动植物
  • useDirectionCode使用方向列表 Data
Value Description
1 教学
2 科研
3 行政
4 生活后勤
5 生产
6 技术开发
7 社会服务
9 其他
  • status资产状态列表 Data
Value Description
0 退货
1 在用
2 多余
3 待修
4 待报废
5 丢失
6 报废
7 调出
8 降档
9 其他处置
10 2016清查盘亏
11 捐赠