Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liudonglong
/
fixed-asset-sync
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 459ad18d
authored
Nov 05, 2026
by
liudonglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将海外固资型号字段由 Model 更正为接口实际字段名 deviceModel。
1 parent
87362ee5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
12 deletions
fixed-asset-sync/README.md
fixed-asset-sync/sql/alter_overseas_add_model_and_changelog_dept.sql
fixed-asset-sync/sql/create_overseas_tables.sql
fixed-asset-sync/src/main/java/com/solax/sync/constant/OverseasFixedAssetFields.java
查询海外固资所有.md
fixed-asset-sync/README.md
View file @
459ad18
...
@@ -29,6 +29,13 @@ sql/create_overseas_tables.sql
...
@@ -29,6 +29,13 @@ sql/create_overseas_tables.sql
sql/alter_overseas_add_model_and_changelog_dept.sql
sql/alter_overseas_add_model_and_changelog_dept.sql
```
```
若之前已加过错误列名
`Model`
,改为:
```
sql
ALTER
TABLE
`EAM_海外固资同步数据表`
CHANGE
COLUMN
`Model`
`deviceModel`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'设备型号'
;
```
## 2. 修改配置
## 2. 修改配置
编辑
**`WEB-INF/config.txt`**
(项目模板见根目录
`config.txt`
):
编辑
**`WEB-INF/config.txt`**
(项目模板见根目录
`config.txt`
):
...
...
fixed-asset-sync/sql/alter_overseas_add_model_and_changelog_dept.sql
View file @
459ad18
-- ============================================================
-- ============================================================
-- 已有库增量:海外固资
-- 已有库增量:海外固资
-- 1. EAM_海外固资同步数据表 增加接口
新字段
Model
-- 1. EAM_海外固资同步数据表 增加接口
字段 device
Model
-- 2. EAM_海外固资同步变更日志表 增加 创建人部门(costCenterCode/createddeptid 变动时落库)
-- 2. EAM_海外固资同步变更日志表 增加 创建人部门(costCenterCode/createddeptid 变动时落库)
-- ============================================================
-- ============================================================
-- 情况 A:尚未加过型号列
ALTER
TABLE
`EAM_海外固资同步数据表`
ALTER
TABLE
`EAM_海外固资同步数据表`
ADD
COLUMN
`Model`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'Model 型号'
AFTER
`localOffice`
;
ADD
COLUMN
`deviceModel`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'设备型号'
AFTER
`deviceCountry`
;
-- 情况 B:若之前已按旧脚本加过 `Model` 列,不要执行上面的 ADD,改为执行:
-- ALTER TABLE `EAM_海外固资同步数据表`
-- CHANGE COLUMN `Model` `deviceModel` VARCHAR(255) DEFAULT NULL COMMENT '设备型号';
ALTER
TABLE
`EAM_海外固资同步变更日志表`
ALTER
TABLE
`EAM_海外固资同步变更日志表`
ADD
COLUMN
`创建人部门`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'创建人部门变动后的值(未变则为空)'
AFTER
`成本中心描述`
,
ADD
COLUMN
`创建人部门`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'创建人部门变动后的值(未变则为空)'
AFTER
`成本中心描述`
,
...
...
fixed-asset-sync/sql/create_overseas_tables.sql
View file @
459ad18
...
@@ -30,6 +30,7 @@ CREATE TABLE `EAM_海外固资同步数据表` (
...
@@ -30,6 +30,7 @@ CREATE TABLE `EAM_海外固资同步数据表` (
`currency`
VARCHAR
(
32
)
DEFAULT
NULL
COMMENT
'Currency'
,
`currency`
VARCHAR
(
32
)
DEFAULT
NULL
COMMENT
'Currency'
,
`deviceBrand`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Brand'
,
`deviceBrand`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Brand'
,
`deviceCountry`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Country'
,
`deviceCountry`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Country'
,
`deviceModel`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'设备型号'
,
`deviceType`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Type Of Device'
,
`deviceType`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Type Of Device'
,
`deviceUser`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'Device User'
,
`deviceUser`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'Device User'
,
`deviceUserName`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Device User Name'
,
`deviceUserName`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'Device User Name'
,
...
@@ -42,7 +43,6 @@ CREATE TABLE `EAM_海外固资同步数据表` (
...
@@ -42,7 +43,6 @@ CREATE TABLE `EAM_海外固资同步数据表` (
`lineManagerDept`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'Line Manager Dept.'
,
`lineManagerDept`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'Line Manager Dept.'
,
`lineManagerEmployId`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'Line Manager Employee ID'
,
`lineManagerEmployId`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'Line Manager Employee ID'
,
`localOffice`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'Local Office'
,
`localOffice`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'Local Office'
,
`Model`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'Model 型号'
,
`modifiedtime`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'修改时间'
,
`modifiedtime`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'修改时间'
,
`modifier`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'修改人'
,
`modifier`
VARCHAR
(
64
)
DEFAULT
NULL
COMMENT
'修改人'
,
`name`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'数据标题'
,
`name`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'数据标题'
,
...
...
fixed-asset-sync/src/main/java/com/solax/sync/constant/OverseasFixedAssetFields.java
View file @
459ad18
...
@@ -23,10 +23,10 @@ public final class OverseasFixedAssetFields {
...
@@ -23,10 +23,10 @@ public final class OverseasFixedAssetFields {
public
static
final
List
<
String
>
COMPARE_FIELDS
=
Collections
.
unmodifiableList
(
Arrays
.
asList
(
public
static
final
List
<
String
>
COMPARE_FIELDS
=
Collections
.
unmodifiableList
(
Arrays
.
asList
(
"external_id"
,
"assetNo"
,
"adminEmployeeId"
,
"adminName"
,
"adminTelNo"
,
"companyCode"
,
"external_id"
,
"assetNo"
,
"adminEmployeeId"
,
"adminName"
,
"adminTelNo"
,
"companyCode"
,
"companyDefault"
,
"companyName"
,
"configInfo"
,
"costCenter"
,
"costCenterCode"
,
"createddeptid"
,
"companyDefault"
,
"companyName"
,
"configInfo"
,
"costCenter"
,
"costCenterCode"
,
"createddeptid"
,
"createdtime"
,
"creater"
,
"currency"
,
"deviceBrand"
,
"deviceCountry"
,
"device
Type"
,
"deviceUser
"
,
"createdtime"
,
"creater"
,
"currency"
,
"deviceBrand"
,
"deviceCountry"
,
"device
Model"
,
"deviceType
"
,
"deviceUser
Name"
,
"devicesStatus"
,
"excludingTaxAmount"
,
"hasBeenRequisition"
,
"isDomesticFa
"
,
"deviceUser
"
,
"deviceUserName"
,
"devicesStatus"
,
"excludingTaxAmount"
,
"hasBeenRequisition
"
,
"is
ThereAnInventory"
,
"lineManager"
,
"lineManagerDept"
,
"lineManagerEmployId"
,
"localOffice
"
,
"is
DomesticFa"
,
"isThereAnInventory"
,
"lineManager"
,
"lineManagerDept"
,
"lineManagerEmployId
"
,
"
Model
"
,
"modifiedtime"
,
"modifier"
,
"name"
,
"owner"
,
"ownerdeptid"
,
"ownerdeptquerycode"
,
"
localOffice
"
,
"modifiedtime"
,
"modifier"
,
"name"
,
"owner"
,
"ownerdeptid"
,
"ownerdeptquerycode"
,
"purchaseDate"
,
"purchasePrice"
,
"sequenceno"
,
"sequencestatus"
,
"serialNo"
,
"taxAmount"
,
"purchaseDate"
,
"purchasePrice"
,
"sequenceno"
,
"sequencestatus"
,
"serialNo"
,
"taxAmount"
,
"totalPaymentAmount"
,
"userCountry"
,
"userEmployeeNo"
,
"userMailingAddress"
,
"userPhoneNo"
,
"totalPaymentAmount"
,
"userCountry"
,
"userEmployeeNo"
,
"userMailingAddress"
,
"userPhoneNo"
,
"version"
,
"warehousingDate"
,
"whetherTriggerRequisition"
,
"workflowinstanceid"
"version"
,
"warehousingDate"
,
"whetherTriggerRequisition"
,
"workflowinstanceid"
...
@@ -67,6 +67,7 @@ public final class OverseasFixedAssetFields {
...
@@ -67,6 +67,7 @@ public final class OverseasFixedAssetFields {
mapping
.
put
(
"currency"
,
"currency"
);
mapping
.
put
(
"currency"
,
"currency"
);
mapping
.
put
(
"deviceBrand"
,
"deviceBrand"
);
mapping
.
put
(
"deviceBrand"
,
"deviceBrand"
);
mapping
.
put
(
"deviceCountry"
,
"deviceCountry"
);
mapping
.
put
(
"deviceCountry"
,
"deviceCountry"
);
mapping
.
put
(
"deviceModel"
,
"deviceModel"
);
mapping
.
put
(
"deviceType"
,
"deviceType"
);
mapping
.
put
(
"deviceType"
,
"deviceType"
);
mapping
.
put
(
"deviceUser"
,
"deviceUser"
);
mapping
.
put
(
"deviceUser"
,
"deviceUser"
);
mapping
.
put
(
"deviceUserName"
,
"deviceUserName"
);
mapping
.
put
(
"deviceUserName"
,
"deviceUserName"
);
...
@@ -79,7 +80,6 @@ public final class OverseasFixedAssetFields {
...
@@ -79,7 +80,6 @@ public final class OverseasFixedAssetFields {
mapping
.
put
(
"lineManagerDept"
,
"lineManagerDept"
);
mapping
.
put
(
"lineManagerDept"
,
"lineManagerDept"
);
mapping
.
put
(
"lineManagerEmployId"
,
"lineManagerEmployId"
);
mapping
.
put
(
"lineManagerEmployId"
,
"lineManagerEmployId"
);
mapping
.
put
(
"localOffice"
,
"localOffice"
);
mapping
.
put
(
"localOffice"
,
"localOffice"
);
mapping
.
put
(
"Model"
,
"Model"
);
mapping
.
put
(
"modifiedtime"
,
"modifiedtime"
);
mapping
.
put
(
"modifiedtime"
,
"modifiedtime"
);
mapping
.
put
(
"modifier"
,
"modifier"
);
mapping
.
put
(
"modifier"
,
"modifier"
);
mapping
.
put
(
"name"
,
"name"
);
mapping
.
put
(
"name"
,
"name"
);
...
@@ -121,6 +121,7 @@ public final class OverseasFixedAssetFields {
...
@@ -121,6 +121,7 @@ public final class OverseasFixedAssetFields {
labels
.
put
(
"currency"
,
"币种"
);
labels
.
put
(
"currency"
,
"币种"
);
labels
.
put
(
"deviceBrand"
,
"品牌"
);
labels
.
put
(
"deviceBrand"
,
"品牌"
);
labels
.
put
(
"deviceCountry"
,
"设备国家"
);
labels
.
put
(
"deviceCountry"
,
"设备国家"
);
labels
.
put
(
"deviceModel"
,
"型号"
);
labels
.
put
(
"deviceType"
,
"设备类型"
);
labels
.
put
(
"deviceType"
,
"设备类型"
);
labels
.
put
(
"deviceUser"
,
"设备使用人"
);
labels
.
put
(
"deviceUser"
,
"设备使用人"
);
labels
.
put
(
"deviceUserName"
,
"设备使用人姓名"
);
labels
.
put
(
"deviceUserName"
,
"设备使用人姓名"
);
...
@@ -133,7 +134,6 @@ public final class OverseasFixedAssetFields {
...
@@ -133,7 +134,6 @@ public final class OverseasFixedAssetFields {
labels
.
put
(
"lineManagerDept"
,
"直属经理部门"
);
labels
.
put
(
"lineManagerDept"
,
"直属经理部门"
);
labels
.
put
(
"lineManagerEmployId"
,
"直属经理工号"
);
labels
.
put
(
"lineManagerEmployId"
,
"直属经理工号"
);
labels
.
put
(
"localOffice"
,
"本地办公室"
);
labels
.
put
(
"localOffice"
,
"本地办公室"
);
labels
.
put
(
"Model"
,
"型号"
);
labels
.
put
(
"modifiedtime"
,
"修改时间"
);
labels
.
put
(
"modifiedtime"
,
"修改时间"
);
labels
.
put
(
"modifier"
,
"修改人"
);
labels
.
put
(
"modifier"
,
"修改人"
);
labels
.
put
(
"name"
,
"数据标题"
);
labels
.
put
(
"name"
,
"数据标题"
);
...
...
查询海外固资所有.md
View file @
459ad18
## 查询
海外固资所有
## 查询
海外固资所有
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
|
  
currency | Currency | string | |
|
  
currency | Currency | string | |
|
  
deviceBrand | Brand | string | |
|
  
deviceBrand | Brand | string | |
|
  
deviceCountry | Country | string | |
|
  
deviceCountry | Country | string | |
|
  
deviceModel | 设备型号 | string | |
|
  
deviceType | Type Of Device | string | |
|
  
deviceType | Type Of Device | string | |
|
  
deviceUser | Device User | string | |
|
  
deviceUser | Device User | string | |
|
  
deviceUserName | Device User Name | string | |
|
  
deviceUserName | Device User Name | string | |
...
@@ -78,7 +79,6 @@
...
@@ -78,7 +79,6 @@
|
  
lineManagerDept | Line Manager Dept. | string | |
|
  
lineManagerDept | Line Manager Dept. | string | |
|
  
lineManagerEmployId | Line Manager Employee ID | string | |
|
  
lineManagerEmployId | Line Manager Employee ID | string | |
|
  
localOffice | Local Office | string | |
|
  
localOffice | Local Office | string | |
|
  
Model | Model 型号 | string | |
|
  
modifiedtime | 修改时间 | string(date-time) | |
|
  
modifiedtime | 修改时间 | string(date-time) | |
|
  
modifier | 修改人 | string | |
|
  
modifier | 修改人 | string | |
|
  
name | 数据标题 | string | |
|
  
name | 数据标题 | string | |
...
@@ -126,6 +126,7 @@
...
@@ -126,6 +126,7 @@
"currency"
:
""
,
"currency"
:
""
,
"deviceBrand"
:
""
,
"deviceBrand"
:
""
,
"deviceCountry"
:
""
,
"deviceCountry"
:
""
,
"deviceModel"
:
""
,
"deviceType"
:
""
,
"deviceType"
:
""
,
"deviceUser"
:
""
,
"deviceUser"
:
""
,
"deviceUserName"
:
""
,
"deviceUserName"
:
""
,
...
@@ -139,7 +140,6 @@
...
@@ -139,7 +140,6 @@
"lineManagerDept"
:
""
,
"lineManagerDept"
:
""
,
"lineManagerEmployId"
:
""
,
"lineManagerEmployId"
:
""
,
"localOffice"
:
""
,
"localOffice"
:
""
,
"Model"
:
""
,
"modifiedtime"
:
""
,
"modifiedtime"
:
""
,
"modifier"
:
""
,
"modifier"
:
""
,
"name"
:
""
,
"name"
:
""
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment