Commit 2797f75f by guominglei

修改参数类型为String

parent 43de15d2
......@@ -44,6 +44,7 @@ import static com.alibaba.fastjson.serializer.SerializerFeature.WriteClassName;
@Transactional(rollbackFor = Exception.class)
public class ApiFlowServiceImpl implements ApiFlowService {
private final static SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
private final static SimpleDateFormat dateTimeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@Resource
private FlowMapper flowMapper;
......@@ -667,8 +668,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
if(StringUtils.isNotEmpty(executeStatus)){
executeStatusList = Arrays.asList(executeStatus.split(","));
}
Date startDate = new Date(startTime);
Date endDate = new Date(endTime);
String startDate = dateTimeFormat.format(new Date(startTime));
String endDate = dateTimeFormat.format(new Date(endTime));
List<RunRecording> runRecordList = runRecordingMapper.findByStartAndEndTime(startDate, endDate, flowIds, scheduleStatusList, executeStatusList);
return runRecordList;
......
......@@ -139,8 +139,8 @@ public interface RunRecordingMapper {
*/
List<RunRecording> findUnFinishByRunId(String runId);
List<RunRecording> findByStartAndEndTime(@Param("startDate")Date startDate,
@Param("endDate")Date endDate,
List<RunRecording> findByStartAndEndTime(@Param("startDate")String startDate,
@Param("endDate")String endDate,
@Param("flowIds")List<Integer> flowIds,
@Param("scheduleStatusList")List<String> scheduleStatusList,
@Param("executeStatusList")List<String> executeStatusList);
......
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