fix 項目数据创建时间

This commit is contained in:
renzexin 2024-08-23 16:22:29 +08:00
parent 038562f5e4
commit 6ad30ac092
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public class ProjectQuery extends CommonParam {
*/
@Condition(name = "create_time", type = Condition.ConditionType.between,tableName = "wrk_info")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATETIME_PATTERN)
private List<LocalDateTime> createTimes;
private List<String> createTimes;
/**
* 项目状态
*/

View File

@ -186,6 +186,8 @@ public class WrkProjectController {
@RequiresPermissions("inspection:project:info")
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));
}