Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
39923f31
Commit
39923f31
authored
Jan 12, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common method add create Name and update name
parent
851b0e26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
HPConstants.java
src/main/java/com/baosight/hpjx/common/HPConstants.java
+6
-0
CommonMethod.java
src/main/java/com/baosight/hpjx/util/CommonMethod.java
+5
-2
No files found.
src/main/java/com/baosight/hpjx/common/HPConstants.java
View file @
39923f31
...
@@ -12,12 +12,18 @@ public class HPConstants {
...
@@ -12,12 +12,18 @@ public class HPConstants {
//創建人
//創建人
public
static
final
String
SQL_FIELD_CREATED_BY
=
"createdBy"
;
public
static
final
String
SQL_FIELD_CREATED_BY
=
"createdBy"
;
//創建人名称
public
static
final
String
SQL_FIELD_CREATED_NAME
=
"createdName"
;
//創建時間
//創建時間
public
static
final
String
SQL_FIELD_CREATED_TIME
=
"createdTime"
;
public
static
final
String
SQL_FIELD_CREATED_TIME
=
"createdTime"
;
//修改人
//修改人
public
static
final
String
SQL_FIELD_UPDATED_BY
=
"updatedBy"
;
public
static
final
String
SQL_FIELD_UPDATED_BY
=
"updatedBy"
;
//修改人名称
public
static
final
String
SQL_FIELD_UPDATED_NAME
=
"updatedName"
;
//修改時間
//修改時間
public
static
final
String
SQL_FIELD_UPDATED_TIME
=
"updatedTime"
;
public
static
final
String
SQL_FIELD_UPDATED_TIME
=
"updatedTime"
;
...
...
src/main/java/com/baosight/hpjx/util/CommonMethod.java
View file @
39923f31
...
@@ -89,9 +89,12 @@ public class CommonMethod {
...
@@ -89,9 +89,12 @@ public class CommonMethod {
for
(
int
i
=
0
;
i
<
block
.
getRowCount
();
i
++){
for
(
int
i
=
0
;
i
<
block
.
getRowCount
();
i
++){
//TODO 公司代码待补充
//TODO 公司代码待补充
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_COMPANYCODE
,
""
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_COMPANYCODE
,
""
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_CREATED_BY
,
userId
+
HPConstants
.
SPLICING_SYMBOL
+
userName
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_CREATED_BY
,
userId
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_CREATED_NAME
,
userName
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_CREATED_TIME
,
time
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_CREATED_TIME
,
time
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_UPDATED_BY
,
userId
+
HPConstants
.
SPLICING_SYMBOL
+
userName
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_UPDATED_BY
,
userId
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_UPDATED_NAME
,
userName
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_UPDATED_TIME
,
time
);
block
.
setCell
(
i
,
HPConstants
.
SQL_FIELD_UPDATED_TIME
,
time
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment