Commit 6744d973 authored by 廖旭伟's avatar 廖旭伟

用户行为分析客户埋点接口

parent 42c3a718
...@@ -4619,7 +4619,7 @@ msg|String|消息|- ...@@ -4619,7 +4619,7 @@ msg|String|消息|-
**内容类型:** application/json;charset=utf-8 **内容类型:** application/json;charset=utf-8
**简要描述:** 保存或更新页面事件记录:id为空时为新增保存,否则为更新提交 **简要描述:** 保存页面事件记录
**请求参数:** **请求参数:**
......
...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageAccessDepthVo; ...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageAccessDepthVo;
* 产品页面配置实体对象 * 产品页面配置实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageAccessDepthEntity extends PageAccessDepthVo { public class PageAccessDepthEntity extends PageAccessDepthVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/** /**
* 产品id * 产品id
*/ */
...@@ -41,6 +45,20 @@ public class PageAccessDepthEntity extends PageAccessDepthVo { ...@@ -41,6 +45,20 @@ public class PageAccessDepthEntity extends PageAccessDepthVo {
public PageAccessDepthEntity(){} public PageAccessDepthEntity(){}
/** /**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id * 获取 产品id
* @return Long * @return Long
*/ */
...@@ -98,7 +116,7 @@ public class PageAccessDepthEntity extends PageAccessDepthVo { ...@@ -98,7 +116,7 @@ public class PageAccessDepthEntity extends PageAccessDepthVo {
} }
/** /**
* 获取 本次访问深度 * 获取 本次访问深度
* @return String * @return Integer
*/ */
public Integer getDepthValue(){ public Integer getDepthValue(){
return depthValue; return depthValue;
...@@ -132,6 +150,7 @@ public class PageAccessDepthEntity extends PageAccessDepthVo { ...@@ -132,6 +150,7 @@ public class PageAccessDepthEntity extends PageAccessDepthVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId()); sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName()); sb.append(",productName:").append(getProductName());
sb.append(",pageCode:").append(getPageCode()); sb.append(",pageCode:").append(getPageCode());
...@@ -142,6 +161,8 @@ public class PageAccessDepthEntity extends PageAccessDepthVo { ...@@ -142,6 +161,8 @@ public class PageAccessDepthEntity extends PageAccessDepthVo {
public void initAttrValue(){ public void initAttrValue(){
this.deviceNum = "";
this.productId = null; this.productId = null;
this.productName = ""; this.productName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageAccessDepthEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
* 产品页面配置查询对象 * 产品页面配置查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageAccessDepthQuery extends PageAccessDepthEntity { public class PageAccessDepthQuery extends PageAccessDepthEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
...@@ -24,6 +24,11 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -24,6 +24,11 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> idNotList; private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */ /** 开始 产品id */
private Long productIdStart; private Long productIdStart;
...@@ -54,11 +59,21 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -54,11 +59,21 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
/** 页面名称排除列表 */ /** 页面名称排除列表 */
private List <String> pageNameNotList; private List <String> pageNameNotList;
/** 本次访问深度 */ /** 开始 本次访问深度 */
private List<Integer> depthValueList; private Integer depthValueStart;
/** 结束 本次访问深度 */
private Integer depthValueEnd;
/** 增加 本次访问深度 */
private Integer depthValueIncrement;
/** 本次访问深度列表 */
private List <Integer> depthValueList;
/** 本次访问深度排除列表 */ /** 本次访问深度排除列表 */
private List <String> depthValueNotList; private List <Integer> depthValueNotList;
/** 开始 创建用户 */ /** 开始 创建用户 */
private Long createUserIdStart; private Long createUserIdStart;
...@@ -190,6 +205,38 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -190,6 +205,38 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
} }
/**
* 获取 设备编码
* @return deviceNumList
*/
public List<String> getDeviceNumList(){
return this.deviceNumList;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public void setDeviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
}
/**
* 获取 设备编码
* @return deviceNumNotList
*/
public List<String> getDeviceNumNotList(){
return this.deviceNumNotList;
}
/**
* 设置 设备编码
* @param deviceNumNotList
*/
public void setDeviceNumNotList(List<String> deviceNumNotList){
this.deviceNumNotList = deviceNumNotList;
}
/** /**
* 获取 开始 产品id * 获取 开始 产品id
* @return productIdStart * @return productIdStart
...@@ -367,6 +414,54 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -367,6 +414,54 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
this.pageNameNotList = pageNameNotList; this.pageNameNotList = pageNameNotList;
} }
/**
* 获取 开始 本次访问深度
* @return depthValueStart
*/
public Integer getDepthValueStart(){
return this.depthValueStart;
}
/**
* 设置 开始 本次访问深度
* @param depthValueStart
*/
public void setDepthValueStart(Integer depthValueStart){
this.depthValueStart = depthValueStart;
}
/**
* 获取 结束 本次访问深度
* @return $depthValueEnd
*/
public Integer getDepthValueEnd(){
return this.depthValueEnd;
}
/**
* 设置 结束 本次访问深度
* @param depthValueEnd
*/
public void setDepthValueEnd(Integer depthValueEnd){
this.depthValueEnd = depthValueEnd;
}
/**
* 获取 增加 本次访问深度
* @return depthValueIncrement
*/
public Integer getDepthValueIncrement(){
return this.depthValueIncrement;
}
/**
* 设置 增加 本次访问深度
* @param depthValueIncrement
*/
public void setDepthValueIncrement(Integer depthValueIncrement){
this.depthValueIncrement = depthValueIncrement;
}
/** /**
* 获取 本次访问深度 * 获取 本次访问深度
* @return depthValueList * @return depthValueList
...@@ -387,7 +482,7 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -387,7 +482,7 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
* 获取 本次访问深度 * 获取 本次访问深度
* @return depthValueNotList * @return depthValueNotList
*/ */
public List<String> getDepthValueNotList(){ public List<Integer> getDepthValueNotList(){
return this.depthValueNotList; return this.depthValueNotList;
} }
...@@ -395,10 +490,11 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -395,10 +490,11 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
* 设置 本次访问深度 * 设置 本次访问深度
* @param depthValueNotList * @param depthValueNotList
*/ */
public void setDepthValueNotList(List<String> depthValueNotList){ public void setDepthValueNotList(List<Integer> depthValueNotList){
this.depthValueNotList = depthValueNotList; this.depthValueNotList = depthValueNotList;
} }
/** /**
* 获取 开始 创建用户 * 获取 开始 创建用户
* @return createUserIdStart * @return createUserIdStart
...@@ -679,6 +775,25 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -679,6 +775,25 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
return this; return this;
} }
/**
* 设置 设备编码
* @param deviceNum
*/
public PageAccessDepthQuery deviceNum(String deviceNum){
setDeviceNum(deviceNum);
return this;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public PageAccessDepthQuery deviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
return this;
}
/** /**
* 设置 产品id * 设置 产品id
* @param productId * @param productId
...@@ -790,7 +905,6 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -790,7 +905,6 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
return this; return this;
} }
/** /**
* 设置 本次访问深度 * 设置 本次访问深度
* @param depthValue * @param depthValue
...@@ -800,6 +914,33 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -800,6 +914,33 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
return this; return this;
} }
/**
* 设置 开始 本次访问深度
* @param depthValueStart
*/
public PageAccessDepthQuery depthValueStart(Integer depthValueStart){
this.depthValueStart = depthValueStart;
return this;
}
/**
* 设置 结束 本次访问深度
* @param depthValueEnd
*/
public PageAccessDepthQuery depthValueEnd(Integer depthValueEnd){
this.depthValueEnd = depthValueEnd;
return this;
}
/**
* 设置 增加 本次访问深度
* @param depthValueIncrement
*/
public PageAccessDepthQuery depthValueIncrement(Integer depthValueIncrement){
this.depthValueIncrement = depthValueIncrement;
return this;
}
/** /**
* 设置 本次访问深度 * 设置 本次访问深度
* @param depthValueList * @param depthValueList
...@@ -809,6 +950,15 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity { ...@@ -809,6 +950,15 @@ public class PageAccessDepthQuery extends PageAccessDepthEntity {
return this; return this;
} }
/**
* 设置 本次访问深度
* @param depthValueNotList
*/
public PageAccessDepthQuery depthValueNotList(List<Integer> depthValueNotList){
this.depthValueNotList = depthValueNotList;
return this;
}
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserId * @param createUserId
......
...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageAccessVo; ...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageAccessVo;
* 产品页面配置实体对象 * 产品页面配置实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageAccessEntity extends PageAccessVo { public class PageAccessEntity extends PageAccessVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/** /**
* 产品id * 产品id
*/ */
...@@ -41,6 +45,20 @@ public class PageAccessEntity extends PageAccessVo { ...@@ -41,6 +45,20 @@ public class PageAccessEntity extends PageAccessVo {
public PageAccessEntity(){} public PageAccessEntity(){}
/** /**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id * 获取 产品id
* @return Long * @return Long
*/ */
...@@ -132,6 +150,7 @@ public class PageAccessEntity extends PageAccessVo { ...@@ -132,6 +150,7 @@ public class PageAccessEntity extends PageAccessVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId()); sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName()); sb.append(",productName:").append(getProductName());
sb.append(",pageCode:").append(getPageCode()); sb.append(",pageCode:").append(getPageCode());
...@@ -142,6 +161,8 @@ public class PageAccessEntity extends PageAccessVo { ...@@ -142,6 +161,8 @@ public class PageAccessEntity extends PageAccessVo {
public void initAttrValue(){ public void initAttrValue(){
this.deviceNum = "";
this.productId = null; this.productId = null;
this.productName = ""; this.productName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageAccessEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageAccessEntity;
* 产品页面配置查询对象 * 产品页面配置查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageAccessQuery extends PageAccessEntity { public class PageAccessQuery extends PageAccessEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
...@@ -24,6 +24,11 @@ public class PageAccessQuery extends PageAccessEntity { ...@@ -24,6 +24,11 @@ public class PageAccessQuery extends PageAccessEntity {
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> idNotList; private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */ /** 开始 产品id */
private Long productIdStart; private Long productIdStart;
...@@ -200,6 +205,38 @@ public class PageAccessQuery extends PageAccessEntity { ...@@ -200,6 +205,38 @@ public class PageAccessQuery extends PageAccessEntity {
} }
/**
* 获取 设备编码
* @return deviceNumList
*/
public List<String> getDeviceNumList(){
return this.deviceNumList;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public void setDeviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
}
/**
* 获取 设备编码
* @return deviceNumNotList
*/
public List<String> getDeviceNumNotList(){
return this.deviceNumNotList;
}
/**
* 设置 设备编码
* @param deviceNumNotList
*/
public void setDeviceNumNotList(List<String> deviceNumNotList){
this.deviceNumNotList = deviceNumNotList;
}
/** /**
* 获取 开始 产品id * 获取 开始 产品id
* @return productIdStart * @return productIdStart
...@@ -738,6 +775,25 @@ public class PageAccessQuery extends PageAccessEntity { ...@@ -738,6 +775,25 @@ public class PageAccessQuery extends PageAccessEntity {
return this; return this;
} }
/**
* 设置 设备编码
* @param deviceNum
*/
public PageAccessQuery deviceNum(String deviceNum){
setDeviceNum(deviceNum);
return this;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public PageAccessQuery deviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
return this;
}
/** /**
* 设置 产品id * 设置 产品id
* @param productId * @param productId
......
...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageEventVo; ...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageEventVo;
* 页面事件记录实体对象 * 页面事件记录实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageEventEntity extends PageEventVo { public class PageEventEntity extends PageEventVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/** /**
* 产品id * 产品id
*/ */
...@@ -61,6 +65,20 @@ public class PageEventEntity extends PageEventVo { ...@@ -61,6 +65,20 @@ public class PageEventEntity extends PageEventVo {
public PageEventEntity(){} public PageEventEntity(){}
/** /**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id * 获取 产品id
* @return Long * @return Long
*/ */
...@@ -222,6 +240,7 @@ public class PageEventEntity extends PageEventVo { ...@@ -222,6 +240,7 @@ public class PageEventEntity extends PageEventVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId()); sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName()); sb.append(",productName:").append(getProductName());
sb.append(",businessCode:").append(getBusinessCode()); sb.append(",businessCode:").append(getBusinessCode());
...@@ -237,6 +256,8 @@ public class PageEventEntity extends PageEventVo { ...@@ -237,6 +256,8 @@ public class PageEventEntity extends PageEventVo {
public void initAttrValue(){ public void initAttrValue(){
this.deviceNum = "";
this.productId = null; this.productId = null;
this.productName = ""; this.productName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageEventEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageEventEntity;
* 页面事件记录查询对象 * 页面事件记录查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageEventQuery extends PageEventEntity { public class PageEventQuery extends PageEventEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
...@@ -24,6 +24,11 @@ public class PageEventQuery extends PageEventEntity { ...@@ -24,6 +24,11 @@ public class PageEventQuery extends PageEventEntity {
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> idNotList; private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */ /** 开始 产品id */
private Long productIdStart; private Long productIdStart;
...@@ -225,6 +230,38 @@ public class PageEventQuery extends PageEventEntity { ...@@ -225,6 +230,38 @@ public class PageEventQuery extends PageEventEntity {
} }
/**
* 获取 设备编码
* @return deviceNumList
*/
public List<String> getDeviceNumList(){
return this.deviceNumList;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public void setDeviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
}
/**
* 获取 设备编码
* @return deviceNumNotList
*/
public List<String> getDeviceNumNotList(){
return this.deviceNumNotList;
}
/**
* 设置 设备编码
* @param deviceNumNotList
*/
public void setDeviceNumNotList(List<String> deviceNumNotList){
this.deviceNumNotList = deviceNumNotList;
}
/** /**
* 获取 开始 产品id * 获取 开始 产品id
* @return productIdStart * @return productIdStart
...@@ -923,6 +960,25 @@ public class PageEventQuery extends PageEventEntity { ...@@ -923,6 +960,25 @@ public class PageEventQuery extends PageEventEntity {
return this; return this;
} }
/**
* 设置 设备编码
* @param deviceNum
*/
public PageEventQuery deviceNum(String deviceNum){
setDeviceNum(deviceNum);
return this;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public PageEventQuery deviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
return this;
}
/** /**
* 设置 产品id * 设置 产品id
* @param productId * @param productId
......
...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageInfoVo; ...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageInfoVo;
* 产品页面配置实体对象 * 产品页面配置实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageInfoEntity extends PageInfoVo { public class PageInfoEntity extends PageInfoVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/** /**
* 产品id * 产品id
*/ */
...@@ -41,6 +45,20 @@ public class PageInfoEntity extends PageInfoVo { ...@@ -41,6 +45,20 @@ public class PageInfoEntity extends PageInfoVo {
public PageInfoEntity(){} public PageInfoEntity(){}
/** /**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id * 获取 产品id
* @return Long * @return Long
*/ */
...@@ -132,6 +150,7 @@ public class PageInfoEntity extends PageInfoVo { ...@@ -132,6 +150,7 @@ public class PageInfoEntity extends PageInfoVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId()); sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName()); sb.append(",productName:").append(getProductName());
sb.append(",pageCode:").append(getPageCode()); sb.append(",pageCode:").append(getPageCode());
...@@ -142,6 +161,8 @@ public class PageInfoEntity extends PageInfoVo { ...@@ -142,6 +161,8 @@ public class PageInfoEntity extends PageInfoVo {
public void initAttrValue(){ public void initAttrValue(){
this.deviceNum = "";
this.productId = null; this.productId = null;
this.productName = ""; this.productName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageInfoEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageInfoEntity;
* 产品页面配置查询对象 * 产品页面配置查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageInfoQuery extends PageInfoEntity { public class PageInfoQuery extends PageInfoEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
...@@ -24,6 +24,11 @@ public class PageInfoQuery extends PageInfoEntity { ...@@ -24,6 +24,11 @@ public class PageInfoQuery extends PageInfoEntity {
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> idNotList; private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */ /** 开始 产品id */
private Long productIdStart; private Long productIdStart;
...@@ -190,6 +195,38 @@ public class PageInfoQuery extends PageInfoEntity { ...@@ -190,6 +195,38 @@ public class PageInfoQuery extends PageInfoEntity {
} }
/**
* 获取 设备编码
* @return deviceNumList
*/
public List<String> getDeviceNumList(){
return this.deviceNumList;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public void setDeviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
}
/**
* 获取 设备编码
* @return deviceNumNotList
*/
public List<String> getDeviceNumNotList(){
return this.deviceNumNotList;
}
/**
* 设置 设备编码
* @param deviceNumNotList
*/
public void setDeviceNumNotList(List<String> deviceNumNotList){
this.deviceNumNotList = deviceNumNotList;
}
/** /**
* 获取 开始 产品id * 获取 开始 产品id
* @return productIdStart * @return productIdStart
...@@ -679,6 +716,25 @@ public class PageInfoQuery extends PageInfoEntity { ...@@ -679,6 +716,25 @@ public class PageInfoQuery extends PageInfoEntity {
return this; return this;
} }
/**
* 设置 设备编码
* @param deviceNum
*/
public PageInfoQuery deviceNum(String deviceNum){
setDeviceNum(deviceNum);
return this;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public PageInfoQuery deviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
return this;
}
/** /**
* 设置 产品id * 设置 产品id
* @param productId * @param productId
......
...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageRouteVo; ...@@ -10,12 +10,16 @@ import com.mortals.xhx.module.page.model.vo.PageRouteVo;
* 页面路径记录实体对象 * 页面路径记录实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageRouteEntity extends PageRouteVo { public class PageRouteEntity extends PageRouteVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/** /**
* 产品id * 产品id
*/ */
...@@ -45,6 +49,20 @@ public class PageRouteEntity extends PageRouteVo { ...@@ -45,6 +49,20 @@ public class PageRouteEntity extends PageRouteVo {
public PageRouteEntity(){} public PageRouteEntity(){}
/** /**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id * 获取 产品id
* @return Long * @return Long
*/ */
...@@ -116,7 +134,7 @@ public class PageRouteEntity extends PageRouteVo { ...@@ -116,7 +134,7 @@ public class PageRouteEntity extends PageRouteVo {
} }
/** /**
* 获取 目标页面名称 * 获取 目标页面名称
* @return Integer * @return String
*/ */
public String getTargetName(){ public String getTargetName(){
return targetName; return targetName;
...@@ -150,6 +168,7 @@ public class PageRouteEntity extends PageRouteVo { ...@@ -150,6 +168,7 @@ public class PageRouteEntity extends PageRouteVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId()); sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName()); sb.append(",productName:").append(getProductName());
sb.append(",sourceCode:").append(getSourceCode()); sb.append(",sourceCode:").append(getSourceCode());
...@@ -161,6 +180,8 @@ public class PageRouteEntity extends PageRouteVo { ...@@ -161,6 +180,8 @@ public class PageRouteEntity extends PageRouteVo {
public void initAttrValue(){ public void initAttrValue(){
this.deviceNum = "";
this.productId = null; this.productId = null;
this.productName = ""; this.productName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageRouteEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.page.model.PageRouteEntity;
* 页面路径记录查询对象 * 页面路径记录查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-10 * @date 2023-04-12
*/ */
public class PageRouteQuery extends PageRouteEntity { public class PageRouteQuery extends PageRouteEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
...@@ -24,6 +24,11 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -24,6 +24,11 @@ public class PageRouteQuery extends PageRouteEntity {
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> idNotList; private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */ /** 开始 产品id */
private Long productIdStart; private Long productIdStart;
...@@ -59,13 +64,11 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -59,13 +64,11 @@ public class PageRouteQuery extends PageRouteEntity {
/** 目标页面编码(路由)排除列表 */ /** 目标页面编码(路由)排除列表 */
private List <String> targetCodeNotList; private List <String> targetCodeNotList;
/** 目标页面名称 */
/** 目标页面名称列表 */ private List<String> targetNameList;
private List <String> targetNameList;
/** 目标页面名称排除列表 */ /** 目标页面名称排除列表 */
private List <String> targetNameNotList; private List <String> targetNameNotList;
/** 开始 创建用户 */ /** 开始 创建用户 */
private Long createUserIdStart; private Long createUserIdStart;
...@@ -197,6 +200,38 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -197,6 +200,38 @@ public class PageRouteQuery extends PageRouteEntity {
} }
/**
* 获取 设备编码
* @return deviceNumList
*/
public List<String> getDeviceNumList(){
return this.deviceNumList;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public void setDeviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
}
/**
* 获取 设备编码
* @return deviceNumNotList
*/
public List<String> getDeviceNumNotList(){
return this.deviceNumNotList;
}
/**
* 设置 设备编码
* @param deviceNumNotList
*/
public void setDeviceNumNotList(List<String> deviceNumNotList){
this.deviceNumNotList = deviceNumNotList;
}
/** /**
* 获取 开始 产品id * 获取 开始 产品id
* @return productIdStart * @return productIdStart
...@@ -406,7 +441,6 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -406,7 +441,6 @@ public class PageRouteQuery extends PageRouteEntity {
this.targetCodeNotList = targetCodeNotList; this.targetCodeNotList = targetCodeNotList;
} }
/** /**
* 获取 目标页面名称 * 获取 目标页面名称
* @return targetNameList * @return targetNameList
...@@ -439,7 +473,6 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -439,7 +473,6 @@ public class PageRouteQuery extends PageRouteEntity {
this.targetNameNotList = targetNameNotList; this.targetNameNotList = targetNameNotList;
} }
/** /**
* 获取 开始 创建用户 * 获取 开始 创建用户
* @return createUserIdStart * @return createUserIdStart
...@@ -720,6 +753,25 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -720,6 +753,25 @@ public class PageRouteQuery extends PageRouteEntity {
return this; return this;
} }
/**
* 设置 设备编码
* @param deviceNum
*/
public PageRouteQuery deviceNum(String deviceNum){
setDeviceNum(deviceNum);
return this;
}
/**
* 设置 设备编码
* @param deviceNumList
*/
public PageRouteQuery deviceNumList(List<String> deviceNumList){
this.deviceNumList = deviceNumList;
return this;
}
/** /**
* 设置 产品id * 设置 产品id
* @param productId * @param productId
...@@ -850,6 +902,7 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -850,6 +902,7 @@ public class PageRouteQuery extends PageRouteEntity {
return this; return this;
} }
/** /**
* 设置 目标页面名称 * 设置 目标页面名称
* @param targetName * @param targetName
...@@ -868,15 +921,6 @@ public class PageRouteQuery extends PageRouteEntity { ...@@ -868,15 +921,6 @@ public class PageRouteQuery extends PageRouteEntity {
return this; return this;
} }
/**
* 设置 目标页面名称
* @param targetNameNotList
*/
public PageRouteQuery targetNameNotList(List<String> targetNameNotList){
this.targetNameNotList = targetNameNotList;
return this;
}
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserId * @param createUserId
......
...@@ -11,6 +11,8 @@ import lombok.Data; ...@@ -11,6 +11,8 @@ import lombok.Data;
*/ */
@Data @Data
public class BuryPointPdu { public class BuryPointPdu {
/** 设备编号 */
private String deviceNum;
/*** 产品id */ /*** 产品id */
private Long productId; private Long productId;
/*** 产品名称 */ /*** 产品名称 */
......
...@@ -37,6 +37,7 @@ public class PageAccessDepthServiceImpl extends AbstractCRUDServiceImpl<PageAcce ...@@ -37,6 +37,7 @@ public class PageAccessDepthServiceImpl extends AbstractCRUDServiceImpl<PageAcce
return null; return null;
} }
PageAccessDepthEntity entity = new PageAccessDepthEntity(); PageAccessDepthEntity entity = new PageAccessDepthEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId()); entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName()); entity.setProductName(pdu.getProductName());
entity.setPageCode(pdu.getPageCode()); entity.setPageCode(pdu.getPageCode());
......
...@@ -37,6 +37,7 @@ public class PageAccessServiceImpl extends AbstractCRUDServiceImpl<PageAccessDao ...@@ -37,6 +37,7 @@ public class PageAccessServiceImpl extends AbstractCRUDServiceImpl<PageAccessDao
return null; return null;
} }
PageAccessEntity entity = new PageAccessEntity(); PageAccessEntity entity = new PageAccessEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId()); entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName()); entity.setProductName(pdu.getProductName());
entity.setPageCode(pdu.getPageCode()); entity.setPageCode(pdu.getPageCode());
......
...@@ -37,6 +37,7 @@ public class PageEventServiceImpl extends AbstractCRUDServiceImpl<PageEventDao, ...@@ -37,6 +37,7 @@ public class PageEventServiceImpl extends AbstractCRUDServiceImpl<PageEventDao,
return null; return null;
} }
PageEventEntity entity = new PageEventEntity(); PageEventEntity entity = new PageEventEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId()); entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName()); entity.setProductName(pdu.getProductName());
entity.setPageCode(pdu.getPageCode()); entity.setPageCode(pdu.getPageCode());
......
...@@ -43,6 +43,7 @@ public class PageRouteServiceImpl extends AbstractCRUDServiceImpl<PageRouteDao, ...@@ -43,6 +43,7 @@ public class PageRouteServiceImpl extends AbstractCRUDServiceImpl<PageRouteDao,
return null; return null;
} }
PageRouteEntity entity = new PageRouteEntity(); PageRouteEntity entity = new PageRouteEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId()); entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName()); entity.setProductName(pdu.getProductName());
entity.setSourceCode(pdu.getRouteInfo().getSourceCode()); entity.setSourceCode(pdu.getRouteInfo().getSourceCode());
......
...@@ -40,7 +40,6 @@ public class BuryPointController extends BaseJsonBodyController { ...@@ -40,7 +40,6 @@ public class BuryPointController extends BaseJsonBodyController {
private PageRouteService pageRouteService; private PageRouteService pageRouteService;
@PostMapping({"save"}) @PostMapping({"save"})
@RepeatSubmit
@UnAuth @UnAuth
public String save(@RequestBody BuryPointPdu pdu) { public String save(@RequestBody BuryPointPdu pdu) {
Map<String, Object> model = new HashMap(); Map<String, Object> model = new HashMap();
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="PageAccessDepthEntity" id="PageAccessDepthEntity-Map"> <resultMap type="PageAccessDepthEntity" id="PageAccessDepthEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" /> <result property="productId" column="productId" />
<result property="productName" column="productName" /> <result property="productName" column="productName" />
<result property="pageCode" column="pageCode" /> <result property="pageCode" column="pageCode" />
...@@ -25,6 +26,9 @@ ...@@ -25,6 +26,9 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceNum') or colPickMode == 1 and data.containsKey('deviceNum')))">
a.deviceNum,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId, a.productId,
</if> </if>
...@@ -57,18 +61,18 @@ ...@@ -57,18 +61,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageAccessDepthEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="PageAccessDepthEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_access_depth insert into mortals_xhx_page_access_depth
(productId,productName,pageCode,pageName,depthValue,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,pageCode,pageName,depthValue,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
(#{productId},#{productName},#{pageCode},#{pageName},#{depthValue},#{createUserId},#{createTime},#{updateUserId},#{updateTime}) (#{deviceNum},#{productId},#{productName},#{pageCode},#{pageName},#{depthValue},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_access_depth insert into mortals_xhx_page_access_depth
(productId,productName,pageCode,pageName,depthValue,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,pageCode,pageName,depthValue,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.depthValue},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime}) (#{item.deviceNum},#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.depthValue},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
...@@ -78,6 +82,9 @@ ...@@ -78,6 +82,9 @@
update mortals_xhx_page_access_depth as a update mortals_xhx_page_access_depth as a
set set
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('deviceNum')) or (colPickMode==1 and !data.containsKey('deviceNum'))">
a.deviceNum=#{data.deviceNum},
</if>
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))"> <if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId}, a.productId=#{data.productId},
</if> </if>
...@@ -96,6 +103,9 @@ ...@@ -96,6 +103,9 @@
<if test="(colPickMode==0 and data.containsKey('depthValue')) or (colPickMode==1 and !data.containsKey('depthValue'))"> <if test="(colPickMode==0 and data.containsKey('depthValue')) or (colPickMode==1 and !data.containsKey('depthValue'))">
a.depthValue=#{data.depthValue}, a.depthValue=#{data.depthValue},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('depthValueIncrement')) or (colPickMode==1 and !data.containsKey('depthValueIncrement'))">
a.depthValue=ifnull(a.depthValue,0) + #{data.depthValueIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))"> <if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId}, a.createUserId=#{data.createUserId},
</if> </if>
...@@ -126,6 +136,13 @@ ...@@ -126,6 +136,13 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_access_depth as a update mortals_xhx_page_access_depth as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="deviceNum=(case" suffix="ELSE deviceNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deviceNum')) or (colPickMode==1 and !item.containsKey('deviceNum'))">
when a.id=#{item.id} then #{item.deviceNum}
</if>
</foreach>
</trim>
<trim prefix="productId=(case" suffix="ELSE productId end),"> <trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -161,9 +178,14 @@ ...@@ -161,9 +178,14 @@
</trim> </trim>
<trim prefix="depthValue=(case" suffix="ELSE depthValue end),"> <trim prefix="depthValue=(case" suffix="ELSE depthValue end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('depthValue')) or (colPickMode==1 and !item.containsKey('depthValue'))"> <choose>
<when test="(colPickMode==0 and item.containsKey('depthValue')) or (colPickMode==1 and !item.containsKey('depthValue'))">
when a.id=#{item.id} then #{item.depthValue} when a.id=#{item.id} then #{item.depthValue}
</if> </when>
<when test="(colPickMode==0 and item.containsKey('depthValueIncrement')) or (colPickMode==1 and !item.containsKey('depthValueIncrement'))">
when a.id=#{item.id} then ifnull(a.depthValue,0) + #{item.depthValueIncrement}
</when>
</choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),"> <trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
...@@ -328,13 +350,13 @@ ...@@ -328,13 +350,13 @@
${_conditionType_} a.id is null ${_conditionType_} a.id is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('idList')"> <if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in ${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('idNotList')"> <if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in ${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -347,6 +369,27 @@ ...@@ -347,6 +369,27 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('deviceNum')">
<if test="conditionParamRef.deviceNum != null and conditionParamRef.deviceNum != ''">
${_conditionType_} a.deviceNum like #{${_conditionParam_}.deviceNum}
</if>
<if test="conditionParamRef.deviceNum == null">
${_conditionType_} a.deviceNum is null
</if>
</if>
<if test="conditionParamRef.containsKey('deviceNumList') and conditionParamRef.deviceNumList.size() > 0">
${_conditionType_} a.deviceNum in
<foreach collection="conditionParamRef.deviceNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deviceNumNotList') and conditionParamRef.deviceNumNotList.size() > 0">
${_conditionType_} a.deviceNum not in
<foreach collection="conditionParamRef.deviceNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productId')"> <if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null "> <if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId} ${_conditionType_} a.productId = #{${_conditionParam_}.productId}
...@@ -355,13 +398,13 @@ ...@@ -355,13 +398,13 @@
${_conditionType_} a.productId is null ${_conditionType_} a.productId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productIdList')"> <if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in ${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdNotList')"> <if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in ${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -383,13 +426,13 @@ ...@@ -383,13 +426,13 @@
${_conditionType_} a.productName is null ${_conditionType_} a.productName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productNameList')"> <if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in ${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productNameNotList')"> <if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in ${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -404,13 +447,13 @@ ...@@ -404,13 +447,13 @@
${_conditionType_} a.pageCode is null ${_conditionType_} a.pageCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeList')"> <if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in ${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeNotList')"> <if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in ${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -425,39 +468,45 @@ ...@@ -425,39 +468,45 @@
${_conditionType_} a.pageName is null ${_conditionType_} a.pageName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameList')"> <if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in ${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameNotList')"> <if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in ${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('depthValue')"> <if test="conditionParamRef.containsKey('depthValue')">
<if test="conditionParamRef.depthValue != null and conditionParamRef.depthValue != ''"> <if test="conditionParamRef.depthValue != null ">
${_conditionType_} a.depthValue like #{${_conditionParam_}.depthValue} ${_conditionType_} a.depthValue = #{${_conditionParam_}.depthValue}
</if> </if>
<if test="conditionParamRef.depthValue == null"> <if test="conditionParamRef.depthValue == null">
${_conditionType_} a.depthValue is null ${_conditionType_} a.depthValue is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('depthValueList')"> <if test="conditionParamRef.containsKey('depthValueList') and conditionParamRef.depthValueList.size() > 0">
${_conditionType_} a.depthValue in ${_conditionType_} a.depthValue in
<foreach collection="conditionParamRef.depthValueList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.depthValueList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('depthValueNotList')"> <if test="conditionParamRef.containsKey('depthValueNotList') and conditionParamRef.depthValueNotList.size() > 0">
${_conditionType_} a.depthValue not in ${_conditionType_} a.depthValue not in
<foreach collection="conditionParamRef.depthValueNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.depthValueNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('depthValueStart') and conditionParamRef.depthValueStart != null">
${_conditionType_} a.depthValue <![CDATA[ >= ]]> #{${_conditionParam_}.depthValueStart}
</if>
<if test="conditionParamRef.containsKey('depthValueEnd') and conditionParamRef.depthValueEnd != null">
${_conditionType_} a.depthValue <![CDATA[ <= ]]> #{${_conditionParam_}.depthValueEnd}
</if>
<if test="conditionParamRef.containsKey('createUserId')"> <if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null "> <if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId} ${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
...@@ -466,13 +515,13 @@ ...@@ -466,13 +515,13 @@
${_conditionType_} a.createUserId is null ${_conditionType_} a.createUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdList')"> <if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in ${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdNotList')"> <if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in ${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -508,13 +557,13 @@ ...@@ -508,13 +557,13 @@
${_conditionType_} a.updateUserId is null ${_conditionType_} a.updateUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdList')"> <if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in ${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')"> <if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in ${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -560,6 +609,11 @@ ...@@ -560,6 +609,11 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')"> <if test="orderCol.containsKey('productId')">
a.productId a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if> <if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="PageAccessEntity" id="PageAccessEntity-Map"> <resultMap type="PageAccessEntity" id="PageAccessEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" /> <result property="productId" column="productId" />
<result property="productName" column="productName" /> <result property="productName" column="productName" />
<result property="pageCode" column="pageCode" /> <result property="pageCode" column="pageCode" />
...@@ -25,6 +26,9 @@ ...@@ -25,6 +26,9 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceNum') or colPickMode == 1 and data.containsKey('deviceNum')))">
a.deviceNum,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId, a.productId,
</if> </if>
...@@ -57,18 +61,18 @@ ...@@ -57,18 +61,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageAccessEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="PageAccessEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_access insert into mortals_xhx_page_access
(productId,productName,pageCode,pageName,sceneDepth,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,pageCode,pageName,sceneDepth,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
(#{productId},#{productName},#{pageCode},#{pageName},#{sceneDepth},#{createUserId},#{createTime},#{updateUserId},#{updateTime}) (#{deviceNum},#{productId},#{productName},#{pageCode},#{pageName},#{sceneDepth},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_access insert into mortals_xhx_page_access
(productId,productName,pageCode,pageName,sceneDepth,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,pageCode,pageName,sceneDepth,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.sceneDepth},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime}) (#{item.deviceNum},#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.sceneDepth},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
...@@ -78,6 +82,9 @@ ...@@ -78,6 +82,9 @@
update mortals_xhx_page_access as a update mortals_xhx_page_access as a
set set
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('deviceNum')) or (colPickMode==1 and !data.containsKey('deviceNum'))">
a.deviceNum=#{data.deviceNum},
</if>
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))"> <if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId}, a.productId=#{data.productId},
</if> </if>
...@@ -129,6 +136,13 @@ ...@@ -129,6 +136,13 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_access as a update mortals_xhx_page_access as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="deviceNum=(case" suffix="ELSE deviceNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deviceNum')) or (colPickMode==1 and !item.containsKey('deviceNum'))">
when a.id=#{item.id} then #{item.deviceNum}
</if>
</foreach>
</trim>
<trim prefix="productId=(case" suffix="ELSE productId end),"> <trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -336,13 +350,13 @@ ...@@ -336,13 +350,13 @@
${_conditionType_} a.id is null ${_conditionType_} a.id is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('idList')"> <if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in ${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('idNotList')"> <if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in ${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -355,6 +369,27 @@ ...@@ -355,6 +369,27 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('deviceNum')">
<if test="conditionParamRef.deviceNum != null and conditionParamRef.deviceNum != ''">
${_conditionType_} a.deviceNum like #{${_conditionParam_}.deviceNum}
</if>
<if test="conditionParamRef.deviceNum == null">
${_conditionType_} a.deviceNum is null
</if>
</if>
<if test="conditionParamRef.containsKey('deviceNumList') and conditionParamRef.deviceNumList.size() > 0">
${_conditionType_} a.deviceNum in
<foreach collection="conditionParamRef.deviceNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deviceNumNotList') and conditionParamRef.deviceNumNotList.size() > 0">
${_conditionType_} a.deviceNum not in
<foreach collection="conditionParamRef.deviceNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productId')"> <if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null "> <if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId} ${_conditionType_} a.productId = #{${_conditionParam_}.productId}
...@@ -363,13 +398,13 @@ ...@@ -363,13 +398,13 @@
${_conditionType_} a.productId is null ${_conditionType_} a.productId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productIdList')"> <if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in ${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdNotList')"> <if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in ${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -391,13 +426,13 @@ ...@@ -391,13 +426,13 @@
${_conditionType_} a.productName is null ${_conditionType_} a.productName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productNameList')"> <if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in ${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productNameNotList')"> <if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in ${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -412,13 +447,13 @@ ...@@ -412,13 +447,13 @@
${_conditionType_} a.pageCode is null ${_conditionType_} a.pageCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeList')"> <if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in ${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeNotList')"> <if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in ${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -433,13 +468,13 @@ ...@@ -433,13 +468,13 @@
${_conditionType_} a.pageName is null ${_conditionType_} a.pageName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameList')"> <if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in ${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameNotList')"> <if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in ${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -453,13 +488,13 @@ ...@@ -453,13 +488,13 @@
${_conditionType_} a.sceneDepth is null ${_conditionType_} a.sceneDepth is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('sceneDepthList')"> <if test="conditionParamRef.containsKey('sceneDepthList') and conditionParamRef.sceneDepthList.size() > 0">
${_conditionType_} a.sceneDepth in ${_conditionType_} a.sceneDepth in
<foreach collection="conditionParamRef.sceneDepthList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.sceneDepthList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('sceneDepthNotList')"> <if test="conditionParamRef.containsKey('sceneDepthNotList') and conditionParamRef.sceneDepthNotList.size() > 0">
${_conditionType_} a.sceneDepth not in ${_conditionType_} a.sceneDepth not in
<foreach collection="conditionParamRef.sceneDepthNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.sceneDepthNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -480,13 +515,13 @@ ...@@ -480,13 +515,13 @@
${_conditionType_} a.createUserId is null ${_conditionType_} a.createUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdList')"> <if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in ${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdNotList')"> <if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in ${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -522,13 +557,13 @@ ...@@ -522,13 +557,13 @@
${_conditionType_} a.updateUserId is null ${_conditionType_} a.updateUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdList')"> <if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in ${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')"> <if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in ${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -574,6 +609,11 @@ ...@@ -574,6 +609,11 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')"> <if test="orderCol.containsKey('productId')">
a.productId a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if> <if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="PageEventEntity" id="PageEventEntity-Map"> <resultMap type="PageEventEntity" id="PageEventEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" /> <result property="productId" column="productId" />
<result property="productName" column="productName" /> <result property="productName" column="productName" />
<result property="businessCode" column="businessCode" /> <result property="businessCode" column="businessCode" />
...@@ -30,6 +31,9 @@ ...@@ -30,6 +31,9 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceNum') or colPickMode == 1 and data.containsKey('deviceNum')))">
a.deviceNum,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId, a.productId,
</if> </if>
...@@ -77,18 +81,18 @@ ...@@ -77,18 +81,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageEventEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="PageEventEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_event insert into mortals_xhx_page_event
(productId,productName,businessCode,businessName,eventCode,eventName,takeTime,pageCode,pageName,coordinate,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,businessCode,businessName,eventCode,eventName,takeTime,pageCode,pageName,coordinate,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
(#{productId},#{productName},#{businessCode},#{businessName},#{eventCode},#{eventName},#{takeTime},#{pageCode},#{pageName},#{coordinate},#{createUserId},#{createTime},#{updateUserId},#{updateTime}) (#{deviceNum},#{productId},#{productName},#{businessCode},#{businessName},#{eventCode},#{eventName},#{takeTime},#{pageCode},#{pageName},#{coordinate},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_event insert into mortals_xhx_page_event
(productId,productName,businessCode,businessName,eventCode,eventName,takeTime,pageCode,pageName,coordinate,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,businessCode,businessName,eventCode,eventName,takeTime,pageCode,pageName,coordinate,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.productName},#{item.businessCode},#{item.businessName},#{item.eventCode},#{item.eventName},#{item.takeTime},#{item.pageCode},#{item.pageName},#{item.coordinate},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime}) (#{item.deviceNum},#{item.productId},#{item.productName},#{item.businessCode},#{item.businessName},#{item.eventCode},#{item.eventName},#{item.takeTime},#{item.pageCode},#{item.pageName},#{item.coordinate},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
...@@ -98,6 +102,9 @@ ...@@ -98,6 +102,9 @@
update mortals_xhx_page_event as a update mortals_xhx_page_event as a
set set
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('deviceNum')) or (colPickMode==1 and !data.containsKey('deviceNum'))">
a.deviceNum=#{data.deviceNum},
</if>
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))"> <if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId}, a.productId=#{data.productId},
</if> </if>
...@@ -164,6 +171,13 @@ ...@@ -164,6 +171,13 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_event as a update mortals_xhx_page_event as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="deviceNum=(case" suffix="ELSE deviceNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deviceNum')) or (colPickMode==1 and !item.containsKey('deviceNum'))">
when a.id=#{item.id} then #{item.deviceNum}
</if>
</foreach>
</trim>
<trim prefix="productId=(case" suffix="ELSE productId end),"> <trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -406,13 +420,13 @@ ...@@ -406,13 +420,13 @@
${_conditionType_} a.id is null ${_conditionType_} a.id is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('idList')"> <if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in ${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('idNotList')"> <if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in ${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -425,6 +439,27 @@ ...@@ -425,6 +439,27 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('deviceNum')">
<if test="conditionParamRef.deviceNum != null and conditionParamRef.deviceNum != ''">
${_conditionType_} a.deviceNum like #{${_conditionParam_}.deviceNum}
</if>
<if test="conditionParamRef.deviceNum == null">
${_conditionType_} a.deviceNum is null
</if>
</if>
<if test="conditionParamRef.containsKey('deviceNumList') and conditionParamRef.deviceNumList.size() > 0">
${_conditionType_} a.deviceNum in
<foreach collection="conditionParamRef.deviceNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deviceNumNotList') and conditionParamRef.deviceNumNotList.size() > 0">
${_conditionType_} a.deviceNum not in
<foreach collection="conditionParamRef.deviceNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productId')"> <if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null "> <if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId} ${_conditionType_} a.productId = #{${_conditionParam_}.productId}
...@@ -433,13 +468,13 @@ ...@@ -433,13 +468,13 @@
${_conditionType_} a.productId is null ${_conditionType_} a.productId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productIdList')"> <if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in ${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdNotList')"> <if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in ${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -461,13 +496,13 @@ ...@@ -461,13 +496,13 @@
${_conditionType_} a.productName is null ${_conditionType_} a.productName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productNameList')"> <if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in ${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productNameNotList')"> <if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in ${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -482,13 +517,13 @@ ...@@ -482,13 +517,13 @@
${_conditionType_} a.businessCode is null ${_conditionType_} a.businessCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('businessCodeList')"> <if test="conditionParamRef.containsKey('businessCodeList') and conditionParamRef.businessCodeList.size() > 0">
${_conditionType_} a.businessCode in ${_conditionType_} a.businessCode in
<foreach collection="conditionParamRef.businessCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.businessCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('businessCodeNotList')"> <if test="conditionParamRef.containsKey('businessCodeNotList') and conditionParamRef.businessCodeNotList.size() > 0">
${_conditionType_} a.businessCode not in ${_conditionType_} a.businessCode not in
<foreach collection="conditionParamRef.businessCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.businessCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -503,13 +538,13 @@ ...@@ -503,13 +538,13 @@
${_conditionType_} a.businessName is null ${_conditionType_} a.businessName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('businessNameList')"> <if test="conditionParamRef.containsKey('businessNameList') and conditionParamRef.businessNameList.size() > 0">
${_conditionType_} a.businessName in ${_conditionType_} a.businessName in
<foreach collection="conditionParamRef.businessNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.businessNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('businessNameNotList')"> <if test="conditionParamRef.containsKey('businessNameNotList') and conditionParamRef.businessNameNotList.size() > 0">
${_conditionType_} a.businessName not in ${_conditionType_} a.businessName not in
<foreach collection="conditionParamRef.businessNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.businessNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -524,13 +559,13 @@ ...@@ -524,13 +559,13 @@
${_conditionType_} a.eventCode is null ${_conditionType_} a.eventCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('eventCodeList')"> <if test="conditionParamRef.containsKey('eventCodeList') and conditionParamRef.eventCodeList.size() > 0">
${_conditionType_} a.eventCode in ${_conditionType_} a.eventCode in
<foreach collection="conditionParamRef.eventCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.eventCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('eventCodeNotList')"> <if test="conditionParamRef.containsKey('eventCodeNotList') and conditionParamRef.eventCodeNotList.size() > 0">
${_conditionType_} a.eventCode not in ${_conditionType_} a.eventCode not in
<foreach collection="conditionParamRef.eventCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.eventCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -545,13 +580,13 @@ ...@@ -545,13 +580,13 @@
${_conditionType_} a.eventName is null ${_conditionType_} a.eventName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('eventNameList')"> <if test="conditionParamRef.containsKey('eventNameList') and conditionParamRef.eventNameList.size() > 0">
${_conditionType_} a.eventName in ${_conditionType_} a.eventName in
<foreach collection="conditionParamRef.eventNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.eventNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('eventNameNotList')"> <if test="conditionParamRef.containsKey('eventNameNotList') and conditionParamRef.eventNameNotList.size() > 0">
${_conditionType_} a.eventName not in ${_conditionType_} a.eventName not in
<foreach collection="conditionParamRef.eventNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.eventNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -565,13 +600,13 @@ ...@@ -565,13 +600,13 @@
${_conditionType_} a.takeTime is null ${_conditionType_} a.takeTime is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('takeTimeList')"> <if test="conditionParamRef.containsKey('takeTimeList') and conditionParamRef.takeTimeList.size() > 0">
${_conditionType_} a.takeTime in ${_conditionType_} a.takeTime in
<foreach collection="conditionParamRef.takeTimeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.takeTimeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('takeTimeNotList')"> <if test="conditionParamRef.containsKey('takeTimeNotList') and conditionParamRef.takeTimeNotList.size() > 0">
${_conditionType_} a.takeTime not in ${_conditionType_} a.takeTime not in
<foreach collection="conditionParamRef.takeTimeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.takeTimeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -593,13 +628,13 @@ ...@@ -593,13 +628,13 @@
${_conditionType_} a.pageCode is null ${_conditionType_} a.pageCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeList')"> <if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in ${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeNotList')"> <if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in ${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -614,13 +649,13 @@ ...@@ -614,13 +649,13 @@
${_conditionType_} a.pageName is null ${_conditionType_} a.pageName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameList')"> <if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in ${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameNotList')"> <if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in ${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -635,13 +670,13 @@ ...@@ -635,13 +670,13 @@
${_conditionType_} a.coordinate is null ${_conditionType_} a.coordinate is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('coordinateList')"> <if test="conditionParamRef.containsKey('coordinateList') and conditionParamRef.coordinateList.size() > 0">
${_conditionType_} a.coordinate in ${_conditionType_} a.coordinate in
<foreach collection="conditionParamRef.coordinateList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.coordinateList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('coordinateNotList')"> <if test="conditionParamRef.containsKey('coordinateNotList') and conditionParamRef.coordinateNotList.size() > 0">
${_conditionType_} a.coordinate not in ${_conditionType_} a.coordinate not in
<foreach collection="conditionParamRef.coordinateNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.coordinateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -655,13 +690,13 @@ ...@@ -655,13 +690,13 @@
${_conditionType_} a.createUserId is null ${_conditionType_} a.createUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdList')"> <if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in ${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdNotList')"> <if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in ${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -697,13 +732,13 @@ ...@@ -697,13 +732,13 @@
${_conditionType_} a.updateUserId is null ${_conditionType_} a.updateUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdList')"> <if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in ${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')"> <if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in ${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -749,6 +784,11 @@ ...@@ -749,6 +784,11 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')"> <if test="orderCol.containsKey('productId')">
a.productId a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if> <if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="PageInfoEntity" id="PageInfoEntity-Map"> <resultMap type="PageInfoEntity" id="PageInfoEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" /> <result property="productId" column="productId" />
<result property="productName" column="productName" /> <result property="productName" column="productName" />
<result property="pageCode" column="pageCode" /> <result property="pageCode" column="pageCode" />
...@@ -25,6 +26,9 @@ ...@@ -25,6 +26,9 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceNum') or colPickMode == 1 and data.containsKey('deviceNum')))">
a.deviceNum,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId, a.productId,
</if> </if>
...@@ -57,18 +61,18 @@ ...@@ -57,18 +61,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageInfoEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="PageInfoEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_info insert into mortals_xhx_page_info
(productId,productName,pageCode,pageName,screenUrl,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,pageCode,pageName,screenUrl,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
(#{productId},#{productName},#{pageCode},#{pageName},#{screenUrl},#{createUserId},#{createTime},#{updateUserId},#{updateTime}) (#{deviceNum},#{productId},#{productName},#{pageCode},#{pageName},#{screenUrl},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_info insert into mortals_xhx_page_info
(productId,productName,pageCode,pageName,screenUrl,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,pageCode,pageName,screenUrl,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.screenUrl},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime}) (#{item.deviceNum},#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.screenUrl},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
...@@ -78,6 +82,9 @@ ...@@ -78,6 +82,9 @@
update mortals_xhx_page_info as a update mortals_xhx_page_info as a
set set
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('deviceNum')) or (colPickMode==1 and !data.containsKey('deviceNum'))">
a.deviceNum=#{data.deviceNum},
</if>
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))"> <if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId}, a.productId=#{data.productId},
</if> </if>
...@@ -126,6 +133,13 @@ ...@@ -126,6 +133,13 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_info as a update mortals_xhx_page_info as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="deviceNum=(case" suffix="ELSE deviceNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deviceNum')) or (colPickMode==1 and !item.containsKey('deviceNum'))">
when a.id=#{item.id} then #{item.deviceNum}
</if>
</foreach>
</trim>
<trim prefix="productId=(case" suffix="ELSE productId end),"> <trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -328,13 +342,13 @@ ...@@ -328,13 +342,13 @@
${_conditionType_} a.id is null ${_conditionType_} a.id is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('idList')"> <if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in ${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('idNotList')"> <if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in ${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -347,6 +361,27 @@ ...@@ -347,6 +361,27 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('deviceNum')">
<if test="conditionParamRef.deviceNum != null and conditionParamRef.deviceNum != ''">
${_conditionType_} a.deviceNum like #{${_conditionParam_}.deviceNum}
</if>
<if test="conditionParamRef.deviceNum == null">
${_conditionType_} a.deviceNum is null
</if>
</if>
<if test="conditionParamRef.containsKey('deviceNumList') and conditionParamRef.deviceNumList.size() > 0">
${_conditionType_} a.deviceNum in
<foreach collection="conditionParamRef.deviceNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deviceNumNotList') and conditionParamRef.deviceNumNotList.size() > 0">
${_conditionType_} a.deviceNum not in
<foreach collection="conditionParamRef.deviceNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productId')"> <if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null "> <if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId} ${_conditionType_} a.productId = #{${_conditionParam_}.productId}
...@@ -355,13 +390,13 @@ ...@@ -355,13 +390,13 @@
${_conditionType_} a.productId is null ${_conditionType_} a.productId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productIdList')"> <if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in ${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdNotList')"> <if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in ${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -383,13 +418,13 @@ ...@@ -383,13 +418,13 @@
${_conditionType_} a.productName is null ${_conditionType_} a.productName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productNameList')"> <if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in ${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productNameNotList')"> <if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in ${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -404,13 +439,13 @@ ...@@ -404,13 +439,13 @@
${_conditionType_} a.pageCode is null ${_conditionType_} a.pageCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeList')"> <if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in ${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageCodeNotList')"> <if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in ${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -425,13 +460,13 @@ ...@@ -425,13 +460,13 @@
${_conditionType_} a.pageName is null ${_conditionType_} a.pageName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameList')"> <if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in ${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('pageNameNotList')"> <if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in ${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -446,13 +481,13 @@ ...@@ -446,13 +481,13 @@
${_conditionType_} a.screenUrl is null ${_conditionType_} a.screenUrl is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('screenUrlList')"> <if test="conditionParamRef.containsKey('screenUrlList') and conditionParamRef.screenUrlList.size() > 0">
${_conditionType_} a.screenUrl in ${_conditionType_} a.screenUrl in
<foreach collection="conditionParamRef.screenUrlList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.screenUrlList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('screenUrlNotList')"> <if test="conditionParamRef.containsKey('screenUrlNotList') and conditionParamRef.screenUrlNotList.size() > 0">
${_conditionType_} a.screenUrl not in ${_conditionType_} a.screenUrl not in
<foreach collection="conditionParamRef.screenUrlNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.screenUrlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -466,13 +501,13 @@ ...@@ -466,13 +501,13 @@
${_conditionType_} a.createUserId is null ${_conditionType_} a.createUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdList')"> <if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in ${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdNotList')"> <if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in ${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -508,13 +543,13 @@ ...@@ -508,13 +543,13 @@
${_conditionType_} a.updateUserId is null ${_conditionType_} a.updateUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdList')"> <if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in ${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')"> <if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in ${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -560,6 +595,11 @@ ...@@ -560,6 +595,11 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')"> <if test="orderCol.containsKey('productId')">
a.productId a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if> <if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="PageRouteEntity" id="PageRouteEntity-Map"> <resultMap type="PageRouteEntity" id="PageRouteEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" /> <result property="productId" column="productId" />
<result property="productName" column="productName" /> <result property="productName" column="productName" />
<result property="sourceCode" column="sourceCode" /> <result property="sourceCode" column="sourceCode" />
...@@ -26,6 +27,9 @@ ...@@ -26,6 +27,9 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceNum') or colPickMode == 1 and data.containsKey('deviceNum')))">
a.deviceNum,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId, a.productId,
</if> </if>
...@@ -61,18 +65,18 @@ ...@@ -61,18 +65,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageRouteEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="PageRouteEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_route insert into mortals_xhx_page_route
(productId,productName,sourceCode,sourceName,targetCode,targetName,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,sourceCode,sourceName,targetCode,targetName,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
(#{productId},#{productName},#{sourceCode},#{sourceName},#{targetCode},#{targetName},#{createUserId},#{createTime},#{updateUserId},#{updateTime}) (#{deviceNum},#{productId},#{productName},#{sourceCode},#{sourceName},#{targetCode},#{targetName},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_route insert into mortals_xhx_page_route
(productId,productName,sourceCode,sourceName,targetCode,targetName,createUserId,createTime,updateUserId,updateTime) (deviceNum,productId,productName,sourceCode,sourceName,targetCode,targetName,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.productName},#{item.sourceCode},#{item.sourceName},#{item.targetCode},#{item.targetName},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime}) (#{item.deviceNum},#{item.productId},#{item.productName},#{item.sourceCode},#{item.sourceName},#{item.targetCode},#{item.targetName},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
...@@ -82,6 +86,9 @@ ...@@ -82,6 +86,9 @@
update mortals_xhx_page_route as a update mortals_xhx_page_route as a
set set
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('deviceNum')) or (colPickMode==1 and !data.containsKey('deviceNum'))">
a.deviceNum=#{data.deviceNum},
</if>
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))"> <if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId}, a.productId=#{data.productId},
</if> </if>
...@@ -103,9 +110,6 @@ ...@@ -103,9 +110,6 @@
<if test="(colPickMode==0 and data.containsKey('targetName')) or (colPickMode==1 and !data.containsKey('targetName'))"> <if test="(colPickMode==0 and data.containsKey('targetName')) or (colPickMode==1 and !data.containsKey('targetName'))">
a.targetName=#{data.targetName}, a.targetName=#{data.targetName},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('targetNameIncrement')) or (colPickMode==1 and !data.containsKey('targetNameIncrement'))">
a.targetName=ifnull(a.targetName,0) + #{data.targetNameIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))"> <if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId}, a.createUserId=#{data.createUserId},
</if> </if>
...@@ -136,6 +140,13 @@ ...@@ -136,6 +140,13 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_route as a update mortals_xhx_page_route as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="deviceNum=(case" suffix="ELSE deviceNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deviceNum')) or (colPickMode==1 and !item.containsKey('deviceNum'))">
when a.id=#{item.id} then #{item.deviceNum}
</if>
</foreach>
</trim>
<trim prefix="productId=(case" suffix="ELSE productId end),"> <trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -178,14 +189,9 @@ ...@@ -178,14 +189,9 @@
</trim> </trim>
<trim prefix="targetName=(case" suffix="ELSE targetName end),"> <trim prefix="targetName=(case" suffix="ELSE targetName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <if test="(colPickMode==0 and item.containsKey('targetName')) or (colPickMode==1 and !item.containsKey('targetName'))">
<when test="(colPickMode==0 and item.containsKey('targetName')) or (colPickMode==1 and !item.containsKey('targetName'))">
when a.id=#{item.id} then #{item.targetName} when a.id=#{item.id} then #{item.targetName}
</when> </if>
<when test="(colPickMode==0 and item.containsKey('targetNameIncrement')) or (colPickMode==1 and !item.containsKey('targetNameIncrement'))">
when a.id=#{item.id} then ifnull(a.targetName,0) + #{item.targetNameIncrement}
</when>
</choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),"> <trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
...@@ -350,13 +356,13 @@ ...@@ -350,13 +356,13 @@
${_conditionType_} a.id is null ${_conditionType_} a.id is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('idList')"> <if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in ${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('idNotList')"> <if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in ${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -369,6 +375,27 @@ ...@@ -369,6 +375,27 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('deviceNum')">
<if test="conditionParamRef.deviceNum != null and conditionParamRef.deviceNum != ''">
${_conditionType_} a.deviceNum like #{${_conditionParam_}.deviceNum}
</if>
<if test="conditionParamRef.deviceNum == null">
${_conditionType_} a.deviceNum is null
</if>
</if>
<if test="conditionParamRef.containsKey('deviceNumList') and conditionParamRef.deviceNumList.size() > 0">
${_conditionType_} a.deviceNum in
<foreach collection="conditionParamRef.deviceNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deviceNumNotList') and conditionParamRef.deviceNumNotList.size() > 0">
${_conditionType_} a.deviceNum not in
<foreach collection="conditionParamRef.deviceNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productId')"> <if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null "> <if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId} ${_conditionType_} a.productId = #{${_conditionParam_}.productId}
...@@ -377,13 +404,13 @@ ...@@ -377,13 +404,13 @@
${_conditionType_} a.productId is null ${_conditionType_} a.productId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productIdList')"> <if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in ${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdNotList')"> <if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in ${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -405,13 +432,13 @@ ...@@ -405,13 +432,13 @@
${_conditionType_} a.productName is null ${_conditionType_} a.productName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productNameList')"> <if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in ${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productNameNotList')"> <if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in ${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -426,13 +453,13 @@ ...@@ -426,13 +453,13 @@
${_conditionType_} a.sourceCode is null ${_conditionType_} a.sourceCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('sourceCodeList')"> <if test="conditionParamRef.containsKey('sourceCodeList') and conditionParamRef.sourceCodeList.size() > 0">
${_conditionType_} a.sourceCode in ${_conditionType_} a.sourceCode in
<foreach collection="conditionParamRef.sourceCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.sourceCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('sourceCodeNotList')"> <if test="conditionParamRef.containsKey('sourceCodeNotList') and conditionParamRef.sourceCodeNotList.size() > 0">
${_conditionType_} a.sourceCode not in ${_conditionType_} a.sourceCode not in
<foreach collection="conditionParamRef.sourceCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.sourceCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -447,13 +474,13 @@ ...@@ -447,13 +474,13 @@
${_conditionType_} a.sourceName is null ${_conditionType_} a.sourceName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('sourceNameList')"> <if test="conditionParamRef.containsKey('sourceNameList') and conditionParamRef.sourceNameList.size() > 0">
${_conditionType_} a.sourceName in ${_conditionType_} a.sourceName in
<foreach collection="conditionParamRef.sourceNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.sourceNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('sourceNameNotList')"> <if test="conditionParamRef.containsKey('sourceNameNotList') and conditionParamRef.sourceNameNotList.size() > 0">
${_conditionType_} a.sourceName not in ${_conditionType_} a.sourceName not in
<foreach collection="conditionParamRef.sourceNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.sourceNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -468,45 +495,39 @@ ...@@ -468,45 +495,39 @@
${_conditionType_} a.targetCode is null ${_conditionType_} a.targetCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('targetCodeList')"> <if test="conditionParamRef.containsKey('targetCodeList') and conditionParamRef.targetCodeList.size() > 0">
${_conditionType_} a.targetCode in ${_conditionType_} a.targetCode in
<foreach collection="conditionParamRef.targetCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.targetCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('targetCodeNotList')"> <if test="conditionParamRef.containsKey('targetCodeNotList') and conditionParamRef.targetCodeNotList.size() > 0">
${_conditionType_} a.targetCode not in ${_conditionType_} a.targetCode not in
<foreach collection="conditionParamRef.targetCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.targetCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('targetName')"> <if test="conditionParamRef.containsKey('targetName')">
<if test="conditionParamRef.targetName != null "> <if test="conditionParamRef.targetName != null and conditionParamRef.targetName != ''">
${_conditionType_} a.targetName = #{${_conditionParam_}.targetName} ${_conditionType_} a.targetName like #{${_conditionParam_}.targetName}
</if> </if>
<if test="conditionParamRef.targetName == null"> <if test="conditionParamRef.targetName == null">
${_conditionType_} a.targetName is null ${_conditionType_} a.targetName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('targetNameList')"> <if test="conditionParamRef.containsKey('targetNameList') and conditionParamRef.targetNameList.size() > 0">
${_conditionType_} a.targetName in ${_conditionType_} a.targetName in
<foreach collection="conditionParamRef.targetNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.targetNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('targetNameNotList')"> <if test="conditionParamRef.containsKey('targetNameNotList') and conditionParamRef.targetNameNotList.size() > 0">
${_conditionType_} a.targetName not in ${_conditionType_} a.targetName not in
<foreach collection="conditionParamRef.targetNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.targetNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('targetNameStart') and conditionParamRef.targetNameStart != null">
${_conditionType_} a.targetName <![CDATA[ >= ]]> #{${_conditionParam_}.targetNameStart}
</if>
<if test="conditionParamRef.containsKey('targetNameEnd') and conditionParamRef.targetNameEnd != null">
${_conditionType_} a.targetName <![CDATA[ <= ]]> #{${_conditionParam_}.targetNameEnd}
</if>
<if test="conditionParamRef.containsKey('createUserId')"> <if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null "> <if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId} ${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
...@@ -515,13 +536,13 @@ ...@@ -515,13 +536,13 @@
${_conditionType_} a.createUserId is null ${_conditionType_} a.createUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdList')"> <if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in ${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdNotList')"> <if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in ${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -557,13 +578,13 @@ ...@@ -557,13 +578,13 @@
${_conditionType_} a.updateUserId is null ${_conditionType_} a.updateUserId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdList')"> <if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in ${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')"> <if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in ${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
...@@ -609,6 +630,11 @@ ...@@ -609,6 +630,11 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')"> <if test="orderCol.containsKey('productId')">
a.productId a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if> <if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
......
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