feat:口门相关管理

koumen
dearLin 2026-03-16 17:43:25 +08:00
parent 6cfd3a6fcf
commit 52ede3a50e
17 changed files with 38 additions and 31 deletions

View File

@ -38,7 +38,10 @@ public class VehicleViolationsAddExe {
List<VehicleViolationsE> vehicleViolationsList = vehicleViolationsGateway.listVehicleViolationByLicenceNo(cmd.getLicenceNo()); List<VehicleViolationsE> vehicleViolationsList = vehicleViolationsGateway.listVehicleViolationByLicenceNo(cmd.getLicenceNo());
if (ciolationProperties.getLimit() != null && (vehicleViolationsList.size() + 1) >= ciolationProperties.getLimit()) { if (ciolationProperties.getLimit() != null && (vehicleViolationsList.size() + 1) >= ciolationProperties.getLimit()) {
// 进入黑名单 // 进入黑名单
vehicleBlackGateway.saveIfAbsent(cmd.getLicenceNo()); vehicleBlackGateway.saveIfAbsent(cmd.getLicenceNo()
,cmd.getVehicleType(),cmd.getVehicleTypeName()
,cmd.getLicenceType(),cmd.getLicenceTypeName()
);
// 申请的车辆拉黑 // 申请的车辆拉黑
vehicleApplyGateway.updateEvehicleBlockedByLicenceNo(cmd.getLicenceNo(),1); vehicleApplyGateway.updateEvehicleBlockedByLicenceNo(cmd.getLicenceNo(),1);
// 对接表里进行车辆拉黑的处理。 // 对接表里进行车辆拉黑的处理。

View File

@ -63,7 +63,7 @@ public class PersonApplyAddCmd extends Command {
@NotEmpty(message = "身份证号码不能为空") @NotEmpty(message = "身份证号码不能为空")
private String userCard; private String userCard;
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true) @ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
private Long informSignId; private String informSignId;
} }

View File

@ -72,7 +72,7 @@ public class PersonApplyUpdateCmd extends Command {
private String userCard; private String userCard;
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true) @ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
@NotNull(message = "告知签字不能为空") @NotNull(message = "告知签字不能为空")
private Long informSignId; private String informSignId;
@ApiModelProperty(value = "项目id", name = "projectId", required = true) @ApiModelProperty(value = "项目id", name = "projectId", required = true)
@NotNull(message = "项目id不能为空") @NotNull(message = "项目id不能为空")
private Long projectId; private Long projectId;

View File

@ -55,12 +55,12 @@ public class VehicleApplyAddCmd extends Command {
private String emissionStandardsName; private String emissionStandardsName;
@ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId") @ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId")
@NotNull(message = "行驶证照片不能为空") @NotNull(message = "行驶证照片不能为空")
private Long drivingLicenseId; private String drivingLicenseId;
@ApiModelProperty(value = "车辆照片", name = "attachmentId") @ApiModelProperty(value = "车辆照片", name = "attachmentId")
@NotNull(message = "车辆照片不能为空") @NotNull(message = "车辆照片不能为空")
private Long attachmentId; private String attachmentId;
@ApiModelProperty(value = "告知签字", name = "informSignId") @ApiModelProperty(value = "告知签字", name = "informSignId")
private Long informSignId; private String informSignId;
@ApiModelProperty(value = "项目id", name = "projectId") @ApiModelProperty(value = "项目id", name = "projectId")
private Long projectId; private Long projectId;
@ApiModelProperty(value = "项目名称", name = "projectName") @ApiModelProperty(value = "项目名称", name = "projectName")

View File

@ -70,13 +70,13 @@ public class VehicleApplyUpdateCmd extends Command {
private String emissionStandardsName; private String emissionStandardsName;
@ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId", required = true) @ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId", required = true)
@NotNull(message = "行驶证照片不能为空") @NotNull(message = "行驶证照片不能为空")
private Long drivingLicenseId; private String drivingLicenseId;
@ApiModelProperty(value = "车辆照片", name = "attachmentId", required = true) @ApiModelProperty(value = "车辆照片", name = "attachmentId", required = true)
@NotNull(message = "车辆照片不能为空") @NotNull(message = "车辆照片不能为空")
private Long attachmentId; private String attachmentId;
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true) @ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
@NotNull(message = "告知签字不能为空") @NotNull(message = "告知签字不能为空")
private Long informSignId; private String informSignId;
@ApiModelProperty(value = "项目id", name = "projectId", required = true) @ApiModelProperty(value = "项目id", name = "projectId", required = true)
private Long projectId; private Long projectId;
@ApiModelProperty(value = "项目名称", name = "projectName", required = true) @ApiModelProperty(value = "项目名称", name = "projectName", required = true)

View File

@ -36,7 +36,7 @@ public class XgfPersonApplyAddCmd extends Command {
private String visitEndTime; private String visitEndTime;
@ApiModelProperty(value = "告知签字", name = "informSignId") @ApiModelProperty(value = "告知签字", name = "informSignId")
private Long informSignId; private String informSignId;
@ApiModelProperty(value = "口门id临时申请用。", name = "mkmjId") @ApiModelProperty(value = "口门id临时申请用。", name = "mkmjId")
private Long mkmjId; private Long mkmjId;
@ApiModelProperty(value = "项目id", name = "projectId") @ApiModelProperty(value = "项目id", name = "projectId")

View File

@ -37,7 +37,7 @@ public class XgfPersonApplyUpdateCmd extends Command {
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true) @ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
// @NotNull(message = "告知签字不能为空") // @NotNull(message = "告知签字不能为空")
private Long informSignId; private String informSignId;
@ApiModelProperty(value = "项目id", name = "projectId", required = true) @ApiModelProperty(value = "项目id", name = "projectId", required = true)
// @NotNull(message = "项目id不能为空") // @NotNull(message = "项目id不能为空")
private Long projectId; private Long projectId;

View File

@ -58,7 +58,7 @@ public class PersonApplyCO extends ClientObject {
private String userCard; private String userCard;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private Long informSignId; private String informSignId;
//项目id //项目id
@ApiModelProperty(value = "项目id") @ApiModelProperty(value = "项目id")
private Long projectId; private Long projectId;

View File

@ -83,13 +83,13 @@ public class VehicleApplyCO extends ClientObject {
private String emissionStandardsName; private String emissionStandardsName;
//行驶证照片 //行驶证照片
@ApiModelProperty(value = "行驶证照片") @ApiModelProperty(value = "行驶证照片")
private Long drivingLicenseId; private String drivingLicenseId;
//车辆照片 //车辆照片
@ApiModelProperty(value = "车辆照片") @ApiModelProperty(value = "车辆照片")
private Long attachmentId; private String attachmentId;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private Long informSignId; private String informSignId;
//项目id //项目id
@ApiModelProperty(value = "项目id") @ApiModelProperty(value = "项目id")
private Long projectId; private Long projectId;

View File

@ -33,7 +33,7 @@ public class XgfPersonApplyCO extends ClientObject {
private String visitEndTime; private String visitEndTime;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字",name = "informSignId") @ApiModelProperty(value = "告知签字",name = "informSignId")
private Long informSignId; private String informSignId;
//项目id //项目id
@ApiModelProperty(value = "项目id",name = "projectId") @ApiModelProperty(value = "项目id",name = "projectId")
private Long projectId; private Long projectId;

View File

@ -29,7 +29,7 @@ public interface VehicleBlackGateway {
Boolean deletedVehicleBlackByIds(Long[] id); Boolean deletedVehicleBlackByIds(Long[] id);
void saveIfAbsent(String licenceNo); void saveIfAbsent(String licenceNo,String vehicleType,String vehicleTypeName,String licenceType,String licenceTypeName);
VehicleBlackE getInfoById(Long id); VehicleBlackE getInfoById(Long id);
} }

View File

@ -60,11 +60,11 @@ public class VehicleApplyE extends BaseE {
private String emissionStandards; private String emissionStandards;
private String emissionStandardsName; private String emissionStandardsName;
//行驶证照片 //行驶证照片
private Long drivingLicenseId; private String drivingLicenseId;
//车辆照片 //车辆照片
private Long attachmentId; private String attachmentId;
//告知签字 //告知签字
private Long informSignId; private String informSignId;
//项目id //项目id
private Long projectId; private Long projectId;
//项目名称 //项目名称

View File

@ -31,7 +31,7 @@ public class XgfApplyPersonE extends BaseE {
//访问结束时间 //访问结束时间
private String visitEndTime; private String visitEndTime;
//告知签字 //告知签字
private Long informSignId; private String informSignId;
//项目id //项目id
private Long projectId; private Long projectId;
//项目名称 //项目名称

View File

@ -50,11 +50,15 @@ public class VehicleBlackGatewayImpl implements VehicleBlackGateway {
} }
@Override @Override
public void saveIfAbsent(String licenceNo) { public void saveIfAbsent(String licenceNo,String vehicleType,String vehicleTypeName,String licenceType,String licenceTypeName) {
List<VehicleBlackDO> licenceNoList = vehicleBlackRepository.list(new QueryWrapper<VehicleBlackDO>().eq("licence_no", licenceNo)); List<VehicleBlackDO> licenceNoList = vehicleBlackRepository.list(new QueryWrapper<VehicleBlackDO>().eq("licence_no", licenceNo));
if (licenceNoList.isEmpty()) {
VehicleBlackDO d = new VehicleBlackDO(); VehicleBlackDO d = new VehicleBlackDO();
d.setLicenceNo(licenceNo); d.setLicenceNo(licenceNo);
if (licenceNoList.isEmpty()) { d.setLicenceType(licenceType);
d.setLicenceTypeName(licenceTypeName);
d.setVehicleType(vehicleType);
d.setVehicleTypeName(vehicleTypeName);
vehicleBlackRepository.save(d); vehicleBlackRepository.save(d);
} }
} }

View File

@ -83,13 +83,13 @@ public class VehicleApplyDO extends BaseDO {
private String emissionStandardsName; private String emissionStandardsName;
//行驶证照片 //行驶证照片
@ApiModelProperty(value = "行驶证照片") @ApiModelProperty(value = "行驶证照片")
private Long drivingLicenseId; private String drivingLicenseId;
//车辆照片 //车辆照片
@ApiModelProperty(value = "车辆照片") @ApiModelProperty(value = "车辆照片")
private Long attachmentId; private String attachmentId;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private Long informSignId; private String informSignId;
//项目id //项目id
@ApiModelProperty(value = "项目id") @ApiModelProperty(value = "项目id")
private Long projectId; private Long projectId;

View File

@ -60,15 +60,15 @@ public class VehicleBlackDO extends BaseDO {
//行驶证照片 //行驶证照片
@ApiModelProperty(value = "行驶证照片") @ApiModelProperty(value = "行驶证照片")
@TableField(exist = false) @TableField(exist = false)
private Long drivingLicenseId; private String drivingLicenseId;
//车辆照片 //车辆照片
@ApiModelProperty(value = "车辆照片") @ApiModelProperty(value = "车辆照片")
@TableField(exist = false) @TableField(exist = false)
private Long attachmentId; private String attachmentId;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
@TableField(exist = false) @TableField(exist = false)
private Long informSignId; private String informSignId;
//项目id //项目id
@ApiModelProperty(value = "项目id") @ApiModelProperty(value = "项目id")
@TableField(exist = false) @TableField(exist = false)

View File

@ -35,7 +35,7 @@ public class XgfApplyPersonDO extends BaseDO {
private String visitEndTime; private String visitEndTime;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private Long informSignId; private String informSignId;
private Long mkmjId; private Long mkmjId;
@TableField(exist = false) @TableField(exist = false)
private Long mkmjName; private Long mkmjName;