制度手册文件日期转换

This commit is contained in:
zhal 2024-09-03 17:27:52 +08:00
parent 72199f31dc
commit e33fa5e05e
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@ public class Report1Gener {
public static boolean isRunning = false;
public static final Object _lock = new Object();
private UserContext userContext = null;
private DCContext sourceContext = null;
GenerLogExd log = new GenerLogExd();
//word换行符
private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"0\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>";
@ -64,6 +65,7 @@ public class Report1Gener {
// isRunning = true;
// userContext = UserContext.fromUID(model.getUserId());
userContext = DispatcherRequest.getUserContext();
sourceContext = dcContext;
String teamId = model.getTeamId();
String wsId = model.getWsId();
log.info("execute ready...");
@ -275,7 +277,7 @@ public class Report1Gener {
if (UtilString.isNotEmpty(val)) {
try {
Timestamp timestamp = UtilDate.parseTsFromDateTime(val);
val = UtilDate.yearFormat(timestamp) + "" + Integer.parseInt(UtilDate.monthFormat(timestamp)) + "" + UtilDate.dayFormat(timestamp) + "";
val = UtilDate.yearFormat(timestamp) + "" + UtilDate.monthFormat(timestamp) + "" + UtilDate.dayFormat(timestamp) + "";
} catch (Exception e) {
//e.printStackTrace();
}