fix 項目数据创建时间
This commit is contained in:
parent
038562f5e4
commit
6ad30ac092
|
|
@ -40,7 +40,7 @@ public class ProjectQuery extends CommonParam {
|
||||||
*/
|
*/
|
||||||
@Condition(name = "create_time", type = Condition.ConditionType.between,tableName = "wrk_info")
|
@Condition(name = "create_time", type = Condition.ConditionType.between,tableName = "wrk_info")
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATETIME_PATTERN)
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATETIME_PATTERN)
|
||||||
private List<LocalDateTime> createTimes;
|
private List<String> createTimes;
|
||||||
/**
|
/**
|
||||||
* 项目状态
|
* 项目状态
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,8 @@ public class WrkProjectController {
|
||||||
@RequiresPermissions("inspection:project:info")
|
@RequiresPermissions("inspection:project:info")
|
||||||
public AjaxResult projectData(ProjectQuery projectQuery)
|
public AjaxResult projectData(ProjectQuery projectQuery)
|
||||||
{
|
{
|
||||||
|
List<String> createTimes = projectQuery.getCreateTimes();
|
||||||
|
projectQuery.setCreateTimes(extendTimeRange(createTimes, " 00:00:00", " 23:59:59"));
|
||||||
return AjaxResult.success(projectService.projectData(projectQuery));
|
return AjaxResult.success(projectService.projectData(projectQuery));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue