feat:口门相关管理
parent
6cfd3a6fcf
commit
52ede3a50e
|
|
@ -38,7 +38,10 @@ public class VehicleViolationsAddExe {
|
|||
List<VehicleViolationsE> vehicleViolationsList = vehicleViolationsGateway.listVehicleViolationByLicenceNo(cmd.getLicenceNo());
|
||||
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);
|
||||
// 对接表里进行车辆拉黑的处理。
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class PersonApplyAddCmd extends Command {
|
|||
@NotEmpty(message = "身份证号码不能为空")
|
||||
private String userCard;
|
||||
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public class PersonApplyUpdateCmd extends Command {
|
|||
private String userCard;
|
||||
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
|
||||
@NotNull(message = "告知签字不能为空")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
@ApiModelProperty(value = "项目id", name = "projectId", required = true)
|
||||
@NotNull(message = "项目id不能为空")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -55,12 +55,12 @@ public class VehicleApplyAddCmd extends Command {
|
|||
private String emissionStandardsName;
|
||||
@ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId")
|
||||
@NotNull(message = "行驶证照片不能为空")
|
||||
private Long drivingLicenseId;
|
||||
private String drivingLicenseId;
|
||||
@ApiModelProperty(value = "车辆照片", name = "attachmentId")
|
||||
@NotNull(message = "车辆照片不能为空")
|
||||
private Long attachmentId;
|
||||
private String attachmentId;
|
||||
@ApiModelProperty(value = "告知签字", name = "informSignId")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
@ApiModelProperty(value = "项目id", name = "projectId")
|
||||
private Long projectId;
|
||||
@ApiModelProperty(value = "项目名称", name = "projectName")
|
||||
|
|
|
|||
|
|
@ -70,13 +70,13 @@ public class VehicleApplyUpdateCmd extends Command {
|
|||
private String emissionStandardsName;
|
||||
@ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId", required = true)
|
||||
@NotNull(message = "行驶证照片不能为空")
|
||||
private Long drivingLicenseId;
|
||||
private String drivingLicenseId;
|
||||
@ApiModelProperty(value = "车辆照片", name = "attachmentId", required = true)
|
||||
@NotNull(message = "车辆照片不能为空")
|
||||
private Long attachmentId;
|
||||
private String attachmentId;
|
||||
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
|
||||
@NotNull(message = "告知签字不能为空")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
@ApiModelProperty(value = "项目id", name = "projectId", required = true)
|
||||
private Long projectId;
|
||||
@ApiModelProperty(value = "项目名称", name = "projectName", required = true)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class XgfPersonApplyAddCmd extends Command {
|
|||
private String visitEndTime;
|
||||
|
||||
@ApiModelProperty(value = "告知签字", name = "informSignId")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
@ApiModelProperty(value = "口门id,临时申请用。", name = "mkmjId")
|
||||
private Long mkmjId;
|
||||
@ApiModelProperty(value = "项目id", name = "projectId")
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class XgfPersonApplyUpdateCmd extends Command {
|
|||
|
||||
@ApiModelProperty(value = "告知签字", name = "informSignId", required = true)
|
||||
// @NotNull(message = "告知签字不能为空")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
@ApiModelProperty(value = "项目id", name = "projectId", required = true)
|
||||
// @NotNull(message = "项目id不能为空")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class PersonApplyCO extends ClientObject {
|
|||
private String userCard;
|
||||
//告知签字
|
||||
@ApiModelProperty(value = "告知签字")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
@ApiModelProperty(value = "项目id")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -83,13 +83,13 @@ public class VehicleApplyCO extends ClientObject {
|
|||
private String emissionStandardsName;
|
||||
//行驶证照片
|
||||
@ApiModelProperty(value = "行驶证照片")
|
||||
private Long drivingLicenseId;
|
||||
private String drivingLicenseId;
|
||||
//车辆照片
|
||||
@ApiModelProperty(value = "车辆照片")
|
||||
private Long attachmentId;
|
||||
private String attachmentId;
|
||||
//告知签字
|
||||
@ApiModelProperty(value = "告知签字")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
@ApiModelProperty(value = "项目id")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public class XgfPersonApplyCO extends ClientObject {
|
|||
private String visitEndTime;
|
||||
//告知签字
|
||||
@ApiModelProperty(value = "告知签字",name = "informSignId")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
@ApiModelProperty(value = "项目id",name = "projectId")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public interface VehicleBlackGateway {
|
|||
|
||||
Boolean deletedVehicleBlackByIds(Long[] id);
|
||||
|
||||
void saveIfAbsent(String licenceNo);
|
||||
void saveIfAbsent(String licenceNo,String vehicleType,String vehicleTypeName,String licenceType,String licenceTypeName);
|
||||
VehicleBlackE getInfoById(Long id);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,11 +60,11 @@ public class VehicleApplyE extends BaseE {
|
|||
private String emissionStandards;
|
||||
private String emissionStandardsName;
|
||||
//行驶证照片
|
||||
private Long drivingLicenseId;
|
||||
private String drivingLicenseId;
|
||||
//车辆照片
|
||||
private Long attachmentId;
|
||||
private String attachmentId;
|
||||
//告知签字
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
private Long projectId;
|
||||
//项目名称
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class XgfApplyPersonE extends BaseE {
|
|||
//访问结束时间
|
||||
private String visitEndTime;
|
||||
//告知签字
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
private Long projectId;
|
||||
//项目名称
|
||||
|
|
|
|||
|
|
@ -50,11 +50,15 @@ public class VehicleBlackGatewayImpl implements VehicleBlackGateway {
|
|||
}
|
||||
|
||||
@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));
|
||||
if (licenceNoList.isEmpty()) {
|
||||
VehicleBlackDO d = new VehicleBlackDO();
|
||||
d.setLicenceNo(licenceNo);
|
||||
if (licenceNoList.isEmpty()) {
|
||||
d.setLicenceType(licenceType);
|
||||
d.setLicenceTypeName(licenceTypeName);
|
||||
d.setVehicleType(vehicleType);
|
||||
d.setVehicleTypeName(vehicleTypeName);
|
||||
vehicleBlackRepository.save(d);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,13 +83,13 @@ public class VehicleApplyDO extends BaseDO {
|
|||
private String emissionStandardsName;
|
||||
//行驶证照片
|
||||
@ApiModelProperty(value = "行驶证照片")
|
||||
private Long drivingLicenseId;
|
||||
private String drivingLicenseId;
|
||||
//车辆照片
|
||||
@ApiModelProperty(value = "车辆照片")
|
||||
private Long attachmentId;
|
||||
private String attachmentId;
|
||||
//告知签字
|
||||
@ApiModelProperty(value = "告知签字")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
@ApiModelProperty(value = "项目id")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -60,15 +60,15 @@ public class VehicleBlackDO extends BaseDO {
|
|||
//行驶证照片
|
||||
@ApiModelProperty(value = "行驶证照片")
|
||||
@TableField(exist = false)
|
||||
private Long drivingLicenseId;
|
||||
private String drivingLicenseId;
|
||||
//车辆照片
|
||||
@ApiModelProperty(value = "车辆照片")
|
||||
@TableField(exist = false)
|
||||
private Long attachmentId;
|
||||
private String attachmentId;
|
||||
//告知签字
|
||||
@ApiModelProperty(value = "告知签字")
|
||||
@TableField(exist = false)
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
//项目id
|
||||
@ApiModelProperty(value = "项目id")
|
||||
@TableField(exist = false)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class XgfApplyPersonDO extends BaseDO {
|
|||
private String visitEndTime;
|
||||
//告知签字
|
||||
@ApiModelProperty(value = "告知签字")
|
||||
private Long informSignId;
|
||||
private String informSignId;
|
||||
private Long mkmjId;
|
||||
@TableField(exist = false)
|
||||
private Long mkmjName;
|
||||
|
|
|
|||
Loading…
Reference in New Issue