Commit 37354cdd authored by 廖旭伟's avatar 廖旭伟

增加证照打印缺件人手机号码字段

parent 0616399f
...@@ -243,6 +243,7 @@ public class CertificateApi extends BaseJsonBodyController { ...@@ -243,6 +243,7 @@ public class CertificateApi extends BaseJsonBodyController {
printWaitQueueVO.setPrinterIp(printCatalogEntity.getPrinterIp()); printWaitQueueVO.setPrinterIp(printCatalogEntity.getPrinterIp());
printWaitQueueVO.setPrinterName(printCatalogEntity.getPrinterName()); printWaitQueueVO.setPrinterName(printCatalogEntity.getPrinterName());
printWaitQueueVO.setPaperSource(printCatalogEntity.getPaperSource()); printWaitQueueVO.setPaperSource(printCatalogEntity.getPaperSource());
printWaitQueueVO.setMobile(printWaitQueueEntity.getMobile());
waitQueueVOList.add(printWaitQueueVO); waitQueueVOList.add(printWaitQueueVO);
} }
model.put("data", waitQueueVOList); model.put("data", waitQueueVOList);
......
...@@ -78,4 +78,9 @@ public class PrintWaitQueueVO { ...@@ -78,4 +78,9 @@ public class PrintWaitQueueVO {
* 打印机纸盒 * 打印机纸盒
*/ */
private String paperSource; private String paperSource;
/**
* 手机号码
*/
private String mobile;
} }
...@@ -8,19 +8,15 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -8,19 +8,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.ApplyLogVo; import com.mortals.xhx.module.record.model.vo.ApplyLogVo;
import lombok.Data; import lombok.Data;
/** /**
* 证照申请实体对象 * 证照申请实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-24 * @date 2023-07-05
*/ */
@Data @Data
public class ApplyLogEntity extends ApplyLogVo { public class ApplyLogEntity extends ApplyLogVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/** /**
* 证照档案ID * 证照档案ID
*/ */
...@@ -38,14 +34,6 @@ public class ApplyLogEntity extends ApplyLogVo { ...@@ -38,14 +34,6 @@ public class ApplyLogEntity extends ApplyLogVo {
*/ */
private String catalogName; private String catalogName;
/** /**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 证件编号 * 证件编号
*/ */
private String certificateCode; private String certificateCode;
...@@ -125,6 +113,22 @@ public class ApplyLogEntity extends ApplyLogVo { ...@@ -125,6 +113,22 @@ public class ApplyLogEntity extends ApplyLogVo {
* 归档状态0否1是 * 归档状态0否1是
*/ */
private Integer recordStatus; private Integer recordStatus;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -143,8 +147,6 @@ public class ApplyLogEntity extends ApplyLogVo { ...@@ -143,8 +147,6 @@ public class ApplyLogEntity extends ApplyLogVo {
public void initAttrValue(){ public void initAttrValue(){
this.siteId = -1L;
this.recordId = -1L; this.recordId = -1L;
this.catalogId = -1L; this.catalogId = -1L;
...@@ -153,10 +155,6 @@ public class ApplyLogEntity extends ApplyLogVo { ...@@ -153,10 +155,6 @@ public class ApplyLogEntity extends ApplyLogVo {
this.catalogName = ""; this.catalogName = "";
this.templateId = -1L;
this.templateName = "";
this.certificateCode = ""; this.certificateCode = "";
this.certificateName = ""; this.certificateName = "";
...@@ -196,5 +194,13 @@ public class ApplyLogEntity extends ApplyLogVo { ...@@ -196,5 +194,13 @@ public class ApplyLogEntity extends ApplyLogVo {
this.operType = 1; this.operType = 1;
this.recordStatus = 0; this.recordStatus = 0;
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
} }
} }
\ No newline at end of file
...@@ -8,19 +8,15 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -8,19 +8,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.PrintLogVo; import com.mortals.xhx.module.record.model.vo.PrintLogVo;
import lombok.Data; import lombok.Data;
/** /**
* 证照打印记录实体对象 * 证照打印记录实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-24 * @date 2023-07-05
*/ */
@Data @Data
public class PrintLogEntity extends PrintLogVo { public class PrintLogEntity extends PrintLogVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/** /**
* 证照目录ID * 证照目录ID
*/ */
...@@ -42,14 +38,6 @@ public class PrintLogEntity extends PrintLogVo { ...@@ -42,14 +38,6 @@ public class PrintLogEntity extends PrintLogVo {
*/ */
private String certificateCode; private String certificateCode;
/** /**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 企业名称 * 企业名称
*/ */
private String enterpriseName; private String enterpriseName;
...@@ -85,6 +73,22 @@ public class PrintLogEntity extends PrintLogVo { ...@@ -85,6 +73,22 @@ public class PrintLogEntity extends PrintLogVo {
* 打印设备 * 打印设备
*/ */
private Long deviceId; private Long deviceId;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -103,8 +107,6 @@ public class PrintLogEntity extends PrintLogVo { ...@@ -103,8 +107,6 @@ public class PrintLogEntity extends PrintLogVo {
public void initAttrValue(){ public void initAttrValue(){
this.siteId = -1L;
this.catalogId = -1L; this.catalogId = -1L;
this.catalogCode = ""; this.catalogCode = "";
...@@ -115,10 +117,6 @@ public class PrintLogEntity extends PrintLogVo { ...@@ -115,10 +117,6 @@ public class PrintLogEntity extends PrintLogVo {
this.certificateCode = ""; this.certificateCode = "";
this.templateId = -1L;
this.templateName = "";
this.enterpriseName = ""; this.enterpriseName = "";
this.holderName = ""; this.holderName = "";
...@@ -136,5 +134,13 @@ public class PrintLogEntity extends PrintLogVo { ...@@ -136,5 +134,13 @@ public class PrintLogEntity extends PrintLogVo {
this.statusRemark = ""; this.statusRemark = "";
this.deviceId = -1L; this.deviceId = -1L;
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
} }
} }
\ No newline at end of file
...@@ -7,19 +7,15 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -7,19 +7,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.PrintWaitQueueVo; import com.mortals.xhx.module.record.model.vo.PrintWaitQueueVo;
import lombok.Data; import lombok.Data;
/** /**
* 证照打印记录实体对象 * 证照打印记录实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-24 * @date 2023-07-05
*/ */
@Data @Data
public class PrintWaitQueueEntity extends PrintWaitQueueVo { public class PrintWaitQueueEntity extends PrintWaitQueueVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/** /**
* 证照档案ID * 证照档案ID
*/ */
...@@ -41,14 +37,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo { ...@@ -41,14 +37,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
*/ */
private String catalogName; private String catalogName;
/** /**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 证照名称 * 证照名称
*/ */
private String certificateName; private String certificateName;
...@@ -92,6 +80,22 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo { ...@@ -92,6 +80,22 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
* 允许打印次数 * 允许打印次数
*/ */
private Integer total; private Integer total;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -110,8 +114,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo { ...@@ -110,8 +114,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
public void initAttrValue(){ public void initAttrValue(){
this.siteId = -1L;
this.recordId = -1L; this.recordId = -1L;
this.applyId = -1L; this.applyId = -1L;
...@@ -122,10 +124,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo { ...@@ -122,10 +124,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
this.catalogName = ""; this.catalogName = "";
this.templateId = -1L;
this.templateName = "";
this.certificateName = ""; this.certificateName = "";
this.certificateCode = ""; this.certificateCode = "";
...@@ -147,5 +145,13 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo { ...@@ -147,5 +145,13 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
this.printStatus = 0; this.printStatus = 0;
this.total = 1; this.total = 1;
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
} }
} }
\ No newline at end of file
...@@ -7,19 +7,15 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -7,19 +7,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.RetainLogVo; import com.mortals.xhx.module.record.model.vo.RetainLogVo;
import lombok.Data; import lombok.Data;
/** /**
* 证照持有实体对象 * 证照持有实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-24 * @date 2023-07-05
*/ */
@Data @Data
public class RetainLogEntity extends RetainLogVo { public class RetainLogEntity extends RetainLogVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/** /**
* 证照档案ID * 证照档案ID
*/ */
...@@ -37,14 +33,6 @@ public class RetainLogEntity extends RetainLogVo { ...@@ -37,14 +33,6 @@ public class RetainLogEntity extends RetainLogVo {
*/ */
private String catalogName; private String catalogName;
/** /**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 证照名称 * 证照名称
*/ */
private String certificateName; private String certificateName;
...@@ -76,6 +64,22 @@ public class RetainLogEntity extends RetainLogVo { ...@@ -76,6 +64,22 @@ public class RetainLogEntity extends RetainLogVo {
* 证件预览地址 * 证件预览地址
*/ */
private String previewUrl; private String previewUrl;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -94,8 +98,6 @@ public class RetainLogEntity extends RetainLogVo { ...@@ -94,8 +98,6 @@ public class RetainLogEntity extends RetainLogVo {
public void initAttrValue(){ public void initAttrValue(){
this.siteId = -1L;
this.recordId = -1L; this.recordId = -1L;
this.catalogId = -1L; this.catalogId = -1L;
...@@ -104,10 +106,6 @@ public class RetainLogEntity extends RetainLogVo { ...@@ -104,10 +106,6 @@ public class RetainLogEntity extends RetainLogVo {
this.catalogName = ""; this.catalogName = "";
this.templateId = -1L;
this.templateName = "";
this.certificateName = ""; this.certificateName = "";
this.certificateCode = ""; this.certificateCode = "";
...@@ -123,5 +121,13 @@ public class RetainLogEntity extends RetainLogVo { ...@@ -123,5 +121,13 @@ public class RetainLogEntity extends RetainLogVo {
this.certificateUrl = ""; this.certificateUrl = "";
this.previewUrl = ""; this.previewUrl = "";
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
} }
} }
\ No newline at end of file
...@@ -37,17 +37,20 @@ public class PrintLogServiceImpl extends AbstractCRUDServiceImpl<PrintLogDao, Pr ...@@ -37,17 +37,20 @@ public class PrintLogServiceImpl extends AbstractCRUDServiceImpl<PrintLogDao, Pr
PrintLogQuery condition3 = new PrintLogQuery(); PrintLogQuery condition3 = new PrintLogQuery();
PrintLogQuery condition4 = new PrintLogQuery(); PrintLogQuery condition4 = new PrintLogQuery();
PrintLogQuery condition5 = new PrintLogQuery(); PrintLogQuery condition5 = new PrintLogQuery();
PrintLogQuery condition6 = new PrintLogQuery();
condition1.setEnterpriseName(condition.toString()); condition1.setEnterpriseName(condition.toString());
condition2.setPickerName(condition.toString()); condition2.setPickerName(condition.toString());
condition3.setPickerIDCardNo(condition.toString()); condition3.setPickerIDCardNo(condition.toString());
condition4.setHolderIDCardNo(condition.toString()); condition4.setHolderIDCardNo(condition.toString());
condition5.setHolderName(condition.toString()); condition5.setHolderName(condition.toString());
condition6.setMobile(condition.toString());
List<PrintLogQuery> orConditionList = new ArrayList<>(); List<PrintLogQuery> orConditionList = new ArrayList<>();
orConditionList.add(condition1); orConditionList.add(condition1);
orConditionList.add(condition2); orConditionList.add(condition2);
orConditionList.add(condition3); orConditionList.add(condition3);
orConditionList.add(condition4); orConditionList.add(condition4);
orConditionList.add(condition5); orConditionList.add(condition5);
orConditionList.add(condition6);
query.setOrConditionList(orConditionList); query.setOrConditionList(orConditionList);
} }
return query; return query;
......
...@@ -139,6 +139,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait ...@@ -139,6 +139,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
waitQueueEntity.setPreviewUrl(applyLogEntity.getPreviewUrl()); waitQueueEntity.setPreviewUrl(applyLogEntity.getPreviewUrl());
waitQueueEntity.setCertificateUrl(applyLogEntity.getCertificateUrl()); waitQueueEntity.setCertificateUrl(applyLogEntity.getCertificateUrl());
waitQueueEntity.setPrintStatus(YesNoEnum.NO.getValue()); waitQueueEntity.setPrintStatus(YesNoEnum.NO.getValue());
waitQueueEntity.setMobile(applyLogEntity.getMobile());
waitQueueEntity.setTotal(paramService.getParamIntValue(ParamKey.ALLOW_PRINT_MAX_COUNT)); waitQueueEntity.setTotal(paramService.getParamIntValue(ParamKey.ALLOW_PRINT_MAX_COUNT));
waitQueueEntity.setCreateUserId(applyLogEntity.getCreateUserId()); waitQueueEntity.setCreateUserId(applyLogEntity.getCreateUserId());
waitQueueEntity.setCreateTime(new Date()); waitQueueEntity.setCreateTime(new Date());
...@@ -192,6 +193,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait ...@@ -192,6 +193,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
printLogEntity.setCreateTime(now); printLogEntity.setCreateTime(now);
printLogEntity.setPrintStatus(PrintStatus.FAIL.getValue()); printLogEntity.setPrintStatus(PrintStatus.FAIL.getValue());
printLogEntity.setStatusRemark(statusRemark); printLogEntity.setStatusRemark(statusRemark);
printLogEntity.setMobile(waitQueueEntity.getMobile());
printLogDao.insert(printLogEntity); printLogDao.insert(printLogEntity);
} }
...@@ -210,6 +212,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait ...@@ -210,6 +212,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
retainLogEntity.setHolderName(waitQueueEntity.getHolderName()); retainLogEntity.setHolderName(waitQueueEntity.getHolderName());
retainLogEntity.setHolderIDCardNo(waitQueueEntity.getHolderIDCardNo()); retainLogEntity.setHolderIDCardNo(waitQueueEntity.getHolderIDCardNo());
retainLogEntity.setCertificateStatus(CertificateStatus.NORMAL.getValue()); retainLogEntity.setCertificateStatus(CertificateStatus.NORMAL.getValue());
retainLogEntity.setMobile(waitQueueEntity.getMobile());
retainLogEntity.setCreateUserId(waitQueueEntity.getCreateUserId()); retainLogEntity.setCreateUserId(waitQueueEntity.getCreateUserId());
retainLogEntity.setCreateTime(now); retainLogEntity.setCreateTime(now);
...@@ -227,7 +230,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait ...@@ -227,7 +230,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
printLogEntity.setHolderIDCardNo(waitQueueEntity.getHolderIDCardNo()); printLogEntity.setHolderIDCardNo(waitQueueEntity.getHolderIDCardNo());
printLogEntity.setPickerName(waitQueueEntity.getPickerName()); printLogEntity.setPickerName(waitQueueEntity.getPickerName());
printLogEntity.setPickerIDCardNo(waitQueueEntity.getPickerIDCardNo()); printLogEntity.setPickerIDCardNo(waitQueueEntity.getPickerIDCardNo());
printLogEntity.setMobile(waitQueueEntity.getMobile());
printLogEntity.setPrintDate(now); printLogEntity.setPrintDate(now);
printLogEntity.setCreateUserId(waitQueueEntity.getCreateUserId()); printLogEntity.setCreateUserId(waitQueueEntity.getCreateUserId());
printLogEntity.setCreateTime(now); printLogEntity.setCreateTime(now);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment