feat:二级封闭区域申请详情

koumen
dearLin 2026-03-23 11:43:39 +08:00
parent 2e15919054
commit f4037f3f8b
12 changed files with 43 additions and 24 deletions

View File

@ -13,10 +13,7 @@ import com.zcloud.primeport.api.VehicleApplyServiceI;
import com.zcloud.primeport.domain.enums.TmpApplyEnum; import com.zcloud.primeport.domain.enums.TmpApplyEnum;
import com.zcloud.primeport.domain.model.VehicleApplyE; import com.zcloud.primeport.domain.model.VehicleApplyE;
import com.zcloud.primeport.dto.*; import com.zcloud.primeport.dto.*;
import com.zcloud.primeport.dto.clientobject.ClosedAreaCarApplyCO; import com.zcloud.primeport.dto.clientobject.*;
import com.zcloud.primeport.dto.clientobject.ClosedAreaPersonApplyCO;
import com.zcloud.primeport.dto.clientobject.TmpApplyCO;
import com.zcloud.primeport.dto.clientobject.VehicleApplyCO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -127,26 +124,36 @@ public class ClosedTmpApplyController {
TmpApplyCO tmpApplyCO = new TmpApplyCO(); TmpApplyCO tmpApplyCO = new TmpApplyCO();
if (TmpApplyEnum.PERSON_APPLY.getCode().equals(tmpApplyType)) { if (TmpApplyEnum.PERSON_APPLY.getCode().equals(tmpApplyType)) {
if (TmpApplyEnum.ONE_LEVEL_PERSON_APPLY.getCode().equals(tmpMkmjType)) { if (TmpApplyEnum.ONE_LEVEL_PERSON_APPLY.getCode().equals(tmpMkmjType)) {
// personApplyServiceI.getTmpInfoById(id); XgfPersonApplyCO xgfPersonApplyCO = personApplyServiceI.xgfPersonApplyInfoById(id);
tmpApplyCO.setApplyReason(xgfPersonApplyCO.getReasonVisit());
tmpApplyCO.setAuditFlag(xgfPersonApplyCO.getAuditFlag());
tmpApplyCO.setRefusalReason(xgfPersonApplyCO.getReasonsRefusal());
tmpApplyCO.setAuditPersonUserId(xgfPersonApplyCO.getAuditUserId());
tmpApplyCO.setAuditPersonUserName(xgfPersonApplyCO.getAuditUserName());
tmpApplyCO.setVisitStartTime(xgfPersonApplyCO.getVisitStartTime());
tmpApplyCO.setVisitEndTime(xgfPersonApplyCO.getVisitEndTime());
tmpApplyCO.setLevelOneMkmjId(xgfPersonApplyCO.getMkmjId());
tmpApplyCO.setLevelOneMkmjName(xgfPersonApplyCO.getMkmjName());
tmpApplyCO.setUserPhone(xgfPersonApplyCO.getPersonApplyList().get(0).getUserPhone());
tmpApplyCO.setApplyPersonUserName(xgfPersonApplyCO.getPersonApplyList().get(0).getEmployeePersonUserName());
} }
if (TmpApplyEnum.TWO_LEVEL_PERSON_APPLY.getCode().equals(tmpMkmjType)) { if (TmpApplyEnum.TWO_LEVEL_PERSON_APPLY.getCode().equals(tmpMkmjType)) {
ClosedAreaPersonApplyCO closedAreaPersonApplyCO = closedAreaPersonApplyServiceI.queryById(id); ClosedAreaPersonApplyCO closedAreaPersonApplyCO = closedAreaPersonApplyServiceI.queryById(id);
tmpApplyCO.setApplyReason(closedAreaPersonApplyCO.getApplyReason()); BeanUtils.copyProperties(closedAreaPersonApplyCO, tmpApplyCO);
tmpApplyCO.setAuditFlag(closedAreaPersonApplyCO.getAuditFlag());
tmpApplyCO.setRefusalReason(closedAreaPersonApplyCO.getRefusalReason());
tmpApplyCO.setAuditPersonUserId(closedAreaPersonApplyCO.getAuditPersonUserId());
tmpApplyCO.setAuditPersonUserName(closedAreaPersonApplyCO.getApplyPersonUserName());
tmpApplyCO.setVisitStartTime(closedAreaPersonApplyCO.getVisitStartTime());
tmpApplyCO.setVisitEndTime(closedAreaPersonApplyCO.getVisitEndTime());
// tmpApplyCO.set
} }
} }
if (TmpApplyEnum.CAR_APPLY.getCode().equals(tmpMkmjType)) { if (TmpApplyEnum.CAR_APPLY.getCode().equals(tmpMkmjType)) {
if (TmpApplyEnum.ONE_LEVEL_CAR_APPLY.getCode().equals(tmpMkmjType)) { if (TmpApplyEnum.ONE_LEVEL_CAR_APPLY.getCode().equals(tmpMkmjType)) {
// personApplyServiceI.getTmpInfoById(id); VehicleApplyCO infoById = vehicleApplyServiceI.getInfoById(id);
BeanUtils.copyProperties(infoById, tmpApplyCO);
tmpApplyCO.setLevelOneMkmjName(infoById.getMkmjName());
tmpApplyCO.setLevelOneMkmjId(infoById.getMkmjId());
tmpApplyCO.setUserPhone(infoById.getLsUserPhone());
tmpApplyCO.setApplyPersonUserName(infoById.getEmployeeVehicleUserName());
} }
if (TmpApplyEnum.TWO_LEVEL_CAR_APPLY.getCode().equals(tmpMkmjType)) { if (TmpApplyEnum.TWO_LEVEL_CAR_APPLY.getCode().equals(tmpMkmjType)) {
ClosedAreaCarApplyCO closedAreaCarApplyCO = closedAreaCarApplyService.queryById(id); ClosedAreaCarApplyCO closedAreaCarApplyCO = closedAreaCarApplyService.queryById(id);
BeanUtils.copyProperties(closedAreaCarApplyCO, tmpApplyCO);
} }
} }
tmpApplyCO.setId(id); tmpApplyCO.setId(id);

View File

@ -47,7 +47,8 @@ public class ClosedAreaCarApplyAddCmd extends Command {
@ApiModelProperty(value = "二级口门id(封闭区域口门)", name = "levelTwoMkmjId", required = true) @ApiModelProperty(value = "二级口门id(封闭区域口门)", name = "levelTwoMkmjId", required = true)
private Long levelTwoMkmjId; private Long levelTwoMkmjId;
private String levelOneMkmjName;
private String levelTwoMkmjName;
@ApiModelProperty(value = "封闭区域id", name = "closedAreaId", required = true) @ApiModelProperty(value = "封闭区域id", name = "closedAreaId", required = true)
@NotNull(message = "封闭区域id不能为空") @NotNull(message = "封闭区域id不能为空")
private Long closedAreaId; private Long closedAreaId;

View File

@ -95,7 +95,7 @@ public class ClosedAreaCarApplyUpdateCmd 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 = "行驶证照片", name = "drivingLicenseId", required = true) @ApiModelProperty(value = "行驶证照片", name = "drivingLicenseId", required = true)
@NotEmpty(message = "行驶证照片不能为空") @NotEmpty(message = "行驶证照片不能为空")

View File

@ -21,7 +21,8 @@ public class ClosedAreaPersonApplyAddCmd extends Command {
@ApiModelProperty(value = "申请归属1股份2分公司3相关方4临时人员", name = "personBelongType", required = true) @ApiModelProperty(value = "申请归属1股份2分公司3相关方4临时人员", name = "personBelongType", required = true)
@NotNull(message = "申请归属1股份2分公司3相关方4临时人员不能为空") @NotNull(message = "申请归属1股份2分公司3相关方4临时人员不能为空")
private Integer personBelongType; private Integer personBelongType;
private String levelOneMkmjName;
private String levelTwoMkmjName;
@ApiModelProperty(value = "一级口门id", name = "levelOneMkmjId", required = true) @ApiModelProperty(value = "一级口门id", name = "levelOneMkmjId", required = true)
private Long levelOneMkmjId; private Long levelOneMkmjId;
@ -53,11 +54,11 @@ public class ClosedAreaPersonApplyAddCmd extends Command {
private String jurisdictionalCorpName; private String jurisdictionalCorpName;
@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;
@ApiModelProperty(value = "项目名称", name = "projectName", required = true) @ApiModelProperty(value = "项目名称", name = "projectName", required = true)
@NotEmpty(message = "项目名称不能为空") // @NotEmpty(message = "项目名称不能为空")
private String projectName; private String projectName;
@ApiModelProperty(value = "申请理由", name = "applyReason", required = true) @ApiModelProperty(value = "申请理由", name = "applyReason", required = true)

View File

@ -94,7 +94,7 @@ public class ClosedTmpApplyAddCmd 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 = "jurisdictionalCorpId", required = true) @ApiModelProperty(value = "区域管辖单位名id", name = "jurisdictionalCorpId", required = true)
private Long jurisdictionalCorpId; private Long jurisdictionalCorpId;

View File

@ -109,7 +109,7 @@ public class ClosedAreaCarApplyCO extends ClientObject {
private String entourage; private String entourage;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private Long informSignId; private String informSignId;
//行驶证照片 //行驶证照片
@ApiModelProperty(value = "行驶证照片") @ApiModelProperty(value = "行驶证照片")
private String drivingLicenseId; private String drivingLicenseId;
@ -146,5 +146,7 @@ public class ClosedAreaCarApplyCO extends ClientObject {
@ApiModelProperty(value = "人员进出记录", name = "personInOutRecord") @ApiModelProperty(value = "人员进出记录", name = "personInOutRecord")
private List<HashMap> personInOutRecord; private List<HashMap> personInOutRecord;
private String levelOneMkmjName;
private String levelTwoMkmjName;
} }

View File

@ -92,7 +92,7 @@ public class ClosedAreaPersonApplyCO extends ClientObject {
private String entourage; private String entourage;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private Long informSignId; private String informSignId;
//审批人员所属企业ID //审批人员所属企业ID
@ApiModelProperty(value = "审批人员所属企业ID") @ApiModelProperty(value = "审批人员所属企业ID")
private Long auditPersonCorpId; private Long auditPersonCorpId;
@ -124,5 +124,7 @@ public class ClosedAreaPersonApplyCO extends ClientObject {
@ApiModelProperty(value = "人员进出记录", name = "personInOutRecord") @ApiModelProperty(value = "人员进出记录", name = "personInOutRecord")
private List<HashMap> personInOutRecord; private List<HashMap> personInOutRecord;
private String levelOneMkmjName;
private String levelTwoMkmjName;
} }

View File

@ -109,6 +109,5 @@ public class TmpApplyCO extends ClientObject {
//驳回原因 //驳回原因
@ApiModelProperty(value = "驳回原因") @ApiModelProperty(value = "驳回原因")
private String refusalReason; private String refusalReason;
} }

View File

@ -27,6 +27,8 @@ public class ClosedAreaCarApplyE extends BaseE {
private String vehicleTypeName; private String vehicleTypeName;
//一级口门id //一级口门id
private Long levelOneMkmjId; private Long levelOneMkmjId;
private String levelOneMkmjName;
private String levelTwoMkmjName;
//审核状态(1:审核中;2审核通过; 3审核驳回) //审核状态(1:审核中;2审核通过; 3审核驳回)
private Integer auditFlag; private Integer auditFlag;
//二级口门id(封闭区域口门) //二级口门id(封闭区域口门)

View File

@ -18,6 +18,8 @@ public class ClosedAreaPersonApplyE extends BaseE {
private Integer auditFlag; private Integer auditFlag;
//二级口门id(封闭区域口门) //二级口门id(封闭区域口门)
private Long levelTwoMkmjId; private Long levelTwoMkmjId;
private String levelOneMkmjName;
private String levelTwoMkmjName;
//封闭区域id //封闭区域id
private Long closedAreaId; private Long closedAreaId;
//封闭区域名称 //封闭区域名称

View File

@ -39,6 +39,8 @@ public class ClosedAreaCarApplyDO extends BaseDO {
//一级口门id //一级口门id
@ApiModelProperty(value = "一级口门id") @ApiModelProperty(value = "一级口门id")
private Long levelOneMkmjId; private Long levelOneMkmjId;
private String levelOneMkmjName;
private String levelTwoMkmjName;
//审核状态(1:审核中;2审核通过; 3审核驳回) //审核状态(1:审核中;2审核通过; 3审核驳回)
@ApiModelProperty(value = "审核状态(1:审核中;2审核通过; 3审核驳回)") @ApiModelProperty(value = "审核状态(1:审核中;2审核通过; 3审核驳回)")
private Integer auditFlag; private Integer auditFlag;

View File

@ -87,7 +87,8 @@ public class ClosedAreaPersonApplyDO extends BaseDO {
//随行人员 //随行人员
@ApiModelProperty(value = "随行人员") @ApiModelProperty(value = "随行人员")
private String entourage; private String entourage;
private String levelOneMkmjName;
private String levelTwoMkmjName;
//告知签字 //告知签字
@ApiModelProperty(value = "告知签字") @ApiModelProperty(value = "告知签字")
private String informSignId; private String informSignId;