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

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

parent 0616399f
......@@ -243,6 +243,7 @@ public class CertificateApi extends BaseJsonBodyController {
printWaitQueueVO.setPrinterIp(printCatalogEntity.getPrinterIp());
printWaitQueueVO.setPrinterName(printCatalogEntity.getPrinterName());
printWaitQueueVO.setPaperSource(printCatalogEntity.getPaperSource());
printWaitQueueVO.setMobile(printWaitQueueEntity.getMobile());
waitQueueVOList.add(printWaitQueueVO);
}
model.put("data", waitQueueVOList);
......
......@@ -78,4 +78,9 @@ public class PrintWaitQueueVO {
* 打印机纸盒
*/
private String paperSource;
/**
* 手机号码
*/
private String mobile;
}
......@@ -8,19 +8,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.ApplyLogVo;
import lombok.Data;
/**
* 证照申请实体对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照申请实体对象
*
* @author zxfei
* @date 2023-07-05
*/
@Data
public class ApplyLogEntity extends ApplyLogVo {
private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/**
* 证照档案ID
*/
......@@ -38,14 +34,6 @@ public class ApplyLogEntity extends ApplyLogVo {
*/
private String catalogName;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 证件编号
*/
private String certificateCode;
......@@ -125,6 +113,22 @@ public class ApplyLogEntity extends ApplyLogVo {
* 归档状态0否1是
*/
private Integer recordStatus;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override
public int hashCode() {
return this.getId().hashCode();
......@@ -143,8 +147,6 @@ public class ApplyLogEntity extends ApplyLogVo {
public void initAttrValue(){
this.siteId = -1L;
this.recordId = -1L;
this.catalogId = -1L;
......@@ -153,10 +155,6 @@ public class ApplyLogEntity extends ApplyLogVo {
this.catalogName = "";
this.templateId = -1L;
this.templateName = "";
this.certificateCode = "";
this.certificateName = "";
......@@ -196,5 +194,13 @@ public class ApplyLogEntity extends ApplyLogVo {
this.operType = 1;
this.recordStatus = 0;
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
}
}
\ No newline at end of file
......@@ -4,11 +4,11 @@ import java.util.Date;
import java.util.List;
import com.mortals.xhx.module.record.model.ApplyLogEntity;
/**
* 证照申请查询对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照申请查询对象
*
* @author zxfei
* @date 2023-07-05
*/
public class ApplyLogQuery extends ApplyLogEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
......@@ -25,21 +25,6 @@ public class ApplyLogQuery extends ApplyLogEntity {
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照档案ID */
private Long recordIdStart;
......@@ -80,26 +65,6 @@ public class ApplyLogQuery extends ApplyLogEntity {
/** 目录名称排除列表 */
private List <String> catalogNameNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 证件编号 */
private List<String> certificateCodeList;
......@@ -295,6 +260,46 @@ public class ApplyLogQuery extends ApplyLogEntity {
/** 归档状态0否1是排除列表 */
private List <Integer> recordStatusNotList;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 手机号码 */
private List<String> mobileList;
/** 手机号码排除列表 */
private List <String> mobileNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<ApplyLogQuery> orConditionList;
......@@ -384,87 +389,6 @@ public class ApplyLogQuery extends ApplyLogEntity {
}
/**
* 获取 开始 站点id
* @return siteIdStart
*/
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 获取 结束 站点id
* @return $siteIdEnd
*/
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 获取 增加 站点id
* @return siteIdIncrement
*/
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 站点id
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 获取 开始 证照档案ID
* @return recordIdStart
......@@ -691,119 +615,6 @@ public class ApplyLogQuery extends ApplyLogEntity {
this.catalogNameNotList = catalogNameNotList;
}
/**
* 获取 开始 证照目录模板ID
* @return templateIdStart
*/
public Long getTemplateIdStart(){
return this.templateIdStart;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
}
/**
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
*/
public Long getTemplateIdEnd(){
return this.templateIdEnd;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
}
/**
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
*/
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
}
/**
* 获取 证照目录模板ID
* @return templateIdList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
}
/**
* 获取 证照模板名称
* @return templateNameList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 证件编号
* @return certificateCodeList
......@@ -1916,110 +1727,282 @@ public class ApplyLogQuery extends ApplyLogEntity {
/**
* 设置 序号,主键,自增长
* @param id
* 获取 开始 站点id
* @return siteIdStart
*/
public ApplyLogQuery id(Long id){
setId(id);
return this;
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
* 设置 开始 站点id
* @param siteIdStart
*/
public ApplyLogQuery idStart(Long idStart){
this.idStart = idStart;
return this;
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
* 获取 结束 站点id
* @return $siteIdEnd
*/
public ApplyLogQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
* 设置 结束 站点id
* @param siteIdEnd
*/
public ApplyLogQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 设置 序号,主键,自增长
* @param idList
* 获取 增加 站点id
* @return siteIdIncrement
*/
public ApplyLogQuery idList(List<Long> idList){
this.idList = idList;
return this;
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
* 设置 增加 站点id
* @param siteIdIncrement
*/
public ApplyLogQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 站点id
* @param siteId
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 获取 开始 证照目录模板ID
* @return templateIdStart
*/
public Long getTemplateIdStart(){
return this.templateIdStart;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
}
/**
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
*/
public Long getTemplateIdEnd(){
return this.templateIdEnd;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
}
/**
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
*/
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
}
/**
* 获取 证照目录模板ID
* @return templateIdList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
}
/**
* 获取 证照模板名称
* @return templateNameList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 手机号码
* @return mobileList
*/
public List<String> getMobileList(){
return this.mobileList;
}
/**
* 设置 手机号码
* @param mobileList
*/
public void setMobileList(List<String> mobileList){
this.mobileList = mobileList;
}
/**
* 获取 手机号码
* @return mobileNotList
*/
public List<String> getMobileNotList(){
return this.mobileNotList;
}
/**
* 设置 手机号码
* @param mobileNotList
*/
public void setMobileNotList(List<String> mobileNotList){
this.mobileNotList = mobileNotList;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public ApplyLogQuery siteId(Long siteId){
setSiteId(siteId);
public ApplyLogQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 站点id
* @param siteIdStart
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public ApplyLogQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
public ApplyLogQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public ApplyLogQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
public ApplyLogQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public ApplyLogQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
public ApplyLogQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 站点id
* @param siteIdList
* 设置 序号,主键,自增长
* @param idList
*/
public ApplyLogQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
public ApplyLogQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 站点id
* @param siteIdNotList
* 设置 序号,主键,自增长
* @param idNotList
*/
public ApplyLogQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
public ApplyLogQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
......@@ -2169,79 +2152,6 @@ public class ApplyLogQuery extends ApplyLogEntity {
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public ApplyLogQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public ApplyLogQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public ApplyLogQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public ApplyLogQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public ApplyLogQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public ApplyLogQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public ApplyLogQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public ApplyLogQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 证件编号
......@@ -2853,6 +2763,152 @@ public class ApplyLogQuery extends ApplyLogEntity {
return this;
}
/**
* 设置 站点id
* @param siteId
*/
public ApplyLogQuery siteId(Long siteId){
setSiteId(siteId);
return this;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public ApplyLogQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public ApplyLogQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public ApplyLogQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
}
/**
* 设置 站点id
* @param siteIdList
*/
public ApplyLogQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public ApplyLogQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public ApplyLogQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public ApplyLogQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public ApplyLogQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public ApplyLogQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public ApplyLogQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public ApplyLogQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public ApplyLogQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public ApplyLogQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 手机号码
* @param mobile
*/
public ApplyLogQuery mobile(String mobile){
setMobile(mobile);
return this;
}
/**
* 设置 手机号码
* @param mobileList
*/
public ApplyLogQuery mobileList(List<String> mobileList){
this.mobileList = mobileList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -8,19 +8,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.PrintLogVo;
import lombok.Data;
/**
* 证照打印记录实体对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照打印记录实体对象
*
* @author zxfei
* @date 2023-07-05
*/
@Data
public class PrintLogEntity extends PrintLogVo {
private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录ID
*/
......@@ -42,14 +38,6 @@ public class PrintLogEntity extends PrintLogVo {
*/
private String certificateCode;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 企业名称
*/
private String enterpriseName;
......@@ -85,6 +73,22 @@ public class PrintLogEntity extends PrintLogVo {
* 打印设备
*/
private Long deviceId;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override
public int hashCode() {
return this.getId().hashCode();
......@@ -103,8 +107,6 @@ public class PrintLogEntity extends PrintLogVo {
public void initAttrValue(){
this.siteId = -1L;
this.catalogId = -1L;
this.catalogCode = "";
......@@ -115,10 +117,6 @@ public class PrintLogEntity extends PrintLogVo {
this.certificateCode = "";
this.templateId = -1L;
this.templateName = "";
this.enterpriseName = "";
this.holderName = "";
......@@ -136,5 +134,13 @@ public class PrintLogEntity extends PrintLogVo {
this.statusRemark = "";
this.deviceId = -1L;
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
}
}
\ No newline at end of file
......@@ -4,11 +4,11 @@ import java.util.Date;
import java.util.List;
import com.mortals.xhx.module.record.model.PrintLogEntity;
/**
* 证照打印记录查询对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照打印记录查询对象
*
* @author zxfei
* @date 2023-07-05
*/
public class PrintLogQuery extends PrintLogEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
......@@ -25,21 +25,6 @@ public class PrintLogQuery extends PrintLogEntity {
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照目录ID */
private Long catalogIdStart;
......@@ -75,26 +60,6 @@ public class PrintLogQuery extends PrintLogEntity {
/** 证照编号排除列表 */
private List <String> certificateCodeNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 企业名称 */
private List<String> enterpriseNameList;
......@@ -203,6 +168,46 @@ public class PrintLogQuery extends PrintLogEntity {
/** 结束 更新时间 */
private String updateTimeEnd;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 手机号码 */
private List<String> mobileList;
/** 手机号码排除列表 */
private List <String> mobileNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PrintLogQuery> orConditionList;
......@@ -292,87 +297,6 @@ public class PrintLogQuery extends PrintLogEntity {
}
/**
* 获取 开始 站点id
* @return siteIdStart
*/
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 获取 结束 站点id
* @return $siteIdEnd
*/
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 获取 增加 站点id
* @return siteIdIncrement
*/
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 站点id
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 获取 开始 证照目录ID
* @return catalogIdStart
......@@ -583,217 +507,104 @@ public class PrintLogQuery extends PrintLogEntity {
}
/**
* 获取 开始 证照目录模板ID
* @return templateIdStart
* 获取 企业名称
* @return enterpriseNameList
*/
public Long getTemplateIdStart(){
return this.templateIdStart;
public List<String> getEnterpriseNameList(){
return this.enterpriseNameList;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
* 设置 企业名称
* @param enterpriseNameList
*/
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
public void setEnterpriseNameList(List<String> enterpriseNameList){
this.enterpriseNameList = enterpriseNameList;
}
/**
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
* 获取 企业名称
* @return enterpriseNameNotList
*/
public Long getTemplateIdEnd(){
return this.templateIdEnd;
public List<String> getEnterpriseNameNotList(){
return this.enterpriseNameNotList;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
* 设置 企业名称
* @param enterpriseNameNotList
*/
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
public void setEnterpriseNameNotList(List<String> enterpriseNameNotList){
this.enterpriseNameNotList = enterpriseNameNotList;
}
/**
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
* 获取 持有者姓名
* @return holderNameList
*/
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
public List<String> getHolderNameList(){
return this.holderNameList;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
* 设置 持有者姓名
* @param holderNameList
*/
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
public void setHolderNameList(List<String> holderNameList){
this.holderNameList = holderNameList;
}
/**
* 获取 证照目录模板ID
* @return templateIdList
* 获取 持有者姓名
* @return holderNameNotList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
public List<String> getHolderNameNotList(){
return this.holderNameNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
* 设置 持有者姓名
* @param holderNameNotList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
public void setHolderNameNotList(List<String> holderNameNotList){
this.holderNameNotList = holderNameNotList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
* 获取 持有者证件号码
* @return holderIDCardNoList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
public List<String> getHolderIDCardNoList(){
return this.holderIDCardNoList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
* 设置 持有者证件号码
* @param holderIDCardNoList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
public void setHolderIDCardNoList(List<String> holderIDCardNoList){
this.holderIDCardNoList = holderIDCardNoList;
}
/**
* 获取 证照模板名称
* @return templateNameList
* 获取 持有者证件号码
* @return holderIDCardNoNotList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
public List<String> getHolderIDCardNoNotList(){
return this.holderIDCardNoNotList;
}
/**
* 设置 证照模板名称
* @param templateNameList
* 设置 持有者证件号码
* @param holderIDCardNoNotList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
public void setHolderIDCardNoNotList(List<String> holderIDCardNoNotList){
this.holderIDCardNoNotList = holderIDCardNoNotList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 企业名称
* @return enterpriseNameList
*/
public List<String> getEnterpriseNameList(){
return this.enterpriseNameList;
}
/**
* 设置 企业名称
* @param enterpriseNameList
*/
public void setEnterpriseNameList(List<String> enterpriseNameList){
this.enterpriseNameList = enterpriseNameList;
}
/**
* 获取 企业名称
* @return enterpriseNameNotList
*/
public List<String> getEnterpriseNameNotList(){
return this.enterpriseNameNotList;
}
/**
* 设置 企业名称
* @param enterpriseNameNotList
*/
public void setEnterpriseNameNotList(List<String> enterpriseNameNotList){
this.enterpriseNameNotList = enterpriseNameNotList;
}
/**
* 获取 持有者姓名
* @return holderNameList
*/
public List<String> getHolderNameList(){
return this.holderNameList;
}
/**
* 设置 持有者姓名
* @param holderNameList
*/
public void setHolderNameList(List<String> holderNameList){
this.holderNameList = holderNameList;
}
/**
* 获取 持有者姓名
* @return holderNameNotList
*/
public List<String> getHolderNameNotList(){
return this.holderNameNotList;
}
/**
* 设置 持有者姓名
* @param holderNameNotList
*/
public void setHolderNameNotList(List<String> holderNameNotList){
this.holderNameNotList = holderNameNotList;
}
/**
* 获取 持有者证件号码
* @return holderIDCardNoList
*/
public List<String> getHolderIDCardNoList(){
return this.holderIDCardNoList;
}
/**
* 设置 持有者证件号码
* @param holderIDCardNoList
*/
public void setHolderIDCardNoList(List<String> holderIDCardNoList){
this.holderIDCardNoList = holderIDCardNoList;
}
/**
* 获取 持有者证件号码
* @return holderIDCardNoNotList
*/
public List<String> getHolderIDCardNoNotList(){
return this.holderIDCardNoNotList;
}
/**
* 设置 持有者证件号码
* @param holderIDCardNoNotList
*/
public void setHolderIDCardNoNotList(List<String> holderIDCardNoNotList){
this.holderIDCardNoNotList = holderIDCardNoNotList;
}
/**
* 获取 取件人姓名
* @return pickerNameList
* 获取 取件人姓名
* @return pickerNameList
*/
public List<String> getPickerNameList(){
return this.pickerNameList;
......@@ -1308,313 +1119,412 @@ public class PrintLogQuery extends PrintLogEntity {
}
/**
* 设置 序号,主键,自增长
* @param id
* 获取 开始 站点id
* @return siteIdStart
*/
public PrintLogQuery id(Long id){
setId(id);
return this;
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
* 设置 开始 站点id
* @param siteIdStart
*/
public PrintLogQuery idStart(Long idStart){
this.idStart = idStart;
return this;
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
* 获取 结束 站点id
* @return $siteIdEnd
*/
public PrintLogQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
* 设置 结束 站点id
* @param siteIdEnd
*/
public PrintLogQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 设置 序号,主键,自增长
* @param idList
* 获取 增加 站点id
* @return siteIdIncrement
*/
public PrintLogQuery idList(List<Long> idList){
this.idList = idList;
return this;
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
* 设置 增加 站点id
* @param siteIdIncrement
*/
public PrintLogQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 设置 站点id
* @param siteId
* 获取 站点id
* @return siteIdList
*/
public PrintLogQuery siteId(Long siteId){
setSiteId(siteId);
return this;
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 开始 站点id
* @param siteIdStart
* 设置 站点id
* @param siteIdList
*/
public PrintLogQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
* 获取 站点id
* @return siteIdNotList
*/
public PrintLogQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
* 设置 站点id
* @param siteIdNotList
*/
public PrintLogQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdList
* 获取 开始 证照目录模板ID
* @return templateIdStart
*/
public PrintLogQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
public Long getTemplateIdStart(){
return this.templateIdStart;
}
/**
* 设置 站点id
* @param siteIdNotList
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public PrintLogQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
}
/**
* 设置 证照目录ID
* @param catalogId
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
*/
public PrintLogQuery catalogId(Long catalogId){
setCatalogId(catalogId);
return this;
public Long getTemplateIdEnd(){
return this.templateIdEnd;
}
/**
* 设置 开始 证照目录ID
* @param catalogIdStart
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public PrintLogQuery catalogIdStart(Long catalogIdStart){
this.catalogIdStart = catalogIdStart;
return this;
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
}
/**
* 设置 结束 证照目录ID
* @param catalogIdEnd
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
*/
public PrintLogQuery catalogIdEnd(Long catalogIdEnd){
this.catalogIdEnd = catalogIdEnd;
return this;
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
}
/**
* 设置 增加 证照目录ID
* @param catalogIdIncrement
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public PrintLogQuery catalogIdIncrement(Long catalogIdIncrement){
this.catalogIdIncrement = catalogIdIncrement;
return this;
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
}
/**
* 设置 证照目录ID
* @param catalogIdList
* 获取 证照目录模板ID
* @return templateIdList
*/
public PrintLogQuery catalogIdList(List<Long> catalogIdList){
this.catalogIdList = catalogIdList;
return this;
public List<Long> getTemplateIdList(){
return this.templateIdList;
}
/**
* 设置 证照目录ID
* @param catalogIdNotList
* 设置 证照目录模板ID
* @param templateIdList
*/
public PrintLogQuery catalogIdNotList(List<Long> catalogIdNotList){
this.catalogIdNotList = catalogIdNotList;
return this;
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
}
/**
* 设置 证照目录编号
* @param catalogCode
* 获取 证照模板名称
* @return templateNameList
*/
public PrintLogQuery catalogCode(String catalogCode){
setCatalogCode(catalogCode);
public List<String> getTemplateNameList(){
return this.templateNameList;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 手机号码
* @return mobileList
*/
public List<String> getMobileList(){
return this.mobileList;
}
/**
* 设置 手机号码
* @param mobileList
*/
public void setMobileList(List<String> mobileList){
this.mobileList = mobileList;
}
/**
* 获取 手机号码
* @return mobileNotList
*/
public List<String> getMobileNotList(){
return this.mobileNotList;
}
/**
* 设置 手机号码
* @param mobileNotList
*/
public void setMobileNotList(List<String> mobileNotList){
this.mobileNotList = mobileNotList;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public PrintLogQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 证照目录编号
* @param catalogCodeList
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public PrintLogQuery catalogCodeList(List<String> catalogCodeList){
this.catalogCodeList = catalogCodeList;
public PrintLogQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public PrintLogQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 目录名称
* @param catalogName
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public PrintLogQuery catalogName(String catalogName){
setCatalogName(catalogName);
public PrintLogQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 目录名称
* @param catalogNameList
* 设置 序号,主键,自增长
* @param idList
*/
public PrintLogQuery catalogNameList(List<String> catalogNameList){
this.catalogNameList = catalogNameList;
public PrintLogQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public PrintLogQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 证照名称
* @param certificateName
* 设置 证照目录ID
* @param catalogId
*/
public PrintLogQuery certificateName(String certificateName){
setCertificateName(certificateName);
public PrintLogQuery catalogId(Long catalogId){
setCatalogId(catalogId);
return this;
}
/**
* 设置 证照名称
* @param certificateNameList
* 设置 开始 证照目录ID
* @param catalogIdStart
*/
public PrintLogQuery certificateNameList(List<String> certificateNameList){
this.certificateNameList = certificateNameList;
public PrintLogQuery catalogIdStart(Long catalogIdStart){
this.catalogIdStart = catalogIdStart;
return this;
}
/**
* 设置 结束 证照目录ID
* @param catalogIdEnd
*/
public PrintLogQuery catalogIdEnd(Long catalogIdEnd){
this.catalogIdEnd = catalogIdEnd;
return this;
}
/**
* 设置 证照编号
* @param certificateCode
* 设置 增加 证照目录ID
* @param catalogIdIncrement
*/
public PrintLogQuery certificateCode(String certificateCode){
setCertificateCode(certificateCode);
public PrintLogQuery catalogIdIncrement(Long catalogIdIncrement){
this.catalogIdIncrement = catalogIdIncrement;
return this;
}
/**
* 设置 证照编号
* @param certificateCodeList
* 设置 证照目录ID
* @param catalogIdList
*/
public PrintLogQuery certificateCodeList(List<String> certificateCodeList){
this.certificateCodeList = certificateCodeList;
public PrintLogQuery catalogIdList(List<Long> catalogIdList){
this.catalogIdList = catalogIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
* 设置 证照目录ID
* @param catalogIdNotList
*/
public PrintLogQuery templateId(Long templateId){
setTemplateId(templateId);
public PrintLogQuery catalogIdNotList(List<Long> catalogIdNotList){
this.catalogIdNotList = catalogIdNotList;
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
* 设置 证照目录编号
* @param catalogCode
*/
public PrintLogQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
public PrintLogQuery catalogCode(String catalogCode){
setCatalogCode(catalogCode);
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
* 设置 证照目录编号
* @param catalogCodeList
*/
public PrintLogQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
public PrintLogQuery catalogCodeList(List<String> catalogCodeList){
this.catalogCodeList = catalogCodeList;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
* 设置 目录名称
* @param catalogName
*/
public PrintLogQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
public PrintLogQuery catalogName(String catalogName){
setCatalogName(catalogName);
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
* 设置 目录名称
* @param catalogNameList
*/
public PrintLogQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
public PrintLogQuery catalogNameList(List<String> catalogNameList){
this.catalogNameList = catalogNameList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
* 设置 证照名称
* @param certificateName
*/
public PrintLogQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
public PrintLogQuery certificateName(String certificateName){
setCertificateName(certificateName);
return this;
}
/**
* 设置 证照名称
* @param certificateNameList
*/
public PrintLogQuery certificateNameList(List<String> certificateNameList){
this.certificateNameList = certificateNameList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
* 设置 证照编号
* @param certificateCode
*/
public PrintLogQuery templateName(String templateName){
setTemplateName(templateName);
public PrintLogQuery certificateCode(String certificateCode){
setCertificateCode(certificateCode);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
* 设置 证照编号
* @param certificateCodeList
*/
public PrintLogQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
public PrintLogQuery certificateCodeList(List<String> certificateCodeList){
this.certificateCodeList = certificateCodeList;
return this;
}
......@@ -1951,6 +1861,152 @@ public class PrintLogQuery extends PrintLogEntity {
}
/**
* 设置 站点id
* @param siteId
*/
public PrintLogQuery siteId(Long siteId){
setSiteId(siteId);
return this;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public PrintLogQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public PrintLogQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public PrintLogQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
}
/**
* 设置 站点id
* @param siteIdList
*/
public PrintLogQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public PrintLogQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public PrintLogQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public PrintLogQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public PrintLogQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public PrintLogQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public PrintLogQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public PrintLogQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public PrintLogQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public PrintLogQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 手机号码
* @param mobile
*/
public PrintLogQuery mobile(String mobile){
setMobile(mobile);
return this;
}
/**
* 设置 手机号码
* @param mobileList
*/
public PrintLogQuery mobileList(List<String> mobileList){
this.mobileList = mobileList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -7,19 +7,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.PrintWaitQueueVo;
import lombok.Data;
/**
* 证照打印记录实体对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照打印记录实体对象
*
* @author zxfei
* @date 2023-07-05
*/
@Data
public class PrintWaitQueueEntity extends PrintWaitQueueVo {
private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/**
* 证照档案ID
*/
......@@ -41,14 +37,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
*/
private String catalogName;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 证照名称
*/
private String certificateName;
......@@ -92,6 +80,22 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
* 允许打印次数
*/
private Integer total;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override
public int hashCode() {
return this.getId().hashCode();
......@@ -110,8 +114,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
public void initAttrValue(){
this.siteId = -1L;
this.recordId = -1L;
this.applyId = -1L;
......@@ -122,10 +124,6 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
this.catalogName = "";
this.templateId = -1L;
this.templateName = "";
this.certificateName = "";
this.certificateCode = "";
......@@ -147,5 +145,13 @@ public class PrintWaitQueueEntity extends PrintWaitQueueVo {
this.printStatus = 0;
this.total = 1;
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
}
}
\ No newline at end of file
......@@ -3,42 +3,12 @@ package com.mortals.xhx.module.record.model;
import java.util.List;
import com.mortals.xhx.module.record.model.PrintWaitQueueEntity;
/**
* 证照打印记录查询对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照打印记录查询对象
*
* @author zxfei
* @date 2023-07-05
*/
public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照档案ID */
private Long recordIdStart;
......@@ -94,26 +64,6 @@ public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
/** 目录名称排除列表 */
private List <String> catalogNameNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 证照名称 */
private List<String> certificateNameList;
......@@ -231,175 +181,68 @@ public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PrintWaitQueueQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PrintWaitQueueQuery> andConditionList;
public PrintWaitQueueQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/** 开始 站点id */
private Long siteIdStart;
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/** 结束 站点id */
private Long siteIdEnd;
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/** 增加 站点id */
private Long siteIdIncrement;
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/** 站点id列表 */
private List <Long> siteIdList;
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/** 开始 序号,主键,自增长 */
private Long IdStart;
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/** 结束 序号,主键,自增长 */
private Long IdEnd;
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/** 增加 序号,主键,自增长 */
private Long IdIncrement;
/** 序号,主键,自增长列表 */
private List <Long> IdList;
/**
* 获取 开始 站点id
* @return siteIdStart
*/
public Long getSiteIdStart(){
return this.siteIdStart;
}
/** 序号,主键,自增长排除列表 */
private List <Long> IdNotList;
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/** 开始 证照目录模板ID */
private Long templateIdStart;
/**
* 获取 结束 站点id
* @return $siteIdEnd
*/
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/**
* 获取 增加 站点id
* @return siteIdIncrement
*/
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/** 证照模板名称 */
private List<String> templateNameList;
/**
* 设置 站点id
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 手机号码 */
private List<String> mobileList;
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/** 手机号码排除列表 */
private List <String> mobileNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PrintWaitQueueQuery> orConditionList;
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PrintWaitQueueQuery> andConditionList;
public PrintWaitQueueQuery(){}
/**
* 获取 开始 证照档案ID
......@@ -692,133 +535,20 @@ public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
this.catalogNameList = catalogNameList;
}
/**
* 获取 目录名称
* @return catalogNameNotList
*/
public List<String> getCatalogNameNotList(){
return this.catalogNameNotList;
}
/**
* 设置 目录名称
* @param catalogNameNotList
*/
public void setCatalogNameNotList(List<String> catalogNameNotList){
this.catalogNameNotList = catalogNameNotList;
}
/**
* 获取 开始 证照目录模板ID
* @return templateIdStart
*/
public Long getTemplateIdStart(){
return this.templateIdStart;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
}
/**
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
*/
public Long getTemplateIdEnd(){
return this.templateIdEnd;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
}
/**
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
*/
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
}
/**
* 获取 证照目录模板ID
* @return templateIdList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
}
/**
* 获取 证照模板名称
* @return templateNameList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
/**
* 获取 目录名称
* @return catalogNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
public List<String> getCatalogNameNotList(){
return this.catalogNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
* 设置 目录名称
* @param catalogNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
public void setCatalogNameNotList(List<String> catalogNameNotList){
this.catalogNameNotList = catalogNameNotList;
}
/**
......@@ -1498,111 +1228,310 @@ public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
}
/**
* 设置 序号,主键,自增长
* @param id
* 获取 开始 站点id
* @return siteIdStart
*/
public PrintWaitQueueQuery id(Long id){
setId(id);
return this;
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 获取 结束 站点id
* @return $siteIdEnd
*/
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 获取 增加 站点id
* @return siteIdIncrement
*/
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 站点id
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 获取 开始 序号,主键,自增长
* @return IdStart
*/
public Long getIdStart(){
return this.IdStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
* @param IdStart
*/
public PrintWaitQueueQuery idStart(Long idStart){
this.idStart = idStart;
return this;
public void setIdStart(Long IdStart){
this.IdStart = IdStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $IdEnd
*/
public Long getIdEnd(){
return this.IdEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
* @param IdEnd
*/
public PrintWaitQueueQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
public void setIdEnd(Long IdEnd){
this.IdEnd = IdEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return IdIncrement
*/
public Long getIdIncrement(){
return this.IdIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
* @param IdIncrement
*/
public PrintWaitQueueQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
public void setIdIncrement(Long IdIncrement){
this.IdIncrement = IdIncrement;
}
/**
* 获取 序号,主键,自增长
* @return IdList
*/
public List<Long> getIdList(){
return this.IdList;
}
/**
* 设置 序号,主键,自增长
* @param idList
* @param IdList
*/
public PrintWaitQueueQuery idList(List<Long> idList){
this.idList = idList;
return this;
public void setIdList(List<Long> IdList){
this.IdList = IdList;
}
/**
* 获取 序号,主键,自增长
* @return IdNotList
*/
public List<Long> getIdNotList(){
return this.IdNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
* @param IdNotList
*/
public PrintWaitQueueQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
public void setIdNotList(List<Long> IdNotList){
this.IdNotList = IdNotList;
}
/**
* 设置 站点id
* @param siteId
* 获取 开始 证照目录模板ID
* @return templateIdStart
*/
public PrintWaitQueueQuery siteId(Long siteId){
setSiteId(siteId);
return this;
public Long getTemplateIdStart(){
return this.templateIdStart;
}
/**
* 设置 开始 站点id
* @param siteIdStart
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public PrintWaitQueueQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
*/
public PrintWaitQueueQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
public Long getTemplateIdEnd(){
return this.templateIdEnd;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public PrintWaitQueueQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
}
/**
* 设置 站点id
* @param siteIdList
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
*/
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
}
/**
* 获取 证照目录模板ID
* @return templateIdList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
}
/**
* 获取 证照模板名称
* @return templateNameList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 手机号码
* @return mobileList
*/
public List<String> getMobileList(){
return this.mobileList;
}
/**
* 设置 手机号码
* @param mobileList
*/
public void setMobileList(List<String> mobileList){
this.mobileList = mobileList;
}
/**
* 获取 手机号码
* @return mobileNotList
*/
public PrintWaitQueueQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
public List<String> getMobileNotList(){
return this.mobileNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
* 设置 手机号码
* @param mobileNotList
*/
public PrintWaitQueueQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
public void setMobileNotList(List<String> mobileNotList){
this.mobileNotList = mobileNotList;
}
/**
......@@ -1805,79 +1734,6 @@ public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public PrintWaitQueueQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public PrintWaitQueueQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public PrintWaitQueueQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public PrintWaitQueueQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public PrintWaitQueueQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public PrintWaitQueueQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public PrintWaitQueueQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public PrintWaitQueueQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 证照名称
......@@ -2267,6 +2123,206 @@ public class PrintWaitQueueQuery extends PrintWaitQueueEntity {
}
/**
* 设置 站点id
* @param siteId
*/
public PrintWaitQueueQuery siteId(Long siteId){
setSiteId(siteId);
return this;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public PrintWaitQueueQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public PrintWaitQueueQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public PrintWaitQueueQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
}
/**
* 设置 站点id
* @param siteIdList
*/
public PrintWaitQueueQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public PrintWaitQueueQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param Id
*/
public PrintWaitQueueQuery Id(Long Id){
setId(Id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param IdStart
*/
public PrintWaitQueueQuery IdStart(Long IdStart){
this.IdStart = IdStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param IdEnd
*/
public PrintWaitQueueQuery IdEnd(Long IdEnd){
this.IdEnd = IdEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param IdIncrement
*/
public PrintWaitQueueQuery IdIncrement(Long IdIncrement){
this.IdIncrement = IdIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param IdList
*/
public PrintWaitQueueQuery IdList(List<Long> IdList){
this.IdList = IdList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param IdNotList
*/
public PrintWaitQueueQuery IdNotList(List<Long> IdNotList){
this.IdNotList = IdNotList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public PrintWaitQueueQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public PrintWaitQueueQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public PrintWaitQueueQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public PrintWaitQueueQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public PrintWaitQueueQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public PrintWaitQueueQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public PrintWaitQueueQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public PrintWaitQueueQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 手机号码
* @param mobile
*/
public PrintWaitQueueQuery mobile(String mobile){
setMobile(mobile);
return this;
}
/**
* 设置 手机号码
* @param mobileList
*/
public PrintWaitQueueQuery mobileList(List<String> mobileList){
this.mobileList = mobileList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -7,19 +7,15 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.record.model.vo.RetainLogVo;
import lombok.Data;
/**
* 证照持有实体对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照持有实体对象
*
* @author zxfei
* @date 2023-07-05
*/
@Data
public class RetainLogEntity extends RetainLogVo {
private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/**
* 证照档案ID
*/
......@@ -37,14 +33,6 @@ public class RetainLogEntity extends RetainLogVo {
*/
private String catalogName;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 证照名称
*/
private String certificateName;
......@@ -76,6 +64,22 @@ public class RetainLogEntity extends RetainLogVo {
* 证件预览地址
*/
private String previewUrl;
/**
* 站点id
*/
private Long siteId;
/**
* 证照目录模板ID
*/
private Long templateId;
/**
* 证照模板名称
*/
private String templateName;
/**
* 手机号码
*/
private String mobile;
@Override
public int hashCode() {
return this.getId().hashCode();
......@@ -94,8 +98,6 @@ public class RetainLogEntity extends RetainLogVo {
public void initAttrValue(){
this.siteId = -1L;
this.recordId = -1L;
this.catalogId = -1L;
......@@ -104,10 +106,6 @@ public class RetainLogEntity extends RetainLogVo {
this.catalogName = "";
this.templateId = -1L;
this.templateName = "";
this.certificateName = "";
this.certificateCode = "";
......@@ -123,5 +121,13 @@ public class RetainLogEntity extends RetainLogVo {
this.certificateUrl = "";
this.previewUrl = "";
this.siteId = -1L;
this.templateId = -1L;
this.templateName = "";
this.mobile = "";
}
}
\ No newline at end of file
......@@ -3,11 +3,11 @@ package com.mortals.xhx.module.record.model;
import java.util.List;
import com.mortals.xhx.module.record.model.RetainLogEntity;
/**
* 证照持有查询对象
*
* @author zxfei
* @date 2023-05-24
*/
* 证照持有查询对象
*
* @author zxfei
* @date 2023-07-05
*/
public class RetainLogQuery extends RetainLogEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
......@@ -24,21 +24,6 @@ public class RetainLogQuery extends RetainLogEntity {
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照档案ID */
private Long recordIdStart;
......@@ -79,26 +64,6 @@ public class RetainLogQuery extends RetainLogEntity {
/** 目录名称排除列表 */
private List <String> catalogNameNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 证照名称 */
private List<String> certificateNameList;
......@@ -191,6 +156,46 @@ public class RetainLogQuery extends RetainLogEntity {
/** 结束 更新时间 */
private String updateTimeEnd;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 开始 证照目录模板ID */
private Long templateIdStart;
/** 结束 证照目录模板ID */
private Long templateIdEnd;
/** 增加 证照目录模板ID */
private Long templateIdIncrement;
/** 证照目录模板ID列表 */
private List <Long> templateIdList;
/** 证照目录模板ID排除列表 */
private List <Long> templateIdNotList;
/** 证照模板名称 */
private List<String> templateNameList;
/** 证照模板名称排除列表 */
private List <String> templateNameNotList;
/** 手机号码 */
private List<String> mobileList;
/** 手机号码排除列表 */
private List <String> mobileNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<RetainLogQuery> orConditionList;
......@@ -280,87 +285,6 @@ public class RetainLogQuery extends RetainLogEntity {
}
/**
* 获取 开始 站点id
* @return siteIdStart
*/
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 获取 结束 站点id
* @return $siteIdEnd
*/
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 获取 增加 站点id
* @return siteIdIncrement
*/
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 站点id
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 获取 开始 证照档案ID
* @return recordIdStart
......@@ -588,217 +512,104 @@ public class RetainLogQuery extends RetainLogEntity {
}
/**
* 获取 开始 证照目录模板ID
* @return templateIdStart
* 获取 证照名称
* @return certificateNameList
*/
public Long getTemplateIdStart(){
return this.templateIdStart;
public List<String> getCertificateNameList(){
return this.certificateNameList;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
* 设置 证照名称
* @param certificateNameList
*/
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
public void setCertificateNameList(List<String> certificateNameList){
this.certificateNameList = certificateNameList;
}
/**
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
* 获取 证照名称
* @return certificateNameNotList
*/
public Long getTemplateIdEnd(){
return this.templateIdEnd;
public List<String> getCertificateNameNotList(){
return this.certificateNameNotList;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
* 设置 证照名称
* @param certificateNameNotList
*/
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
public void setCertificateNameNotList(List<String> certificateNameNotList){
this.certificateNameNotList = certificateNameNotList;
}
/**
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
* 获取 证照编号
* @return certificateCodeList
*/
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
public List<String> getCertificateCodeList(){
return this.certificateCodeList;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
* 设置 证照编号
* @param certificateCodeList
*/
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
public void setCertificateCodeList(List<String> certificateCodeList){
this.certificateCodeList = certificateCodeList;
}
/**
* 获取 证照目录模板ID
* @return templateIdList
* 获取 证照编号
* @return certificateCodeNotList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
public List<String> getCertificateCodeNotList(){
return this.certificateCodeNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
* 设置 证照编号
* @param certificateCodeNotList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
public void setCertificateCodeNotList(List<String> certificateCodeNotList){
this.certificateCodeNotList = certificateCodeNotList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
* 获取 企业名称
* @return enterpriseNameList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
public List<String> getEnterpriseNameList(){
return this.enterpriseNameList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
* 设置 企业名称
* @param enterpriseNameList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
public void setEnterpriseNameList(List<String> enterpriseNameList){
this.enterpriseNameList = enterpriseNameList;
}
/**
* 获取 证照模板名称
* @return templateNameList
* 获取 企业名称
* @return enterpriseNameNotList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
public List<String> getEnterpriseNameNotList(){
return this.enterpriseNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameList
* 设置 企业名称
* @param enterpriseNameNotList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
public void setEnterpriseNameNotList(List<String> enterpriseNameNotList){
this.enterpriseNameNotList = enterpriseNameNotList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 证照名称
* @return certificateNameList
*/
public List<String> getCertificateNameList(){
return this.certificateNameList;
}
/**
* 设置 证照名称
* @param certificateNameList
*/
public void setCertificateNameList(List<String> certificateNameList){
this.certificateNameList = certificateNameList;
}
/**
* 获取 证照名称
* @return certificateNameNotList
*/
public List<String> getCertificateNameNotList(){
return this.certificateNameNotList;
}
/**
* 设置 证照名称
* @param certificateNameNotList
*/
public void setCertificateNameNotList(List<String> certificateNameNotList){
this.certificateNameNotList = certificateNameNotList;
}
/**
* 获取 证照编号
* @return certificateCodeList
*/
public List<String> getCertificateCodeList(){
return this.certificateCodeList;
}
/**
* 设置 证照编号
* @param certificateCodeList
*/
public void setCertificateCodeList(List<String> certificateCodeList){
this.certificateCodeList = certificateCodeList;
}
/**
* 获取 证照编号
* @return certificateCodeNotList
*/
public List<String> getCertificateCodeNotList(){
return this.certificateCodeNotList;
}
/**
* 设置 证照编号
* @param certificateCodeNotList
*/
public void setCertificateCodeNotList(List<String> certificateCodeNotList){
this.certificateCodeNotList = certificateCodeNotList;
}
/**
* 获取 企业名称
* @return enterpriseNameList
*/
public List<String> getEnterpriseNameList(){
return this.enterpriseNameList;
}
/**
* 设置 企业名称
* @param enterpriseNameList
*/
public void setEnterpriseNameList(List<String> enterpriseNameList){
this.enterpriseNameList = enterpriseNameList;
}
/**
* 获取 企业名称
* @return enterpriseNameNotList
*/
public List<String> getEnterpriseNameNotList(){
return this.enterpriseNameNotList;
}
/**
* 设置 企业名称
* @param enterpriseNameNotList
*/
public void setEnterpriseNameNotList(List<String> enterpriseNameNotList){
this.enterpriseNameNotList = enterpriseNameNotList;
}
/**
* 获取 持有者姓名
* @return holderNameList
* 获取 持有者姓名
* @return holderNameList
*/
public List<String> getHolderNameList(){
return this.holderNameList;
......@@ -1232,151 +1043,323 @@ public class RetainLogQuery extends RetainLogEntity {
}
/**
* 设置 序号,主键,自增长
* @param id
* 获取 开始 站点id
* @return siteIdStart
*/
public RetainLogQuery id(Long id){
setId(id);
return this;
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
* 设置 开始 站点id
* @param siteIdStart
*/
public RetainLogQuery idStart(Long idStart){
this.idStart = idStart;
return this;
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
* 获取 结束 站点id
* @return $siteIdEnd
*/
public RetainLogQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
* 设置 结束 站点id
* @param siteIdEnd
*/
public RetainLogQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 设置 序号,主键,自增长
* @param idList
* 获取 增加 站点id
* @return siteIdIncrement
*/
public RetainLogQuery idList(List<Long> idList){
this.idList = idList;
return this;
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
* 设置 增加 站点id
* @param siteIdIncrement
*/
public RetainLogQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 设置 站点id
* @param siteId
* 获取 站点id
* @return siteIdList
*/
public RetainLogQuery siteId(Long siteId){
setSiteId(siteId);
return this;
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 开始 站点id
* @param siteIdStart
* 设置 站点id
* @param siteIdList
*/
public RetainLogQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
* 获取 站点id
* @return siteIdNotList
*/
public RetainLogQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
* 设置 站点id
* @param siteIdNotList
*/
public RetainLogQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdList
* 获取 开始 证照目录模板ID
* @return templateIdStart
*/
public RetainLogQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
public Long getTemplateIdStart(){
return this.templateIdStart;
}
/**
* 设置 站点id
* @param siteIdNotList
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public RetainLogQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
public void setTemplateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
}
/**
* 设置 证照档案ID
* @param recordId
* 获取 结束 证照目录模板ID
* @return $templateIdEnd
*/
public RetainLogQuery recordId(Long recordId){
setRecordId(recordId);
return this;
public Long getTemplateIdEnd(){
return this.templateIdEnd;
}
/**
* 设置 开始 证照档案ID
* @param recordIdStart
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public RetainLogQuery recordIdStart(Long recordIdStart){
this.recordIdStart = recordIdStart;
return this;
public void setTemplateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
}
/**
* 设置 结束 证照档案ID
* @param recordIdEnd
* 获取 增加 证照目录模板ID
* @return templateIdIncrement
*/
public RetainLogQuery recordIdEnd(Long recordIdEnd){
this.recordIdEnd = recordIdEnd;
return this;
public Long getTemplateIdIncrement(){
return this.templateIdIncrement;
}
/**
* 设置 增加 证照档案ID
* @param recordIdIncrement
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public RetainLogQuery recordIdIncrement(Long recordIdIncrement){
this.recordIdIncrement = recordIdIncrement;
return this;
public void setTemplateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
}
/**
* 设置 证照档案ID
* 获取 证照目录模板ID
* @return templateIdList
*/
public List<Long> getTemplateIdList(){
return this.templateIdList;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public void setTemplateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
}
/**
* 获取 证照目录模板ID
* @return templateIdNotList
*/
public List<Long> getTemplateIdNotList(){
return this.templateIdNotList;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public void setTemplateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
}
/**
* 获取 证照模板名称
* @return templateNameList
*/
public List<String> getTemplateNameList(){
return this.templateNameList;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public void setTemplateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
}
/**
* 获取 证照模板名称
* @return templateNameNotList
*/
public List<String> getTemplateNameNotList(){
return this.templateNameNotList;
}
/**
* 设置 证照模板名称
* @param templateNameNotList
*/
public void setTemplateNameNotList(List<String> templateNameNotList){
this.templateNameNotList = templateNameNotList;
}
/**
* 获取 手机号码
* @return mobileList
*/
public List<String> getMobileList(){
return this.mobileList;
}
/**
* 设置 手机号码
* @param mobileList
*/
public void setMobileList(List<String> mobileList){
this.mobileList = mobileList;
}
/**
* 获取 手机号码
* @return mobileNotList
*/
public List<String> getMobileNotList(){
return this.mobileNotList;
}
/**
* 设置 手机号码
* @param mobileNotList
*/
public void setMobileNotList(List<String> mobileNotList){
this.mobileNotList = mobileNotList;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public RetainLogQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public RetainLogQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public RetainLogQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public RetainLogQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public RetainLogQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public RetainLogQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 证照档案ID
* @param recordId
*/
public RetainLogQuery recordId(Long recordId){
setRecordId(recordId);
return this;
}
/**
* 设置 开始 证照档案ID
* @param recordIdStart
*/
public RetainLogQuery recordIdStart(Long recordIdStart){
this.recordIdStart = recordIdStart;
return this;
}
/**
* 设置 结束 证照档案ID
* @param recordIdEnd
*/
public RetainLogQuery recordIdEnd(Long recordIdEnd){
this.recordIdEnd = recordIdEnd;
return this;
}
/**
* 设置 增加 证照档案ID
* @param recordIdIncrement
*/
public RetainLogQuery recordIdIncrement(Long recordIdIncrement){
this.recordIdIncrement = recordIdIncrement;
return this;
}
/**
* 设置 证照档案ID
* @param recordIdList
*/
public RetainLogQuery recordIdList(List<Long> recordIdList){
......@@ -1485,79 +1468,6 @@ public class RetainLogQuery extends RetainLogEntity {
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public RetainLogQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public RetainLogQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public RetainLogQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public RetainLogQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public RetainLogQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public RetainLogQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public RetainLogQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public RetainLogQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 证照名称
......@@ -1855,6 +1765,152 @@ public class RetainLogQuery extends RetainLogEntity {
}
/**
* 设置 站点id
* @param siteId
*/
public RetainLogQuery siteId(Long siteId){
setSiteId(siteId);
return this;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public RetainLogQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public RetainLogQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public RetainLogQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
}
/**
* 设置 站点id
* @param siteIdList
*/
public RetainLogQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public RetainLogQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateId
*/
public RetainLogQuery templateId(Long templateId){
setTemplateId(templateId);
return this;
}
/**
* 设置 开始 证照目录模板ID
* @param templateIdStart
*/
public RetainLogQuery templateIdStart(Long templateIdStart){
this.templateIdStart = templateIdStart;
return this;
}
/**
* 设置 结束 证照目录模板ID
* @param templateIdEnd
*/
public RetainLogQuery templateIdEnd(Long templateIdEnd){
this.templateIdEnd = templateIdEnd;
return this;
}
/**
* 设置 增加 证照目录模板ID
* @param templateIdIncrement
*/
public RetainLogQuery templateIdIncrement(Long templateIdIncrement){
this.templateIdIncrement = templateIdIncrement;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdList
*/
public RetainLogQuery templateIdList(List<Long> templateIdList){
this.templateIdList = templateIdList;
return this;
}
/**
* 设置 证照目录模板ID
* @param templateIdNotList
*/
public RetainLogQuery templateIdNotList(List<Long> templateIdNotList){
this.templateIdNotList = templateIdNotList;
return this;
}
/**
* 设置 证照模板名称
* @param templateName
*/
public RetainLogQuery templateName(String templateName){
setTemplateName(templateName);
return this;
}
/**
* 设置 证照模板名称
* @param templateNameList
*/
public RetainLogQuery templateNameList(List<String> templateNameList){
this.templateNameList = templateNameList;
return this;
}
/**
* 设置 手机号码
* @param mobile
*/
public RetainLogQuery mobile(String mobile){
setMobile(mobile);
return this;
}
/**
* 设置 手机号码
* @param mobileList
*/
public RetainLogQuery mobileList(List<String> mobileList){
this.mobileList = mobileList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -37,17 +37,20 @@ public class PrintLogServiceImpl extends AbstractCRUDServiceImpl<PrintLogDao, Pr
PrintLogQuery condition3 = new PrintLogQuery();
PrintLogQuery condition4 = new PrintLogQuery();
PrintLogQuery condition5 = new PrintLogQuery();
PrintLogQuery condition6 = new PrintLogQuery();
condition1.setEnterpriseName(condition.toString());
condition2.setPickerName(condition.toString());
condition3.setPickerIDCardNo(condition.toString());
condition4.setHolderIDCardNo(condition.toString());
condition5.setHolderName(condition.toString());
condition6.setMobile(condition.toString());
List<PrintLogQuery> orConditionList = new ArrayList<>();
orConditionList.add(condition1);
orConditionList.add(condition2);
orConditionList.add(condition3);
orConditionList.add(condition4);
orConditionList.add(condition5);
orConditionList.add(condition6);
query.setOrConditionList(orConditionList);
}
return query;
......
......@@ -139,6 +139,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
waitQueueEntity.setPreviewUrl(applyLogEntity.getPreviewUrl());
waitQueueEntity.setCertificateUrl(applyLogEntity.getCertificateUrl());
waitQueueEntity.setPrintStatus(YesNoEnum.NO.getValue());
waitQueueEntity.setMobile(applyLogEntity.getMobile());
waitQueueEntity.setTotal(paramService.getParamIntValue(ParamKey.ALLOW_PRINT_MAX_COUNT));
waitQueueEntity.setCreateUserId(applyLogEntity.getCreateUserId());
waitQueueEntity.setCreateTime(new Date());
......@@ -192,6 +193,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
printLogEntity.setCreateTime(now);
printLogEntity.setPrintStatus(PrintStatus.FAIL.getValue());
printLogEntity.setStatusRemark(statusRemark);
printLogEntity.setMobile(waitQueueEntity.getMobile());
printLogDao.insert(printLogEntity);
}
......@@ -210,6 +212,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
retainLogEntity.setHolderName(waitQueueEntity.getHolderName());
retainLogEntity.setHolderIDCardNo(waitQueueEntity.getHolderIDCardNo());
retainLogEntity.setCertificateStatus(CertificateStatus.NORMAL.getValue());
retainLogEntity.setMobile(waitQueueEntity.getMobile());
retainLogEntity.setCreateUserId(waitQueueEntity.getCreateUserId());
retainLogEntity.setCreateTime(now);
......@@ -227,7 +230,7 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
printLogEntity.setHolderIDCardNo(waitQueueEntity.getHolderIDCardNo());
printLogEntity.setPickerName(waitQueueEntity.getPickerName());
printLogEntity.setPickerIDCardNo(waitQueueEntity.getPickerIDCardNo());
printLogEntity.setMobile(waitQueueEntity.getMobile());
printLogEntity.setPrintDate(now);
printLogEntity.setCreateUserId(waitQueueEntity.getCreateUserId());
printLogEntity.setCreateTime(now);
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.record.dao.ibatis.ApplyLogDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="ApplyLogEntity" id="ApplyLogEntity-Map">
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="recordId" column="recordId" />
<result property="catalogId" column="catalogId" />
<result property="catalogCode" column="catalogCode" />
<result property="catalogName" column="catalogName" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="certificateCode" column="certificateCode" />
<result property="certificateName" column="certificateName" />
<result property="issueTime" column="issueTime" />
......@@ -37,6 +34,10 @@
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
<result property="recordStatus" column="recordStatus" />
<result property="siteId" column="siteId" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="mobile" column="mobile" />
</resultMap>
......@@ -47,9 +48,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recordId') or colPickMode == 1 and data.containsKey('recordId')))">
a.recordId,
</if>
......@@ -62,12 +60,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('catalogName') or colPickMode == 1 and data.containsKey('catalogName')))">
a.catalogName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('certificateCode') or colPickMode == 1 and data.containsKey('certificateCode')))">
a.certificateCode,
</if>
......@@ -140,23 +132,35 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recordStatus') or colPickMode == 1 and data.containsKey('recordStatus')))">
a.recordStatus,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('mobile') or colPickMode == 1 and data.containsKey('mobile')))">
a.mobile,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="ApplyLogEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_apply_log
(siteId,recordId,catalogId,catalogCode,catalogName,templateId,templateName,certificateCode,certificateName,issueTime,pickerName,pickerIDCardNo,holderType,holderIdType,holderName,holderIDCardNo,enterpriseName,validityStart,validityEnd,privateID,certificateUrl,previewUrl,formContent,formTemplate,generateStatus,operType,createUserId,createTime,updateUserId,updateTime,recordStatus)
(recordId,catalogId,catalogCode,catalogName,certificateCode,certificateName,issueTime,pickerName,pickerIDCardNo,holderType,holderIdType,holderName,holderIDCardNo,enterpriseName,validityStart,validityEnd,privateID,certificateUrl,previewUrl,formContent,formTemplate,generateStatus,operType,createUserId,createTime,updateUserId,updateTime,recordStatus,siteId,templateId,templateName,mobile)
VALUES
(#{siteId},#{recordId},#{catalogId},#{catalogCode},#{catalogName},#{templateId},#{templateName},#{certificateCode},#{certificateName},#{issueTime},#{pickerName},#{pickerIDCardNo},#{holderType},#{holderIdType},#{holderName},#{holderIDCardNo},#{enterpriseName},#{validityStart},#{validityEnd},#{privateID},#{certificateUrl},#{previewUrl},#{formContent},#{formTemplate},#{generateStatus},#{operType},#{createUserId},#{createTime},#{updateUserId},#{updateTime},#{recordStatus})
(#{recordId},#{catalogId},#{catalogCode},#{catalogName},#{certificateCode},#{certificateName},#{issueTime},#{pickerName},#{pickerIDCardNo},#{holderType},#{holderIdType},#{holderName},#{holderIDCardNo},#{enterpriseName},#{validityStart},#{validityEnd},#{privateID},#{certificateUrl},#{previewUrl},#{formContent},#{formTemplate},#{generateStatus},#{operType},#{createUserId},#{createTime},#{updateUserId},#{updateTime},#{recordStatus},#{siteId},#{templateId},#{templateName},#{mobile})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_apply_log
(siteId,recordId,catalogId,catalogCode,catalogName,templateId,templateName,certificateCode,certificateName,issueTime,pickerName,pickerIDCardNo,holderType,holderIdType,holderName,holderIDCardNo,enterpriseName,validityStart,validityEnd,privateID,certificateUrl,previewUrl,formContent,formTemplate,generateStatus,operType,createUserId,createTime,updateUserId,updateTime,recordStatus)
(recordId,catalogId,catalogCode,catalogName,certificateCode,certificateName,issueTime,pickerName,pickerIDCardNo,holderType,holderIdType,holderName,holderIDCardNo,enterpriseName,validityStart,validityEnd,privateID,certificateUrl,previewUrl,formContent,formTemplate,generateStatus,operType,createUserId,createTime,updateUserId,updateTime,recordStatus,siteId,templateId,templateName,mobile)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.recordId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.templateId},#{item.templateName},#{item.certificateCode},#{item.certificateName},#{item.issueTime},#{item.pickerName},#{item.pickerIDCardNo},#{item.holderType},#{item.holderIdType},#{item.holderName},#{item.holderIDCardNo},#{item.enterpriseName},#{item.validityStart},#{item.validityEnd},#{item.privateID},#{item.certificateUrl},#{item.previewUrl},#{item.formContent},#{item.formTemplate},#{item.generateStatus},#{item.operType},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime},#{item.recordStatus})
(#{item.recordId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.certificateCode},#{item.certificateName},#{item.issueTime},#{item.pickerName},#{item.pickerIDCardNo},#{item.holderType},#{item.holderIdType},#{item.holderName},#{item.holderIDCardNo},#{item.enterpriseName},#{item.validityStart},#{item.validityEnd},#{item.privateID},#{item.certificateUrl},#{item.previewUrl},#{item.formContent},#{item.formTemplate},#{item.generateStatus},#{item.operType},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime},#{item.recordStatus},#{item.siteId},#{item.templateId},#{item.templateName},#{item.mobile})
</foreach>
</insert>
......@@ -166,12 +170,6 @@
update mortals_xhx_apply_log as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('recordId')) or (colPickMode==1 and !data.containsKey('recordId'))">
a.recordId=#{data.recordId},
</if>
......@@ -190,15 +188,6 @@
<if test="(colPickMode==0 and data.containsKey('catalogName')) or (colPickMode==1 and !data.containsKey('catalogName'))">
a.catalogName=#{data.catalogName},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('certificateCode')) or (colPickMode==1 and !data.containsKey('certificateCode'))">
a.certificateCode=#{data.certificateCode},
</if>
......@@ -292,6 +281,24 @@
<if test="(colPickMode==0 and data.containsKey('recordStatusIncrement')) or (colPickMode==1 and !data.containsKey('recordStatusIncrement'))">
a.recordStatus=ifnull(a.recordStatus,0) + #{data.recordStatusIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('mobile')) or (colPickMode==1 and !data.containsKey('mobile'))">
a.mobile=#{data.mobile},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
......@@ -304,18 +311,6 @@
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_apply_log as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="recordId=(case" suffix="ELSE recordId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
......@@ -353,25 +348,6 @@
when a.id=#{item.id} then #{item.catalogName}
</if>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
</if>
</foreach>
</trim>
<trim prefix="certificateCode=(case" suffix="ELSE certificateCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
......@@ -576,6 +552,44 @@
</choose>
</foreach>
</trim>
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
</if>
</foreach>
</trim>
<trim prefix="mobile=(case" suffix="ELSE mobile end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('mobile')) or (colPickMode==1 and !item.containsKey('mobile'))">
when a.id=#{item.id} then #{item.mobile}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
......@@ -719,33 +733,6 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('recordId')">
<if test="conditionParamRef.recordId != null ">
${_conditionType_} a.recordId = #{${_conditionParam_}.recordId}
......@@ -842,54 +829,6 @@
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('certificateCode')">
<if test="conditionParamRef.certificateCode != null and conditionParamRef.certificateCode != ''">
......@@ -1406,6 +1345,102 @@
${_conditionType_} a.recordStatus <![CDATA[ <= ]]> #{${_conditionParam_}.recordStatusEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobile')">
<if test="conditionParamRef.mobile != null and conditionParamRef.mobile != ''">
${_conditionType_} a.mobile like #{${_conditionParam_}.mobile}
</if>
<if test="conditionParamRef.mobile == null">
${_conditionType_} a.mobile is null
</if>
</if>
<if test="conditionParamRef.containsKey('mobileList') and conditionParamRef.mobileList.size() > 0">
${_conditionType_} a.mobile in
<foreach collection="conditionParamRef.mobileList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobileNotList') and conditionParamRef.mobileNotList.size() > 0">
${_conditionType_} a.mobile not in
<foreach collection="conditionParamRef.mobileNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
......@@ -1424,11 +1459,6 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('recordId')">
a.recordId
<if test='orderCol.recordId != null and "DESC".equalsIgnoreCase(orderCol.recordId)'>DESC</if>
......@@ -1449,16 +1479,6 @@
<if test='orderCol.catalogName != null and "DESC".equalsIgnoreCase(orderCol.catalogName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('certificateCode')">
a.certificateCode
<if test='orderCol.certificateCode != null and "DESC".equalsIgnoreCase(orderCol.certificateCode)'>DESC</if>
......@@ -1579,6 +1599,26 @@
<if test='orderCol.recordStatus != null and "DESC".equalsIgnoreCase(orderCol.recordStatus)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('mobile')">
a.mobile
<if test='orderCol.mobile != null and "DESC".equalsIgnoreCase(orderCol.mobile)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.record.dao.ibatis.PrintLogDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PrintLogEntity" id="PrintLogEntity-Map">
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="catalogId" column="catalogId" />
<result property="catalogCode" column="catalogCode" />
<result property="catalogName" column="catalogName" />
<result property="certificateName" column="certificateName" />
<result property="certificateCode" column="certificateCode" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="enterpriseName" column="enterpriseName" />
<result property="holderName" column="holderName" />
<result property="holderIDCardNo" column="holderIDCardNo" />
......@@ -27,6 +24,10 @@
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
<result property="siteId" column="siteId" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="mobile" column="mobile" />
</resultMap>
......@@ -37,9 +38,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('catalogId') or colPickMode == 1 and data.containsKey('catalogId')))">
a.catalogId,
</if>
......@@ -55,12 +53,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('certificateCode') or colPickMode == 1 and data.containsKey('certificateCode')))">
a.certificateCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('enterpriseName') or colPickMode == 1 and data.containsKey('enterpriseName')))">
a.enterpriseName,
</if>
......@@ -100,23 +92,35 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('mobile') or colPickMode == 1 and data.containsKey('mobile')))">
a.mobile,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PrintLogEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_print_log
(siteId,catalogId,catalogCode,catalogName,certificateName,certificateCode,templateId,templateName,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,printStatus,printDate,statusRemark,deviceId,createUserId,createTime,updateUserId,updateTime)
(catalogId,catalogCode,catalogName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,printStatus,printDate,statusRemark,deviceId,createUserId,createTime,updateUserId,updateTime,siteId,templateId,templateName,mobile)
VALUES
(#{siteId},#{catalogId},#{catalogCode},#{catalogName},#{certificateName},#{certificateCode},#{templateId},#{templateName},#{enterpriseName},#{holderName},#{holderIDCardNo},#{pickerName},#{pickerIDCardNo},#{printStatus},#{printDate},#{statusRemark},#{deviceId},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
(#{catalogId},#{catalogCode},#{catalogName},#{certificateName},#{certificateCode},#{enterpriseName},#{holderName},#{holderIDCardNo},#{pickerName},#{pickerIDCardNo},#{printStatus},#{printDate},#{statusRemark},#{deviceId},#{createUserId},#{createTime},#{updateUserId},#{updateTime},#{siteId},#{templateId},#{templateName},#{mobile})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_print_log
(siteId,catalogId,catalogCode,catalogName,certificateName,certificateCode,templateId,templateName,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,printStatus,printDate,statusRemark,deviceId,createUserId,createTime,updateUserId,updateTime)
(catalogId,catalogCode,catalogName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,printStatus,printDate,statusRemark,deviceId,createUserId,createTime,updateUserId,updateTime,siteId,templateId,templateName,mobile)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.certificateName},#{item.certificateCode},#{item.templateId},#{item.templateName},#{item.enterpriseName},#{item.holderName},#{item.holderIDCardNo},#{item.pickerName},#{item.pickerIDCardNo},#{item.printStatus},#{item.printDate},#{item.statusRemark},#{item.deviceId},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
(#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.certificateName},#{item.certificateCode},#{item.enterpriseName},#{item.holderName},#{item.holderIDCardNo},#{item.pickerName},#{item.pickerIDCardNo},#{item.printStatus},#{item.printDate},#{item.statusRemark},#{item.deviceId},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime},#{item.siteId},#{item.templateId},#{item.templateName},#{item.mobile})
</foreach>
</insert>
......@@ -126,12 +130,6 @@
update mortals_xhx_print_log as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('catalogId')) or (colPickMode==1 and !data.containsKey('catalogId'))">
a.catalogId=#{data.catalogId},
</if>
......@@ -150,15 +148,6 @@
<if test="(colPickMode==0 and data.containsKey('certificateCode')) or (colPickMode==1 and !data.containsKey('certificateCode'))">
a.certificateCode=#{data.certificateCode},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('enterpriseName')) or (colPickMode==1 and !data.containsKey('enterpriseName'))">
a.enterpriseName=#{data.enterpriseName},
</if>
......@@ -210,6 +199,24 @@
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('mobile')) or (colPickMode==1 and !data.containsKey('mobile'))">
a.mobile=#{data.mobile},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
......@@ -222,18 +229,6 @@
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_print_log as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="catalogId=(case" suffix="ELSE catalogId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
......@@ -273,25 +268,6 @@
when a.id=#{item.id} then #{item.certificateCode}
</if>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
</if>
</foreach>
</trim>
<trim prefix="enterpriseName=(case" suffix="ELSE enterpriseName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
......@@ -404,6 +380,44 @@
</if>
</foreach>
</trim>
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
</if>
</foreach>
</trim>
<trim prefix="mobile=(case" suffix="ELSE mobile end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('mobile')) or (colPickMode==1 and !item.containsKey('mobile'))">
when a.id=#{item.id} then #{item.mobile}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
......@@ -547,33 +561,6 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('catalogId')">
<if test="conditionParamRef.catalogId != null ">
${_conditionType_} a.catalogId = #{${_conditionParam_}.catalogId}
......@@ -685,54 +672,6 @@
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('enterpriseName')">
<if test="conditionParamRef.enterpriseName != null and conditionParamRef.enterpriseName != ''">
......@@ -1012,6 +951,102 @@
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobile')">
<if test="conditionParamRef.mobile != null and conditionParamRef.mobile != ''">
${_conditionType_} a.mobile like #{${_conditionParam_}.mobile}
</if>
<if test="conditionParamRef.mobile == null">
${_conditionType_} a.mobile is null
</if>
</if>
<if test="conditionParamRef.containsKey('mobileList') and conditionParamRef.mobileList.size() > 0">
${_conditionType_} a.mobile in
<foreach collection="conditionParamRef.mobileList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobileNotList') and conditionParamRef.mobileNotList.size() > 0">
${_conditionType_} a.mobile not in
<foreach collection="conditionParamRef.mobileNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
......@@ -1030,11 +1065,6 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('catalogId')">
a.catalogId
<if test='orderCol.catalogId != null and "DESC".equalsIgnoreCase(orderCol.catalogId)'>DESC</if>
......@@ -1060,16 +1090,6 @@
<if test='orderCol.certificateCode != null and "DESC".equalsIgnoreCase(orderCol.certificateCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('enterpriseName')">
a.enterpriseName
<if test='orderCol.enterpriseName != null and "DESC".equalsIgnoreCase(orderCol.enterpriseName)'>DESC</if>
......@@ -1135,6 +1155,26 @@
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('mobile')">
a.mobile
<if test='orderCol.mobile != null and "DESC".equalsIgnoreCase(orderCol.mobile)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.record.dao.ibatis.PrintWaitQueueDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PrintWaitQueueEntity" id="PrintWaitQueueEntity-Map">
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="recordId" column="recordId" />
<result property="applyId" column="applyId" />
<result property="catalogId" column="catalogId" />
<result property="catalogCode" column="catalogCode" />
<result property="catalogName" column="catalogName" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="certificateName" column="certificateName" />
<result property="certificateCode" column="certificateCode" />
<result property="enterpriseName" column="enterpriseName" />
......@@ -29,6 +25,11 @@
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
<result property="siteId" column="siteId" />
<id property="Id" column="Id" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="mobile" column="mobile" />
</resultMap>
......@@ -36,12 +37,6 @@
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recordId') or colPickMode == 1 and data.containsKey('recordId')))">
a.recordId,
</if>
......@@ -57,12 +52,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('catalogName') or colPickMode == 1 and data.containsKey('catalogName')))">
a.catalogName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('certificateName') or colPickMode == 1 and data.containsKey('certificateName')))">
a.certificateName,
</if>
......@@ -108,23 +97,38 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('Id') or colPickMode == 1 and data.containsKey('Id')))">
a.Id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('mobile') or colPickMode == 1 and data.containsKey('mobile')))">
a.mobile,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PrintWaitQueueEntity" useGeneratedKeys="true" keyProperty="id">
<insert id="insert" parameterType="PrintWaitQueueEntity" useGeneratedKeys="true" keyProperty="Id">
insert into mortals_xhx_print_wait_queue
(siteId,recordId,applyId,catalogId,catalogCode,catalogName,templateId,templateName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,previewUrl,certificateUrl,printStatus,total,createUserId,createTime,updateUserId,updateTime)
(recordId,applyId,catalogId,catalogCode,catalogName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,previewUrl,certificateUrl,printStatus,total,createUserId,createTime,updateUserId,updateTime,siteId,templateId,templateName,mobile)
VALUES
(#{siteId},#{recordId},#{applyId},#{catalogId},#{catalogCode},#{catalogName},#{templateId},#{templateName},#{certificateName},#{certificateCode},#{enterpriseName},#{holderName},#{holderIDCardNo},#{pickerName},#{pickerIDCardNo},#{previewUrl},#{certificateUrl},#{printStatus},#{total},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
(#{recordId},#{applyId},#{catalogId},#{catalogCode},#{catalogName},#{certificateName},#{certificateCode},#{enterpriseName},#{holderName},#{holderIDCardNo},#{pickerName},#{pickerIDCardNo},#{previewUrl},#{certificateUrl},#{printStatus},#{total},#{createUserId},#{createTime},#{updateUserId},#{updateTime},#{siteId},#{templateId},#{templateName},#{mobile})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_print_wait_queue
(siteId,recordId,applyId,catalogId,catalogCode,catalogName,templateId,templateName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,previewUrl,certificateUrl,printStatus,total,createUserId,createTime,updateUserId,updateTime)
(recordId,applyId,catalogId,catalogCode,catalogName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,pickerName,pickerIDCardNo,previewUrl,certificateUrl,printStatus,total,createUserId,createTime,updateUserId,updateTime,siteId,templateId,templateName,mobile)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.recordId},#{item.applyId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.templateId},#{item.templateName},#{item.certificateName},#{item.certificateCode},#{item.enterpriseName},#{item.holderName},#{item.holderIDCardNo},#{item.pickerName},#{item.pickerIDCardNo},#{item.previewUrl},#{item.certificateUrl},#{item.printStatus},#{item.total},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
(#{item.recordId},#{item.applyId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.certificateName},#{item.certificateCode},#{item.enterpriseName},#{item.holderName},#{item.holderIDCardNo},#{item.pickerName},#{item.pickerIDCardNo},#{item.previewUrl},#{item.certificateUrl},#{item.printStatus},#{item.total},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime},#{item.siteId},#{item.templateId},#{item.templateName},#{item.mobile})
</foreach>
</insert>
......@@ -134,12 +138,6 @@
update mortals_xhx_print_wait_queue as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('recordId')) or (colPickMode==1 and !data.containsKey('recordId'))">
a.recordId=#{data.recordId},
</if>
......@@ -164,15 +162,6 @@
<if test="(colPickMode==0 and data.containsKey('catalogName')) or (colPickMode==1 and !data.containsKey('catalogName'))">
a.catalogName=#{data.catalogName},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('certificateName')) or (colPickMode==1 and !data.containsKey('certificateName'))">
a.certificateName=#{data.certificateName},
</if>
......@@ -230,6 +219,24 @@
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('mobile')) or (colPickMode==1 and !data.containsKey('mobile'))">
a.mobile=#{data.mobile},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
......@@ -242,26 +249,14 @@
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_print_wait_queue as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="recordId=(case" suffix="ELSE recordId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('recordId')) or (colPickMode==1 and !item.containsKey('recordId'))">
when a.id=#{item.id} then #{item.recordId}
when a.Id=#{item.Id} then #{item.recordId}
</when>
<when test="(colPickMode==0 and item.containsKey('recordIdIncrement')) or (colPickMode==1 and !item.containsKey('recordIdIncrement'))">
when a.id=#{item.id} then ifnull(a.recordId,0) + #{item.recordIdIncrement}
when a.Id=#{item.Id} then ifnull(a.recordId,0) + #{item.recordIdIncrement}
</when>
</choose>
</foreach>
......@@ -270,10 +265,10 @@
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('applyId')) or (colPickMode==1 and !item.containsKey('applyId'))">
when a.id=#{item.id} then #{item.applyId}
when a.Id=#{item.Id} then #{item.applyId}
</when>
<when test="(colPickMode==0 and item.containsKey('applyIdIncrement')) or (colPickMode==1 and !item.containsKey('applyIdIncrement'))">
when a.id=#{item.id} then ifnull(a.applyId,0) + #{item.applyIdIncrement}
when a.Id=#{item.Id} then ifnull(a.applyId,0) + #{item.applyIdIncrement}
</when>
</choose>
</foreach>
......@@ -282,10 +277,10 @@
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('catalogId')) or (colPickMode==1 and !item.containsKey('catalogId'))">
when a.id=#{item.id} then #{item.catalogId}
when a.Id=#{item.Id} then #{item.catalogId}
</when>
<when test="(colPickMode==0 and item.containsKey('catalogIdIncrement')) or (colPickMode==1 and !item.containsKey('catalogIdIncrement'))">
when a.id=#{item.id} then ifnull(a.catalogId,0) + #{item.catalogIdIncrement}
when a.Id=#{item.Id} then ifnull(a.catalogId,0) + #{item.catalogIdIncrement}
</when>
</choose>
</foreach>
......@@ -293,96 +288,77 @@
<trim prefix="catalogCode=(case" suffix="ELSE catalogCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('catalogCode')) or (colPickMode==1 and !item.containsKey('catalogCode'))">
when a.id=#{item.id} then #{item.catalogCode}
when a.Id=#{item.Id} then #{item.catalogCode}
</if>
</foreach>
</trim>
<trim prefix="catalogName=(case" suffix="ELSE catalogName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('catalogName')) or (colPickMode==1 and !item.containsKey('catalogName'))">
when a.id=#{item.id} then #{item.catalogName}
</if>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
when a.Id=#{item.Id} then #{item.catalogName}
</if>
</foreach>
</trim>
<trim prefix="certificateName=(case" suffix="ELSE certificateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('certificateName')) or (colPickMode==1 and !item.containsKey('certificateName'))">
when a.id=#{item.id} then #{item.certificateName}
when a.Id=#{item.Id} then #{item.certificateName}
</if>
</foreach>
</trim>
<trim prefix="certificateCode=(case" suffix="ELSE certificateCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('certificateCode')) or (colPickMode==1 and !item.containsKey('certificateCode'))">
when a.id=#{item.id} then #{item.certificateCode}
when a.Id=#{item.Id} then #{item.certificateCode}
</if>
</foreach>
</trim>
<trim prefix="enterpriseName=(case" suffix="ELSE enterpriseName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('enterpriseName')) or (colPickMode==1 and !item.containsKey('enterpriseName'))">
when a.id=#{item.id} then #{item.enterpriseName}
when a.Id=#{item.Id} then #{item.enterpriseName}
</if>
</foreach>
</trim>
<trim prefix="holderName=(case" suffix="ELSE holderName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('holderName')) or (colPickMode==1 and !item.containsKey('holderName'))">
when a.id=#{item.id} then #{item.holderName}
when a.Id=#{item.Id} then #{item.holderName}
</if>
</foreach>
</trim>
<trim prefix="holderIDCardNo=(case" suffix="ELSE holderIDCardNo end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('holderIDCardNo')) or (colPickMode==1 and !item.containsKey('holderIDCardNo'))">
when a.id=#{item.id} then #{item.holderIDCardNo}
when a.Id=#{item.Id} then #{item.holderIDCardNo}
</if>
</foreach>
</trim>
<trim prefix="pickerName=(case" suffix="ELSE pickerName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pickerName')) or (colPickMode==1 and !item.containsKey('pickerName'))">
when a.id=#{item.id} then #{item.pickerName}
when a.Id=#{item.Id} then #{item.pickerName}
</if>
</foreach>
</trim>
<trim prefix="pickerIDCardNo=(case" suffix="ELSE pickerIDCardNo end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pickerIDCardNo')) or (colPickMode==1 and !item.containsKey('pickerIDCardNo'))">
when a.id=#{item.id} then #{item.pickerIDCardNo}
when a.Id=#{item.Id} then #{item.pickerIDCardNo}
</if>
</foreach>
</trim>
<trim prefix="previewUrl=(case" suffix="ELSE previewUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('previewUrl')) or (colPickMode==1 and !item.containsKey('previewUrl'))">
when a.id=#{item.id} then #{item.previewUrl}
when a.Id=#{item.Id} then #{item.previewUrl}
</if>
</foreach>
</trim>
<trim prefix="certificateUrl=(case" suffix="ELSE certificateUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('certificateUrl')) or (colPickMode==1 and !item.containsKey('certificateUrl'))">
when a.id=#{item.id} then #{item.certificateUrl}
when a.Id=#{item.Id} then #{item.certificateUrl}
</if>
</foreach>
</trim>
......@@ -390,10 +366,10 @@
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('printStatus')) or (colPickMode==1 and !item.containsKey('printStatus'))">
when a.id=#{item.id} then #{item.printStatus}
when a.Id=#{item.Id} then #{item.printStatus}
</when>
<when test="(colPickMode==0 and item.containsKey('printStatusIncrement')) or (colPickMode==1 and !item.containsKey('printStatusIncrement'))">
when a.id=#{item.id} then ifnull(a.printStatus,0) + #{item.printStatusIncrement}
when a.Id=#{item.Id} then ifnull(a.printStatus,0) + #{item.printStatusIncrement}
</when>
</choose>
</foreach>
......@@ -402,10 +378,10 @@
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('total')) or (colPickMode==1 and !item.containsKey('total'))">
when a.id=#{item.id} then #{item.total}
when a.Id=#{item.Id} then #{item.total}
</when>
<when test="(colPickMode==0 and item.containsKey('totalIncrement')) or (colPickMode==1 and !item.containsKey('totalIncrement'))">
when a.id=#{item.id} then ifnull(a.total,0) + #{item.totalIncrement}
when a.Id=#{item.Id} then ifnull(a.total,0) + #{item.totalIncrement}
</when>
</choose>
</foreach>
......@@ -414,10 +390,10 @@
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
when a.Id=#{item.Id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
when a.Id=#{item.Id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
......@@ -425,7 +401,7 @@
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
when a.Id=#{item.Id} then #{item.createTime}
</if>
</foreach>
</trim>
......@@ -433,10 +409,10 @@
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
when a.Id=#{item.Id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
when a.Id=#{item.Id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
......@@ -444,36 +420,74 @@
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
when a.Id=#{item.Id} then #{item.updateTime}
</if>
</foreach>
</trim>
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.Id=#{item.Id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.Id=#{item.Id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.Id=#{item.Id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.Id=#{item.Id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.Id=#{item.Id} then #{item.templateName}
</if>
</foreach>
</trim>
where id in
<trim prefix="mobile=(case" suffix="ELSE mobile end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('mobile')) or (colPickMode==1 and !item.containsKey('mobile'))">
when a.Id=#{item.Id} then #{item.mobile}
</if>
</foreach>
</trim>
</trim>
where Id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
#{item.Id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PrintWaitQueueEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_print_wait_queue as a
where a.id=#{condition.id}
where a.Id=#{condition.Id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_print_wait_queue as a where a.id=#{condition.id}
delete a.* from mortals_xhx_print_wait_queue as a where a.Id=#{condition.Id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_print_wait_queue where id in
delete from mortals_xhx_print_wait_queue where Id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_print_wait_queue where id in
delete from mortals_xhx_print_wait_queue where Id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
......@@ -481,9 +495,9 @@
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_print_wait_queue where id in
delete from mortals_xhx_print_wait_queue where Id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
#{item.Id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
......@@ -561,63 +575,9 @@
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
${_conditionType_} a.Id=#{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('recordId')">
<if test="conditionParamRef.recordId != null ">
${_conditionType_} a.recordId = #{${_conditionParam_}.recordId}
......@@ -741,54 +701,6 @@
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('certificateName')">
<if test="conditionParamRef.certificateName != null and conditionParamRef.certificateName != ''">
......@@ -1116,6 +1028,129 @@
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('Id')">
<if test="conditionParamRef.Id != null ">
${_conditionType_} a.Id = #{${_conditionParam_}.Id}
</if>
<if test="conditionParamRef.Id == null">
${_conditionType_} a.Id is null
</if>
</if>
<if test="conditionParamRef.containsKey('IdList') and conditionParamRef.IdList.size() > 0">
${_conditionType_} a.Id in
<foreach collection="conditionParamRef.IdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('IdNotList') and conditionParamRef.IdNotList.size() > 0">
${_conditionType_} a.Id not in
<foreach collection="conditionParamRef.IdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('IdStart') and conditionParamRef.IdStart != null">
${_conditionType_} a.Id <![CDATA[ >= ]]> #{${_conditionParam_}.IdStart}
</if>
<if test="conditionParamRef.containsKey('IdEnd') and conditionParamRef.IdEnd != null">
${_conditionType_} a.Id <![CDATA[ <= ]]> #{${_conditionParam_}.IdEnd}
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobile')">
<if test="conditionParamRef.mobile != null and conditionParamRef.mobile != ''">
${_conditionType_} a.mobile like #{${_conditionParam_}.mobile}
</if>
<if test="conditionParamRef.mobile == null">
${_conditionType_} a.mobile is null
</if>
</if>
<if test="conditionParamRef.containsKey('mobileList') and conditionParamRef.mobileList.size() > 0">
${_conditionType_} a.mobile in
<foreach collection="conditionParamRef.mobileList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobileNotList') and conditionParamRef.mobileNotList.size() > 0">
${_conditionType_} a.mobile not in
<foreach collection="conditionParamRef.mobileNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
......@@ -1129,16 +1164,6 @@
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('recordId')">
a.recordId
<if test='orderCol.recordId != null and "DESC".equalsIgnoreCase(orderCol.recordId)'>DESC</if>
......@@ -1164,16 +1189,6 @@
<if test='orderCol.catalogName != null and "DESC".equalsIgnoreCase(orderCol.catalogName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('certificateName')">
a.certificateName
<if test='orderCol.certificateName != null and "DESC".equalsIgnoreCase(orderCol.certificateName)'>DESC</if>
......@@ -1249,6 +1264,31 @@
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('Id')">
a.Id
<if test='orderCol.Id != null and "DESC".equalsIgnoreCase(orderCol.Id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('mobile')">
a.mobile
<if test='orderCol.mobile != null and "DESC".equalsIgnoreCase(orderCol.mobile)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.record.dao.ibatis.RetainLogDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="RetainLogEntity" id="RetainLogEntity-Map">
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="recordId" column="recordId" />
<result property="catalogId" column="catalogId" />
<result property="catalogCode" column="catalogCode" />
<result property="catalogName" column="catalogName" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="certificateName" column="certificateName" />
<result property="certificateCode" column="certificateCode" />
<result property="enterpriseName" column="enterpriseName" />
......@@ -25,6 +22,10 @@
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
<result property="siteId" column="siteId" />
<result property="templateId" column="templateId" />
<result property="templateName" column="templateName" />
<result property="mobile" column="mobile" />
</resultMap>
......@@ -35,9 +36,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recordId') or colPickMode == 1 and data.containsKey('recordId')))">
a.recordId,
</if>
......@@ -50,12 +48,6 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('catalogName') or colPickMode == 1 and data.containsKey('catalogName')))">
a.catalogName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('certificateName') or colPickMode == 1 and data.containsKey('certificateName')))">
a.certificateName,
</if>
......@@ -92,23 +84,35 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateId') or colPickMode == 1 and data.containsKey('templateId')))">
a.templateId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('templateName') or colPickMode == 1 and data.containsKey('templateName')))">
a.templateName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('mobile') or colPickMode == 1 and data.containsKey('mobile')))">
a.mobile,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="RetainLogEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_retain_log
(siteId,recordId,catalogId,catalogCode,catalogName,templateId,templateName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,certificateStatus,certificateUrl,previewUrl,createUserId,createTime,updateUserId,updateTime)
(recordId,catalogId,catalogCode,catalogName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,certificateStatus,certificateUrl,previewUrl,createUserId,createTime,updateUserId,updateTime,siteId,templateId,templateName,mobile)
VALUES
(#{siteId},#{recordId},#{catalogId},#{catalogCode},#{catalogName},#{templateId},#{templateName},#{certificateName},#{certificateCode},#{enterpriseName},#{holderName},#{holderIDCardNo},#{certificateStatus},#{certificateUrl},#{previewUrl},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
(#{recordId},#{catalogId},#{catalogCode},#{catalogName},#{certificateName},#{certificateCode},#{enterpriseName},#{holderName},#{holderIDCardNo},#{certificateStatus},#{certificateUrl},#{previewUrl},#{createUserId},#{createTime},#{updateUserId},#{updateTime},#{siteId},#{templateId},#{templateName},#{mobile})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_retain_log
(siteId,recordId,catalogId,catalogCode,catalogName,templateId,templateName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,certificateStatus,certificateUrl,previewUrl,createUserId,createTime,updateUserId,updateTime)
(recordId,catalogId,catalogCode,catalogName,certificateName,certificateCode,enterpriseName,holderName,holderIDCardNo,certificateStatus,certificateUrl,previewUrl,createUserId,createTime,updateUserId,updateTime,siteId,templateId,templateName,mobile)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.recordId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.templateId},#{item.templateName},#{item.certificateName},#{item.certificateCode},#{item.enterpriseName},#{item.holderName},#{item.holderIDCardNo},#{item.certificateStatus},#{item.certificateUrl},#{item.previewUrl},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
(#{item.recordId},#{item.catalogId},#{item.catalogCode},#{item.catalogName},#{item.certificateName},#{item.certificateCode},#{item.enterpriseName},#{item.holderName},#{item.holderIDCardNo},#{item.certificateStatus},#{item.certificateUrl},#{item.previewUrl},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime},#{item.siteId},#{item.templateId},#{item.templateName},#{item.mobile})
</foreach>
</insert>
......@@ -118,12 +122,6 @@
update mortals_xhx_retain_log as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('recordId')) or (colPickMode==1 and !data.containsKey('recordId'))">
a.recordId=#{data.recordId},
</if>
......@@ -142,15 +140,6 @@
<if test="(colPickMode==0 and data.containsKey('catalogName')) or (colPickMode==1 and !data.containsKey('catalogName'))">
a.catalogName=#{data.catalogName},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('certificateName')) or (colPickMode==1 and !data.containsKey('certificateName'))">
a.certificateName=#{data.certificateName},
</if>
......@@ -196,6 +185,24 @@
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateId')) or (colPickMode==1 and !data.containsKey('templateId'))">
a.templateId=#{data.templateId},
</if>
<if test="(colPickMode==0 and data.containsKey('templateIdIncrement')) or (colPickMode==1 and !data.containsKey('templateIdIncrement'))">
a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('templateName')) or (colPickMode==1 and !data.containsKey('templateName'))">
a.templateName=#{data.templateName},
</if>
<if test="(colPickMode==0 and data.containsKey('mobile')) or (colPickMode==1 and !data.containsKey('mobile'))">
a.mobile=#{data.mobile},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
......@@ -208,18 +215,6 @@
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_retain_log as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="recordId=(case" suffix="ELSE recordId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
......@@ -257,25 +252,6 @@
when a.id=#{item.id} then #{item.catalogName}
</if>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
</if>
</foreach>
</trim>
<trim prefix="certificateName=(case" suffix="ELSE certificateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
......@@ -376,6 +352,44 @@
</if>
</foreach>
</trim>
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateId=(case" suffix="ELSE templateId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('templateId')) or (colPickMode==1 and !item.containsKey('templateId'))">
when a.id=#{item.id} then #{item.templateId}
</when>
<when test="(colPickMode==0 and item.containsKey('templateIdIncrement')) or (colPickMode==1 and !item.containsKey('templateIdIncrement'))">
when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="templateName=(case" suffix="ELSE templateName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('templateName')) or (colPickMode==1 and !item.containsKey('templateName'))">
when a.id=#{item.id} then #{item.templateName}
</if>
</foreach>
</trim>
<trim prefix="mobile=(case" suffix="ELSE mobile end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('mobile')) or (colPickMode==1 and !item.containsKey('mobile'))">
when a.id=#{item.id} then #{item.mobile}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
......@@ -519,33 +533,6 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('recordId')">
<if test="conditionParamRef.recordId != null ">
${_conditionType_} a.recordId = #{${_conditionParam_}.recordId}
......@@ -642,54 +629,6 @@
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('certificateName')">
<if test="conditionParamRef.certificateName != null and conditionParamRef.certificateName != ''">
......@@ -948,6 +887,102 @@
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateId')">
<if test="conditionParamRef.templateId != null ">
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
</if>
<if test="conditionParamRef.templateId == null">
${_conditionType_} a.templateId is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateIdList') and conditionParamRef.templateIdList.size() > 0">
${_conditionType_} a.templateId in
<foreach collection="conditionParamRef.templateIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdNotList') and conditionParamRef.templateIdNotList.size() > 0">
${_conditionType_} a.templateId not in
<foreach collection="conditionParamRef.templateIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateIdStart') and conditionParamRef.templateIdStart != null">
${_conditionType_} a.templateId <![CDATA[ >= ]]> #{${_conditionParam_}.templateIdStart}
</if>
<if test="conditionParamRef.containsKey('templateIdEnd') and conditionParamRef.templateIdEnd != null">
${_conditionType_} a.templateId <![CDATA[ <= ]]> #{${_conditionParam_}.templateIdEnd}
</if>
<if test="conditionParamRef.containsKey('templateName')">
<if test="conditionParamRef.templateName != null and conditionParamRef.templateName != ''">
${_conditionType_} a.templateName like #{${_conditionParam_}.templateName}
</if>
<if test="conditionParamRef.templateName == null">
${_conditionType_} a.templateName is null
</if>
</if>
<if test="conditionParamRef.containsKey('templateNameList') and conditionParamRef.templateNameList.size() > 0">
${_conditionType_} a.templateName in
<foreach collection="conditionParamRef.templateNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('templateNameNotList') and conditionParamRef.templateNameNotList.size() > 0">
${_conditionType_} a.templateName not in
<foreach collection="conditionParamRef.templateNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobile')">
<if test="conditionParamRef.mobile != null and conditionParamRef.mobile != ''">
${_conditionType_} a.mobile like #{${_conditionParam_}.mobile}
</if>
<if test="conditionParamRef.mobile == null">
${_conditionType_} a.mobile is null
</if>
</if>
<if test="conditionParamRef.containsKey('mobileList') and conditionParamRef.mobileList.size() > 0">
${_conditionType_} a.mobile in
<foreach collection="conditionParamRef.mobileList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('mobileNotList') and conditionParamRef.mobileNotList.size() > 0">
${_conditionType_} a.mobile not in
<foreach collection="conditionParamRef.mobileNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
......@@ -966,11 +1001,6 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('recordId')">
a.recordId
<if test='orderCol.recordId != null and "DESC".equalsIgnoreCase(orderCol.recordId)'>DESC</if>
......@@ -991,16 +1021,6 @@
<if test='orderCol.catalogName != null and "DESC".equalsIgnoreCase(orderCol.catalogName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('certificateName')">
a.certificateName
<if test='orderCol.certificateName != null and "DESC".equalsIgnoreCase(orderCol.certificateName)'>DESC</if>
......@@ -1061,6 +1081,26 @@
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateId')">
a.templateId
<if test='orderCol.templateId != null and "DESC".equalsIgnoreCase(orderCol.templateId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('templateName')">
a.templateName
<if test='orderCol.templateName != null and "DESC".equalsIgnoreCase(orderCol.templateName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('mobile')">
a.mobile
<if test='orderCol.mobile != null and "DESC".equalsIgnoreCase(orderCol.mobile)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
......
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