2 changed files with 83 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||
package com.kms.yxgh.df.controller.v2; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.kms.yxgh.df.dto.v2.DfProblemV2Dto; |
|||
import com.kms.yxgh.df.dto.v2.DfRecordSearchV2Dto; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.AllArgsConstructor; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
|
|||
@RestController |
|||
@AllArgsConstructor |
|||
@RequestMapping("/run/df/v2/problem") |
|||
@Api(tags = "堤防巡查缺陷v2") |
|||
public class DfCheckingProblemV2Controller { |
|||
|
|||
/** |
|||
* 查询堤防巡视检查记录列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("堤防巡查缺陷列表v2") |
|||
public IPage<DfProblemV2Dto> list(@RequestBody SearchParam<DfRecordSearchV2Dto> sp) { |
|||
return new Page<>(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.kms.yxgh.df.dto.v2; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.kms.yxgh.base.AddGroup; |
|||
import com.kms.yxgh.base.UpdateGroup; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
@ApiModel("堤防巡视检查记录详情v2") |
|||
public class DfProblemV2Dto { |
|||
|
|||
@ApiModelProperty("问题Id") |
|||
private String problemId; |
|||
|
|||
@ApiModelProperty("巡查项目ID") |
|||
private String checkingId; |
|||
|
|||
@ApiModelProperty("记录id") |
|||
private String recordId; |
|||
|
|||
@ApiModelProperty("巡查项目名称") |
|||
private String checkingName; |
|||
|
|||
@ApiModelProperty("状态") |
|||
private String status; |
|||
|
|||
@ApiModelProperty("巡查类型") |
|||
private String type; |
|||
|
|||
@ApiModelProperty("巡查类别") |
|||
private String category; |
|||
|
|||
@NotNull(message = "开始时间", groups = {AddGroup.class, UpdateGroup.class}) |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@ApiModelProperty("开始时间") |
|||
private Date startDate; |
|||
|
|||
@NotNull(message = "结束时间", groups = {AddGroup.class, UpdateGroup.class}) |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@ApiModelProperty("结束时间") |
|||
private Date endDate; |
|||
|
|||
@ApiModelProperty("巡查责任人") |
|||
private String dutyHolder; |
|||
|
|||
} |
Loading…
Reference in new issue