Commit 39923f31 by wuwenlong

common method add create Name and update name

parent 851b0e26
...@@ -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";
......
...@@ -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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment