Commit 459ad18d by liudonglong

将海外固资型号字段由 Model 更正为接口实际字段名 deviceModel。

1 parent 87362ee5
......@@ -29,6 +29,13 @@ sql/create_overseas_tables.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. 修改配置
编辑 **`WEB-INF/config.txt`**(项目模板见根目录 `config.txt`):
......
-- ============================================================
-- 已有库增量:海外固资
-- 1. EAM_海外固资同步数据表 增加接口新字段 Model
-- 1. EAM_海外固资同步数据表 增加接口字段 deviceModel
-- 2. EAM_海外固资同步变更日志表 增加 创建人部门(costCenterCode/createddeptid 变动时落库)
-- ============================================================
-- 情况 A:尚未加过型号列
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_海外固资同步变更日志表`
ADD COLUMN `创建人部门` VARCHAR(128) DEFAULT NULL COMMENT '创建人部门变动后的值(未变则为空)' AFTER `成本中心描述`,
......
......@@ -30,6 +30,7 @@ CREATE TABLE `EAM_海外固资同步数据表` (
`currency` VARCHAR(32) DEFAULT NULL COMMENT 'Currency',
`deviceBrand` VARCHAR(128) DEFAULT NULL COMMENT 'Brand',
`deviceCountry` VARCHAR(128) DEFAULT NULL COMMENT 'Country',
`deviceModel` VARCHAR(255) DEFAULT NULL COMMENT '设备型号',
`deviceType` VARCHAR(128) DEFAULT NULL COMMENT 'Type Of Device',
`deviceUser` VARCHAR(64) DEFAULT NULL COMMENT 'Device User',
`deviceUserName` VARCHAR(128) DEFAULT NULL COMMENT 'Device User Name',
......@@ -42,7 +43,6 @@ CREATE TABLE `EAM_海外固资同步数据表` (
`lineManagerDept` VARCHAR(255) DEFAULT NULL COMMENT 'Line Manager Dept.',
`lineManagerEmployId` VARCHAR(64) DEFAULT NULL COMMENT 'Line Manager Employee ID',
`localOffice` VARCHAR(255) DEFAULT NULL COMMENT 'Local Office',
`Model` VARCHAR(255) DEFAULT NULL COMMENT 'Model 型号',
`modifiedtime` VARCHAR(64) DEFAULT NULL COMMENT '修改时间',
`modifier` VARCHAR(64) DEFAULT NULL COMMENT '修改人',
`name` VARCHAR(255) DEFAULT NULL COMMENT '数据标题',
......
......@@ -23,10 +23,10 @@ public final class OverseasFixedAssetFields {
public static final List<String> COMPARE_FIELDS = Collections.unmodifiableList(Arrays.asList(
"external_id", "assetNo", "adminEmployeeId", "adminName", "adminTelNo", "companyCode",
"companyDefault", "companyName", "configInfo", "costCenter", "costCenterCode", "createddeptid",
"createdtime", "creater", "currency", "deviceBrand", "deviceCountry", "deviceType", "deviceUser",
"deviceUserName", "devicesStatus", "excludingTaxAmount", "hasBeenRequisition", "isDomesticFa",
"isThereAnInventory", "lineManager", "lineManagerDept", "lineManagerEmployId", "localOffice",
"Model", "modifiedtime", "modifier", "name", "owner", "ownerdeptid", "ownerdeptquerycode",
"createdtime", "creater", "currency", "deviceBrand", "deviceCountry", "deviceModel", "deviceType",
"deviceUser", "deviceUserName", "devicesStatus", "excludingTaxAmount", "hasBeenRequisition",
"isDomesticFa", "isThereAnInventory", "lineManager", "lineManagerDept", "lineManagerEmployId",
"localOffice", "modifiedtime", "modifier", "name", "owner", "ownerdeptid", "ownerdeptquerycode",
"purchaseDate", "purchasePrice", "sequenceno", "sequencestatus", "serialNo", "taxAmount",
"totalPaymentAmount", "userCountry", "userEmployeeNo", "userMailingAddress", "userPhoneNo",
"version", "warehousingDate", "whetherTriggerRequisition", "workflowinstanceid"
......@@ -67,6 +67,7 @@ public final class OverseasFixedAssetFields {
mapping.put("currency", "currency");
mapping.put("deviceBrand", "deviceBrand");
mapping.put("deviceCountry", "deviceCountry");
mapping.put("deviceModel", "deviceModel");
mapping.put("deviceType", "deviceType");
mapping.put("deviceUser", "deviceUser");
mapping.put("deviceUserName", "deviceUserName");
......@@ -79,7 +80,6 @@ public final class OverseasFixedAssetFields {
mapping.put("lineManagerDept", "lineManagerDept");
mapping.put("lineManagerEmployId", "lineManagerEmployId");
mapping.put("localOffice", "localOffice");
mapping.put("Model", "Model");
mapping.put("modifiedtime", "modifiedtime");
mapping.put("modifier", "modifier");
mapping.put("name", "name");
......@@ -121,6 +121,7 @@ public final class OverseasFixedAssetFields {
labels.put("currency", "币种");
labels.put("deviceBrand", "品牌");
labels.put("deviceCountry", "设备国家");
labels.put("deviceModel", "型号");
labels.put("deviceType", "设备类型");
labels.put("deviceUser", "设备使用人");
labels.put("deviceUserName", "设备使用人姓名");
......@@ -133,7 +134,6 @@ public final class OverseasFixedAssetFields {
labels.put("lineManagerDept", "直属经理部门");
labels.put("lineManagerEmployId", "直属经理工号");
labels.put("localOffice", "本地办公室");
labels.put("Model", "型号");
labels.put("modifiedtime", "修改时间");
labels.put("modifier", "修改人");
labels.put("name", "数据标题");
......
## 查询海外固资所有
## 查询海外固资所有
......@@ -65,6 +65,7 @@
| &emsp;&emsp;currency | Currency | string | |
| &emsp;&emsp;deviceBrand | Brand | string | |
| &emsp;&emsp;deviceCountry | Country | string | |
| &emsp;&emsp;deviceModel | 设备型号 | string | |
| &emsp;&emsp;deviceType | Type Of Device | string | |
| &emsp;&emsp;deviceUser | Device User | string | |
| &emsp;&emsp;deviceUserName | Device User Name | string | |
......@@ -78,7 +79,6 @@
| &emsp;&emsp;lineManagerDept | Line Manager Dept. | string | |
| &emsp;&emsp;lineManagerEmployId | Line Manager Employee ID | string | |
| &emsp;&emsp;localOffice | Local Office | string | |
| &emsp;&emsp;Model | Model 型号 | string | |
| &emsp;&emsp;modifiedtime | 修改时间 | string(date-time) | |
| &emsp;&emsp;modifier | 修改人 | string | |
| &emsp;&emsp;name | 数据标题 | string | |
......@@ -126,6 +126,7 @@
"currency": "",
"deviceBrand": "",
"deviceCountry": "",
"deviceModel": "",
"deviceType": "",
"deviceUser": "",
"deviceUserName": "",
......@@ -139,7 +140,6 @@
"lineManagerDept": "",
"lineManagerEmployId": "",
"localOffice": "",
"Model": "",
"modifiedtime": "",
"modifier": "",
"name": "",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!