String fieldIdStr = request.getParameter("fieldId");
String startTime = request.getParameter("startTime");
String endTime = request.getParameter("endTime");
String[] statisticOption = request.getParameterValues("statisticOption[]");
Template template = das.queryTemplate(DataAccessFactory.getInstance().createUUID(templateIdStr));
Flow flow = das.queryFlow(template.getFlowId());
Timestamp startTimestamp = null;
if (startTime != null && !startTime.equals("null") && startTime.length() > 0) {
startTimestamp = Date.valueOf(startTime).toTimestamp();
}
Timestamp endTimestamp = null;
if (endTime != null && !endTime.equals("null") && endTime.length() > 0) {
endTimestamp = Date.valueOf(endTime).toTimestamp();
}
String name = template.getName();
if (fieldIdStr.equals("createUser")) {
name += ":创建人";
}else if (fieldIdStr.equals("assignUser")) {
name += ":指派人";
}else if (fieldIdStr.equals("statusId")) {
name += ":状态";
}else if (CommonUtil.isPosNum(fieldIdStr)) {
//表单字段
Field field = template.getField(DataAccessFactory.getInstance().createUUID(fieldIdStr));
if (field == null) {
return "";
}
name += ":"+field.getName();
}