From 28f74774e2e10deeb1c5d9599c4db6472f3de7b6 Mon Sep 17 00:00:00 2001 From: Angel <1050374295@qq.com> Date: Sat, 24 Feb 2024 09:48:54 +0800 Subject: [PATCH] DDDDD---BINGTU,BOATUSER --- .../controller/BoatUserInfoController.java | 2 +- .../ruoyi/database/domain/BoatUserInfo.java | 167 +----------------- 2 files changed, 7 insertions(+), 162 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/BoatUserInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/BoatUserInfoController.java index 8415094..9dbdd71 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/BoatUserInfoController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/BoatUserInfoController.java @@ -28,7 +28,7 @@ public class BoatUserInfoController extends BaseController { @ApiOperation("查询船员信息表") public TableDataInfo list(BoatUserInfo boatUserInfo){ startPage(); - List list = boatUserInfoService.list(new QueryWrapper<>()); + List list = boatUserInfoService.list(new QueryWrapper<>(boatUserInfo)); return getDataTable(list); } } diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/BoatUserInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/BoatUserInfo.java index 607c0b0..d799c4c 100644 --- a/gather-app/src/main/java/com/ruoyi/database/domain/BoatUserInfo.java +++ b/gather-app/src/main/java/com/ruoyi/database/domain/BoatUserInfo.java @@ -1,6 +1,8 @@ package com.ruoyi.database.domain; +import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModelProperty; +import lombok.Data; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.Size; @@ -10,218 +12,61 @@ import java.io.Serializable; * * @TableName boat_user_info */ +@TableName(value ="boat_user_info") +@Data public class BoatUserInfo implements Serializable { /** * 姓名 */ - @Size(max= 20,message="编码长度不能超过20") @ApiModelProperty("姓名") - @Length(max= 20,message="编码长度不能超过20") private String name; /** * 身份证 */ - @Size(max= 100,message="编码长度不能超过100") @ApiModelProperty("身份证") - @Length(max= 100,message="编码长度不能超过100") private String idCard; /** * 手机号码 */ - @Size(max= 20,message="编码长度不能超过20") @ApiModelProperty("手机号码") - @Length(max= 20,message="编码长度不能超过20") private String phone; /** * 户籍地址 */ - @Size(max= 255,message="编码长度不能超过255") @ApiModelProperty("户籍地址") - @Length(max= 255,message="编码长度不能超过255") private String registeredResidenceAddress; /** * 长期居住地 */ - @Size(max= 255,message="编码长度不能超过255") @ApiModelProperty("长期居住地") - @Length(max= 255,message="编码长度不能超过255") private String longtimeLiveAddress; /** * 船名 */ - @Size(max= 50,message="编码长度不能超过50") @ApiModelProperty("船名") - @Length(max= 50,message="编码长度不能超过50") private String boatName; /** * 船舶证号 */ - @Size(max= 50,message="编码长度不能超过50") @ApiModelProperty("船舶证号") - @Length(max= 50,message="编码长度不能超过50") private String shipCertificateNumber; /** * 停泊港 */ - @Size(max= 30,message="编码长度不能超过30") @ApiModelProperty("停泊港") - @Length(max= 30,message="编码长度不能超过30") private String portOfCall; /** * 报备日期 */ - @Size(max= 30,message="编码长度不能超过30") + @ApiModelProperty("报备日期") - @Length(max= 30,message="编码长度不能超过30") private String reportingTime; /** * 所属派出所 */ - @Size(max= 50,message="编码长度不能超过50") + @ApiModelProperty("所属派出所") - @Length(max= 50,message="编码长度不能超过50") private String belongingToPoliceStation; - /** - * 姓名 - */ - private void setName(String name){ - this.name = name; - } - - /** - * 身份证 - */ - private void setIdCard(String idCard){ - this.idCard = idCard; - } - - /** - * 手机号码 - */ - private void setPhone(String phone){ - this.phone = phone; - } - - /** - * 户籍地址 - */ - private void setRegisteredResidenceAddress(String registeredResidenceAddress){ - this.registeredResidenceAddress = registeredResidenceAddress; - } - - /** - * 长期居住地 - */ - private void setLongtimeLiveAddress(String longtimeLiveAddress){ - this.longtimeLiveAddress = longtimeLiveAddress; - } - - /** - * 船名 - */ - private void setBoatName(String boatName){ - this.boatName = boatName; - } - - /** - * 船舶证号 - */ - private void setShipCertificateNumber(String shipCertificateNumber){ - this.shipCertificateNumber = shipCertificateNumber; - } - - /** - * 停泊港 - */ - private void setPortOfCall(String portOfCall){ - this.portOfCall = portOfCall; - } - - /** - * 报备日期 - */ - private void setReportingTime(String reportingTime){ - this.reportingTime = reportingTime; - } - - /** - * 所属派出所 - */ - private void setBelongingToPoliceStation(String belongingToPoliceStation){ - this.belongingToPoliceStation = belongingToPoliceStation; - } - - - /** - * 姓名 - */ - private String getName(){ - return this.name; - } - - /** - * 身份证 - */ - private String getIdCard(){ - return this.idCard; - } - - /** - * 手机号码 - */ - private String getPhone(){ - return this.phone; - } - - /** - * 户籍地址 - */ - private String getRegisteredResidenceAddress(){ - return this.registeredResidenceAddress; - } - - /** - * 长期居住地 - */ - private String getLongtimeLiveAddress(){ - return this.longtimeLiveAddress; - } - - /** - * 船名 - */ - private String getBoatName(){ - return this.boatName; - } - - /** - * 船舶证号 - */ - private String getShipCertificateNumber(){ - return this.shipCertificateNumber; - } - - /** - * 停泊港 - */ - private String getPortOfCall(){ - return this.portOfCall; - } - - /** - * 报备日期 - */ - private String getReportingTime(){ - return this.reportingTime; - } - - /** - * 所属派出所 - */ - private String getBelongingToPoliceStation(){ - return this.belongingToPoliceStation; - } - }