Commit 2797f75f by guominglei

修改参数类型为String

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