Commit 5cdf4cb0 authored by “yiyousong”'s avatar “yiyousong”
parents efca2231 d8182ee8
......@@ -26,3 +26,10 @@ ALTER TABLE mortals_sys_app_info_field ADD COLUMN `defaultValue` varchar (255)
ALTER TABLE mortals_sys_app_info_templete_field ADD COLUMN `fieldTypeValue` varchar (255) default "" COMMENT '字段类型值,当字段类型为多选,单选时候,预设复选值' AFTER fieldType;
ALTER TABLE mortals_sys_app_info_templete_field ADD COLUMN `defaultValue` varchar (255) default "" COMMENT '字段默认值' AFTER fieldValue;
-- ----------------------------
2023-4-12
-- ----------------------------
ALTER TABLE mortals_sys_site_matter ADD COLUMN `hot` tinyint(2) DEFAULT '0' COMMENT '热门(0.否,1.是)' AFTER eventTypeShow;
ALTER TABLE mortals_sys_site_matter ADD COLUMN `display` tinyint(2) DEFAULT '0' COMMENT '显示(0.否,1.是)' AFTER hot;
......@@ -1960,15 +1960,16 @@ msg|String|消息|-
**请求参数:**
参数名称|类型|备注|必填|其它
---|---|---|---|---
page|Integer|当前页|否|-
size|Integer|每页条数|否|-
siteId|Long|站点ID|否|-
siteName|String|站点名称|否|-
matterId|Long|事项ID|否|-
matterName|String|事项名称|否|-
参数名称|类型| 备注 |必填|其它
---|---|------|---|---
page|Integer| 当前页 |否|-
size|Integer| 每页条数 |否|-
siteId|Long| 站点ID |否|-
siteName|String| 站点名称 |否|-
matterId|Long| 事项ID |否|-
matterName|String| 事项名称 |否|-
hot|Integer| 热门 |否|-
display|Integer| 显示 |否|-
**请求样例:**
```
......@@ -1978,6 +1979,8 @@ matterName|String|事项名称|否|-
"siteName":"o68yk6",
"matterId":2909,
"matterName":"oz1oig",
"hot":0,
"display":1,
"page":1,
"size":10
}
......
package com.mortals.xhx.module.site.model;
import com.mortals.xhx.common.code.SourceEnum;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.site.model.vo.SiteMatterVo;
/**
* 站点事项实体对象
*
* @author zxfei
* @date 2022-11-16
* @date 2023-04-12
*/
public class SiteMatterEntity extends SiteMatterVo {
......@@ -52,6 +56,14 @@ public class SiteMatterEntity extends SiteMatterVo {
* 部门编号
*/
private String deptCode;
/**
* 热门(0.否,1.是)
*/
private Integer hot;
/**
* 显示(0.否,1.是)
*/
private Integer display;
......@@ -173,7 +185,6 @@ public class SiteMatterEntity extends SiteMatterVo {
* @return Integer
*/
public Integer getSource(){
return source;
}
/**
......@@ -197,6 +208,34 @@ public class SiteMatterEntity extends SiteMatterVo {
public void setDeptCode(String deptCode){
this.deptCode = deptCode;
}
/**
* 获取 热门(0.否,1.是)
* @return Integer
*/
public Integer getHot(){
return hot;
}
/**
* 设置 热门(0.否,1.是)
* @param hot
*/
public void setHot(Integer hot){
this.hot = hot;
}
/**
* 获取 显示(0.否,1.是)
* @return Integer
*/
public Integer getDisplay(){
return display;
}
/**
* 设置 显示(0.否,1.是)
* @param display
*/
public void setDisplay(Integer display){
this.display = display;
}
......@@ -229,6 +268,8 @@ public class SiteMatterEntity extends SiteMatterVo {
sb.append(",eventTypeShow:").append(getEventTypeShow());
sb.append(",source:").append(getSource());
sb.append(",deptCode:").append(getDeptCode());
sb.append(",hot:").append(getHot());
sb.append(",display:").append(getDisplay());
return sb.toString();
}
......@@ -236,22 +277,26 @@ public class SiteMatterEntity extends SiteMatterVo {
this.siteId = null;
this.siteName = "";
this.siteName = null;
this.matterId = null;
this.matterName = "";
this.matterName = null;
this.matterCode = "";
this.matterCode = null;
this.deptId = null;
this.deptName = "";
this.deptName = null;
this.eventTypeShow = null;
this.source = null;
this.eventTypeShow = "";
this.deptCode = null;
this.source = 0;
this.hot = 0;
this.deptCode = "";
this.display = 0;
}
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ import com.mortals.xhx.module.site.model.SiteMatterEntity;
* 站点事项查询对象
*
* @author zxfei
* @date 2023-02-21
* @date 2023-04-12
*/
public class SiteMatterQuery extends SiteMatterEntity {
/** 开始 序号,主键,自增长 */
......@@ -141,6 +141,36 @@ public class SiteMatterQuery extends SiteMatterEntity {
/** 结束 修改时间 */
private String updateTimeEnd;
/** 开始 热门(0.否,1.是) */
private Integer hotStart;
/** 结束 热门(0.否,1.是) */
private Integer hotEnd;
/** 增加 热门(0.否,1.是) */
private Integer hotIncrement;
/** 热门(0.否,1.是)列表 */
private List <Integer> hotList;
/** 热门(0.否,1.是)排除列表 */
private List <Integer> hotNotList;
/** 开始 显示(0.否,1.是) */
private Integer displayStart;
/** 结束 显示(0.否,1.是) */
private Integer displayEnd;
/** 增加 显示(0.否,1.是) */
private Integer displayIncrement;
/** 显示(0.否,1.是)列表 */
private List <Integer> displayList;
/** 显示(0.否,1.是)排除列表 */
private List <Integer> displayNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<SiteMatterQuery> orConditionList;
......@@ -891,6 +921,168 @@ public class SiteMatterQuery extends SiteMatterEntity {
this.updateTimeEnd = updateTimeEnd;
}
/**
* 获取 开始 热门(0.否,1.是)
* @return hotStart
*/
public Integer getHotStart(){
return this.hotStart;
}
/**
* 设置 开始 热门(0.否,1.是)
* @param hotStart
*/
public void setHotStart(Integer hotStart){
this.hotStart = hotStart;
}
/**
* 获取 结束 热门(0.否,1.是)
* @return $hotEnd
*/
public Integer getHotEnd(){
return this.hotEnd;
}
/**
* 设置 结束 热门(0.否,1.是)
* @param hotEnd
*/
public void setHotEnd(Integer hotEnd){
this.hotEnd = hotEnd;
}
/**
* 获取 增加 热门(0.否,1.是)
* @return hotIncrement
*/
public Integer getHotIncrement(){
return this.hotIncrement;
}
/**
* 设置 增加 热门(0.否,1.是)
* @param hotIncrement
*/
public void setHotIncrement(Integer hotIncrement){
this.hotIncrement = hotIncrement;
}
/**
* 获取 热门(0.否,1.是)
* @return hotList
*/
public List<Integer> getHotList(){
return this.hotList;
}
/**
* 设置 热门(0.否,1.是)
* @param hotList
*/
public void setHotList(List<Integer> hotList){
this.hotList = hotList;
}
/**
* 获取 热门(0.否,1.是)
* @return hotNotList
*/
public List<Integer> getHotNotList(){
return this.hotNotList;
}
/**
* 设置 热门(0.否,1.是)
* @param hotNotList
*/
public void setHotNotList(List<Integer> hotNotList){
this.hotNotList = hotNotList;
}
/**
* 获取 开始 显示(0.否,1.是)
* @return displayStart
*/
public Integer getDisplayStart(){
return this.displayStart;
}
/**
* 设置 开始 显示(0.否,1.是)
* @param displayStart
*/
public void setDisplayStart(Integer displayStart){
this.displayStart = displayStart;
}
/**
* 获取 结束 显示(0.否,1.是)
* @return $displayEnd
*/
public Integer getDisplayEnd(){
return this.displayEnd;
}
/**
* 设置 结束 显示(0.否,1.是)
* @param displayEnd
*/
public void setDisplayEnd(Integer displayEnd){
this.displayEnd = displayEnd;
}
/**
* 获取 增加 显示(0.否,1.是)
* @return displayIncrement
*/
public Integer getDisplayIncrement(){
return this.displayIncrement;
}
/**
* 设置 增加 显示(0.否,1.是)
* @param displayIncrement
*/
public void setDisplayIncrement(Integer displayIncrement){
this.displayIncrement = displayIncrement;
}
/**
* 获取 显示(0.否,1.是)
* @return displayList
*/
public List<Integer> getDisplayList(){
return this.displayList;
}
/**
* 设置 显示(0.否,1.是)
* @param displayList
*/
public void setDisplayList(List<Integer> displayList){
this.displayList = displayList;
}
/**
* 获取 显示(0.否,1.是)
* @return displayNotList
*/
public List<Integer> getDisplayNotList(){
return this.displayNotList;
}
/**
* 设置 显示(0.否,1.是)
* @param displayNotList
*/
public void setDisplayNotList(List<Integer> displayNotList){
this.displayNotList = displayNotList;
}
/**
* 设置 序号,主键,自增长
* @param id
......@@ -1331,6 +1523,114 @@ public class SiteMatterQuery extends SiteMatterEntity {
}
/**
* 设置 热门(0.否,1.是)
* @param hot
*/
public SiteMatterQuery hot(Integer hot){
setHot(hot);
return this;
}
/**
* 设置 开始 热门(0.否,1.是)
* @param hotStart
*/
public SiteMatterQuery hotStart(Integer hotStart){
this.hotStart = hotStart;
return this;
}
/**
* 设置 结束 热门(0.否,1.是)
* @param hotEnd
*/
public SiteMatterQuery hotEnd(Integer hotEnd){
this.hotEnd = hotEnd;
return this;
}
/**
* 设置 增加 热门(0.否,1.是)
* @param hotIncrement
*/
public SiteMatterQuery hotIncrement(Integer hotIncrement){
this.hotIncrement = hotIncrement;
return this;
}
/**
* 设置 热门(0.否,1.是)
* @param hotList
*/
public SiteMatterQuery hotList(List<Integer> hotList){
this.hotList = hotList;
return this;
}
/**
* 设置 热门(0.否,1.是)
* @param hotNotList
*/
public SiteMatterQuery hotNotList(List<Integer> hotNotList){
this.hotNotList = hotNotList;
return this;
}
/**
* 设置 显示(0.否,1.是)
* @param display
*/
public SiteMatterQuery display(Integer display){
setDisplay(display);
return this;
}
/**
* 设置 开始 显示(0.否,1.是)
* @param displayStart
*/
public SiteMatterQuery displayStart(Integer displayStart){
this.displayStart = displayStart;
return this;
}
/**
* 设置 结束 显示(0.否,1.是)
* @param displayEnd
*/
public SiteMatterQuery displayEnd(Integer displayEnd){
this.displayEnd = displayEnd;
return this;
}
/**
* 设置 增加 显示(0.否,1.是)
* @param displayIncrement
*/
public SiteMatterQuery displayIncrement(Integer displayIncrement){
this.displayIncrement = displayIncrement;
return this;
}
/**
* 设置 显示(0.否,1.是)
* @param displayList
*/
public SiteMatterQuery displayList(List<Integer> displayList){
this.displayList = displayList;
return this;
}
/**
* 设置 显示(0.否,1.是)
* @param displayNotList
*/
public SiteMatterQuery displayNotList(List<Integer> displayNotList){
this.displayNotList = displayNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -19,6 +19,8 @@
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
<result property="hot" column="hot" />
<result property="display" column="display" />
</resultMap>
......@@ -68,23 +70,29 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('hot') or colPickMode == 1 and data.containsKey('hot')))">
a.hot,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('display') or colPickMode == 1 and data.containsKey('display')))">
a.display,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="SiteMatterEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_sys_site_matter
(siteId,siteName,matterId,matterName,matterCode,deptId,deptName,eventTypeShow,source,deptCode,createTime,createUserId,updateTime)
(siteId,siteName,matterId,matterName,matterCode,deptId,deptName,eventTypeShow,source,deptCode,createTime,createUserId,updateTime,hot,display)
VALUES
(#{siteId},#{siteName},#{matterId},#{matterName},#{matterCode},#{deptId},#{deptName},#{eventTypeShow},#{source},#{deptCode},#{createTime},#{createUserId},#{updateTime})
(#{siteId},#{siteName},#{matterId},#{matterName},#{matterCode},#{deptId},#{deptName},#{eventTypeShow},#{source},#{deptCode},#{createTime},#{createUserId},#{updateTime},#{hot},#{display})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_sys_site_matter
(siteId,siteName,matterId,matterName,matterCode,deptId,deptName,eventTypeShow,source,deptCode,createTime,createUserId,updateTime)
(siteId,siteName,matterId,matterName,matterCode,deptId,deptName,eventTypeShow,source,deptCode,createTime,createUserId,updateTime,hot,display)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.siteName},#{item.matterId},#{item.matterName},#{item.matterCode},#{item.deptId},#{item.deptName},#{item.eventTypeShow},#{item.source},#{item.deptCode},#{item.createTime},#{item.createUserId},#{item.updateTime})
(#{item.siteId},#{item.siteName},#{item.matterId},#{item.matterName},#{item.matterCode},#{item.deptId},#{item.deptName},#{item.eventTypeShow},#{item.source},#{item.deptCode},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.hot},#{item.display})
</foreach>
</insert>
......@@ -148,6 +156,18 @@
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('hot')) or (colPickMode==1 and !data.containsKey('hot'))">
a.hot=#{data.hot},
</if>
<if test="(colPickMode==0 and data.containsKey('hotIncrement')) or (colPickMode==1 and !data.containsKey('hotIncrement'))">
a.hot=ifnull(a.hot,0) + #{data.hotIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('display')) or (colPickMode==1 and !data.containsKey('display'))">
a.display=#{data.display},
</if>
<if test="(colPickMode==0 and data.containsKey('displayIncrement')) or (colPickMode==1 and !data.containsKey('displayIncrement'))">
a.display=ifnull(a.display,0) + #{data.displayIncrement},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
......@@ -276,6 +296,30 @@
</if>
</foreach>
</trim>
<trim prefix="hot=(case" suffix="ELSE hot end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('hot')) or (colPickMode==1 and !item.containsKey('hot'))">
when a.id=#{item.id} then #{item.hot}
</when>
<when test="(colPickMode==0 and item.containsKey('hotIncrement')) or (colPickMode==1 and !item.containsKey('hotIncrement'))">
when a.id=#{item.id} then ifnull(a.hot,0) + #{item.hotIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="display=(case" suffix="ELSE display end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('display')) or (colPickMode==1 and !item.containsKey('display'))">
when a.id=#{item.id} then #{item.display}
</when>
<when test="(colPickMode==0 and item.containsKey('displayIncrement')) or (colPickMode==1 and !item.containsKey('displayIncrement'))">
when a.id=#{item.id} then ifnull(a.display,0) + #{item.displayIncrement}
</when>
</choose>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
......@@ -400,13 +444,13 @@
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -427,13 +471,13 @@
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList')">
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList')">
<if test="conditionParamRef.containsKey('siteIdNotList') and conditionParamRef.siteIdNotList.size() > 0">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -455,13 +499,13 @@
${_conditionType_} a.siteName is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteNameList')">
<if test="conditionParamRef.containsKey('siteNameList') and conditionParamRef.siteNameList.size() > 0">
${_conditionType_} a.siteName in
<foreach collection="conditionParamRef.siteNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteNameNotList')">
<if test="conditionParamRef.containsKey('siteNameNotList') and conditionParamRef.siteNameNotList.size() > 0">
${_conditionType_} a.siteName not in
<foreach collection="conditionParamRef.siteNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -475,13 +519,13 @@
${_conditionType_} a.matterId is null
</if>
</if>
<if test="conditionParamRef.containsKey('matterIdList')">
<if test="conditionParamRef.containsKey('matterIdList') and conditionParamRef.matterIdList.size() > 0">
${_conditionType_} a.matterId in
<foreach collection="conditionParamRef.matterIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterIdNotList')">
<if test="conditionParamRef.containsKey('matterIdNotList') and conditionParamRef.matterIdNotList.size() > 0">
${_conditionType_} a.matterId not in
<foreach collection="conditionParamRef.matterIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -503,13 +547,13 @@
${_conditionType_} a.matterName is null
</if>
</if>
<if test="conditionParamRef.containsKey('matterNameList')">
<if test="conditionParamRef.containsKey('matterNameList') and conditionParamRef.matterNameList.size() > 0">
${_conditionType_} a.matterName in
<foreach collection="conditionParamRef.matterNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterNameNotList')">
<if test="conditionParamRef.containsKey('matterNameNotList') and conditionParamRef.matterNameNotList.size() > 0">
${_conditionType_} a.matterName not in
<foreach collection="conditionParamRef.matterNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -524,13 +568,13 @@
${_conditionType_} a.matterCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('matterCodeList')">
<if test="conditionParamRef.containsKey('matterCodeList') and conditionParamRef.matterCodeList.size() > 0">
${_conditionType_} a.matterCode in
<foreach collection="conditionParamRef.matterCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterCodeNotList')">
<if test="conditionParamRef.containsKey('matterCodeNotList') and conditionParamRef.matterCodeNotList.size() > 0">
${_conditionType_} a.matterCode not in
<foreach collection="conditionParamRef.matterCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -544,13 +588,13 @@
${_conditionType_} a.deptId is null
</if>
</if>
<if test="conditionParamRef.containsKey('deptIdList')">
<if test="conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0">
${_conditionType_} a.deptId in
<foreach collection="conditionParamRef.deptIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdNotList')">
<if test="conditionParamRef.containsKey('deptIdNotList') and conditionParamRef.deptIdNotList.size() > 0">
${_conditionType_} a.deptId not in
<foreach collection="conditionParamRef.deptIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -572,13 +616,13 @@
${_conditionType_} a.deptName is null
</if>
</if>
<if test="conditionParamRef.containsKey('deptNameList')">
<if test="conditionParamRef.containsKey('deptNameList') and conditionParamRef.deptNameList.size() > 0">
${_conditionType_} a.deptName in
<foreach collection="conditionParamRef.deptNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptNameNotList')">
<if test="conditionParamRef.containsKey('deptNameNotList') and conditionParamRef.deptNameNotList.size() > 0">
${_conditionType_} a.deptName not in
<foreach collection="conditionParamRef.deptNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -593,13 +637,13 @@
${_conditionType_} a.eventTypeShow is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventTypeShowList')">
<if test="conditionParamRef.containsKey('eventTypeShowList') and conditionParamRef.eventTypeShowList.size() > 0">
${_conditionType_} a.eventTypeShow in
<foreach collection="conditionParamRef.eventTypeShowList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventTypeShowNotList')">
<if test="conditionParamRef.containsKey('eventTypeShowNotList') and conditionParamRef.eventTypeShowNotList.size() > 0">
${_conditionType_} a.eventTypeShow not in
<foreach collection="conditionParamRef.eventTypeShowNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -613,13 +657,13 @@
${_conditionType_} a.source is null
</if>
</if>
<if test="conditionParamRef.containsKey('sourceList')">
<if test="conditionParamRef.containsKey('sourceList') and conditionParamRef.sourceList.size() > 0">
${_conditionType_} a.source in
<foreach collection="conditionParamRef.sourceList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceNotList')">
<if test="conditionParamRef.containsKey('sourceNotList') and conditionParamRef.sourceNotList.size() > 0">
${_conditionType_} a.source not in
<foreach collection="conditionParamRef.sourceNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -641,13 +685,13 @@
${_conditionType_} a.deptCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('deptCodeList')">
<if test="conditionParamRef.containsKey('deptCodeList') and conditionParamRef.deptCodeList.size() > 0">
${_conditionType_} a.deptCode in
<foreach collection="conditionParamRef.deptCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptCodeNotList')">
<if test="conditionParamRef.containsKey('deptCodeNotList') and conditionParamRef.deptCodeNotList.size() > 0">
${_conditionType_} a.deptCode not in
<foreach collection="conditionParamRef.deptCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -676,13 +720,13 @@
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
......@@ -710,6 +754,60 @@
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('hot')">
<if test="conditionParamRef.hot != null ">
${_conditionType_} a.hot = #{${_conditionParam_}.hot}
</if>
<if test="conditionParamRef.hot == null">
${_conditionType_} a.hot is null
</if>
</if>
<if test="conditionParamRef.containsKey('hotList') and conditionParamRef.hotList.size() > 0">
${_conditionType_} a.hot in
<foreach collection="conditionParamRef.hotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('hotNotList') and conditionParamRef.hotNotList.size() > 0">
${_conditionType_} a.hot not in
<foreach collection="conditionParamRef.hotNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('hotStart') and conditionParamRef.hotStart != null">
${_conditionType_} a.hot <![CDATA[ >= ]]> #{${_conditionParam_}.hotStart}
</if>
<if test="conditionParamRef.containsKey('hotEnd') and conditionParamRef.hotEnd != null">
${_conditionType_} a.hot <![CDATA[ <= ]]> #{${_conditionParam_}.hotEnd}
</if>
<if test="conditionParamRef.containsKey('display')">
<if test="conditionParamRef.display != null ">
${_conditionType_} a.display = #{${_conditionParam_}.display}
</if>
<if test="conditionParamRef.display == null">
${_conditionType_} a.display is null
</if>
</if>
<if test="conditionParamRef.containsKey('displayList') and conditionParamRef.displayList.size() > 0">
${_conditionType_} a.display in
<foreach collection="conditionParamRef.displayList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('displayNotList') and conditionParamRef.displayNotList.size() > 0">
${_conditionType_} a.display not in
<foreach collection="conditionParamRef.displayNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('displayStart') and conditionParamRef.displayStart != null">
${_conditionType_} a.display <![CDATA[ >= ]]> #{${_conditionParam_}.displayStart}
</if>
<if test="conditionParamRef.containsKey('displayEnd') and conditionParamRef.displayEnd != null">
${_conditionType_} a.display <![CDATA[ <= ]]> #{${_conditionParam_}.displayEnd}
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
......@@ -793,6 +891,16 @@
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('hot')">
a.hot
<if test='orderCol.hot != null and "DESC".equalsIgnoreCase(orderCol.hot)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('display')">
a.display
<if test='orderCol.display != null and "DESC".equalsIgnoreCase(orderCol.display)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
......@@ -800,7 +908,7 @@
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
<foreach collection="gr·oupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -11,6 +11,7 @@
},
"dependencies": {
"@babel/polyfill": "^7.12.1",
"@jiaminghi/data-view": "^2.10.0",
"ant-design-vue": "^1.7.8",
"axios": "^0.27.2",
"babel-polyfill": "^6.26.0",
......@@ -18,6 +19,7 @@
"echarts": "^5.3.3",
"element-ui": "^2.15.8",
"font-awesome": "^4.7.0",
"heatmap.js": "^2.0.5",
"highlight.js": "^11.5.1",
"js-export-excel": "^1.1.4",
"lodash": "^4.17.21",
......
......@@ -137,3 +137,31 @@ export function getOtherList(params) {
export function getRigusersList(params) {
return http.get(`${BASEURL}/admin/reportforms/rigusers`, params);
}
/**
* 服务类型数据分析
*/
// 预约趋势
export function getTrend(params) {
return http.get(`${BASEURL}/admin/order/getTrend`, params);
}
// 预约热度排名
export function getOrderRanking(params) {
return http.get(`${BASEURL}/admin/order/getOrderRanking`, params);
}
// 预约人群画像-地域分布
export function getStatisticArea(params) {
return http.get(`${BASEURL}/admin/statistic/area`, params);
}
// 预约人群画像-年龄分布
export function getStatisticAges(params) {
return http.get(`${BASEURL}/admin/statistic/ages`, params);
}
// 预约人群画像-签到准确率
export function getStatisticSignin(params) {
return http.get(`${BASEURL}/admin/statistic/signin`, params);
}
// 预约人群画像-性别分布
export function getStatisticSexual(params) {
return http.get(`${BASEURL}/admin/statistic/sexual`, params);
}
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" class="leaflet-zoom-animated" width="1024" height="689"
viewBox="240 120 400 300">
<g>
<path class="leaflet-interactive" stroke="#201920" stroke-opacity="1" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" fill="none"
d="M255 257L253 253L256 250L255 249L259 245L261 245L261 243L262 244L265 242L266 245L270 245L273 239L278 240L278 238L279 239L285 234L292 231L292 224L295 223L292 211L289 210L294 207L295 208L299 206L305 206L303 202L308 190L313 193L322 192L322 182L329 178L329 174L335 174L334 177L336 177L336 179L338 181L339 180L340 183L347 185L350 188L353 195L351 205L354 208L355 207L360 209L368 209L375 215L378 214L377 215L383 227L409 227L425 234L429 233L430 235L445 229L457 229L462 227L472 218L469 215L470 210L472 208L481 211L488 205L491 206L494 204L498 198L502 198L508 194L512 194L511 195L512 194L514 196L517 195L516 190L510 184L507 183L503 187L501 185L497 185L495 187L492 183L494 182L499 168L505 171L509 167L514 166L514 160L518 152L522 148L522 144L518 142L523 136L524 137L531 134L539 134L545 138L548 137L552 141L554 145L553 146L555 148L554 149L557 154L556 155L560 161L559 164L561 164L560 167L562 170L567 170L575 176L577 176L579 180L578 183L581 187L585 187L597 181L603 180L601 182L601 188L598 189L599 191L597 199L594 202L592 208L591 209L585 206L581 210L581 225L579 225L577 227L578 228L574 224L573 229L571 229L568 232L564 232L565 235L563 237L558 236L559 235L556 234L555 237L550 242L548 242L549 243L548 242L543 246M283 304L281 300L282 299L284 301L286 299L286 297L283 294L283 290L285 288L280 286L280 280L274 280L271 277L269 277L267 275L267 271L259 269L259 267L261 268M443 368L441 366L442 363L437 362L434 359L426 365L424 363L421 365L419 363L417 363L417 365L413 365L413 373L411 373L410 369L406 371L404 367L400 367L399 366L401 362L398 361L396 357L396 355L398 355L390 355L391 348L395 344L397 344L397 334L395 332L394 333L393 328L390 327L387 332L383 328L379 328L367 337L359 337L358 333L356 333L355 330L352 331L353 330L344 329L342 335L340 333L341 330L330 331L328 329L325 330L326 329L324 331L323 328L319 328L320 326L315 325L313 321L310 322L300 314L298 314L297 317L288 310L284 310L283 304M449 370L443 368M451 462L451 456M457 403L460 409M463 426L461 432M471 477L477 475M492 455L496 450M509 434L512 427M512 404L512 411M518 386L515 392M529 370L524 375M532 359L534 351"
id="国界" />
<path class="leaflet-interactive" stroke="#201920" stroke-opacity="1" stroke-width="2" stroke-linecap="butt"
stroke-linejoin="round" stroke-dasharray="4,4" stroke-dashoffset="4" fill="none"
d="M261 268L263 266L261 264L261 258L255 257" id="争议" />
<path class="leaflet-interactive" stroke="gray" stroke-opacity="1" stroke-width="1" stroke-linecap="round"
stroke-linejoin="round" stroke-dasharray="8,4,4,4" fill="none"
d="M481 366L481 366M485 364L483 366L485 367L485 364" id="港澳" />
<path class="leaflet-interactive" stroke="#4190da" stroke-opacity="1" stroke-width="1" stroke-linecap="round"
stroke-linejoin="round" fill="none"
d="M484 365L482 363L482 365L479 368L478 367L478 369L472 369L470 371L462 373L464 377L462 379L460 379L459 370L449 370M463 373L463 373M463 373L464 374L462 374L463 373M481 366L481 366M484 365L484 365M484 365L484 365M484 365L484 365M517 338L515 342L515 346L517 346L513 346L514 347L512 347L512 349L509 352L507 352L507 354L503 358L501 358L496 363L493 362L493 364L488 363L486 364L487 365L485 365L486 366L484 365M517 338L517 338M528 323L527 322L527 328L525 330L524 329L524 331L521 333L522 334L517 338M526 271L523 272L521 276L518 275L519 276L513 284L520 289L523 296L523 300L525 300L526 303L528 303L529 306L523 305L525 307M525 307L528 308L530 313L524 313L529 318L529 322M526 271L526 271M526 271L526 271M531 252L524 257L524 255L527 254L525 250L530 245L528 241L524 241L521 244L521 246L515 248L514 251L511 254L512 253L509 254L510 255L506 253L504 257L504 259L506 259L509 262L512 261L514 263L512 265L513 268L517 268L517 266L521 263L523 263L526 266L529 265L533 267L532 270L529 269L526 271M526 271L527 270L526 271M528 323L528 323M528 323L528 323M528 323L528 323M529 322L528 323M529 322L529 322M530 317L530 317M530 317L530 317M530 317L530 317M531 317L530 317M530 317L529 316L531 317M531 317L531 317M531 315L531 315M531 315L531 315M531 252L531 252M543 246L540 249L536 249L531 252M532 312L532 312M532 312L532 312M533 312L533 312M454 370L454 370M456 374L456 374M458 380L458 380M458 454L461 453L458 454M458 391L453 388L453 384L457 380L458 381L464 379L467 381L464 387L458 391M460 451L460 451M463 376L463 376M463 373L463 373M463 451L464 452L463 451M463 450L464 449L463 450M464 373L464 373M464 378L464 378M464 450L464 450M464 374L464 374M468 405L468 405M469 397L469 397M469 447L469 447M469 401L469 401M469 443L469 443M470 453L470 453M470 451L470 451M470 401L470 401M470 401L470 401M470 451L470 451M470 402L470 402M470 446L471 447L470 446M470 400L470 400M470 452L470 452M470 400L470 400M471 403L470 402L471 403M471 401L471 401M471 403L471 403M472 450L472 450M472 402L472 402M472 474L472 474M473 446L474 445L473 446M473 445L473 445M473 474L473 474M473 399L473 399M473 406L474 405L473 406M473 398L473 398M474 445L474 445M474 474L474 474M474 445L474 445M474 464L474 464M474 398L474 398M474 399L474 399M474 402L474 402M475 370L475 370M475 463L475 463M475 404L476 403L475 404M475 401L475 401M475 441L475 441M475 464L475 464M475 463L475 463M475 445L476 446L475 445M475 462L475 462M475 467L475 467M475 370L475 370M475 464L476 465L475 464M476 465L476 465M476 401L476 401M476 467L476 467M476 369L475 370L476 369M476 402L476 402M476 400L476 400M477 370L476 369L477 370M477 445L477 445M477 370L477 370M477 399L477 399M477 451L477 451M477 441L477 441M477 441L477 441M477 468L478 467L477 468M478 448L478 448M478 383L478 383M478 441L478 441M478 369L478 369M479 368L479 368M479 369L479 369M479 368L479 368M479 460L479 460M479 450L479 450M479 450L480 449L479 450M481 367L481 367M481 437L481 437M481 456L481 456M481 445L482 444L481 445M482 443L482 443M482 368L482 368M482 406L482 406M482 368L482 368M482 368L482 368M482 368L482 368M482 452L483 453L482 452M482 454L482 454M483 365L483 365M483 367L483 367M483 385L483 385M483 366L483 366M483 439L483 439M483 407L483 407M483 406L483 406M483 450L483 450M483 453L487 451L483 453M483 445L483 445M483 405L483 405M483 445L484 446L483 445M483 445L484 446L483 445M483 407L483 407M484 439L484 439M484 434L484 434M484 450L484 450M484 404L484 404M484 366L484 366M484 368L484 368M484 442L485 443L484 442M485 366L485 366M485 368L485 368M485 446L485 446M485 404L485 404M485 368L485 368M485 407L485 407M485 437L485 437M485 440L485 440M485 367L485 367M485 406L485 406M485 440L485 440M485 431L485 431M485 364L485 364M485 433L485 433M485 366L485 366M486 438L486 438M486 435L486 435M486 430L486 430M486 404L487 403L486 404M486 439L486 439M486 406L486 406M486 440L486 440M486 434L486 434M486 435L487 434L486 435M486 439L486 439M486 450L487 449L486 450M487 439L487 439M487 439L487 439M487 431L487 431M487 439L487 439M487 445L487 445M487 406L487 406M487 439L487 439M487 431L487 431M487 365L487 365M487 453L487 453M487 449L487 449M487 437L487 437M487 430L488 431L487 430M488 433L488 433M488 403L488 403M488 440L487 441L488 440M488 449L488 449M488 432L488 432M488 404L488 404M488 434L488 434M488 455L488 455M488 450L489 451L488 450M489 434L489 434M489 404L489 404M489 453L489 453M489 433L489 433M490 448L491 449L490 448M491 447L491 447M491 438L491 438M491 416L491 416M492 442L492 442M492 439L492 439M492 448L492 448M493 436L493 436M493 436L493 436M493 436L493 436M494 436L494 436M494 436L494 436M494 440L494 440M494 434L494 434M494 374L494 374M495 373L495 373M495 443L495 443M495 438L495 438M496 441L496 441M496 445L496 445M497 440L497 440M498 444L498 444M498 440L498 440M498 437L498 437M498 440L498 440M499 436L499 436M499 402L499 402M499 430L499 430M499 376L499 376M499 444L499 444M499 375L500 376L499 375M500 436L500 436M501 359L501 359M502 435L502 435M502 435L502 435M502 437L502 437M502 435L502 435M502 433L502 433M503 438L503 438M503 433L503 433M504 435L504 435M505 433L505 433M505 409L505 409M505 434L505 434M507 353L507 353M507 353L507 353M508 353L508 353M509 352L508 353L509 352M510 254L510 254M511 254L511 254M511 254L511 254M514 360L514 360M515 348L515 348M515 359L515 359M515 358L515 358M515 357L515 357M515 345L515 345M516 342L516 342M516 358L516 358M516 345L516 345M516 345L516 345M516 339L516 339M516 347L516 347M516 347L516 347M516 339L516 339M517 345L517 345M517 342L517 342M517 343L517 343M518 359L518 359M518 341L518 341M518 340L518 340M518 339L518 339M518 339L518 339M518 338L518 338M519 278L519 278M519 337L519 337M520 366L520 366M520 337L520 337M520 264L520 264M520 340L520 340M521 262L521 262M522 368L519 364L518 357L523 351L523 349L527 347L529 349L525 363L522 368M522 262L522 262M522 262L522 262M522 261L522 261M522 244L522 244M522 260L522 260M523 259L523 259M523 259L523 259M523 273L523 273M524 330L524 330M524 334L524 334M524 330L524 330M524 330L524 330M526 305L529 307L527 307L526 305M526 300L526 300M526 363L526 363M526 367L527 368L526 367M527 368L527 368M527 307L527 307M527 323L527 323M528 325L528 325M528 308L527 307L528 308M528 308L530 308L528 308M528 317L528 317M528 325L528 325M528 325L528 325M528 327L528 327M528 316L529 317L528 316M528 309L528 309M528 327L528 327M529 346L529 346M529 350L529 350M529 316L529 316M529 309L529 309M529 315L529 315M529 322L529 322M529 319L529 319M529 317L529 317M529 316L529 316M529 313L529 313M530 317L530 317M530 317L530 317M530 317L530 317M530 317L530 317M530 316L530 316M530 315L530 315M530 315L530 315M530 321L530 321M530 319L529 318L530 319M530 319L530 319M530 317L530 317M531 318L531 318M531 318L531 318M531 319L530 318L531 319M531 317L532 318L531 317M531 253L531 253M531 317L531 317M531 314L531 314M532 314L532 314M532 253L532 253M532 253L532 253M532 313L532 313M533 253L533 253M533 316L533 316M533 255L533 255M533 312L533 312M534 312L534 312M535 251L535 251M535 252L535 252M536 255L536 255M537 344L538 345L536 345L537 344M538 344L538 344M538 343L539 344L538 343M538 345L538 345M538 344L538 344M538 345L538 345M539 249L539 249M543 343L544 344L543 343"
id="海洋" />
<path class="leaflet-interactive" stroke="#747569" stroke-opacity="0.6" stroke-width="1" stroke-linecap="round"
stroke-linejoin="round" fill="none"
d="M345 276L343 274L332 273L326 275L322 279L319 278L314 281L307 280L307 278L299 282L293 280L290 283L290 285L288 287L284 287L285 288M391 300L389 300L389 302L386 303L387 304L385 304L385 306L383 304L383 306L380 306L378 302L377 303L377 301L373 299L369 301L358 298L356 296L350 296L346 292L347 291L345 291L345 276M361 254L348 258L348 260L350 260L350 264L354 267L354 269L351 270L351 272L353 272L353 276L347 274L347 276L345 276M414 293L413 294L413 292L412 293L408 289L416 289L417 288L415 284L417 280L420 279L419 280L421 276L418 269L419 268L415 264L410 263L405 258L405 260L402 259L397 254L393 256L388 253L386 255L387 258L385 258L385 260L382 261L380 259L374 259L372 256L370 257L364 253L361 254M383 227L381 229L382 233L380 233L377 236L377 234L375 234L368 242L364 243L360 253L361 254M428 266L423 263L423 259L428 255L426 251L421 254L416 253L416 255L412 257L409 254L409 252L401 248L405 245L404 241L402 240L397 243L394 243L394 240L390 237L392 235L388 226M399 322L398 312L396 309L397 308L395 306L394 301L391 300M414 293L413 296L410 295L411 298L409 300L405 300L404 297L402 299L399 296L397 296L395 290L392 289L389 292L391 294L389 298L391 300M393 329L397 328L396 325L398 325L399 322M434 332L433 329L429 331L428 326L426 326L426 328L423 329L424 332L420 334L421 341L418 340L414 342L408 330L406 332L404 330L405 329L403 325L401 325L400 328L399 327L399 322M435 298L433 300L430 299L428 297L428 293L424 291L423 292L421 288L419 288L419 290L416 291L418 293L415 296L414 293M447 263L441 259L444 254L442 252L437 256L436 264L428 266M428 266L430 266L430 268L431 267L434 270L434 278L435 277L440 282L440 278L443 277L443 275L440 272L442 270L441 269L445 268M434 332L434 334L429 333L424 336L425 339L430 340L428 344L431 347L430 351M430 351L430 353L431 352L434 355L435 354L439 356L439 358L435 360M458 343L455 344L455 346L454 345L449 348L447 348L444 345L444 347L438 351L435 349L430 351M440 327L438 325L436 327L440 330L438 332L434 332M445 268L445 270L453 274L453 280L449 282L448 281L447 284L442 283L440 287L442 287L440 291L441 292L438 293L438 297L435 298M452 302L449 303L446 300L445 301L443 299L440 300L438 298L435 298M457 327L455 329L451 325L451 323L448 324L448 322L446 322L446 324L444 324L441 327L441 325L440 327M440 327L440 325L434 321L434 319L437 318L435 316L437 314L439 316L442 315L442 317L444 316L447 313L446 312L450 310L452 302M445 268L447 263M467 252L467 250L464 253L462 251L462 253L460 253L459 256L455 259L456 262L454 262L454 264L451 265L447 263M452 302L458 306M458 306L461 307L462 310L457 314L454 313L451 318L453 318L455 320L454 321L456 321L456 323M456 323L457 327M483 323L481 319L478 321L477 318L475 320L471 317L470 318L466 316L463 319L460 318L456 323M458 343L457 335L454 336L458 332L457 327M472 351L470 351L469 348L467 350L466 349L469 344L468 341L466 341L467 340L462 343L458 343M466 295L458 295L460 297L459 298L462 299L458 301L458 306M460 371L459 371M460 371L459 370L469 362L469 358L472 355L472 351M460 379L461 379M461 379L463 379M463 286L463 270L465 266L464 261L467 256L467 252M463 286L464 290L467 293L466 295M463 286L472 283L472 281L477 282L481 280L482 274M463 378L464 378M491 308L484 305L482 301L472 301L466 295M467 296L467 296M484 242L481 245L475 245L472 248L472 250L467 252M472 351L473 348L477 350L479 346L483 346M492 275L489 276L482 274M482 274L481 271L484 264L481 257L484 254L486 254L487 251L486 248L483 247L486 245L484 242M496 318L492 318L488 320L489 321L485 321L483 323M483 346L485 342L483 342L483 334L481 334L481 332L485 328L483 323M483 346L488 347L484 351L485 352L489 352L491 350L493 352L494 349M513 237L512 238L507 235L508 232L505 227L501 229L499 233L493 233L490 236L487 231L483 237L484 242M496 286L496 288L498 288L499 291L496 292L492 290L493 293L491 293L489 297L490 300L494 300L495 303L491 308M496 318L494 314L495 311L491 308M506 260L503 263L499 263L496 267L495 266L495 268L491 272L492 275M496 286L492 286L492 284L488 282L495 276L491 278L492 275M494 349L496 343L499 340L498 337L502 335L501 332L509 328M502 358L500 356L500 352L494 349M507 321L502 318L500 320L498 316L498 318L496 318M497 286L496 286M514 283L513 282L507 288L506 285L502 287L500 283L497 284L497 286M516 309L512 309L508 303L511 300L512 301L513 298L512 297L508 299L507 295L506 296L507 293L497 286M503 246L503 242L501 242L498 239L498 241L497 240L498 241L496 241L496 243L493 244L494 245L492 249L494 251L500 250M504 257L501 258L499 256L500 250M500 250L500 250M500 250L502 250L502 247M502 247L499 248L500 250M502 358L502 359M503 246L502 247M503 359L503 360M503 246L505 248L503 248L505 251L506 250L506 253M507 321L511 319L511 315L513 315L514 312L515 313L516 309M507 321L506 322L509 325L509 328M520 336L520 334L516 334L516 332L514 334L511 333L511 329L509 328M513 237L513 231L515 229L518 234L526 228L527 229L529 227L536 226L539 222M517 247L515 243L511 241L513 237M523 310L521 312L516 309M522 336L522 336M522 259L524 259M529 306L524 305L525 306L523 310M525 312L523 312L523 310M525 312L526 312M537 193L535 195L531 189L534 186L536 186L536 184L538 184L542 179L542 181L544 181L543 180L545 174L548 173L547 168L551 162L552 157L548 152L546 152L547 153L544 155L536 155L533 151L534 146L530 144L528 146L525 143L528 138L526 136M527 312L527 312M528 312L529 312M529 312L530 311M531 311L532 311M533 311L533 311M582 221L577 220L577 216L569 220L566 217L566 213L564 213L563 216L560 213L561 212L557 210L558 209L556 207L553 208L550 205L542 205L540 202L540 198L536 199M536 199L535 196L538 195L537 193M536 199L533 202L534 203L532 201L527 202L530 205L530 213L532 215L536 213L535 214L539 222M537 193L536 192L537 193M537 193L537 193M537 193L537 193M539 222L540 221L543 224L543 226L545 224L549 232L548 235L550 237L550 241M437 280L437 280M458 338L458 338M477 318L477 318"
id="省界" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M503 243L504 242L500 242L499 239L497 241L498 242L493 244L494 245L492 249L494 251L498 251L500 249L499 248L503 246L503 243z"
id="北京市" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M505 252L506 251L503 248L505 248L503 246L501 248L502 249L499 251L499 257L504 258L504 256L506 255L505 252zM505 252L505 252z"
id="天津市" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M503 242L502 245L505 248L503 248L508 255L510 255L509 254L511 254L517 247L515 243L511 241L513 237L512 238L507 235L508 232L505 227L501 229L499 233L493 233L490 236L487 231L485 233L483 239L485 245L487 245L484 247L483 246L486 249L486 251L487 250L486 253L482 255L483 256L481 260L484 263L484 265L482 271L480 271L483 274L491 276L491 272L495 267L506 260L504 258L499 257L500 250L492 250L492 248L495 245L494 244L498 242L497 241L499 239L500 242L503 242zM502 247L499 248L501 250L502 247zM505 252L505 252zM511 254L511 254z"
id="河北省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M463 286L472 283L472 281L476 282L481 279L481 271L484 266L481 258L483 256L482 255L485 254L487 250L486 251L486 249L483 246L484 247L486 245L485 242L483 244L482 243L481 245L475 245L472 248L472 250L470 250L466 255L467 256L464 261L464 279L462 286z"
id="山西省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M388 226L392 235L390 236L394 243L397 243L398 241L399 242L402 240L404 241L405 245L402 248L409 252L411 256L415 257L416 255L414 254L420 254L426 251L427 252L428 254L423 259L423 263L425 263L427 266L437 263L437 257L442 252L444 254L441 260L446 261L450 265L452 265L455 262L456 258L462 252L465 253L467 250L467 252L469 252L469 250L471 250L474 245L476 246L482 244L484 242L483 237L487 231L490 236L493 233L498 233L500 229L505 228L507 230L506 231L508 233L508 237L513 238L515 230L518 233L518 235L522 230L532 226L536 226L539 223L536 220L538 220L537 215L535 213L532 215L530 213L530 206L529 203L527 203L528 200L530 202L534 202L536 198L535 195L536 196L538 194L536 192L537 193L535 195L531 189L534 186L536 186L536 184L538 184L542 179L542 181L544 181L543 180L545 174L548 173L547 168L551 162L552 157L548 152L546 152L547 153L544 155L536 155L533 151L534 146L530 144L528 146L525 143L528 138L524 136L518 141L518 143L522 143L522 149L518 151L517 156L513 162L514 165L505 171L499 168L495 176L494 182L492 183L495 187L497 185L501 185L503 187L505 184L509 184L516 190L517 194L515 196L511 194L503 196L503 198L500 197L495 204L491 206L488 205L481 211L475 208L471 209L469 213L472 218L470 221L468 221L458 229L445 229L430 235L430 233L427 234L416 231L414 228L398 228L388 226z"
id="内蒙古自治区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M538 249L542 248L546 243L550 241L550 237L548 235L548 231L545 224L543 226L543 224L540 221L538 225L537 224L534 227L531 226L528 229L527 228L522 230L518 234L515 229L513 231L514 236L511 241L515 243L517 247L519 247L522 244L522 242L524 242L523 241L530 242L529 247L526 248L525 251L527 253L524 256L529 255L528 254L529 255L532 251L538 249zM533 253L532 252L533 253zM531 253L531 253zM533 253L533 253zM533 254L533 254zM535 251L535 251zM532 253L532 253zM522 244L522 244zM535 252L535 251zM536 255L536 254zM539 249L539 249z"
id="辽宁省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M572 229L574 225L576 225L578 229L577 226L579 226L582 222L579 221L576 216L568 220L565 213L564 216L562 216L560 213L561 212L559 212L556 207L553 208L546 204L543 205L540 202L541 200L539 198L536 199L533 202L534 203L532 201L528 201L527 203L529 203L531 215L535 213L538 218L538 220L536 220L543 224L543 226L545 224L548 231L548 235L550 237L550 241L552 241L556 234L558 234L558 236L564 237L565 236L563 232L569 232L570 229L572 229z"
id="吉林省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M538 199L539 198L541 200L541 204L546 204L552 208L555 207L558 209L557 210L561 212L560 213L563 216L563 214L566 213L568 220L576 216L577 219L581 221L582 216L580 210L586 206L591 209L592 208L594 202L597 199L599 191L598 190L602 186L600 184L604 180L600 180L588 186L581 187L578 183L579 180L577 176L575 176L571 171L570 172L568 170L565 171L561 169L561 165L559 163L560 162L557 157L557 153L555 151L555 147L552 141L548 137L545 138L540 134L531 134L527 136L528 139L524 143L527 144L527 146L531 144L533 146L535 155L544 155L547 152L550 154L552 158L547 167L548 172L544 176L544 182L543 183L542 180L531 189L535 195L537 193L536 192L538 194L536 196L535 195L535 197L538 199z"
id="黑龙江省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M523 310L524 312L529 312L529 310L526 307L524 307L523 310zM529 306L524 305L526 307L529 307zM528 308L527 307L528 308zM528 308L530 309L528 308zM527 307L527 307zM529 309L529 309zM528 309L529 309z"
id="上海市" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M502 286L499 283L497 285L507 293L506 296L507 295L509 299L511 299L511 297L513 299L512 301L511 300L509 302L512 309L513 308L521 312L524 309L524 305L529 306L528 303L526 303L526 301L523 300L523 296L520 289L516 287L513 284L513 282L507 288L506 285L504 287L502 286z"
id="江苏省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M509 328L511 328L511 333L514 334L516 332L516 334L520 334L520 336L522 331L524 331L523 330L527 328L527 322L529 322L529 318L523 310L521 312L516 309L515 313L514 312L514 314L511 315L511 319L507 322L509 328zM530 317L531 316L529 316L530 317zM530 316L530 316zM530 319L530 319zM531 312L532 312zM530 315L530 315zM531 315L531 315zM529 322L529 322zM531 318L532 317L531 318zM531 314L531 314zM528 325L528 325zM531 318L531 318zM528 323L528 323zM525 332L525 332zM529 312L530 313L529 312zM528 327L528 327zM530 319L530 319zM532 317L532 317zM532 313L532 313zM528 327L528 327zM529 316L529 316zM531 317L531 317zM528 317L528 317zM524 333L524 333zM529 322L529 322zM529 319L529 319zM529 316L529 316zM529 315L529 315zM530 317L530 317zM531 319L530 319zM524 331L524 331zM533 316L533 316zM531 315L531 315zM531 318L531 318zM533 312L533 312zM524 330L524 330zM524 330L524 330zM532 317L532 317zM534 312L534 312zM530 317L530 317zM529 317L529 317zM524 330L524 330zM532 317L532 317zM530 317L530 317z"
id="浙江省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M498 290L499 291L496 292L494 290L492 291L493 292L491 296L489 296L489 298L492 301L493 300L495 303L491 307L495 311L494 314L496 318L498 318L498 316L500 320L502 317L508 321L511 318L511 316L514 315L516 310L514 308L511 309L511 307L508 304L510 300L513 299L511 297L511 299L509 299L508 296L506 296L507 293L498 286L496 286L498 290zM511 307L511 307zM499 319L499 319zM492 301L492 301z"
id="安徽省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M512 349L511 348L513 348L513 346L517 346L515 346L517 341L516 339L518 339L517 340L520 335L515 332L513 334L511 332L511 328L509 328L501 332L502 335L498 338L498 342L495 345L494 350L498 352L499 351L500 356L502 358L507 354L507 352L510 352L510 350L512 349zM509 352L508 353L509 352zM515 348L515 348zM515 345L515 345zM518 342L517 341zM508 353L508 353zM517 338L517 338zM507 352L507 352zM517 342L517 342zM516 342L515 342zM518 340L518 339zM516 345L516 345zM516 339L517 339zM518 339L518 339zM520 337L519 337zM519 338L519 338zM516 339L516 339z"
id="福建省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M507 321L502 318L500 320L498 316L498 318L492 318L488 320L489 321L485 321L483 323L485 327L481 333L483 335L483 341L485 341L483 346L488 347L484 351L485 352L489 352L491 350L493 352L494 351L496 343L498 342L497 341L501 333L509 328L506 322L507 321z"
id="江西省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M497 286L497 284L500 283L502 287L506 285L507 288L513 282L514 283L519 276L518 275L521 276L523 272L531 270L533 266L527 266L522 263L519 264L516 268L514 268L512 266L514 263L511 261L509 262L507 260L505 260L503 263L499 263L491 272L491 278L495 276L488 282L493 286L497 286zM522 262L522 263zM522 262L522 262zM523 273L523 273zM522 261L522 261zM523 259L523 259zM519 278L519 278zM521 262L521 262zM522 260L522 260zM526 265L526 265zM526 265L526 265zM526 265L526 265zM492 277L492 277z"
id="山东省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M476 301L482 301L484 305L491 308L492 307L495 303L494 300L490 300L489 297L494 290L496 292L499 291L498 288L496 288L496 286L492 286L490 283L488 283L495 276L491 278L492 275L489 276L483 274L479 281L473 281L473 283L463 287L467 294L466 295L470 300L474 302L476 301zM482 302L482 302z"
id="河南省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M467 296L458 295L460 297L459 298L462 299L458 301L458 305L462 309L462 311L460 311L457 314L454 313L452 315L452 319L453 318L455 320L454 321L456 321L456 323L458 319L464 319L465 316L474 320L478 318L477 319L479 321L481 318L482 323L485 321L489 321L488 320L492 318L496 318L494 314L495 311L492 308L484 305L482 301L472 301L467 296zM456 313L456 313zM467 296L467 296zM476 301L476 301zM477 318L477 318z"
id="湖北省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M472 351L473 348L477 350L479 346L483 346L485 342L483 342L484 339L483 334L481 334L481 332L485 328L481 322L481 318L478 321L477 318L475 320L471 317L470 318L464 316L463 319L461 318L457 320L456 325L458 333L456 333L454 336L458 336L457 341L460 344L461 341L461 343L463 343L466 340L468 344L469 343L466 349L467 350L469 348L470 351L472 350zM458 338L458 338z"
id="湖南省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M481 366L482 363L484 365L493 362L496 363L501 358L501 354L499 352L500 351L494 349L493 352L491 350L489 352L485 352L484 351L488 347L487 346L479 346L477 350L473 348L471 354L472 355L469 358L469 362L459 370L460 379L464 377L462 373L465 371L466 372L478 367L479 368L481 366zM501 359L501 359zM477 369L476 370L477 369zM475 370L476 369L475 370zM485 368L485 367zM463 373L464 372L463 373zM475 370L475 370zM464 373L462 374L464 373zM482 368L482 368zM482 368L482 368zM479 369L479 368zM483 365L482 365zM485 368L485 368zM484 368L484 368zM499 375L500 375zM478 369L478 368zM463 376L463 376zM464 374L464 374zM464 378L464 378zM495 373L495 373zM494 374L495 374zM494 363L494 363zM494 363L494 363z"
id="广东省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M458 343L455 344L455 346L454 345L449 348L446 348L445 345L444 348L443 347L439 349L439 351L435 349L429 351L433 353L433 355L439 355L439 357L436 360L438 362L443 363L441 365L442 368L449 371L459 371L461 368L463 368L463 366L465 366L465 364L469 362L469 358L472 355L472 351L470 351L469 348L467 350L466 349L469 344L467 340L462 343L458 343zM433 349L433 350zM456 374L456 374z"
id="广西壮族自治区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M461 380L457 380L453 384L453 388L455 390L458 391L464 388L464 385L467 382L465 379L462 379zM473 474L473 474zM479 450L480 449zM472 474L472 474zM469 397L469 397zM505 409L505 408zM474 474L474 473zM471 403L471 402zM470 402L470 402zM483 453L487 451L483 452zM483 445L484 446L483 445zM483 446L483 446zM472 402L472 402zM471 401L471 401zM473 445L473 445zM482 454L483 454zM485 446L485 446zM473 398L474 398zM487 437L488 437zM494 440L494 440zM487 439L487 439zM482 452L483 452zM458 454L459 453L458 454zM496 445L497 445zM475 404L476 403L475 404zM475 445L476 445zM486 434L487 434zM474 402L475 402zM498 437L498 436zM474 398L474 398zM469 401L470 401zM492 439L492 439zM487 449L488 449zM486 450L487 449zM490 448L491 449L490 448zM483 450L483 450zM492 442L492 442zM498 444L498 444zM481 445L482 445zM487 433L488 433zM487 431L487 430zM489 434L489 434zM470 401L470 401zM483 445L483 446zM460 451L461 451zM499 430L499 430zM470 400L471 400zM475 401L475 401zM471 403L471 403zM483 439L483 438zM488 449L488 450zM498 440L498 440zM491 438L491 438zM500 436L500 436zM488 403L488 403zM495 443L495 443zM482 443L482 443zM487 453L488 453zM486 435L487 434zM505 434L505 434zM485 437L485 437zM487 430L488 430zM499 436L499 436zM463 450L464 449L463 450zM469 447L469 447zM491 447L491 447zM479 450L479 450zM484 433L484 433zM502 437L502 437zM485 404L485 403zM464 450L464 450zM492 448L492 447zM470 453L470 453zM470 446L471 447L470 446zM463 451L464 451zM474 445L474 445zM498 440L498 440zM472 450L472 450zM486 406L486 406zM489 433L489 433zM484 404L484 404zM495 438L495 438zM502 435L502 435zM488 455L488 455zM477 445L477 445zM470 452L470 452zM473 446L474 445zM475 463L475 463zM487 445L487 445zM488 450L489 450zM478 448L478 448zM481 456L481 456zM499 402L499 402zM503 438L503 438zM478 383L478 383zM486 404L486 403zM483 385L482 385zM476 467L476 467zM470 451L470 451zM474 445L474 445zM477 451L477 451zM475 464L476 464zM475 464L475 464zM491 416L491 416zM481 437L481 437zM483 407L483 407zM477 468L477 467zM475 467L476 467zM474 464L474 464zM473 399L473 399zM473 406L473 405zM476 465L476 465zM475 463L475 463zM479 460L479 460zM496 441L496 441zM489 453L489 453zM470 451L470 451zM483 405L483 405zM489 404L489 404zM499 444L499 444zM476 401L476 401zM468 380L468 380zM494 436L494 436zM502 435L502 435zM476 402L476 402zM494 436L494 436zM475 441L475 441zM487 406L487 406zM502 433L502 433zM505 433L505 433zM484 442L485 442zM488 440L488 441zM475 462L475 462z"
id="海南省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M440 327L442 325L442 327L445 324L446 325L447 322L449 324L450 323L452 325L451 326L453 326L453 328L454 327L454 329L456 329L457 324L456 321L454 321L455 320L453 318L452 319L452 315L454 313L457 314L460 311L461 312L462 309L452 302L450 310L448 312L447 311L447 313L443 317L438 314L436 316L437 317L434 320L438 324L440 324L440 326zM456 313L456 313zM436 316L436 316zM456 313L456 313zM444 317L444 317z"
id="重庆市" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M411 335L410 336L412 340L416 342L421 340L420 335L427 326L429 326L428 327L430 331L432 331L433 329L434 332L438 332L440 330L437 329L436 326L440 326L440 324L438 324L434 320L438 314L443 317L447 313L446 312L450 310L452 302L449 303L446 300L440 300L438 298L435 298L433 300L430 299L428 297L428 293L424 291L423 292L421 288L417 290L418 293L415 296L414 293L413 296L410 295L411 298L409 300L405 300L404 297L402 299L399 296L397 296L395 290L392 289L389 292L391 294L389 298L395 303L395 305L398 308L396 308L399 317L399 327L400 328L402 324L405 328L404 329L406 331L408 330L408 332L411 335zM440 316L440 316zM444 316L444 316zM436 316L436 316z"
id="四川省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M457 327L455 329L451 325L451 323L448 324L448 322L446 322L445 325L444 324L441 327L441 325L441 327L438 325L436 327L440 330L438 332L435 331L434 334L426 334L424 336L425 339L430 340L428 345L431 348L430 351L434 349L439 351L439 349L443 347L444 348L445 345L446 348L450 348L450 346L453 347L453 345L456 346L455 345L457 345L458 336L454 336L458 332L457 327zM458 337L458 337zM458 338L458 338z"
id="贵州省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M434 332L433 329L431 331L429 330L429 326L425 327L426 328L424 328L424 331L420 335L421 340L415 342L412 339L409 332L406 331L402 325L400 327L401 328L399 328L399 322L398 325L396 325L397 328L396 329L394 327L393 330L394 333L395 332L397 334L397 344L395 344L391 349L390 355L398 355L396 355L396 357L398 361L399 360L398 361L401 362L399 366L404 367L406 371L410 369L410 371L414 373L414 365L418 363L421 365L423 363L431 363L432 360L436 360L439 357L439 355L433 355L434 354L429 351L431 349L429 345L431 340L429 338L425 338L427 334L434 334L434 332z"
id="云南省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M345 276L343 274L333 273L325 275L324 278L318 278L313 281L309 281L306 278L304 278L300 282L296 280L292 281L288 287L284 287L285 288L282 290L286 298L285 301L283 301L283 299L281 301L281 303L284 306L284 310L290 311L290 313L297 317L298 314L300 314L310 322L313 321L315 325L320 326L319 327L325 331L325 329L327 331L327 329L331 331L341 330L340 333L342 335L343 331L346 328L356 331L356 333L358 333L360 337L367 337L379 328L383 328L387 332L390 327L394 329L394 327L396 329L396 325L398 325L399 322L399 317L394 301L390 300L388 302L389 303L385 305L386 306L382 304L383 306L380 306L378 302L377 303L377 301L373 299L369 301L348 294L346 292L347 291L345 291L345 276z"
id="西藏自治区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M463 286L463 270L465 266L464 261L468 253L467 250L464 253L462 251L462 253L459 254L459 256L455 259L454 264L451 265L447 263L445 265L445 269L453 273L453 281L448 281L447 284L442 283L440 287L442 287L440 291L441 292L437 294L437 298L435 297L436 299L444 299L449 303L452 302L457 306L459 304L458 301L462 299L459 298L460 297L458 295L465 296L467 294L464 291L465 290L463 286zM467 294L467 294zM438 299L438 299z"
id="陕西省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M441 278L440 281L437 280L437 278L434 277L434 270L431 267L430 268L430 266L423 263L423 259L428 255L426 251L421 254L414 254L415 257L409 255L409 253L406 250L401 248L405 245L405 241L402 240L397 243L394 243L394 240L390 237L392 235L388 226L383 227L381 229L382 231L380 234L376 234L368 242L364 243L360 253L364 253L370 257L371 256L373 259L379 259L382 261L385 260L385 258L387 258L386 255L388 253L393 256L397 254L402 259L404 260L404 258L411 263L416 264L415 265L418 268L421 277L419 277L420 280L419 279L415 285L417 288L416 289L412 289L409 287L408 288L412 293L413 292L413 294L415 294L415 296L418 293L416 290L420 288L422 292L423 291L428 293L428 297L430 299L435 299L435 297L436 298L438 296L436 294L441 293L441 283L448 284L449 281L453 281L453 273L442 268L440 272L443 275L443 277L441 278zM438 280L438 280zM420 274L420 274zM438 280L438 280zM441 278L441 278z"
id="甘肃省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M420 274L418 269L419 268L415 264L410 263L408 260L404 258L405 260L403 259L398 254L395 254L393 256L387 253L387 257L383 261L380 259L374 259L372 256L370 257L365 255L365 253L348 258L348 260L350 260L350 264L354 268L351 271L353 273L352 276L347 274L347 276L344 277L346 277L344 281L344 284L346 284L345 291L347 291L346 292L351 296L355 296L369 301L373 299L377 301L376 302L378 302L380 306L382 306L382 304L386 306L385 305L389 303L388 302L390 300L389 297L391 295L389 291L392 289L396 292L397 296L399 296L402 299L404 297L405 300L409 300L411 298L410 295L412 296L414 295L414 293L413 294L413 292L412 293L408 289L417 288L415 284L417 280L420 279L420 274z"
id="青海省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M445 268L447 262L441 260L444 255L443 252L441 252L438 255L436 264L428 266L430 266L430 268L431 267L434 270L434 276L440 282L440 278L443 277L443 275L440 272L442 270L441 269L445 268zM438 280L438 280zM438 280L438 280z"
id="宁夏回族自治区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M383 227L377 214L376 215L364 208L354 208L351 205L353 200L353 194L348 186L342 184L336 179L336 177L334 177L335 174L329 174L329 178L327 180L323 180L322 182L322 192L313 193L308 190L303 202L305 206L299 206L290 209L292 211L292 215L295 222L292 225L294 225L291 227L292 230L288 234L287 233L277 240L274 239L270 243L270 245L266 245L265 243L261 244L258 247L257 246L253 253L256 258L259 257L261 259L260 260L262 266L259 267L259 269L263 269L267 272L268 277L275 280L279 280L280 285L285 288L284 287L288 287L293 280L299 282L305 278L307 280L314 281L318 278L324 278L325 275L333 273L352 276L353 273L351 271L354 268L350 264L350 260L348 260L348 258L360 255L364 243L369 241L375 234L377 234L377 236L382 232L382 227z"
id="新疆维吾尔自治区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M520 365L521 368L523 368L523 364L526 361L529 349L527 347L521 352L518 357L519 364zM544 343L544 343zM537 344L537 344zM516 358L515 358zM539 343L539 343zM515 358L515 358zM515 359L515 359zM515 357L515 357zM529 345L530 345zM526 363L526 363zM526 367L527 367zM530 346L530 346zM514 360L515 360zM520 366L520 365z"
id="台湾省" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M484 365L483 366L486 365L484 365zM484 366L484 366zM485 365L485 365zM485 365L485 365zM485 365L485 365zM485 366L485 366zM485 365L485 365zM486 366L486 366zM485 366L485 366z"
id="香港特别行政区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M481 367L481 367zM481 366L481 366z" id="澳门特别行政区" />
<path class="leaflet-interactive" stroke="#3388ff" stroke-opacity="0" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" fill="#eee" fill-opacity="0.5" fill-rule="evenodd"
d="M532 359L534 352L532 359zM524 375L529 370L528 369L524 375zM515 392L518 386L515 392zM512 409L512 404L512 409zM510 432L509 434L512 427L511 429zM492 455L496 450L492 455zM474 476L471 477L477 475L475 476zM451 461L451 456L451 461zM462 431L461 432L463 426L462 430zM460 408L457 403L459 407z"
id="100000_JD" />
</g>
</svg>
\ No newline at end of file
......@@ -20,6 +20,9 @@ import * as directives from "@/directive";
Object.keys(directives).forEach((name) =>
Vue.directive(name, directives[name])
);
// datav
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
// 引入lodash
import lodash from "lodash";
Vue.prototype.$_ = lodash;
......
import Heatmap from 'heatmap.js';
// import 'heatmap.js/plugins/heatmap.canvas.js';
// import 'heatmap.js/plugins/heatmap-gradient.js';
// import 'heatmap.js/plugins/heatmap-data-urls.js';
// import 'heatmap.js/plugins/leaflet-heatmap/leaflet-heatmap.js';
// import 'leaflet-heatmap/dist/leaflet-heatmap.css';
export default {
install(Vue, options) {
const heatmapContainer = document.createElement('div');
heatmapContainer.id = 'heatmap-container';
heatmapContainer.style.display = 'none';
document.body.appendChild(heatmapContainer);
const heatmapConfig = {
radius: options.radius || 30,
maxOpacity: options.maxOpacity || 0.8,
minOpacity: options.minOpacity || 0.2,
blur: options.blur || 0.85,
gradient: options.gradient || {
0.45: 'rgb(0,0,255)',
0.55: 'rgb(0,255,255)',
0.65: 'rgb(0,255,0)',
0.95: 'yellow',
1.0: 'rgb(255,0,0)',
},
};
const heatmapInstance = Heatmap.create({
container: heatmapContainer,
radius: heatmapConfig.radius,
maxOpacity: heatmapConfig.maxOpacity,
minOpacity: heatmapConfig.minOpacity,
blur: heatmapConfig.blur,
gradient: heatmapConfig.gradient,
height:1080,
width:1920
});
Vue.prototype.$heatmap = function(data) {
heatmapInstance.setData(data);
heatmapContainer.style.display = 'block';
setTimeout(() => {
heatmapContainer.style.display = 'none';
}, options.duration || 3000);
};
},
};
\ No newline at end of file
<template>
<!-- 事件分析 -->
<div>事件分析</div>
<div class="page">
<a-form-model :model="queryform" :label-col="labelCol" :wrapper-col="wrapperCol" layout="inline">
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker valueFormat="yyyy-MM-DD" v-model="queryform.value" style="width: 300px" />
</a-form-model-item>
<a-form-model-item>
<a-button type="primary">
开始分析
</a-button>
</a-form-model-item>
</a-form-model>
<div class="main">
<a-table :columns="columns" :data-source="data" :scroll="{ y: 590 }">
</a-table>
</div>
</div>
</template>
<script>
export default {};
export default {
data() {
return {
queryform: {
value: null
},
labelCol: {
span: 1
},
wrapperCol: {
span: 14
},
columns: [{
title: "序号",
width: "70px",
customRender: (text, record, index) => `${index+1}`,
align: "center",
},
{
title: "事件",
dataIndex: "title",
align: "center",
},
{
title: '事件ID',
dataIndex: 'address',
align: "center",
},
{
title: '事件数量(日均)',
dataIndex: 'address1',
align: "center",
},
{
title: '事件平均使用时长(单次)',
dataIndex: 'address2',
align: "center",
}
],
data: []
}
}
};
</script>
<style lang="less" scoped>
.page{
padding: 15px;
}
</style>
\ No newline at end of file
<template>
<!-- 信息流分析 -->
<div>信息流分析</div>
<div class="page">
<a-form-model :model="queryform" :label-col="labelCol" :wrapper-col="wrapperCol" layout="inline">
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker valueFormat="yyyy-MM-DD" v-model="queryform.value" style="width: 300px" />
</a-form-model-item>
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择一级场景">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择二级场景">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择三级场景">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-button type="primary">
开始分析
</a-button>
</a-form-model-item>
</a-form-model>
<div class="table-box">
<div class="mb">
<span style="margin-right: 30px;">指标筛选</span>
<a-checkbox-group v-model="queryform.value">
<a-checkbox value="1">访问人数</a-checkbox>
<a-checkbox value="2">打开次数</a-checkbox>
<a-checkbox value="3">访问页面数</a-checkbox>
</a-checkbox-group>
</div>
<div class="mb">
<span style="margin-right: 30px;">对比筛选</span>
<a-checkbox-group v-model="queryform.value">
<a-checkbox value="1">日对比</a-checkbox>
</a-checkbox-group>
</div>
<a-table :columns="columns" :data-source="data" :scroll="{ y: 590 }" :pagination="pagination">
</a-table>
</div>
</div>
</template>
<script>
export default {};
export default {
data() {
return {
queryform: {
value: null
},
labelCol: {
span: 1
},
wrapperCol: {
span: 14
},
columns: [{
title: "序号",
width: "70px",
customRender: (text, record, index) => `${index+1}`,
align: "center",
},
{
title: "时间",
dataIndex: "title",
align: "center",
},
{
title: '产品名称',
dataIndex: 'address',
align: "center",
},
{
title: '一级场景',
dataIndex: 'address1',
align: "center",
},
{
title: '二级场景',
dataIndex: 'address2',
align: "center",
},
{
title: '三级场景',
dataIndex: 'address3',
align: "center",
},{
title: '访问人数',
dataIndex: 'address5',
align: "center",
},{
title: '打开次数',
dataIndex: 'address4',
align: "center",
},{
title: '访问页面数',
dataIndex: 'address8',
align: "center",
}
],
data: [],
pagination: {
total: 0,
pageSize: 10, //每页中显示10条数据
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"], //每页中显示的数据
showTotal: total => `共有 ${total} 条数据`, //分页中显示总的数据
},
}
}
};
</script>
<style lang="less" scoped>
.page {
height: calc(100% - 50px);
display: flex;
flex-direction: column;
/deep/.ant-form {
padding: 15px;
}
.table-box {
padding: 0 15px;
.mb{
margin-bottom: 20px;
}
}
}
</style>
\ No newline at end of file
......@@ -9,7 +9,7 @@
>
</a-tab-pane>
</a-tabs>
<router-view style="padding: 0 1rem" />
<router-view />
</div>
</div>
</template>
......@@ -103,6 +103,9 @@ export default {
margin-left: 0.7rem !important;
}
}
/deep/.ant-tabs-bar{
margin: 0;
}
}
</style>
<template>
<!-- 页面分析 -->
<div>页面分析</div>
<div class="page">
<a-form-model :model="queryform" :label-col="labelCol" :wrapper-col="wrapperCol" layout="inline">
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker valueFormat="yyyy-MM-DD" v-model="queryform.value" style="width: 300px" />
</a-form-model-item>
<a-form-model-item>
<a-button type="primary">
开始分析
</a-button>
</a-form-model-item>
</a-form-model>
<div class="box">
<div class="left-dv">
<div>页面访问指标趋势</div>
<div class="txt-dv">
<div>
<div class="num">4058</div>
<div>页面累计访问次数</div>
</div>
<div>
<div class="num">4058</div>
<div>日均访问次数</div>
</div>
</div>
<div id="number"></div>
</div>
<div class="right-dv">
<div class="page-box">
<div class="page-dv">
<div>人均访问深度</div>
<div class="page-num">4.00页</div>
</div>
<div class="page-dv">
<div>次均访问深度</div>
<div class="page-num">4.00页</div>
</div>
</div>
<div class="chatrs-dv">
<div>页面访问次数TOP10</div>
<div id="pages"></div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {};
import * as echarts from 'echarts'
export default {
data() {
return {
queryform: {
value: null
},
labelCol: {
span: 1
},
wrapperCol: {
span: 14
},
}
},
mounted() {
this.initLine()
this.initBar()
},
methods: {
initBar() {
let chartDom = document.getElementById('pages')
let myChart = echarts.init(chartDom);
myChart.setOption({
legend: {
bottom: 0,
itemWidth:10,
itemHeight:10
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
color:['#29D090'],
grid: {
top:'3%',
left: '3%',
right: '3%',
bottom: '10%',
containLabel: true
},
xAxis: {
type: 'value',
boundaryGap: [0, 0.01]
},
yAxis: {
type: 'category',
data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World'],
axisTick: {
show: false
}
},
series: [{
name: '访问次数',
type: 'bar',
data: [18203, 23489, 29034, 104970, 131744, 630230],
barWidth:10
}
]
})
},
initLine() {
let chartDom = document.getElementById('number')
let myChart = echarts.init(chartDom);
myChart.setOption({
legend: {
bottom: 0
},
grid: {
left: '10%',
rigth: 0,
top: '5%',
bottom: '15%'
},
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisTick: {
show: false
}
},
yAxis: {
type: 'value'
},
series: [{
name: '页面访问次数',
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line',
markLine: {
data: [{
type: 'average',
name: '均值'
}],
label: {
position: 'insideStartTop',
formatter: '{b}:{c}'
}
}
}]
})
}
}
};
</script>
<style lang="less" scoped>
.page {
height: calc(100% - 50px);
/deep/.ant-form {
padding: 15px;
border-bottom: solid 1px #efefef;
}
.box {
height: calc(100% - 70px);
display: flex;
.left-dv {
width: 55%;
min-height: 100%;
border-right: solid 1px #efefef;
padding: 15px;
.txt-dv {
display: flex;
justify-content: space-around;
margin: 50px;
text-align: center;
.num {
font-size: 24px;
margin-bottom: 10px;
}
}
#number {
height: 350px;
}
}
.right-dv {
flex: 1;
padding: 15px;
.page-box {
display: flex;
justify-content: space-between;
margin: 20px 0;
.page-dv {
width: calc(50% - 15px);
height: 140px;
background-color: #F5FAFF;
padding: 30px;
box-sizing: border-box;
.page-num {
font-size: 24px;
margin-top: 20px;
}
}
}
.chatrs-dv {
padding: 20px;
background-color: #F6FBF7;
}
#pages {
height: 290px;
}
}
}
}
</style>
\ No newline at end of file
<template>
<!-- 路径分析 -->
<div>路劲分析</div>
<div class="page">
<a-form-model :model="queryform" :label-col="labelCol" :wrapper-col="wrapperCol" layout="inline">
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker valueFormat="yyyy-MM-DD" v-model="queryform.value" style="width: 300px" />
</a-form-model-item>
<a-form-model-item>
<a-button type="primary">
开始分析
</a-button>
</a-form-model-item>
</a-form-model>
<div id="path"></div>
</div>
</template>
<script>
export default {};
import * as echarts from 'echarts'
export default {
data() {
return {
queryform: {
value: null
},
labelCol: {
span: 1
},
wrapperCol: {
span: 14
},
}
},
mounted() {
this.init()
},
methods: {
init() {
let chartDom = document.getElementById('path')
let myChart = echarts.init(chartDom);
myChart.setOption({
series: {
type: 'sankey',
layout: 'none',
emphasis: {
focus: 'adjacency'
},
color:['#FFCAC4','#6D86DE','#409AFE','#4DB3EA','#07CF8C'],
nodeWidth:10,
data: [{
name: 'a'
},
{
name: 'b'
},
{
name: 'a1'
},
{
name: 'a2'
},
{
name: 'b1'
},
{
name: 'c'
}
],
links: [{
source: 'a',
target: 'a1',
value: 5,
lineStyle:{
color:'source'
}
},
{
source: 'a',
target: 'a2',
value: 3,
lineStyle:{
color:'source'
}
},
{
source: 'b',
target: 'b1',
value: 8,
lineStyle:{
color:'source'
}
},
{
source: 'a',
target: 'b1',
value: 3,
lineStyle:{
color:'source'
}
},
{
source: 'b1',
target: 'a1',
value: 1,
lineStyle:{
color:'source'
}
},
{
source: 'b1',
target: 'c',
value: 2,
lineStyle:{
color:'source'
}
}
]
}
})
}
}
};
</script>
<style lang="less" scoped>
.page{
height: calc(100% - 50px);
display: flex;
flex-direction: column;
/deep/.ant-form {
padding: 15px;
}
#path{
flex: 1;
width: 70%;
margin: 0 auto;
}
}
</style>
\ No newline at end of file
<template>
<!-- 产品分析 -->
<div>产品热力图</div>
<div class="page">
<div class="img-dv">
<div id="queuing" @click="clickEvent"></div>
</div>
<div class="list-dv">
<a-form-model :model="queryform" :label-col="labelCol" :wrapper-col="wrapperCol" layout="inline">
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 180px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker valueFormat="yyyy-MM-DD" v-model="queryform.value" style="width: 300px" />
</a-form-model-item>
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 390px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-button type="primary">
开始分析
</a-button>
</a-form-model-item>
</a-form-model>
<div class="main">
<div class="total-dv">
<div>总点击次数</div>
<div>312321</div>
</div>
<div style="margin-bottom: 20px;">事件排名Top10</div>
<a-table :columns="columns" :data-source="data" :scroll="{ y: 590 }">
</a-table>
</div>
</div>
</div>
</template>
<script>
export default {};
import Heatmap from 'heatmap.js';
export default {
data() {
return {
queryform: {
value: null
},
labelCol: {
span: 1
},
wrapperCol: {
span: 14
},
columns: [{
title: "序号",
width: "70px",
customRender: (text, record, index) => `${index+1}`,
align: "center",
},
{
title: "事件",
dataIndex: "title",
align: "center",
},
{
title: '点击次数',
dataIndex: 'address',
align: "center",
},
{
title: '事件数量(日均)',
dataIndex: 'address1',
align: "center",
}
],
data: [],
heatmapInstance: null,
dataPoint: []
}
},
mounted() {
this.init('queuing')
},
methods: {
clickEvent(e) {
this.dataPoint.push({
x: e.layerX,
y: e.layerY,
value: 1
})
let data = {
max: 10,
min: 0,
data: this.dataPoint
};
this.heatmapInstance.setData(data);
},
init(el, dataPoint) {
let config = {
container: document.getElementById(el),
radius: 30,
maxOpacity: .8,
minOpacity: 0,
blur: .5
};
this.heatmapInstance = Heatmap.create(config);
}
}
};
</script>
<style lang="less" scoped>
.page {
width: 100%;
height: calc(100% - 50px);
display: flex;
.img-dv {
width: 60%;
min-height: 100%;
display: flex;
justify-content: center;
align-items: center;
#queuing {
width: 740px;
height: 370px;
background-image: url('https://cdn.pixabay.com/photo/2023/03/22/20/16/muffin-7870491_640.jpg');
background-size: 100% 100%;
}
}
.list-dv {
width: 40%;
min-height: 100%;
border-left: solid 1px #efefef;
box-sizing: border-box;
/deep/.ant-form {
padding: 15px;
border-bottom: solid 1px #efefef;
}
.main {
padding: 15px;
}
.total-dv {
display: flex;
justify-content: space-between;
padding: 20px 0;
}
}
}
</style>
\ No newline at end of file
<template>
<!-- 使用习惯分析 -->
<div>使用习惯</div>
<div class="page">
<a-form-model :model="queryform" :label-col="labelCol" :wrapper-col="wrapperCol" layout="inline">
<a-form-model-item>
<a-select v-model="queryform.value" style="width: 200px" placeholder="选择产品">
<a-select-option value="jack">
Jack
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker valueFormat="yyyy-MM-DD" v-model="queryform.value" style="width: 300px" />
</a-form-model-item>
<a-form-model-item>
<a-button type="primary">
开始分析
</a-button>
</a-form-model-item>
</a-form-model>
<div class="charts-box">
<div id="canal"></div>
<div id="type"></div>
<div id="way"></div>
</div>
</div>
</template>
<script>
export default {};
import * as echarts from 'echarts'
export default {
data() {
return {
queryform: {
value: null
},
labelCol: {
span: 1
},
wrapperCol: {
span: 14
},
}
},
mounted() {
this.initCanal()
this.initType()
this.initWay()
},
methods: {
initWay(){
let chartDom = document.getElementById('way')
let myChart = echarts.init(chartDom);
myChart.setOption({
title: {
text: '取号方式分析',
left: 'center'
},
tooltip: {
trigger: 'item',
},
legend: {
bottom: 0,
left: 'center',
itemWidth: 10,
itemHeight: 10
},
color: ['#6395F9', '#64DAAB', '#647798', '#F6C02D', '#7567FA', '#75CBED'],
series: [{
name: 'Access From',
type: 'pie',
radius: '65%',
label: {
normal: {
formatter: '{d}%' //自定义显示格式(b:name, c:value, d:百分比)
}
},
labelLine: {
normal: {
length: 1
}
},
data: [{
value: 1048,
name: 'Search Engine'
},
{
value: 735,
name: 'Direct'
},
{
value: 580,
name: 'Email'
},
{
value: 484,
name: 'Union Ads'
},
{
value: 300,
name: 'Video Ads'
}
],
}]
})
},
initType() {
let chartDom = document.getElementById('type')
let myChart = echarts.init(chartDom);
myChart.setOption({
title: {
text: '取号类型分析',
left: 'center'
},
tooltip: {
trigger: 'item',
},
legend: {
bottom: 0,
left: 'center',
itemWidth: 10,
itemHeight: 10
},
color: ['#6395F9', '#64DAAB', '#647798', '#F6C02D', '#7567FA', '#75CBED'],
series: [{
name: 'Access From',
type: 'pie',
radius: '65%',
label: {
normal: {
formatter: '{d}%' //自定义显示格式(b:name, c:value, d:百分比)
}
},
labelLine: {
normal: {
length: 1
}
},
data: [{
value: 1048,
name: 'Search Engine'
},
{
value: 735,
name: 'Direct'
},
{
value: 580,
name: 'Email'
},
{
value: 484,
name: 'Union Ads'
},
{
value: 300,
name: 'Video Ads'
}
],
}]
})
},
initCanal() {
let chartDom = document.getElementById('canal')
let myChart = echarts.init(chartDom);
myChart.setOption({
title: {
text: '取号渠道分析',
left: 'center'
},
tooltip: {
trigger: 'item',
},
legend: {
bottom: 0,
left: 'center',
itemWidth: 10,
itemHeight: 10
},
color: ['#6395F9', '#64DAAB', '#647798', '#F6C02D', '#7567FA', '#75CBED'],
series: [{
name: 'Access From',
type: 'pie',
radius: '65%',
label: {
normal: {
formatter: '{d}%' //自定义显示格式(b:name, c:value, d:百分比)
}
},
labelLine: {
normal: {
length: 1
}
},
data: [{
value: 1048,
name: '终端取号'
},
{
value: 735,
name: '在线取号'
}
]
}]
})
}
}
};
</script>
<style lang="less" scoped>
.page {
height: calc(100% - 50px);
display: flex;
flex-direction: column;
/deep/.ant-form {
padding: 15px;
}
.charts-box {
flex: 1;
display: flex;
justify-content: space-between;
padding: 50px 0;
#canal,#type,#way {
width: 30%;
height: 100%;
}
}
}
</style>
\ No newline at end of file
......@@ -4,6 +4,7 @@
<script>
import { deepClone } from "@/utils/js/common.js";
import lodash from "lodash";
import{getStatisticAges} from '@/api/dataAdmin.js'
export default {
props: {
info: {
......@@ -40,19 +41,16 @@ export default {
default: () => {},
},
},
mounted() {
this._initEcharts();
async mounted() {
let {data} = await getStatisticAges()
let label = data.map(item=> item.age_area)
let value = data.map(item=> item.nums)
this._initEcharts(label,value);
},
methods: {
_initEcharts() {
const NAME = [];
const VALUE = [];
_initEcharts(label,value) {
const myChart = this.$echarts.init(this.$el);
const echarts = this.$echarts;
this.info.forEach((item) => {
NAME.push(item.name);
VALUE.push(item.value);
});
let option = {
legend: {
data: ["预约次数"],
......@@ -72,7 +70,10 @@ export default {
},
xAxis: {
type: "category",
data: NAME,
data: label,
axisTick:{
show:false
}
},
yAxis: {
type: "value",
......@@ -85,7 +86,7 @@ export default {
},
series: [
{
data: VALUE,
data: value,
name: "预约次数",
barWidth: "50%",
type: "bar",
......
......@@ -8,58 +8,18 @@ export default {
props: {
info: {
type: Array,
default: () => [
{
value: 140,
name: "08:00~09:00",
},
{
value: 150,
name: "09:00~10:00",
},
{
value: 160,
name: "10:00~11:00",
},
{
value: 170,
name: "11:00~12:00",
},
{
value: 180,
name: "12:00~13:00",
},
{
value: 190,
name: "13:00~14:00",
},
{
value: 200,
name: "14:00~15:00",
},
{
value: 210,
name: "15:00~16:00",
},
{
value: 220,
name: "16:00~17:00",
},
{
value: 230,
name: "18:00~19:00",
},
{
value: 240,
name: "19:00~20:00",
},
],
default: () => [],
},
option: {
type: Object,
default: () => {},
},
},
watch:{
info(){
this._initEcharts();
}
},
mounted() {
this._initEcharts();
},
......@@ -70,8 +30,8 @@ export default {
const myChart = this.$echarts.init(this.$el);
const echarts = this.$echarts;
this.info.forEach((item) => {
NAME.push(item.name);
VALUE.push(item.value);
NAME.push(item.datetime);
VALUE.push(item.count);
});
let option = {
legend: {
......
......@@ -4,6 +4,7 @@
<script>
import { deepClone } from "@/utils/js/common.js";
import lodash from "lodash";
import{getStatisticSexual} from '@/api/dataAdmin.js'
export default {
props: {
info: {
......@@ -24,11 +25,13 @@ export default {
default: () => {},
},
},
mounted() {
this._initEcharts();
async mounted() {
let {data} = await getStatisticSexual()
let value = data.map(({idcard_Sex,nums})=>({name:idcard_Sex,value:nums}))
this._initEcharts(value);
},
methods: {
_initEcharts() {
_initEcharts(value) {
const myChart = this.$echarts.init(this.$el);
const echarts = this.$echarts;
......@@ -43,7 +46,6 @@ export default {
},
legend: {
data: this.info.map((item) => item.name),
bottom: "5%",
right: "center",
itemWidth: 13,
......@@ -84,18 +86,12 @@ export default {
rich_green: {
color: "#50CCCB",
},
},
formatter: function (params) {
if (params.name === "女士") {
return (
params.name + "\n\n" + `{rich_blue|${params.percent}%}`
);
} else if (params.name === "男士") {
return (
params.name + "\n\n" + `{rich_green|${params.percent}%}`
);
}
},
label: {
normal: {
formatter: '{d}%' //自定义显示格式(b:name, c:value, d:百分比)
}
},
labelLine: {
length: 10,
......@@ -110,7 +106,7 @@ export default {
},
},
},
data: this.info,
data: value,
},
],
};
......
......@@ -29,7 +29,7 @@ export default {
const echarts = this.$echarts;
let option = {
title: {
text: `{c|${this.info.name}} \n{a|` + this.info.value + "%" + "}",
text: `{c|${this.info.starttime}~${this.info.endtime}} \n{a|` + this.info.success_rate * 100 + "%" + "}",
x: "center",
y: "center",
textStyle: {
......@@ -62,7 +62,7 @@ export default {
},
data: [
{
value: this.info.value,
value: this.info.success_rate * 100,
name: "",
itemStyle: {
normal: {
......@@ -82,7 +82,7 @@ export default {
},
},
{
value: 100 - this.info.value,
value: 100 - (this.info.success_rate * 100),
name: "",
label: {
normal: {
......
......@@ -4,20 +4,19 @@
<Head :title="'地域分布'"> </Head>
<div class="diyufenbu_box">
<div class="_left">
<p style="margin: 15px">没画,暂时不知道画布地区,原型显示的是广东</p>
<div ref="chart" style="width: 100%;height: 100%;"></div>
</div>
<ul class="_right">
<li class="list">
<span>排名</span>
<span style="margin-right: 20px;">排名</span>
<i>部门名称</i>
<b>预约热度</b>
</li>
<li class="list" v-for="item of 10">
<span>NO.{{ item }}</span>
<i>区发改局</i>
<li class="list" v-for="item,index in area" :key="index">
<span style="margin-right: 20px;">NO.{{ index+1 }}</span>
<i>{{item.area}}</i>
<b>
<a-progress :percent="90" :show-info="false" status="active"
/></b>
<a-progress :percent="item.nums" :show-info="false" status="active" /></b>
</li>
</ul>
</div>
......@@ -35,21 +34,34 @@
<div class="bottom_box">
<Head :title="'签到准时率'"> </Head>
<div class="echarts">
<QiandaoPie class="list" v-for="item of 10" :key="item" />
<QiandaoPie class="list" :info="item" v-for="item,index in sign" :key="index" />
</div>
</div>
</div>
</template>
<script>
import NianlingBar from "./components/bar.vue";
import XingbiePie from "./components/pie.vue";
import QiandaoPie from "./components/pie2.vue";
import Head from "./components/header.vue";
export default {
import NianlingBar from "./components/bar.vue";
import XingbiePie from "./components/pie.vue";
import QiandaoPie from "./components/pie2.vue";
import Head from "./components/header.vue";
import {
getStatisticArea,
getStatisticSignin
} from '@/api/dataAdmin.js'
import axios from 'axios'
import * as echarts from 'echarts'
export default {
name: "PortalAdminVueCrowdPortrait",
data() {
return {};
return {
area: [],
sign: [],
config: {
bgImgSrc: require('../../../../assets/china.svg')
},
chart:null
};
},
components: {
Head,
......@@ -57,43 +69,355 @@ export default {
XingbiePie,
QiandaoPie,
},
mounted() {},
async mounted() {
let {
data
} = await getStatisticArea()
this.area = data
let sign = await getStatisticSignin()
this.sign = sign.data
let point = await axios.get('https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json')
console.log(point)
this.init(point.data)
},
methods: {
//初始化
init(data) {
if (this.chart == null) {
this.chart = echarts.init(this.$refs.chart);
}
echarts.registerMap('china', data);
var geoGpsMap = [104.64, 28.75];
var geoCoordMap = {
'江苏': [118.8062, 31.9208],
'黑龙江': [127.9688, 45.368],
'内蒙古': [110.3467, 41.4899],
'吉林': [125.8154, 44.2584],
'北京': [116.4551, 40.2539],
'辽宁': [123.1238, 42.1216],
// 河北: [114.4995, 38.1006],
'天津': [117.4219, 39.4189],
// 山西: [112.3352, 37.9413],
'陕西': [109.1162, 34.2004],
// 甘肃: [103.5901, 36.3043],
// 宁夏: [106.3586, 38.1775],
青海: [101.4038, 36.8207],
'新疆': [87.9236, 43.5883],
'四川': [103.9526, 30.7617],
// 重庆: [108.384366, 30.439702],
'山东': [117.1582, 36.8701],
// 河南: [113.4668, 34.6234],
// '安徽': [117.29, 32.0581],
'湖北': [114.3896, 30.6628],
'浙江': [119.5313, 29.8773],
// 福建: [119.4543, 25.9222],
// 江西: [116.0046, 28.6633],
'湖南': [113.0823, 28.2568],
// 贵州: [106.6992, 26.7682],
// 云南: [102.9199, 25.4663],
// 广东: [113.12244, 23.009505],
// 广西: [108.479, 23.1152],
// 海南: [110.3893, 19.8516],
'上海': [121.4648, 31.2891],
'西藏': [91.141017, 29.668461],
// 台湾: [121.509062, 25.044332]
};
var data = [];
var mapData = [];
for (var key in geoCoordMap) {
if (name.includes(key)) {
geoGpsMap = geoCoordMap[key];
}
const keys = key;
const filters = data.filter(item => {
return item.name.includes(keys);
})[0];
mapData.push({
name: key,
value: filters ? filters.value : 0
});
}
mapData.sort((a, b) => {
return a.value - b.value;
});
const colors = ['#4a99de', '#1890FF'];
var convertData = function(data) {
var res = [];
for (var i = 0; i < data.length; i++) {
var geoCoord = geoCoordMap[data[i].name];
if (geoCoord) {
res.push({
name: data[i].name,
value: geoCoord.concat(data[i].value)
});
}
}
return res;
};
var convertToLineData = function(data, gps) {
var res = [];
for (var i = 0; i < data.length; i++) {
var dataItem = data[i];
var fromCoord = geoCoordMap[dataItem.name];
var toCoord = gps; // gps:‘中心点’
if (fromCoord && toCoord) {
res.push({
fromName: gps,
toName: dataItem.name,
coords: [
fromCoord,
toCoord
]
});
}
}
return res;
};
let option = {
// backgroundColor: '#01193f',
color: ['#3BD8FF'], //飞线的颜色
series: [
// 地图线的动画效果
{
type: 'lines',
zlevel: 2,
effect: {
show: true,
period: 4,
trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
symbol: 'circle', //箭头图标
symbolSize: 5, //图标大小
},
lineStyle: {
normal: {
width: 2,
opacity: 0.05, //尾迹线条透明度
curveness: 0.01 //尾迹线条曲直度
}
},
tooltip: {
show: false
},
data: convertToLineData(mapData, geoGpsMap)
},
// 地图点的动画效果
{
type: 'effectScatter',
coordinateSystem: 'geo',
zlevel: 2,
data: convertData(mapData).map(item => {
return {
name: item.name,
value: item.value.splice(0, 2)
};
}),
// showEffectOn: 'render',
rippleEffect: {
period: 6, //动画时间,值越小速度越快
brushType: 'fill', //波纹绘制方式 stroke, fill
scale: 4, //波纹圆环最大限制,值越大波纹越大
color: '#3BD8FF'
},
// hoverAnimation: true,
symbol: 'circle',
symbolSize: 5,
itemStyle: {
normal: {
show: true,
color: '#3BD8FF',
// shadowBlur: 20,
// shadowColor: '#333'
}
}
},
methods: {},
};
{
type: "effectScatter",
coordinateSystem: "geo",
zlevel: 2,
rippleEffect: {
period: 4,
brushType: "fill",
scale: 4,
color: '#ff0000'
},
label: {
normal: {
show: false,
position: "top",
// offset: [5, 0], //偏移设置
color: "#ff0000",
formatter: "宜宾市",
textStyle: {
color: "#fff",
fontSize: '16px'
}
},
emphasis: {
show: true
}
},
symbol: "circle",
symbolSize: 5,
itemStyle: {
normal: {
show: true,
color: "#ff0000"
}
},
data: [{
name: '宜宾市',
value: [104.64, 28.75]
}],
},
// 地图?
{
type: 'map',
mapType: 'china',
top: '30%',
left: '20%',
zoom: 1.7,
label: { // 地图上的文字
normal: {
show: false,
textStyle: {
color: '#ffffff'
}
}
},
itemStyle: {
normal: {
areaColor: '#6194F8',
borderColor: '#fff',
borderWidth: 1,
shadowColor: '#CCEAFD',
shadowOffsetX: 0,
shadowOffsetY: 0,
shadowBlur: 0,
},
},
emphasis: { // 高亮时区域颜色
itemStyle: {
areaColor: '#1890FF',
},
label: {
color: '#ffffff'
}
},
data: data.map((item, index) => {
return {
name: item.name,
value: item.value,
itemStyle: {
areaColor: item.value > 10 ? colors[1] : colors[0]
}
};
})
}
],
geo: {
map: 'china',
top: '30%',
aspectScale: 0.75, // 长宽比
left: '20%',
zoom: 1.7,
roam: false,
itemStyle: {
normal: {
shadowColor: '#CCEAFD',
shadowOffsetX: 0,
shadowOffsetY: 0
}
},
regions: [{
name: '南海诸岛',
itemStyle: {
normal: {
opacity: 0,
label: {
show: false
}
}
}
}]
},
tooltip: {
show: false,
trigger: 'item',
backgroundColor: '#CCEAFD',
padding: 0,
formatter: function(params) {
var name = params.name || params.seriesName;
var value = params.data.value || 0;
// 实际来源地**
// 最终目的地规模**人
var content = `<div class="info_box">
<div class="info_box_marker"></div>
<div class="info_box_box">
<span class="name">${name}</span>
<span class="value">${value}</span>
<span class="company">人</span>
</div>
</div>`;
return content;
}
}
};
this.chart.setOption(option);
}
},
};
</script>
<style lang="less" scoped>
.CrowdPortrait-Container {
.CrowdPortrait-Container {
background: #f0f2f5;
& > .diyufenbu {
&>.diyufenbu {
background: #fff;
.diyufenbu_box {
display: flex;
align-items: stretch;
justify-content: space-between;
& > ._left {
&>._left {
flex: 1;
height: 440px;
// background: #fac;
}
& > ._right {
&>._right {
width: 35%;
padding: 15px;
.list {
& + .list {
&+.list {
margin-top: 15px;
}
&:last-child {
// padding-bottom: 20px;
// border-bottom: 1px solid #eee;
}
display: flex;
justify-content: flex-start;
align-items: center;
span {
text-align: left;
width: 10%;
}
i {
font-style: normal;
text-align: left;
......@@ -102,6 +426,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
b {
font-weight: normal;
text-align: left;
......@@ -111,44 +436,52 @@ export default {
}
}
}
& > .center_box {
&>.center_box {
display: flex;
justify-content: space-between;
align-items: stretch;
margin-top: 20px;
& > .nianling {
&>.nianling {
height: 430px;
width: 50%;
background: #fff;
margin-right: 20px;
display: flex;
flex-direction: column;
.echarts {
flex: 1;
}
}
& > .xingbie {
&>.xingbie {
width: 50%;
width: 50%;
background: #fff;
display: flex;
flex-direction: column;
.echarts {
flex: 1;
}
}
}
& > .bottom_box {
&>.bottom_box {
height: 480px;
margin-top: 20px;
width: 100%;
background: #fff;
display: flex;
flex-direction: column;
.echarts {
flex: 1;
display: flex;
flex-wrap: wrap;
// align-items: stretch;
.list {
// background: #caf;
......@@ -161,6 +494,5 @@ export default {
}
}
}
}
}
</style>
\ No newline at end of file
......@@ -4,54 +4,51 @@
<Head :title="'预约热度排名'">
<template slot="operation">
<a-range-picker
format="YYYY年MM月DD日"
valueFormat="YYYY-MM-DD"
class="range_picker_style"
@change="rangePickerChange"
v-model="BegindAndEndTime"
v-if="day == 5"
>
</a-range-picker>
<a-select default-value="001">
<!-- <a-select-option
v-for="(item, index) of selectOptions"
:key="index"
:value="item.value"
>
{{ item.label }}
</a-select-option> -->
<a-select-option value="001"> 近3天 </a-select-option>
<a-select-option value="002"> 近7天 </a-select-option>
<a-select v-model="day">
<a-select-option value="0"> 今天 </a-select-option>
<a-select-option value="1"> 近7天 </a-select-option>
<a-select-option value="2"> 近30天 </a-select-option>
<a-select-option value="3"> 近90天 </a-select-option>
<a-select-option value="4"> 近180天 </a-select-option>
<a-select-option value="5"> 自定义 </a-select-option>
</a-select>
<a-button type="primary">搜索</a-button>
<a-button type="primary" @click="getData">搜索</a-button>
</template>
</Head>
<div class="heat_box">
<div class="heat_box" v-if="data">
<ul class="heat_left">
<li class="list">
<span>排名</span>
<i>部门名称</i>
<b>预约热度</b>
</li>
<li class="list" v-for="item of 5">
<span>NO.{{ item }}</span>
<i>区发改局</i>
<li class="list" v-for="item,index in data.section" :key="index">
<span>NO.{{ index+1 }}</span>
<i>{{item.deptname}}</i>
<b>
<a-progress :percent="90" :show-info="false" status="active"
<a-progress :percent="item.count" :show-info="false" status="active"
/></b>
</li>
</ul>
<ul class="heat_right">
<li class="list">
<span>排名</span>
<i>部门名称</i>
<i>事项名称</i>
<b>预约热度</b>
</li>
<li class="list" v-for="item of 5">
<span>NO.{{ item }}</span>
<i>区发改局</i>
<li class="list" v-for="item,index in data.matter" :key="index">
<span>NO.{{ index+1 }}</span>
<i>{{item.mattername}}</i>
<b>
<a-progress :percent="90" :show-info="false" status="active"
<a-progress :percent="item.count" :show-info="false" status="active"
/></b>
</li>
</ul>
......@@ -62,20 +59,37 @@
<script>
import Head from "./components/header.vue";
import {getOrderRanking} from '@/api/dataAdmin.js'
export default {
name: "PortalAdminVueHeatRanking",
data() {
return {
day:'0',
BegindAndEndTime: [],
data:null
};
},
components: {
Head,
},
mounted() {},
watch:{
day(val){
if (val != 5) this.BegindAndEndTime = []
}
},
mounted() {
this.getData()
},
methods: {
getData(){
getOrderRanking({
selected:this.day == 5 ? null : this.day,
time:this.BegindAndEndTime
}).then(res=>{
this.data = res.data
})
},
rangePickerChange(val) {
console.log(val);
},
......
......@@ -4,30 +4,27 @@
<Head :title="'预约趋势研究'">
<template slot="operation">
<a-range-picker
format="YYYY年MM月DD日"
valueFormat="YYYY-MM-DD"
class="range_picker_style"
@change="rangePickerChange"
v-model="BegindAndEndTime"
v-if="day == 5"
>
</a-range-picker>
<a-select default-value="001">
<!-- <a-select-option
v-for="(item, index) of selectOptions"
:key="index"
:value="item.value"
>
{{ item.label }}
</a-select-option> -->
<a-select-option value="001"> 近3天 </a-select-option>
<a-select-option value="002"> 近7天 </a-select-option>
<a-select v-model="day">
<a-select-option value="0"> 今天 </a-select-option>
<a-select-option value="1"> 近7天 </a-select-option>
<a-select-option value="2"> 近30天 </a-select-option>
<a-select-option value="3"> 近90天 </a-select-option>
<a-select-option value="4"> 近180天 </a-select-option>
<a-select-option value="5"> 自定义 </a-select-option>
</a-select>
<a-button type="primary">搜索</a-button>
<a-button type="primary" @click="getData">搜索</a-button>
</template>
</Head>
<div class="echarts">
<Brokenline />
<Brokenline :info="chartsData" v-if="chartsData"/>
</div>
</div>
<div class="fx">
......@@ -39,11 +36,11 @@
:pagination="false"
:columns="tableHeaders"
:dataSource="tableSourceData"
:scroll="{ y: 590 }"
>
</a-table>
<p class="updateTime">
<i class="fa fa-info-circle"></i>数据更新时间:2021-07-12
18:00:00,受数据波动影响,可能会有延迟。
<i class="fa fa-info-circle"></i>数据更新时间:{{date}},受数据波动影响,可能会有延迟。
</p>
</div>
</div>
......@@ -53,22 +50,18 @@
<script>
import Head from "./components/header.vue";
import Brokenline from "./components/line.vue";
import {getTrend} from '@/api/dataAdmin.js'
import moment from 'moment'
export default {
name: "PortalAdminVueMakeDataAnalyse",
data() {
return {
day:'0',
date:'',
BegindAndEndTime: [],
chartsData:null,
tableSourceData: [],
tableHeaders: [
{
title: "序号",
dataIndex: "index",
width: "60px",
key: "index",
align: "center",
customRender: (text, record, index) => `${index + 1}`,
},
{
title: "研究对象",
align: "center",
......@@ -106,22 +99,33 @@ export default {
Head,
Brokenline,
},
mounted() {
for (let key = 0; key < 2; key++) {
this.tableSourceData.push({
id: `00${key + 1}`,
研究对象: `预约次数${key + 1}`,
预约总量: `56 ${key + 1}`,
开放预约天数: `1 ${key + 1}`,
预约日均值: `56 ${key + 1}`,
整体同比: `23% ${key + 1}`,
整体环比: `18% ${key + 1}`,
});
watch:{
day(val){
if (val != 5) this.BegindAndEndTime = []
}
},
mounted() {
this.date = moment().format('yyyy-MM-DD hh:mm:ss')
this.getData()
},
methods: {
getData(){
getTrend({
selected:this.day == 5 ? null : this.day,
time:this.BegindAndEndTime
}).then(res=>{
this.chartsData = res.data.list
this.tableSourceData.push({
研究对象: `预约次数`,
预约总量: res.data.orderAll,
开放预约天数: res.data.openday,
预约日均值: res.data.prev_num,
整体同比: res.data.tbi,
整体环比: res.data.hbi,
});
})
},
rangePickerChange(val) {
console.log(val);
},
......@@ -141,7 +145,7 @@ export default {
.table_box {
padding: 15px;
.updateTime {
margin: 10px 0;
margin: 15px 0;
i {
margin: 0 5px;
-webkit-transform: rotate(180deg);
......
......@@ -38,7 +38,7 @@
</li>
</template>
</ul>
<p class="bottom">服务类数据分析<a-icon type="swap-right" /></p>
<p class="bottom" @click="handleCkeck('/home/dataManagement/serviceDataAnalyse/makeTrendResearch')">服务类数据分析<a-icon type="swap-right" /></p>
</li>
</ul>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4610,6 +4610,171 @@ msg|String|消息|-
```
## 用户行为分析
### 客户端埋点
**请求URL:** page/bury/save
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 保存页面事件记录
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:-------
productId|Long|否|产品id
productName|String|否|产品名称
pageCode|String|否|页面编码(页面路由)
pageName|String|否|页面名称
sceneDepth|Integer|否|场景维度
depthValue|Integer|否|本次访问深度
eventInfo|object|否|页面事件信息
&emsp;businessCode|String|否|业务场景编码
&emsp;businessName|String|否|业务场景名称
&emsp;eventCode|String|否|事件编码
&emsp;eventName|String|否|事件名称
&emsp;takeTime|Integer|否|事件耗时(单位毫秒)
&emsp;coordinate|String|否|事件坐标(x,y)
routeInfo|object|否|页面路由信息
&emsp;sourceCode|String|否|开始页面编码(路由)
&emsp;sourceName|String|否|开始页面名称
&emsp;targetCode|String|否|目标页面编码(路由)
&emsp;targetName|String|否|目标页面名称
**请求样例:**
```
{
"productId": 7146,
"productName": "5x2mfa",
"pageCode": "gy92kw",
"pageName": "yxjkem",
"sceneDepth": 1,
"depthValue": 1,
"eventInfo": {
"businessCode": "hq6abb",
"businessName": "8996vc",
"eventCode": "u9xo59",
"eventName": "ku7l71",
"takeTime": 12345,
"coordinate": "12,13"
},
"routeInfo": {
"sourceCode": "6mq7ry",
"sourceName": "fxb3mk",
"targetCode": "fzrr3u",
"targetName": "fzrr3u"
}
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;productId|Long|产品id
&emsp;productName|String|产品名称
&emsp;pageCode|String|页面编码(页面路由)
&emsp;pageName|String|页面名称
&emsp;sceneDepth|Integer|场景维度
&emsp;depthValue|Integer|本次访问深度
&emsp;eventInfo|object|页面事件信息
&emsp;&emsp;businessCode|String|业务场景编码
&emsp;&emsp;businessName|String|业务场景名称
&emsp;&emsp;eventCode|String|事件编码
&emsp;&emsp;eventName|String|事件名称
&emsp;&emsp;takeTime|Integer|事件耗时(单位毫秒)
&emsp;&emsp;coordinate|String|事件坐标(x,y)
&emsp;routeInfo|object|页面路由信息
&emsp;&emsp;sourceCode|String|开始页面编码(路由)
&emsp;&emsp;sourceName|String|开始页面名称
&emsp;&emsp;targetCode|String|目标页面编码(路由)
&emsp;&emsp;targetName|String|目标页面名称
**响应消息样例:**
```
{
"msg":"新增模块成功",
"code":1,
"data":{}
}
}
```
### 保存页面截图
**请求URL:** page/bury/screen/save
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 保存或更新产品页面配置:id为空时为新增保存,否则为更新提交
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:-------
deviceNum|String|否|设备编码
productId|Long|否|产品id
productName|String|否|产品名称
pageCode|String|否|页面编码(页面路由)
pageName|String|否|页面名称
screenUrl|String|否|页面截图地址
**请求样例:**
```
{
"deviceNum":"fblh4k",
"productId":427,
"productName":"oo1k4e",
"pageCode":"5fzoqc",
"pageName":"r8smsl",
"screenUrl":"feq3hw",
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|保存后主键id
&emsp;entity|object|保存更新实体
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;deviceNum|String|设备编码
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;productName|String|产品名称
&emsp;&emsp;pageCode|String|页面编码(页面路由)
&emsp;&emsp;pageName|String|页面名称
&emsp;&emsp;screenUrl|String|页面截图地址
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
**响应消息样例:**
```
{
"msg":"新增模块成功",
"code":1,
"data":{}
}
}
```
## 字典附录
### userType
字典参数key|字典参数值|其它
......
package com.mortals.xhx.module.page.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import java.util.List;
/**
* 产品页面配置Dao
* 产品页面配置 DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageAccessDao extends ICRUDDao<PageAccessEntity,Long>{
}
package com.mortals.xhx.module.page.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
import java.util.List;
/**
* 产品页面配置Dao
* 产品页面配置 DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageAccessDepthDao extends ICRUDDao<PageAccessDepthEntity,Long>{
}
package com.mortals.xhx.module.page.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.page.model.PageEventEntity;
import java.util.List;
/**
* 页面事件记录Dao
* 页面事件记录 DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageEventDao extends ICRUDDao<PageEventEntity,Long>{
}
package com.mortals.xhx.module.page.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.page.model.PageInfoEntity;
import java.util.List;
/**
* 产品页面配置Dao
* 产品页面配置 DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageInfoDao extends ICRUDDao<PageInfoEntity,Long>{
}
package com.mortals.xhx.module.page.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import java.util.List;
/**
* 页面路径记录Dao
* 页面路径记录 DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageRouteDao extends ICRUDDao<PageRouteEntity,Long>{
}
package com.mortals.xhx.module.page.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.page.dao.PageAccessDao;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 产品页面配置DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
@Repository("pageAccessDao")
public class PageAccessDaoImpl extends BaseCRUDDaoMybatis<PageAccessEntity,Long> implements PageAccessDao {
}
package com.mortals.xhx.module.page.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.page.dao.PageAccessDepthDao;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 产品页面配置DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
@Repository("pageAccessDepthDao")
public class PageAccessDepthDaoImpl extends BaseCRUDDaoMybatis<PageAccessDepthEntity,Long> implements PageAccessDepthDao {
}
package com.mortals.xhx.module.page.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.page.dao.PageEventDao;
import com.mortals.xhx.module.page.model.PageEventEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 页面事件记录DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
@Repository("pageEventDao")
public class PageEventDaoImpl extends BaseCRUDDaoMybatis<PageEventEntity,Long> implements PageEventDao {
}
package com.mortals.xhx.module.page.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.page.dao.PageInfoDao;
import com.mortals.xhx.module.page.model.PageInfoEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 产品页面配置DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
@Repository("pageInfoDao")
public class PageInfoDaoImpl extends BaseCRUDDaoMybatis<PageInfoEntity,Long> implements PageInfoDao {
}
package com.mortals.xhx.module.page.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.page.dao.PageRouteDao;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 页面路径记录DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-10
*/
@Repository("pageRouteDao")
public class PageRouteDaoImpl extends BaseCRUDDaoMybatis<PageRouteEntity,Long> implements PageRouteDao {
}
package com.mortals.xhx.module.page.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.vo.PageAccessDepthVo;
/**
* 产品页面配置实体对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageAccessDepthEntity extends PageAccessDepthVo {
private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/**
* 产品id
*/
private Long productId;
/**
* 产品名称
*/
private String productName;
/**
* 页面编码(页面路由)
*/
private String pageCode;
/**
* 页面名称
*/
private String pageName;
/**
* 本次访问深度
*/
private Integer depthValue;
public PageAccessDepthEntity(){}
/**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 页面编码(页面路由)
* @return String
*/
public String getPageCode(){
return pageCode;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public void setPageCode(String pageCode){
this.pageCode = pageCode;
}
/**
* 获取 页面名称
* @return String
*/
public String getPageName(){
return pageName;
}
/**
* 设置 页面名称
* @param pageName
*/
public void setPageName(String pageName){
this.pageName = pageName;
}
/**
* 获取 本次访问深度
* @return Integer
*/
public Integer getDepthValue(){
return depthValue;
}
/**
* 设置 本次访问深度
* @param depthValue
*/
public void setDepthValue(Integer depthValue){
this.depthValue = depthValue;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof PageAccessDepthEntity) {
PageAccessDepthEntity tmp = (PageAccessDepthEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName());
sb.append(",pageCode:").append(getPageCode());
sb.append(",pageName:").append(getPageName());
sb.append(",depthValue:").append(getDepthValue());
return sb.toString();
}
public void initAttrValue(){
this.deviceNum = "";
this.productId = null;
this.productName = "";
this.pageCode = "";
this.pageName = "";
this.depthValue = null;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
/**
* 产品页面配置查询对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageAccessDepthQuery extends PageAccessDepthEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** 页面编码(页面路由) */
private List<String> pageCodeList;
/** 页面编码(页面路由)排除列表 */
private List <String> pageCodeNotList;
/** 页面名称 */
private List<String> pageNameList;
/** 页面名称排除列表 */
private List <String> pageNameNotList;
/** 开始 本次访问深度 */
private Integer depthValueStart;
/** 结束 本次访问深度 */
private Integer depthValueEnd;
/** 增加 本次访问深度 */
private Integer depthValueIncrement;
/** 本次访问深度列表 */
private List <Integer> depthValueList;
/** 本次访问深度排除列表 */
private List <Integer> depthValueNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PageAccessDepthQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PageAccessDepthQuery> andConditionList;
public PageAccessDepthQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 设备编码
* @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
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 产品名称
* @return productNameList
*/
public List<String> getProductNameList(){
return this.productNameList;
}
/**
* 设置 产品名称
* @param productNameList
*/
public void setProductNameList(List<String> productNameList){
this.productNameList = productNameList;
}
/**
* 获取 产品名称
* @return productNameNotList
*/
public List<String> getProductNameNotList(){
return this.productNameNotList;
}
/**
* 设置 产品名称
* @param productNameNotList
*/
public void setProductNameNotList(List<String> productNameNotList){
this.productNameNotList = productNameNotList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeList
*/
public List<String> getPageCodeList(){
return this.pageCodeList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public void setPageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeNotList
*/
public List<String> getPageCodeNotList(){
return this.pageCodeNotList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeNotList
*/
public void setPageCodeNotList(List<String> pageCodeNotList){
this.pageCodeNotList = pageCodeNotList;
}
/**
* 获取 页面名称
* @return pageNameList
*/
public List<String> getPageNameList(){
return this.pageNameList;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public void setPageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
}
/**
* 获取 页面名称
* @return pageNameNotList
*/
public List<String> getPageNameNotList(){
return this.pageNameNotList;
}
/**
* 设置 页面名称
* @param pageNameNotList
*/
public void setPageNameNotList(List<String> 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
*/
public List<Integer> getDepthValueList(){
return this.depthValueList;
}
/**
* 设置 本次访问深度
* @param depthValueList
*/
public void setDepthValueList(List<Integer> depthValueList){
this.depthValueList = depthValueList;
}
/**
* 获取 本次访问深度
* @return depthValueNotList
*/
public List<Integer> getDepthValueNotList(){
return this.depthValueNotList;
}
/**
* 设置 本次访问深度
* @param depthValueNotList
*/
public void setDepthValueNotList(List<Integer> depthValueNotList){
this.depthValueNotList = depthValueNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public PageAccessDepthQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public PageAccessDepthQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public PageAccessDepthQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public PageAccessDepthQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public PageAccessDepthQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public PageAccessDepthQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
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
* @param productId
*/
public PageAccessDepthQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public PageAccessDepthQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public PageAccessDepthQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public PageAccessDepthQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public PageAccessDepthQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public PageAccessDepthQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 产品名称
* @param productName
*/
public PageAccessDepthQuery productName(String productName){
setProductName(productName);
return this;
}
/**
* 设置 产品名称
* @param productNameList
*/
public PageAccessDepthQuery productNameList(List<String> productNameList){
this.productNameList = productNameList;
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public PageAccessDepthQuery pageCode(String pageCode){
setPageCode(pageCode);
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public PageAccessDepthQuery pageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
return this;
}
/**
* 设置 页面名称
* @param pageName
*/
public PageAccessDepthQuery pageName(String pageName){
setPageName(pageName);
return this;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public PageAccessDepthQuery pageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
return this;
}
/**
* 设置 本次访问深度
* @param depthValue
*/
public PageAccessDepthQuery depthValue(Integer depthValue){
setDepthValue(depthValue);
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
*/
public PageAccessDepthQuery depthValueList(List<Integer> depthValueList){
this.depthValueList = depthValueList;
return this;
}
/**
* 设置 本次访问深度
* @param depthValueNotList
*/
public PageAccessDepthQuery depthValueNotList(List<Integer> depthValueNotList){
this.depthValueNotList = depthValueNotList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public PageAccessDepthQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public PageAccessDepthQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public PageAccessDepthQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public PageAccessDepthQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public PageAccessDepthQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public PageAccessDepthQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public PageAccessDepthQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public PageAccessDepthQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public PageAccessDepthQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public PageAccessDepthQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public PageAccessDepthQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public PageAccessDepthQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<PageAccessDepthQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<PageAccessDepthQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<PageAccessDepthQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<PageAccessDepthQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.vo.PageAccessVo;
/**
* 产品页面配置实体对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageAccessEntity extends PageAccessVo {
private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/**
* 产品id
*/
private Long productId;
/**
* 产品名称
*/
private String productName;
/**
* 页面编码(页面路由)
*/
private String pageCode;
/**
* 页面名称
*/
private String pageName;
/**
* 场景维度
*/
private Integer sceneDepth;
public PageAccessEntity(){}
/**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 页面编码(页面路由)
* @return String
*/
public String getPageCode(){
return pageCode;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public void setPageCode(String pageCode){
this.pageCode = pageCode;
}
/**
* 获取 页面名称
* @return String
*/
public String getPageName(){
return pageName;
}
/**
* 设置 页面名称
* @param pageName
*/
public void setPageName(String pageName){
this.pageName = pageName;
}
/**
* 获取 场景维度
* @return Integer
*/
public Integer getSceneDepth(){
return sceneDepth;
}
/**
* 设置 场景维度
* @param sceneDepth
*/
public void setSceneDepth(Integer sceneDepth){
this.sceneDepth = sceneDepth;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof PageAccessEntity) {
PageAccessEntity tmp = (PageAccessEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName());
sb.append(",pageCode:").append(getPageCode());
sb.append(",pageName:").append(getPageName());
sb.append(",sceneDepth:").append(getSceneDepth());
return sb.toString();
}
public void initAttrValue(){
this.deviceNum = "";
this.productId = null;
this.productName = "";
this.pageCode = "";
this.pageName = "";
this.sceneDepth = 0;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import com.mortals.xhx.module.page.model.PageAccessEntity;
/**
* 产品页面配置查询对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageAccessQuery extends PageAccessEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** 页面编码(页面路由) */
private List<String> pageCodeList;
/** 页面编码(页面路由)排除列表 */
private List <String> pageCodeNotList;
/** 页面名称 */
private List<String> pageNameList;
/** 页面名称排除列表 */
private List <String> pageNameNotList;
/** 开始 场景维度 */
private Integer sceneDepthStart;
/** 结束 场景维度 */
private Integer sceneDepthEnd;
/** 增加 场景维度 */
private Integer sceneDepthIncrement;
/** 场景维度列表 */
private List <Integer> sceneDepthList;
/** 场景维度排除列表 */
private List <Integer> sceneDepthNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PageAccessQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PageAccessQuery> andConditionList;
public PageAccessQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 设备编码
* @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
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 产品名称
* @return productNameList
*/
public List<String> getProductNameList(){
return this.productNameList;
}
/**
* 设置 产品名称
* @param productNameList
*/
public void setProductNameList(List<String> productNameList){
this.productNameList = productNameList;
}
/**
* 获取 产品名称
* @return productNameNotList
*/
public List<String> getProductNameNotList(){
return this.productNameNotList;
}
/**
* 设置 产品名称
* @param productNameNotList
*/
public void setProductNameNotList(List<String> productNameNotList){
this.productNameNotList = productNameNotList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeList
*/
public List<String> getPageCodeList(){
return this.pageCodeList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public void setPageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeNotList
*/
public List<String> getPageCodeNotList(){
return this.pageCodeNotList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeNotList
*/
public void setPageCodeNotList(List<String> pageCodeNotList){
this.pageCodeNotList = pageCodeNotList;
}
/**
* 获取 页面名称
* @return pageNameList
*/
public List<String> getPageNameList(){
return this.pageNameList;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public void setPageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
}
/**
* 获取 页面名称
* @return pageNameNotList
*/
public List<String> getPageNameNotList(){
return this.pageNameNotList;
}
/**
* 设置 页面名称
* @param pageNameNotList
*/
public void setPageNameNotList(List<String> pageNameNotList){
this.pageNameNotList = pageNameNotList;
}
/**
* 获取 开始 场景维度
* @return sceneDepthStart
*/
public Integer getSceneDepthStart(){
return this.sceneDepthStart;
}
/**
* 设置 开始 场景维度
* @param sceneDepthStart
*/
public void setSceneDepthStart(Integer sceneDepthStart){
this.sceneDepthStart = sceneDepthStart;
}
/**
* 获取 结束 场景维度
* @return $sceneDepthEnd
*/
public Integer getSceneDepthEnd(){
return this.sceneDepthEnd;
}
/**
* 设置 结束 场景维度
* @param sceneDepthEnd
*/
public void setSceneDepthEnd(Integer sceneDepthEnd){
this.sceneDepthEnd = sceneDepthEnd;
}
/**
* 获取 增加 场景维度
* @return sceneDepthIncrement
*/
public Integer getSceneDepthIncrement(){
return this.sceneDepthIncrement;
}
/**
* 设置 增加 场景维度
* @param sceneDepthIncrement
*/
public void setSceneDepthIncrement(Integer sceneDepthIncrement){
this.sceneDepthIncrement = sceneDepthIncrement;
}
/**
* 获取 场景维度
* @return sceneDepthList
*/
public List<Integer> getSceneDepthList(){
return this.sceneDepthList;
}
/**
* 设置 场景维度
* @param sceneDepthList
*/
public void setSceneDepthList(List<Integer> sceneDepthList){
this.sceneDepthList = sceneDepthList;
}
/**
* 获取 场景维度
* @return sceneDepthNotList
*/
public List<Integer> getSceneDepthNotList(){
return this.sceneDepthNotList;
}
/**
* 设置 场景维度
* @param sceneDepthNotList
*/
public void setSceneDepthNotList(List<Integer> sceneDepthNotList){
this.sceneDepthNotList = sceneDepthNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public PageAccessQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public PageAccessQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public PageAccessQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public PageAccessQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public PageAccessQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public PageAccessQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
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
* @param productId
*/
public PageAccessQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public PageAccessQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public PageAccessQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public PageAccessQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public PageAccessQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public PageAccessQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 产品名称
* @param productName
*/
public PageAccessQuery productName(String productName){
setProductName(productName);
return this;
}
/**
* 设置 产品名称
* @param productNameList
*/
public PageAccessQuery productNameList(List<String> productNameList){
this.productNameList = productNameList;
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public PageAccessQuery pageCode(String pageCode){
setPageCode(pageCode);
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public PageAccessQuery pageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
return this;
}
/**
* 设置 页面名称
* @param pageName
*/
public PageAccessQuery pageName(String pageName){
setPageName(pageName);
return this;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public PageAccessQuery pageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
return this;
}
/**
* 设置 场景维度
* @param sceneDepth
*/
public PageAccessQuery sceneDepth(Integer sceneDepth){
setSceneDepth(sceneDepth);
return this;
}
/**
* 设置 开始 场景维度
* @param sceneDepthStart
*/
public PageAccessQuery sceneDepthStart(Integer sceneDepthStart){
this.sceneDepthStart = sceneDepthStart;
return this;
}
/**
* 设置 结束 场景维度
* @param sceneDepthEnd
*/
public PageAccessQuery sceneDepthEnd(Integer sceneDepthEnd){
this.sceneDepthEnd = sceneDepthEnd;
return this;
}
/**
* 设置 增加 场景维度
* @param sceneDepthIncrement
*/
public PageAccessQuery sceneDepthIncrement(Integer sceneDepthIncrement){
this.sceneDepthIncrement = sceneDepthIncrement;
return this;
}
/**
* 设置 场景维度
* @param sceneDepthList
*/
public PageAccessQuery sceneDepthList(List<Integer> sceneDepthList){
this.sceneDepthList = sceneDepthList;
return this;
}
/**
* 设置 场景维度
* @param sceneDepthNotList
*/
public PageAccessQuery sceneDepthNotList(List<Integer> sceneDepthNotList){
this.sceneDepthNotList = sceneDepthNotList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public PageAccessQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public PageAccessQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public PageAccessQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public PageAccessQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public PageAccessQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public PageAccessQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public PageAccessQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public PageAccessQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public PageAccessQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public PageAccessQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public PageAccessQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public PageAccessQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<PageAccessQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<PageAccessQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<PageAccessQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<PageAccessQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.vo.PageEventVo;
/**
* 页面事件记录实体对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageEventEntity extends PageEventVo {
private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/**
* 产品id
*/
private Long productId;
/**
* 产品名称
*/
private String productName;
/**
* 业务场景编码
*/
private String businessCode;
/**
* 业务场景名称
*/
private String businessName;
/**
* 事件编码
*/
private String eventCode;
/**
* 事件名称
*/
private String eventName;
/**
* 事件耗时(单位毫秒)
*/
private Integer takeTime;
/**
* 页面编码(页面路由)
*/
private String pageCode;
/**
* 页面名称
*/
private String pageName;
/**
* 事件坐标(x,y)
*/
private String coordinate;
public PageEventEntity(){}
/**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 业务场景编码
* @return String
*/
public String getBusinessCode(){
return businessCode;
}
/**
* 设置 业务场景编码
* @param businessCode
*/
public void setBusinessCode(String businessCode){
this.businessCode = businessCode;
}
/**
* 获取 业务场景名称
* @return String
*/
public String getBusinessName(){
return businessName;
}
/**
* 设置 业务场景名称
* @param businessName
*/
public void setBusinessName(String businessName){
this.businessName = businessName;
}
/**
* 获取 事件编码
* @return String
*/
public String getEventCode(){
return eventCode;
}
/**
* 设置 事件编码
* @param eventCode
*/
public void setEventCode(String eventCode){
this.eventCode = eventCode;
}
/**
* 获取 事件名称
* @return String
*/
public String getEventName(){
return eventName;
}
/**
* 设置 事件名称
* @param eventName
*/
public void setEventName(String eventName){
this.eventName = eventName;
}
/**
* 获取 事件耗时(单位毫秒)
* @return Integer
*/
public Integer getTakeTime(){
return takeTime;
}
/**
* 设置 事件耗时(单位毫秒)
* @param takeTime
*/
public void setTakeTime(Integer takeTime){
this.takeTime = takeTime;
}
/**
* 获取 页面编码(页面路由)
* @return String
*/
public String getPageCode(){
return pageCode;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public void setPageCode(String pageCode){
this.pageCode = pageCode;
}
/**
* 获取 页面名称
* @return String
*/
public String getPageName(){
return pageName;
}
/**
* 设置 页面名称
* @param pageName
*/
public void setPageName(String pageName){
this.pageName = pageName;
}
/**
* 获取 事件坐标(x,y)
* @return String
*/
public String getCoordinate(){
return coordinate;
}
/**
* 设置 事件坐标(x,y)
* @param coordinate
*/
public void setCoordinate(String coordinate){
this.coordinate = coordinate;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof PageEventEntity) {
PageEventEntity tmp = (PageEventEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName());
sb.append(",businessCode:").append(getBusinessCode());
sb.append(",businessName:").append(getBusinessName());
sb.append(",eventCode:").append(getEventCode());
sb.append(",eventName:").append(getEventName());
sb.append(",takeTime:").append(getTakeTime());
sb.append(",pageCode:").append(getPageCode());
sb.append(",pageName:").append(getPageName());
sb.append(",coordinate:").append(getCoordinate());
return sb.toString();
}
public void initAttrValue(){
this.deviceNum = "";
this.productId = null;
this.productName = "";
this.businessCode = "";
this.businessName = "";
this.eventCode = "";
this.eventName = "";
this.takeTime = null;
this.pageCode = "";
this.pageName = "";
this.coordinate = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import com.mortals.xhx.module.page.model.PageEventEntity;
/**
* 页面事件记录查询对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageEventQuery extends PageEventEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** 业务场景编码 */
private List<String> businessCodeList;
/** 业务场景编码排除列表 */
private List <String> businessCodeNotList;
/** 业务场景名称 */
private List<String> businessNameList;
/** 业务场景名称排除列表 */
private List <String> businessNameNotList;
/** 事件编码 */
private List<String> eventCodeList;
/** 事件编码排除列表 */
private List <String> eventCodeNotList;
/** 事件名称 */
private List<String> eventNameList;
/** 事件名称排除列表 */
private List <String> eventNameNotList;
/** 开始 事件耗时(单位毫秒) */
private Integer takeTimeStart;
/** 结束 事件耗时(单位毫秒) */
private Integer takeTimeEnd;
/** 增加 事件耗时(单位毫秒) */
private Integer takeTimeIncrement;
/** 事件耗时(单位毫秒)列表 */
private List <Integer> takeTimeList;
/** 事件耗时(单位毫秒)排除列表 */
private List <Integer> takeTimeNotList;
/** 页面编码(页面路由) */
private List<String> pageCodeList;
/** 页面编码(页面路由)排除列表 */
private List <String> pageCodeNotList;
/** 页面名称 */
private List<String> pageNameList;
/** 页面名称排除列表 */
private List <String> pageNameNotList;
/** 事件坐标(x,y) */
private List<String> coordinateList;
/** 事件坐标(x,y)排除列表 */
private List <String> coordinateNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PageEventQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PageEventQuery> andConditionList;
public PageEventQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 设备编码
* @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
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 产品名称
* @return productNameList
*/
public List<String> getProductNameList(){
return this.productNameList;
}
/**
* 设置 产品名称
* @param productNameList
*/
public void setProductNameList(List<String> productNameList){
this.productNameList = productNameList;
}
/**
* 获取 产品名称
* @return productNameNotList
*/
public List<String> getProductNameNotList(){
return this.productNameNotList;
}
/**
* 设置 产品名称
* @param productNameNotList
*/
public void setProductNameNotList(List<String> productNameNotList){
this.productNameNotList = productNameNotList;
}
/**
* 获取 业务场景编码
* @return businessCodeList
*/
public List<String> getBusinessCodeList(){
return this.businessCodeList;
}
/**
* 设置 业务场景编码
* @param businessCodeList
*/
public void setBusinessCodeList(List<String> businessCodeList){
this.businessCodeList = businessCodeList;
}
/**
* 获取 业务场景编码
* @return businessCodeNotList
*/
public List<String> getBusinessCodeNotList(){
return this.businessCodeNotList;
}
/**
* 设置 业务场景编码
* @param businessCodeNotList
*/
public void setBusinessCodeNotList(List<String> businessCodeNotList){
this.businessCodeNotList = businessCodeNotList;
}
/**
* 获取 业务场景名称
* @return businessNameList
*/
public List<String> getBusinessNameList(){
return this.businessNameList;
}
/**
* 设置 业务场景名称
* @param businessNameList
*/
public void setBusinessNameList(List<String> businessNameList){
this.businessNameList = businessNameList;
}
/**
* 获取 业务场景名称
* @return businessNameNotList
*/
public List<String> getBusinessNameNotList(){
return this.businessNameNotList;
}
/**
* 设置 业务场景名称
* @param businessNameNotList
*/
public void setBusinessNameNotList(List<String> businessNameNotList){
this.businessNameNotList = businessNameNotList;
}
/**
* 获取 事件编码
* @return eventCodeList
*/
public List<String> getEventCodeList(){
return this.eventCodeList;
}
/**
* 设置 事件编码
* @param eventCodeList
*/
public void setEventCodeList(List<String> eventCodeList){
this.eventCodeList = eventCodeList;
}
/**
* 获取 事件编码
* @return eventCodeNotList
*/
public List<String> getEventCodeNotList(){
return this.eventCodeNotList;
}
/**
* 设置 事件编码
* @param eventCodeNotList
*/
public void setEventCodeNotList(List<String> eventCodeNotList){
this.eventCodeNotList = eventCodeNotList;
}
/**
* 获取 事件名称
* @return eventNameList
*/
public List<String> getEventNameList(){
return this.eventNameList;
}
/**
* 设置 事件名称
* @param eventNameList
*/
public void setEventNameList(List<String> eventNameList){
this.eventNameList = eventNameList;
}
/**
* 获取 事件名称
* @return eventNameNotList
*/
public List<String> getEventNameNotList(){
return this.eventNameNotList;
}
/**
* 设置 事件名称
* @param eventNameNotList
*/
public void setEventNameNotList(List<String> eventNameNotList){
this.eventNameNotList = eventNameNotList;
}
/**
* 获取 开始 事件耗时(单位毫秒)
* @return takeTimeStart
*/
public Integer getTakeTimeStart(){
return this.takeTimeStart;
}
/**
* 设置 开始 事件耗时(单位毫秒)
* @param takeTimeStart
*/
public void setTakeTimeStart(Integer takeTimeStart){
this.takeTimeStart = takeTimeStart;
}
/**
* 获取 结束 事件耗时(单位毫秒)
* @return $takeTimeEnd
*/
public Integer getTakeTimeEnd(){
return this.takeTimeEnd;
}
/**
* 设置 结束 事件耗时(单位毫秒)
* @param takeTimeEnd
*/
public void setTakeTimeEnd(Integer takeTimeEnd){
this.takeTimeEnd = takeTimeEnd;
}
/**
* 获取 增加 事件耗时(单位毫秒)
* @return takeTimeIncrement
*/
public Integer getTakeTimeIncrement(){
return this.takeTimeIncrement;
}
/**
* 设置 增加 事件耗时(单位毫秒)
* @param takeTimeIncrement
*/
public void setTakeTimeIncrement(Integer takeTimeIncrement){
this.takeTimeIncrement = takeTimeIncrement;
}
/**
* 获取 事件耗时(单位毫秒)
* @return takeTimeList
*/
public List<Integer> getTakeTimeList(){
return this.takeTimeList;
}
/**
* 设置 事件耗时(单位毫秒)
* @param takeTimeList
*/
public void setTakeTimeList(List<Integer> takeTimeList){
this.takeTimeList = takeTimeList;
}
/**
* 获取 事件耗时(单位毫秒)
* @return takeTimeNotList
*/
public List<Integer> getTakeTimeNotList(){
return this.takeTimeNotList;
}
/**
* 设置 事件耗时(单位毫秒)
* @param takeTimeNotList
*/
public void setTakeTimeNotList(List<Integer> takeTimeNotList){
this.takeTimeNotList = takeTimeNotList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeList
*/
public List<String> getPageCodeList(){
return this.pageCodeList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public void setPageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeNotList
*/
public List<String> getPageCodeNotList(){
return this.pageCodeNotList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeNotList
*/
public void setPageCodeNotList(List<String> pageCodeNotList){
this.pageCodeNotList = pageCodeNotList;
}
/**
* 获取 页面名称
* @return pageNameList
*/
public List<String> getPageNameList(){
return this.pageNameList;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public void setPageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
}
/**
* 获取 页面名称
* @return pageNameNotList
*/
public List<String> getPageNameNotList(){
return this.pageNameNotList;
}
/**
* 设置 页面名称
* @param pageNameNotList
*/
public void setPageNameNotList(List<String> pageNameNotList){
this.pageNameNotList = pageNameNotList;
}
/**
* 获取 事件坐标(x,y)
* @return coordinateList
*/
public List<String> getCoordinateList(){
return this.coordinateList;
}
/**
* 设置 事件坐标(x,y)
* @param coordinateList
*/
public void setCoordinateList(List<String> coordinateList){
this.coordinateList = coordinateList;
}
/**
* 获取 事件坐标(x,y)
* @return coordinateNotList
*/
public List<String> getCoordinateNotList(){
return this.coordinateNotList;
}
/**
* 设置 事件坐标(x,y)
* @param coordinateNotList
*/
public void setCoordinateNotList(List<String> coordinateNotList){
this.coordinateNotList = coordinateNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public PageEventQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public PageEventQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public PageEventQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public PageEventQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public PageEventQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public PageEventQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
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
* @param productId
*/
public PageEventQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public PageEventQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public PageEventQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public PageEventQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public PageEventQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public PageEventQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 产品名称
* @param productName
*/
public PageEventQuery productName(String productName){
setProductName(productName);
return this;
}
/**
* 设置 产品名称
* @param productNameList
*/
public PageEventQuery productNameList(List<String> productNameList){
this.productNameList = productNameList;
return this;
}
/**
* 设置 业务场景编码
* @param businessCode
*/
public PageEventQuery businessCode(String businessCode){
setBusinessCode(businessCode);
return this;
}
/**
* 设置 业务场景编码
* @param businessCodeList
*/
public PageEventQuery businessCodeList(List<String> businessCodeList){
this.businessCodeList = businessCodeList;
return this;
}
/**
* 设置 业务场景名称
* @param businessName
*/
public PageEventQuery businessName(String businessName){
setBusinessName(businessName);
return this;
}
/**
* 设置 业务场景名称
* @param businessNameList
*/
public PageEventQuery businessNameList(List<String> businessNameList){
this.businessNameList = businessNameList;
return this;
}
/**
* 设置 事件编码
* @param eventCode
*/
public PageEventQuery eventCode(String eventCode){
setEventCode(eventCode);
return this;
}
/**
* 设置 事件编码
* @param eventCodeList
*/
public PageEventQuery eventCodeList(List<String> eventCodeList){
this.eventCodeList = eventCodeList;
return this;
}
/**
* 设置 事件名称
* @param eventName
*/
public PageEventQuery eventName(String eventName){
setEventName(eventName);
return this;
}
/**
* 设置 事件名称
* @param eventNameList
*/
public PageEventQuery eventNameList(List<String> eventNameList){
this.eventNameList = eventNameList;
return this;
}
/**
* 设置 事件耗时(单位毫秒)
* @param takeTime
*/
public PageEventQuery takeTime(Integer takeTime){
setTakeTime(takeTime);
return this;
}
/**
* 设置 开始 事件耗时(单位毫秒)
* @param takeTimeStart
*/
public PageEventQuery takeTimeStart(Integer takeTimeStart){
this.takeTimeStart = takeTimeStart;
return this;
}
/**
* 设置 结束 事件耗时(单位毫秒)
* @param takeTimeEnd
*/
public PageEventQuery takeTimeEnd(Integer takeTimeEnd){
this.takeTimeEnd = takeTimeEnd;
return this;
}
/**
* 设置 增加 事件耗时(单位毫秒)
* @param takeTimeIncrement
*/
public PageEventQuery takeTimeIncrement(Integer takeTimeIncrement){
this.takeTimeIncrement = takeTimeIncrement;
return this;
}
/**
* 设置 事件耗时(单位毫秒)
* @param takeTimeList
*/
public PageEventQuery takeTimeList(List<Integer> takeTimeList){
this.takeTimeList = takeTimeList;
return this;
}
/**
* 设置 事件耗时(单位毫秒)
* @param takeTimeNotList
*/
public PageEventQuery takeTimeNotList(List<Integer> takeTimeNotList){
this.takeTimeNotList = takeTimeNotList;
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public PageEventQuery pageCode(String pageCode){
setPageCode(pageCode);
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public PageEventQuery pageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
return this;
}
/**
* 设置 页面名称
* @param pageName
*/
public PageEventQuery pageName(String pageName){
setPageName(pageName);
return this;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public PageEventQuery pageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
return this;
}
/**
* 设置 事件坐标(x,y)
* @param coordinate
*/
public PageEventQuery coordinate(String coordinate){
setCoordinate(coordinate);
return this;
}
/**
* 设置 事件坐标(x,y)
* @param coordinateList
*/
public PageEventQuery coordinateList(List<String> coordinateList){
this.coordinateList = coordinateList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public PageEventQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public PageEventQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public PageEventQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public PageEventQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public PageEventQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public PageEventQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public PageEventQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public PageEventQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public PageEventQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public PageEventQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public PageEventQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public PageEventQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<PageEventQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<PageEventQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<PageEventQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<PageEventQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.vo.PageInfoVo;
/**
* 产品页面配置实体对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageInfoEntity extends PageInfoVo {
private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/**
* 产品id
*/
private Long productId;
/**
* 产品名称
*/
private String productName;
/**
* 页面编码(页面路由)
*/
private String pageCode;
/**
* 页面名称
*/
private String pageName;
/**
* 页面截图地址
*/
private String screenUrl;
public PageInfoEntity(){}
/**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 页面编码(页面路由)
* @return String
*/
public String getPageCode(){
return pageCode;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public void setPageCode(String pageCode){
this.pageCode = pageCode;
}
/**
* 获取 页面名称
* @return String
*/
public String getPageName(){
return pageName;
}
/**
* 设置 页面名称
* @param pageName
*/
public void setPageName(String pageName){
this.pageName = pageName;
}
/**
* 获取 页面截图地址
* @return String
*/
public String getScreenUrl(){
return screenUrl;
}
/**
* 设置 页面截图地址
* @param screenUrl
*/
public void setScreenUrl(String screenUrl){
this.screenUrl = screenUrl;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof PageInfoEntity) {
PageInfoEntity tmp = (PageInfoEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName());
sb.append(",pageCode:").append(getPageCode());
sb.append(",pageName:").append(getPageName());
sb.append(",screenUrl:").append(getScreenUrl());
return sb.toString();
}
public void initAttrValue(){
this.deviceNum = "";
this.productId = null;
this.productName = "";
this.pageCode = "";
this.pageName = "";
this.screenUrl = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import com.mortals.xhx.module.page.model.PageInfoEntity;
/**
* 产品页面配置查询对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageInfoQuery extends PageInfoEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** 页面编码(页面路由) */
private List<String> pageCodeList;
/** 页面编码(页面路由)排除列表 */
private List <String> pageCodeNotList;
/** 页面名称 */
private List<String> pageNameList;
/** 页面名称排除列表 */
private List <String> pageNameNotList;
/** 页面截图地址 */
private List<String> screenUrlList;
/** 页面截图地址排除列表 */
private List <String> screenUrlNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PageInfoQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PageInfoQuery> andConditionList;
public PageInfoQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 设备编码
* @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
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 产品名称
* @return productNameList
*/
public List<String> getProductNameList(){
return this.productNameList;
}
/**
* 设置 产品名称
* @param productNameList
*/
public void setProductNameList(List<String> productNameList){
this.productNameList = productNameList;
}
/**
* 获取 产品名称
* @return productNameNotList
*/
public List<String> getProductNameNotList(){
return this.productNameNotList;
}
/**
* 设置 产品名称
* @param productNameNotList
*/
public void setProductNameNotList(List<String> productNameNotList){
this.productNameNotList = productNameNotList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeList
*/
public List<String> getPageCodeList(){
return this.pageCodeList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public void setPageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
}
/**
* 获取 页面编码(页面路由)
* @return pageCodeNotList
*/
public List<String> getPageCodeNotList(){
return this.pageCodeNotList;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeNotList
*/
public void setPageCodeNotList(List<String> pageCodeNotList){
this.pageCodeNotList = pageCodeNotList;
}
/**
* 获取 页面名称
* @return pageNameList
*/
public List<String> getPageNameList(){
return this.pageNameList;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public void setPageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
}
/**
* 获取 页面名称
* @return pageNameNotList
*/
public List<String> getPageNameNotList(){
return this.pageNameNotList;
}
/**
* 设置 页面名称
* @param pageNameNotList
*/
public void setPageNameNotList(List<String> pageNameNotList){
this.pageNameNotList = pageNameNotList;
}
/**
* 获取 页面截图地址
* @return screenUrlList
*/
public List<String> getScreenUrlList(){
return this.screenUrlList;
}
/**
* 设置 页面截图地址
* @param screenUrlList
*/
public void setScreenUrlList(List<String> screenUrlList){
this.screenUrlList = screenUrlList;
}
/**
* 获取 页面截图地址
* @return screenUrlNotList
*/
public List<String> getScreenUrlNotList(){
return this.screenUrlNotList;
}
/**
* 设置 页面截图地址
* @param screenUrlNotList
*/
public void setScreenUrlNotList(List<String> screenUrlNotList){
this.screenUrlNotList = screenUrlNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public PageInfoQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public PageInfoQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public PageInfoQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public PageInfoQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public PageInfoQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public PageInfoQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
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
* @param productId
*/
public PageInfoQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public PageInfoQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public PageInfoQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public PageInfoQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public PageInfoQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public PageInfoQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 产品名称
* @param productName
*/
public PageInfoQuery productName(String productName){
setProductName(productName);
return this;
}
/**
* 设置 产品名称
* @param productNameList
*/
public PageInfoQuery productNameList(List<String> productNameList){
this.productNameList = productNameList;
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCode
*/
public PageInfoQuery pageCode(String pageCode){
setPageCode(pageCode);
return this;
}
/**
* 设置 页面编码(页面路由)
* @param pageCodeList
*/
public PageInfoQuery pageCodeList(List<String> pageCodeList){
this.pageCodeList = pageCodeList;
return this;
}
/**
* 设置 页面名称
* @param pageName
*/
public PageInfoQuery pageName(String pageName){
setPageName(pageName);
return this;
}
/**
* 设置 页面名称
* @param pageNameList
*/
public PageInfoQuery pageNameList(List<String> pageNameList){
this.pageNameList = pageNameList;
return this;
}
/**
* 设置 页面截图地址
* @param screenUrl
*/
public PageInfoQuery screenUrl(String screenUrl){
setScreenUrl(screenUrl);
return this;
}
/**
* 设置 页面截图地址
* @param screenUrlList
*/
public PageInfoQuery screenUrlList(List<String> screenUrlList){
this.screenUrlList = screenUrlList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public PageInfoQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public PageInfoQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public PageInfoQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public PageInfoQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public PageInfoQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public PageInfoQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public PageInfoQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public PageInfoQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public PageInfoQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public PageInfoQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public PageInfoQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public PageInfoQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<PageInfoQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<PageInfoQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<PageInfoQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<PageInfoQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.vo.PageRouteVo;
/**
* 页面路径记录实体对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageRouteEntity extends PageRouteVo {
private static final long serialVersionUID = 1L;
/**
* 设备编码
*/
private String deviceNum;
/**
* 产品id
*/
private Long productId;
/**
* 产品名称
*/
private String productName;
/**
* 开始页面编码(路由)
*/
private String sourceCode;
/**
* 开始页面名称
*/
private String sourceName;
/**
* 目标页面编码(路由)
*/
private String targetCode;
/**
* 目标页面名称
*/
private String targetName;
public PageRouteEntity(){}
/**
* 获取 设备编码
* @return String
*/
public String getDeviceNum(){
return deviceNum;
}
/**
* 设置 设备编码
* @param deviceNum
*/
public void setDeviceNum(String deviceNum){
this.deviceNum = deviceNum;
}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 开始页面编码(路由)
* @return String
*/
public String getSourceCode(){
return sourceCode;
}
/**
* 设置 开始页面编码(路由)
* @param sourceCode
*/
public void setSourceCode(String sourceCode){
this.sourceCode = sourceCode;
}
/**
* 获取 开始页面名称
* @return String
*/
public String getSourceName(){
return sourceName;
}
/**
* 设置 开始页面名称
* @param sourceName
*/
public void setSourceName(String sourceName){
this.sourceName = sourceName;
}
/**
* 获取 目标页面编码(路由)
* @return String
*/
public String getTargetCode(){
return targetCode;
}
/**
* 设置 目标页面编码(路由)
* @param targetCode
*/
public void setTargetCode(String targetCode){
this.targetCode = targetCode;
}
/**
* 获取 目标页面名称
* @return String
*/
public String getTargetName(){
return targetName;
}
/**
* 设置 目标页面名称
* @param targetName
*/
public void setTargetName(String targetName){
this.targetName = targetName;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof PageRouteEntity) {
PageRouteEntity tmp = (PageRouteEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",deviceNum:").append(getDeviceNum());
sb.append(",productId:").append(getProductId());
sb.append(",productName:").append(getProductName());
sb.append(",sourceCode:").append(getSourceCode());
sb.append(",sourceName:").append(getSourceName());
sb.append(",targetCode:").append(getTargetCode());
sb.append(",targetName:").append(getTargetName());
return sb.toString();
}
public void initAttrValue(){
this.deviceNum = "";
this.productId = null;
this.productName = "";
this.sourceCode = "";
this.sourceName = "";
this.targetCode = "";
this.targetName = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model;
import java.util.List;
import com.mortals.xhx.module.page.model.PageRouteEntity;
/**
* 页面路径记录查询对象
*
* @author zxfei
* @date 2023-04-12
*/
public class PageRouteQuery extends PageRouteEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 设备编码 */
private List<String> deviceNumList;
/** 设备编码排除列表 */
private List <String> deviceNumNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** 开始页面编码(路由) */
private List<String> sourceCodeList;
/** 开始页面编码(路由)排除列表 */
private List <String> sourceCodeNotList;
/** 开始页面名称 */
private List<String> sourceNameList;
/** 开始页面名称排除列表 */
private List <String> sourceNameNotList;
/** 目标页面编码(路由) */
private List<String> targetCodeList;
/** 目标页面编码(路由)排除列表 */
private List <String> targetCodeNotList;
/** 目标页面名称 */
private List<String> targetNameList;
/** 目标页面名称排除列表 */
private List <String> targetNameNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<PageRouteQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<PageRouteQuery> andConditionList;
public PageRouteQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 设备编码
* @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
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 产品名称
* @return productNameList
*/
public List<String> getProductNameList(){
return this.productNameList;
}
/**
* 设置 产品名称
* @param productNameList
*/
public void setProductNameList(List<String> productNameList){
this.productNameList = productNameList;
}
/**
* 获取 产品名称
* @return productNameNotList
*/
public List<String> getProductNameNotList(){
return this.productNameNotList;
}
/**
* 设置 产品名称
* @param productNameNotList
*/
public void setProductNameNotList(List<String> productNameNotList){
this.productNameNotList = productNameNotList;
}
/**
* 获取 开始页面编码(路由)
* @return sourceCodeList
*/
public List<String> getSourceCodeList(){
return this.sourceCodeList;
}
/**
* 设置 开始页面编码(路由)
* @param sourceCodeList
*/
public void setSourceCodeList(List<String> sourceCodeList){
this.sourceCodeList = sourceCodeList;
}
/**
* 获取 开始页面编码(路由)
* @return sourceCodeNotList
*/
public List<String> getSourceCodeNotList(){
return this.sourceCodeNotList;
}
/**
* 设置 开始页面编码(路由)
* @param sourceCodeNotList
*/
public void setSourceCodeNotList(List<String> sourceCodeNotList){
this.sourceCodeNotList = sourceCodeNotList;
}
/**
* 获取 开始页面名称
* @return sourceNameList
*/
public List<String> getSourceNameList(){
return this.sourceNameList;
}
/**
* 设置 开始页面名称
* @param sourceNameList
*/
public void setSourceNameList(List<String> sourceNameList){
this.sourceNameList = sourceNameList;
}
/**
* 获取 开始页面名称
* @return sourceNameNotList
*/
public List<String> getSourceNameNotList(){
return this.sourceNameNotList;
}
/**
* 设置 开始页面名称
* @param sourceNameNotList
*/
public void setSourceNameNotList(List<String> sourceNameNotList){
this.sourceNameNotList = sourceNameNotList;
}
/**
* 获取 目标页面编码(路由)
* @return targetCodeList
*/
public List<String> getTargetCodeList(){
return this.targetCodeList;
}
/**
* 设置 目标页面编码(路由)
* @param targetCodeList
*/
public void setTargetCodeList(List<String> targetCodeList){
this.targetCodeList = targetCodeList;
}
/**
* 获取 目标页面编码(路由)
* @return targetCodeNotList
*/
public List<String> getTargetCodeNotList(){
return this.targetCodeNotList;
}
/**
* 设置 目标页面编码(路由)
* @param targetCodeNotList
*/
public void setTargetCodeNotList(List<String> targetCodeNotList){
this.targetCodeNotList = targetCodeNotList;
}
/**
* 获取 目标页面名称
* @return targetNameList
*/
public List<String> getTargetNameList(){
return this.targetNameList;
}
/**
* 设置 目标页面名称
* @param targetNameList
*/
public void setTargetNameList(List<String> targetNameList){
this.targetNameList = targetNameList;
}
/**
* 获取 目标页面名称
* @return targetNameNotList
*/
public List<String> getTargetNameNotList(){
return this.targetNameNotList;
}
/**
* 设置 目标页面名称
* @param targetNameNotList
*/
public void setTargetNameNotList(List<String> targetNameNotList){
this.targetNameNotList = targetNameNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public PageRouteQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public PageRouteQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public PageRouteQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public PageRouteQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public PageRouteQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public PageRouteQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
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
* @param productId
*/
public PageRouteQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public PageRouteQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public PageRouteQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public PageRouteQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public PageRouteQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public PageRouteQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 产品名称
* @param productName
*/
public PageRouteQuery productName(String productName){
setProductName(productName);
return this;
}
/**
* 设置 产品名称
* @param productNameList
*/
public PageRouteQuery productNameList(List<String> productNameList){
this.productNameList = productNameList;
return this;
}
/**
* 设置 开始页面编码(路由)
* @param sourceCode
*/
public PageRouteQuery sourceCode(String sourceCode){
setSourceCode(sourceCode);
return this;
}
/**
* 设置 开始页面编码(路由)
* @param sourceCodeList
*/
public PageRouteQuery sourceCodeList(List<String> sourceCodeList){
this.sourceCodeList = sourceCodeList;
return this;
}
/**
* 设置 开始页面名称
* @param sourceName
*/
public PageRouteQuery sourceName(String sourceName){
setSourceName(sourceName);
return this;
}
/**
* 设置 开始页面名称
* @param sourceNameList
*/
public PageRouteQuery sourceNameList(List<String> sourceNameList){
this.sourceNameList = sourceNameList;
return this;
}
/**
* 设置 目标页面编码(路由)
* @param targetCode
*/
public PageRouteQuery targetCode(String targetCode){
setTargetCode(targetCode);
return this;
}
/**
* 设置 目标页面编码(路由)
* @param targetCodeList
*/
public PageRouteQuery targetCodeList(List<String> targetCodeList){
this.targetCodeList = targetCodeList;
return this;
}
/**
* 设置 目标页面名称
* @param targetName
*/
public PageRouteQuery targetName(String targetName){
setTargetName(targetName);
return this;
}
/**
* 设置 目标页面名称
* @param targetNameList
*/
public PageRouteQuery targetNameList(List<String> targetNameList){
this.targetNameList = targetNameList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public PageRouteQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public PageRouteQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public PageRouteQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public PageRouteQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public PageRouteQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public PageRouteQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public PageRouteQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public PageRouteQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public PageRouteQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public PageRouteQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public PageRouteQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public PageRouteQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<PageRouteQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<PageRouteQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<PageRouteQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<PageRouteQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.model.pdu;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import com.mortals.xhx.module.page.model.PageEventEntity;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import lombok.Data;
/***
* 页面数据埋点信息
*/
@Data
public class BuryPointPdu {
/** 设备编号 */
private String deviceNum;
/*** 产品id */
private Long productId;
/*** 产品名称 */
private String productName;
/*** 页面编码(页面路由) */
private String pageCode;
/** 页面名称 */
private String pageName;
/*** 场景维度 */
private Integer sceneDepth;
/*** 本次访问深度 */
private Integer depthValue;
/** 产品页面访问深度 **/
private PageEventEntity eventInfo;
/** 产品页面访问深度 **/
private PageRouteEntity routeInfo;
}
package com.mortals.xhx.module.page.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 产品页面配置视图对象
*
* @author zxfei
* @date 2023-04-10
*/
public class PageAccessDepthVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.page.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 产品页面配置视图对象
*
* @author zxfei
* @date 2023-04-10
*/
public class PageAccessVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.page.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.PageEventEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 页面事件记录视图对象
*
* @author zxfei
* @date 2023-04-10
*/
public class PageEventVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.page.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.PageInfoEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 产品页面配置视图对象
*
* @author zxfei
* @date 2023-04-10
*/
public class PageInfoVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.page.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 页面路径记录视图对象
*
* @author zxfei
* @date 2023-04-10
*/
public class PageRouteVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.page.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
/**
* PageAccessDepthService
*
* 产品页面配置 service接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageAccessDepthService extends ICRUDService<PageAccessDepthEntity,Long>{
PageAccessDepthEntity saveByPdu(BuryPointPdu pdu);
}
\ No newline at end of file
package com.mortals.xhx.module.page.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
/**
* PageAccessService
*
* 产品页面配置 service接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageAccessService extends ICRUDService<PageAccessEntity,Long>{
PageAccessEntity saveByPdu(BuryPointPdu pdu);
}
\ No newline at end of file
package com.mortals.xhx.module.page.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.page.model.PageEventEntity;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
/**
* PageEventService
*
* 页面事件记录 service接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageEventService extends ICRUDService<PageEventEntity,Long>{
PageEventEntity saveByPdu(BuryPointPdu pdu);
}
\ No newline at end of file
package com.mortals.xhx.module.page.service;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.page.model.PageInfoEntity;
/**
* PageInfoService
*
* 产品页面配置 service接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageInfoService extends ICRUDService<PageInfoEntity,Long>{
/**
* 埋点设备截图
* @param entity
* @param context
* @return
* @throws AppException
*/
PageInfoEntity saveScreen(PageInfoEntity entity, Context context) throws AppException;
}
\ No newline at end of file
package com.mortals.xhx.module.page.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
/**
* PageRouteService
*
* 页面路径记录 service接口
*
* @author zxfei
* @date 2023-04-10
*/
public interface PageRouteService extends ICRUDService<PageRouteEntity,Long>{
PageRouteEntity saveByPdu(BuryPointPdu pdu);
}
\ No newline at end of file
package com.mortals.xhx.module.page.service.impl;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.page.dao.PageAccessDepthDao;
import com.mortals.xhx.module.page.model.PageAccessDepthEntity;
import com.mortals.xhx.module.page.service.PageAccessDepthService;
import java.util.Date;
/**
* PageAccessDepthService
* 产品页面配置 service实现
*
* @author zxfei
* @date 2023-04-10
*/
@Service("pageAccessDepthService")
public class PageAccessDepthServiceImpl extends AbstractCRUDServiceImpl<PageAccessDepthDao, PageAccessDepthEntity, Long> implements PageAccessDepthService {
@Override
protected void validData(PageAccessDepthEntity entity, Context context) throws AppException {
if(StringUtils.isEmpty(entity.getPageCode())){
throw new AppException("页面编码(路由)不能为空");
}
if(StringUtils.isEmpty(entity.getPageName())){
throw new AppException("页面名称不能为空");
}
}
@Override
public PageAccessDepthEntity saveByPdu(BuryPointPdu pdu) {
if(pdu.getDepthValue()==null){
return null;
}
PageAccessDepthEntity entity = new PageAccessDepthEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName());
entity.setPageCode(pdu.getPageCode());
entity.setPageName(pdu.getPageName());
entity.setDepthValue(pdu.getDepthValue());
entity.setCreateTime(new Date());
return this.save(entity);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.service.impl;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.page.dao.PageAccessDao;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import com.mortals.xhx.module.page.service.PageAccessService;
import java.util.Date;
/**
* PageAccessService
* 产品页面配置 service实现
*
* @author zxfei
* @date 2023-04-10
*/
@Service("pageAccessService")
public class PageAccessServiceImpl extends AbstractCRUDServiceImpl<PageAccessDao, PageAccessEntity, Long> implements PageAccessService {
@Override
protected void validData(PageAccessEntity entity, Context context) throws AppException {
if(StringUtils.isEmpty(entity.getPageCode())){
throw new AppException("页面编码(路由)不能为空");
}
if(StringUtils.isEmpty(entity.getPageName())){
throw new AppException("页面名称不能为空");
}
}
@Override
public PageAccessEntity saveByPdu(BuryPointPdu pdu) {
if(pdu.getSceneDepth()==null){
return null;
}
PageAccessEntity entity = new PageAccessEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName());
entity.setPageCode(pdu.getPageCode());
entity.setPageName(pdu.getPageName());
entity.setSceneDepth(pdu.getSceneDepth());
entity.setCreateTime(new Date());
return this.save(entity);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.service.impl;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.page.dao.PageEventDao;
import com.mortals.xhx.module.page.model.PageEventEntity;
import com.mortals.xhx.module.page.service.PageEventService;
import java.util.Date;
/**
* PageEventService
* 页面事件记录 service实现
*
* @author zxfei
* @date 2023-04-10
*/
@Service("pageEventService")
public class PageEventServiceImpl extends AbstractCRUDServiceImpl<PageEventDao, PageEventEntity, Long> implements PageEventService {
@Override
protected void validData(PageEventEntity entity, Context context) throws AppException {
if(StringUtils.isEmpty(entity.getPageCode())){
throw new AppException("页面编码(路由)不能为空");
}
if(StringUtils.isEmpty(entity.getPageName())){
throw new AppException("页面名称不能为空");
}
}
@Override
public PageEventEntity saveByPdu(BuryPointPdu pdu) {
if(pdu.getEventInfo()==null){
return null;
}
PageEventEntity entity = new PageEventEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName());
entity.setPageCode(pdu.getPageCode());
entity.setPageName(pdu.getPageName());
entity.setBusinessCode(pdu.getEventInfo().getBusinessCode());
entity.setBusinessName(pdu.getEventInfo().getBusinessName());
entity.setEventCode(pdu.getEventInfo().getEventCode());
entity.setEventName(pdu.getEventInfo().getEventName());
entity.setTakeTime(pdu.getEventInfo().getTakeTime());
entity.setCoordinate(pdu.getEventInfo().getCoordinate());
entity.setCreateTime(new Date());
return this.save(entity);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.service.impl;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.page.model.PageInfoQuery;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.page.dao.PageInfoDao;
import com.mortals.xhx.module.page.model.PageInfoEntity;
import com.mortals.xhx.module.page.service.PageInfoService;
import java.util.Date;
/**
* PageInfoService
* 产品页面配置 service实现
*
* @author zxfei
* @date 2023-04-10
*/
@Service("pageInfoService")
public class PageInfoServiceImpl extends AbstractCRUDServiceImpl<PageInfoDao, PageInfoEntity, Long> implements PageInfoService {
@Override
protected void saveBefore(PageInfoEntity entity, Context context) throws AppException {
this.validData(entity, context);
if(StringUtils.isEmpty(entity.getPageCode())){
throw new AppException("页面编码(路由)不能为空");
}
if(StringUtils.isEmpty(entity.getDeviceNum())){
throw new AppException("设备编码不能为空");
}
if(entity.getProductId()==null){
throw new AppException("产品ID不能为空");
}
if(StringUtils.isEmpty(entity.getScreenUrl())){
throw new AppException("截图内容不能为空");
}
}
@Override
public PageInfoEntity saveScreen(PageInfoEntity entity, Context context) throws AppException {
this.saveBefore(entity, context);
PageInfoQuery query = new PageInfoQuery();
query.setPageCode(entity.getPageCode());
query.setProductId(entity.getProductId());
query.setDeviceNum(entity.getDeviceNum());
PageInfoEntity pageInfoEntity = this.selectOne(query);
if(pageInfoEntity==null){
entity.setCreateTime(new Date());
int iRet = this.dao.insert(entity);
if (iRet == 0) {
throw new AppException(-1001, "写入数据库失败!");
}else {
this.saveAfter(entity, context);
return entity;
}
}else {
PageInfoEntity updateEntity = new PageInfoEntity();
updateEntity.setId(pageInfoEntity.getId());
updateEntity.setScreenUrl(pageInfoEntity.getScreenUrl());
updateEntity.setUpdateTime(new Date());
int iRet = this.dao.update(updateEntity);
if (iRet == 0) {
throw new AppException(-1002, "更新失败!");
} else {
this.updateAfter(updateEntity, context);
entity.setId(pageInfoEntity.getId());
return entity;
}
}
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.service.impl;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.page.dao.PageRouteDao;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import com.mortals.xhx.module.page.service.PageRouteService;
import java.util.Date;
/**
* PageRouteService
* 页面路径记录 service实现
*
* @author zxfei
* @date 2023-04-10
*/
@Service("pageRouteService")
public class PageRouteServiceImpl extends AbstractCRUDServiceImpl<PageRouteDao, PageRouteEntity, Long> implements PageRouteService {
@Override
protected void validData(PageRouteEntity entity, Context context) throws AppException {
if(StringUtils.isEmpty(entity.getSourceCode())){
throw new AppException("开始页面编码(路由)不能为空");
}
if(StringUtils.isEmpty(entity.getSourceName())){
throw new AppException("开始页面名称不能为空");
}
if(StringUtils.isEmpty(entity.getTargetCode())){
throw new AppException("目标页面编码(路由)不能为空");
}
if(StringUtils.isEmpty(entity.getTargetName())){
throw new AppException("目标页面名称不能为空");
}
}
@Override
public PageRouteEntity saveByPdu(BuryPointPdu pdu) {
if(pdu.getRouteInfo()==null){
return null;
}
PageRouteEntity entity = new PageRouteEntity();
entity.setDeviceNum(pdu.getDeviceNum());
entity.setProductId(pdu.getProductId());
entity.setProductName(pdu.getProductName());
entity.setSourceCode(pdu.getRouteInfo().getSourceCode());
entity.setSourceName(pdu.getRouteInfo().getSourceName());
entity.setTargetCode(pdu.getRouteInfo().getTargetCode());
entity.setTargetName(pdu.getRouteInfo().getTargetName());
entity.setCreateTime(new Date());
return this.save(entity);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.web;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.RepeatSubmit;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.IUser;
import com.mortals.framework.util.StringUtils;
import com.mortals.framework.web.BaseJsonBodyController;
import com.mortals.xhx.module.page.model.PageInfoEntity;
import com.mortals.xhx.module.page.model.pdu.BuryPointPdu;
import com.mortals.xhx.module.page.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* 页面埋点
*/
@RestController
@RequestMapping("page/bury")
public class BuryPointController extends BaseJsonBodyController {
@Autowired
private PageAccessService pageAccessService;
@Autowired
private PageAccessDepthService pageAccessDepthService;
@Autowired
private PageEventService pageEventService;
@Autowired
private PageRouteService pageRouteService;
@Autowired
private PageInfoService pageInfoService;
@PostMapping({"save"})
@UnAuth
public String save(@RequestBody BuryPointPdu pdu) {
Map<String, Object> model = new HashMap();
Context context = this.getContext();
int code = 1;
String busiDesc = "保存页面数据埋点信息";
try {
validData(pdu);
pageAccessService.saveByPdu(pdu);
pageAccessDepthService.saveByPdu(pdu);
pageEventService.saveByPdu(pdu);
pageRouteService.saveByPdu(pdu);
model.put("message_info", busiDesc + "成功");
this.recordSysLog(this.request, busiDesc + " 【成功】");
} catch (Exception var7) {
this.doException(this.request, busiDesc, model, var7);
code = -1;
}
model.put("entity", pdu);
JSONObject ret = new JSONObject();
ret.put("code", code);
ret.put("msg", model.remove("message_info"));
ret.put("data", model);
return ret.toJSONString();
}
private void validData(BuryPointPdu pdu) throws AppException{
if(pdu.getProductId()==null){
throw new AppException("产品id不能为空");
}
if(StringUtils.isEmpty(pdu.getProductName())){
throw new AppException("产品名称不能为空");
}
}
@PostMapping({"screen/save"})
@UnAuth
public String saveScreen(@RequestBody PageInfoEntity pdu) {
Map<String, Object> model = new HashMap();
Context context = this.getContext();
int code = 1;
String busiDesc = "保存页面截图";
try {
PageInfoEntity entity = pageInfoService.saveScreen(pdu,context);
model.put("entity", entity);
model.put("message_info", busiDesc + "成功");
this.recordSysLog(this.request, busiDesc + " 【成功】");
} catch (Exception var7) {
this.doException(this.request, busiDesc, model, var7);
code = -1;
model.put("entity", pdu);
}
JSONObject ret = new JSONObject();
ret.put("code", code);
ret.put("msg", model.remove("message_info"));
ret.put("data", model);
return ret.toJSONString();
}
}
package com.mortals.xhx.module.page.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.page.model.PageAccessEntity;
import com.mortals.xhx.module.page.service.PageAccessService;
import com.mortals.xhx.module.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品页面配置
*
* @author zxfei
* @date 2023-04-10
*/
@RestController
@RequestMapping("page/access")
public class PageAccessController extends BaseCRUDJsonBodyMappingController<PageAccessService,PageAccessEntity,Long> {
@Autowired
private ParamService paramService;
public PageAccessController(){
super.setModuleDesc( "产品页面配置");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "pageCode", paramService.getParamBySecondOrganize("PageAccess","pageCode"));
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.page.model.PageEventEntity;
import com.mortals.xhx.module.page.service.PageEventService;
import com.mortals.xhx.module.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 页面事件记录
*
* @author zxfei
* @date 2023-04-10
*/
@RestController
@RequestMapping("page/event")
public class PageEventController extends BaseCRUDJsonBodyMappingController<PageEventService,PageEventEntity,Long> {
@Autowired
private ParamService paramService;
public PageEventController(){
super.setModuleDesc( "页面事件记录");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "pageCode", paramService.getParamBySecondOrganize("PageEvent","pageCode"));
this.addDict(model, "coordinate", paramService.getParamBySecondOrganize("PageEvent","coordinate"));
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.page.model.PageInfoEntity;
import com.mortals.xhx.module.page.service.PageInfoService;
import com.mortals.xhx.module.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品页面配置
*
* @author zxfei
* @date 2023-04-10
*/
@RestController
@RequestMapping("page/info")
public class PageInfoController extends BaseCRUDJsonBodyMappingController<PageInfoService,PageInfoEntity,Long> {
@Autowired
private ParamService paramService;
public PageInfoController(){
super.setModuleDesc( "产品页面配置");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "pageCode", paramService.getParamBySecondOrganize("PageInfo","pageCode"));
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.page.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.page.model.PageRouteEntity;
import com.mortals.xhx.module.page.service.PageRouteService;
import com.mortals.xhx.module.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 页面路径记录
*
* @author zxfei
* @date 2023-04-10
*/
@RestController
@RequestMapping("page/route")
public class PageRouteController extends BaseCRUDJsonBodyMappingController<PageRouteService,PageRouteEntity,Long> {
@Autowired
private ParamService paramService;
public PageRouteController(){
super.setModuleDesc( "页面路径记录");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "sourceCode", paramService.getParamBySecondOrganize("PageRoute","sourceCode"));
this.addDict(model, "targetCode", paramService.getParamBySecondOrganize("PageRoute","targetCode"));
this.addDict(model, "targetName", paramService.getParamBySecondOrganize("PageRoute","targetName"));
super.init(model, context);
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.page.dao.ibatis.PageAccessDepthDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PageAccessDepthEntity" id="PageAccessDepthEntity-Map">
<id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" />
<result property="productName" column="productName" />
<result property="pageCode" column="pageCode" />
<result property="pageName" column="pageName" />
<result property="depthValue" column="depthValue" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('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')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageCode') or colPickMode == 1 and data.containsKey('pageCode')))">
a.pageCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageName') or colPickMode == 1 and data.containsKey('pageName')))">
a.pageName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('depthValue') or colPickMode == 1 and data.containsKey('depthValue')))">
a.depthValue,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageAccessDepthEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_access_depth
(deviceNum,productId,productName,pageCode,pageName,depthValue,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{deviceNum},#{productId},#{productName},#{pageCode},#{pageName},#{depthValue},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_access_depth
(deviceNum,productId,productName,pageCode,pageName,depthValue,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deviceNum},#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.depthValue},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_page_access_depth as a
set
<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'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('pageCode')) or (colPickMode==1 and !data.containsKey('pageCode'))">
a.pageCode=#{data.pageCode},
</if>
<if test="(colPickMode==0 and data.containsKey('pageName')) or (colPickMode==1 and !data.containsKey('pageName'))">
a.pageName=#{data.pageName},
</if>
<if test="(colPickMode==0 and data.containsKey('depthValue')) or (colPickMode==1 and !data.containsKey('depthValue'))">
a.depthValue=#{data.depthValue},
</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'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_access_depth as a
<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),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="productName=(case" suffix="ELSE productName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))">
when a.id=#{item.id} then #{item.productName}
</if>
</foreach>
</trim>
<trim prefix="pageCode=(case" suffix="ELSE pageCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageCode')) or (colPickMode==1 and !item.containsKey('pageCode'))">
when a.id=#{item.id} then #{item.pageCode}
</if>
</foreach>
</trim>
<trim prefix="pageName=(case" suffix="ELSE pageName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageName')) or (colPickMode==1 and !item.containsKey('pageName'))">
when a.id=#{item.id} then #{item.pageName}
</if>
</foreach>
</trim>
<trim prefix="depthValue=(case" suffix="ELSE depthValue end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<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>
<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>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PageAccessDepthEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_access_depth as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_page_access_depth as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_page_access_depth where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_page_access_depth where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_page_access_depth where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_page_access_depth as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="PageAccessDepthEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_access_depth as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_page_access_depth as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</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.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('productName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName}
</if>
<if test="conditionParamRef.productName == null">
${_conditionType_} a.productName is null
</if>
</if>
<if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCode')">
<if test="conditionParamRef.pageCode != null and conditionParamRef.pageCode != ''">
${_conditionType_} a.pageCode like #{${_conditionParam_}.pageCode}
</if>
<if test="conditionParamRef.pageCode == null">
${_conditionType_} a.pageCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageName')">
<if test="conditionParamRef.pageName != null and conditionParamRef.pageName != ''">
${_conditionType_} a.pageName like #{${_conditionParam_}.pageName}
</if>
<if test="conditionParamRef.pageName == null">
${_conditionType_} a.pageName is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('depthValue')">
<if test="conditionParamRef.depthValue != null ">
${_conditionType_} a.depthValue = #{${_conditionParam_}.depthValue}
</if>
<if test="conditionParamRef.depthValue == null">
${_conditionType_} a.depthValue is null
</if>
</if>
<if test="conditionParamRef.containsKey('depthValueList') and conditionParamRef.depthValueList.size() > 0">
${_conditionType_} a.depthValue in
<foreach collection="conditionParamRef.depthValueList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('depthValueNotList') and conditionParamRef.depthValueNotList.size() > 0">
${_conditionType_} a.depthValue not in
<foreach collection="conditionParamRef.depthValueNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</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.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productName')">
a.productName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageCode')">
a.pageCode
<if test='orderCol.pageCode != null and "DESC".equalsIgnoreCase(orderCol.pageCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageName')">
a.pageName
<if test='orderCol.pageName != null and "DESC".equalsIgnoreCase(orderCol.pageName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('depthValue')">
a.depthValue
<if test='orderCol.depthValue != null and "DESC".equalsIgnoreCase(orderCol.depthValue)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.page.dao.ibatis.PageAccessDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PageAccessEntity" id="PageAccessEntity-Map">
<id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" />
<result property="productName" column="productName" />
<result property="pageCode" column="pageCode" />
<result property="pageName" column="pageName" />
<result property="sceneDepth" column="sceneDepth" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('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')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageCode') or colPickMode == 1 and data.containsKey('pageCode')))">
a.pageCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageName') or colPickMode == 1 and data.containsKey('pageName')))">
a.pageName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sceneDepth') or colPickMode == 1 and data.containsKey('sceneDepth')))">
a.sceneDepth,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageAccessEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_access
(deviceNum,productId,productName,pageCode,pageName,sceneDepth,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{deviceNum},#{productId},#{productName},#{pageCode},#{pageName},#{sceneDepth},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_access
(deviceNum,productId,productName,pageCode,pageName,sceneDepth,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deviceNum},#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.sceneDepth},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_page_access as a
set
<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'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('pageCode')) or (colPickMode==1 and !data.containsKey('pageCode'))">
a.pageCode=#{data.pageCode},
</if>
<if test="(colPickMode==0 and data.containsKey('pageName')) or (colPickMode==1 and !data.containsKey('pageName'))">
a.pageName=#{data.pageName},
</if>
<if test="(colPickMode==0 and data.containsKey('sceneDepth')) or (colPickMode==1 and !data.containsKey('sceneDepth'))">
a.sceneDepth=#{data.sceneDepth},
</if>
<if test="(colPickMode==0 and data.containsKey('sceneDepthIncrement')) or (colPickMode==1 and !data.containsKey('sceneDepthIncrement'))">
a.sceneDepth=ifnull(a.sceneDepth,0) + #{data.sceneDepthIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_access as a
<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),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="productName=(case" suffix="ELSE productName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))">
when a.id=#{item.id} then #{item.productName}
</if>
</foreach>
</trim>
<trim prefix="pageCode=(case" suffix="ELSE pageCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageCode')) or (colPickMode==1 and !item.containsKey('pageCode'))">
when a.id=#{item.id} then #{item.pageCode}
</if>
</foreach>
</trim>
<trim prefix="pageName=(case" suffix="ELSE pageName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageName')) or (colPickMode==1 and !item.containsKey('pageName'))">
when a.id=#{item.id} then #{item.pageName}
</if>
</foreach>
</trim>
<trim prefix="sceneDepth=(case" suffix="ELSE sceneDepth end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('sceneDepth')) or (colPickMode==1 and !item.containsKey('sceneDepth'))">
when a.id=#{item.id} then #{item.sceneDepth}
</when>
<when test="(colPickMode==0 and item.containsKey('sceneDepthIncrement')) or (colPickMode==1 and !item.containsKey('sceneDepthIncrement'))">
when a.id=#{item.id} then ifnull(a.sceneDepth,0) + #{item.sceneDepthIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PageAccessEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_access as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_page_access as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_page_access where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_page_access where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_page_access where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_page_access as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="PageAccessEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_access as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_page_access as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</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.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('productName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName}
</if>
<if test="conditionParamRef.productName == null">
${_conditionType_} a.productName is null
</if>
</if>
<if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCode')">
<if test="conditionParamRef.pageCode != null and conditionParamRef.pageCode != ''">
${_conditionType_} a.pageCode like #{${_conditionParam_}.pageCode}
</if>
<if test="conditionParamRef.pageCode == null">
${_conditionType_} a.pageCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageName')">
<if test="conditionParamRef.pageName != null and conditionParamRef.pageName != ''">
${_conditionType_} a.pageName like #{${_conditionParam_}.pageName}
</if>
<if test="conditionParamRef.pageName == null">
${_conditionType_} a.pageName is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sceneDepth')">
<if test="conditionParamRef.sceneDepth != null ">
${_conditionType_} a.sceneDepth = #{${_conditionParam_}.sceneDepth}
</if>
<if test="conditionParamRef.sceneDepth == null">
${_conditionType_} a.sceneDepth is null
</if>
</if>
<if test="conditionParamRef.containsKey('sceneDepthList') and conditionParamRef.sceneDepthList.size() > 0">
${_conditionType_} a.sceneDepth in
<foreach collection="conditionParamRef.sceneDepthList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sceneDepthNotList') and conditionParamRef.sceneDepthNotList.size() > 0">
${_conditionType_} a.sceneDepth not in
<foreach collection="conditionParamRef.sceneDepthNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sceneDepthStart') and conditionParamRef.sceneDepthStart != null">
${_conditionType_} a.sceneDepth <![CDATA[ >= ]]> #{${_conditionParam_}.sceneDepthStart}
</if>
<if test="conditionParamRef.containsKey('sceneDepthEnd') and conditionParamRef.sceneDepthEnd != null">
${_conditionType_} a.sceneDepth <![CDATA[ <= ]]> #{${_conditionParam_}.sceneDepthEnd}
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productName')">
a.productName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageCode')">
a.pageCode
<if test='orderCol.pageCode != null and "DESC".equalsIgnoreCase(orderCol.pageCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageName')">
a.pageName
<if test='orderCol.pageName != null and "DESC".equalsIgnoreCase(orderCol.pageName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('sceneDepth')">
a.sceneDepth
<if test='orderCol.sceneDepth != null and "DESC".equalsIgnoreCase(orderCol.sceneDepth)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.page.dao.ibatis.PageEventDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PageEventEntity" id="PageEventEntity-Map">
<id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" />
<result property="productName" column="productName" />
<result property="businessCode" column="businessCode" />
<result property="businessName" column="businessName" />
<result property="eventCode" column="eventCode" />
<result property="eventName" column="eventName" />
<result property="takeTime" column="takeTime" />
<result property="pageCode" column="pageCode" />
<result property="pageName" column="pageName" />
<result property="coordinate" column="coordinate" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('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')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('businessCode') or colPickMode == 1 and data.containsKey('businessCode')))">
a.businessCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('businessName') or colPickMode == 1 and data.containsKey('businessName')))">
a.businessName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventCode') or colPickMode == 1 and data.containsKey('eventCode')))">
a.eventCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventName') or colPickMode == 1 and data.containsKey('eventName')))">
a.eventName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('takeTime') or colPickMode == 1 and data.containsKey('takeTime')))">
a.takeTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageCode') or colPickMode == 1 and data.containsKey('pageCode')))">
a.pageCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageName') or colPickMode == 1 and data.containsKey('pageName')))">
a.pageName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('coordinate') or colPickMode == 1 and data.containsKey('coordinate')))">
a.coordinate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageEventEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_event
(deviceNum,productId,productName,businessCode,businessName,eventCode,eventName,takeTime,pageCode,pageName,coordinate,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{deviceNum},#{productId},#{productName},#{businessCode},#{businessName},#{eventCode},#{eventName},#{takeTime},#{pageCode},#{pageName},#{coordinate},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_event
(deviceNum,productId,productName,businessCode,businessName,eventCode,eventName,takeTime,pageCode,pageName,coordinate,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{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>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_page_event as a
set
<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'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('businessCode')) or (colPickMode==1 and !data.containsKey('businessCode'))">
a.businessCode=#{data.businessCode},
</if>
<if test="(colPickMode==0 and data.containsKey('businessName')) or (colPickMode==1 and !data.containsKey('businessName'))">
a.businessName=#{data.businessName},
</if>
<if test="(colPickMode==0 and data.containsKey('eventCode')) or (colPickMode==1 and !data.containsKey('eventCode'))">
a.eventCode=#{data.eventCode},
</if>
<if test="(colPickMode==0 and data.containsKey('eventName')) or (colPickMode==1 and !data.containsKey('eventName'))">
a.eventName=#{data.eventName},
</if>
<if test="(colPickMode==0 and data.containsKey('takeTime')) or (colPickMode==1 and !data.containsKey('takeTime'))">
a.takeTime=#{data.takeTime},
</if>
<if test="(colPickMode==0 and data.containsKey('takeTimeIncrement')) or (colPickMode==1 and !data.containsKey('takeTimeIncrement'))">
a.takeTime=ifnull(a.takeTime,0) + #{data.takeTimeIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('pageCode')) or (colPickMode==1 and !data.containsKey('pageCode'))">
a.pageCode=#{data.pageCode},
</if>
<if test="(colPickMode==0 and data.containsKey('pageName')) or (colPickMode==1 and !data.containsKey('pageName'))">
a.pageName=#{data.pageName},
</if>
<if test="(colPickMode==0 and data.containsKey('coordinate')) or (colPickMode==1 and !data.containsKey('coordinate'))">
a.coordinate=#{data.coordinate},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_event as a
<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),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="productName=(case" suffix="ELSE productName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))">
when a.id=#{item.id} then #{item.productName}
</if>
</foreach>
</trim>
<trim prefix="businessCode=(case" suffix="ELSE businessCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('businessCode')) or (colPickMode==1 and !item.containsKey('businessCode'))">
when a.id=#{item.id} then #{item.businessCode}
</if>
</foreach>
</trim>
<trim prefix="businessName=(case" suffix="ELSE businessName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('businessName')) or (colPickMode==1 and !item.containsKey('businessName'))">
when a.id=#{item.id} then #{item.businessName}
</if>
</foreach>
</trim>
<trim prefix="eventCode=(case" suffix="ELSE eventCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventCode')) or (colPickMode==1 and !item.containsKey('eventCode'))">
when a.id=#{item.id} then #{item.eventCode}
</if>
</foreach>
</trim>
<trim prefix="eventName=(case" suffix="ELSE eventName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventName')) or (colPickMode==1 and !item.containsKey('eventName'))">
when a.id=#{item.id} then #{item.eventName}
</if>
</foreach>
</trim>
<trim prefix="takeTime=(case" suffix="ELSE takeTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('takeTime')) or (colPickMode==1 and !item.containsKey('takeTime'))">
when a.id=#{item.id} then #{item.takeTime}
</when>
<when test="(colPickMode==0 and item.containsKey('takeTimeIncrement')) or (colPickMode==1 and !item.containsKey('takeTimeIncrement'))">
when a.id=#{item.id} then ifnull(a.takeTime,0) + #{item.takeTimeIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="pageCode=(case" suffix="ELSE pageCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageCode')) or (colPickMode==1 and !item.containsKey('pageCode'))">
when a.id=#{item.id} then #{item.pageCode}
</if>
</foreach>
</trim>
<trim prefix="pageName=(case" suffix="ELSE pageName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageName')) or (colPickMode==1 and !item.containsKey('pageName'))">
when a.id=#{item.id} then #{item.pageName}
</if>
</foreach>
</trim>
<trim prefix="coordinate=(case" suffix="ELSE coordinate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('coordinate')) or (colPickMode==1 and !item.containsKey('coordinate'))">
when a.id=#{item.id} then #{item.coordinate}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PageEventEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_event as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_page_event as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_page_event where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_page_event where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_page_event where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_page_event as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="PageEventEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_event as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_page_event as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</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.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('productName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName}
</if>
<if test="conditionParamRef.productName == null">
${_conditionType_} a.productName is null
</if>
</if>
<if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('businessCode')">
<if test="conditionParamRef.businessCode != null and conditionParamRef.businessCode != ''">
${_conditionType_} a.businessCode like #{${_conditionParam_}.businessCode}
</if>
<if test="conditionParamRef.businessCode == null">
${_conditionType_} a.businessCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('businessCodeList') and conditionParamRef.businessCodeList.size() > 0">
${_conditionType_} a.businessCode in
<foreach collection="conditionParamRef.businessCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('businessCodeNotList') and conditionParamRef.businessCodeNotList.size() > 0">
${_conditionType_} a.businessCode not in
<foreach collection="conditionParamRef.businessCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('businessName')">
<if test="conditionParamRef.businessName != null and conditionParamRef.businessName != ''">
${_conditionType_} a.businessName like #{${_conditionParam_}.businessName}
</if>
<if test="conditionParamRef.businessName == null">
${_conditionType_} a.businessName is null
</if>
</if>
<if test="conditionParamRef.containsKey('businessNameList') and conditionParamRef.businessNameList.size() > 0">
${_conditionType_} a.businessName in
<foreach collection="conditionParamRef.businessNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('businessNameNotList') and conditionParamRef.businessNameNotList.size() > 0">
${_conditionType_} a.businessName not in
<foreach collection="conditionParamRef.businessNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventCode')">
<if test="conditionParamRef.eventCode != null and conditionParamRef.eventCode != ''">
${_conditionType_} a.eventCode like #{${_conditionParam_}.eventCode}
</if>
<if test="conditionParamRef.eventCode == null">
${_conditionType_} a.eventCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventCodeList') and conditionParamRef.eventCodeList.size() > 0">
${_conditionType_} a.eventCode in
<foreach collection="conditionParamRef.eventCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventCodeNotList') and conditionParamRef.eventCodeNotList.size() > 0">
${_conditionType_} a.eventCode not in
<foreach collection="conditionParamRef.eventCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventName')">
<if test="conditionParamRef.eventName != null and conditionParamRef.eventName != ''">
${_conditionType_} a.eventName like #{${_conditionParam_}.eventName}
</if>
<if test="conditionParamRef.eventName == null">
${_conditionType_} a.eventName is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventNameList') and conditionParamRef.eventNameList.size() > 0">
${_conditionType_} a.eventName in
<foreach collection="conditionParamRef.eventNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventNameNotList') and conditionParamRef.eventNameNotList.size() > 0">
${_conditionType_} a.eventName not in
<foreach collection="conditionParamRef.eventNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('takeTime')">
<if test="conditionParamRef.takeTime != null ">
${_conditionType_} a.takeTime = #{${_conditionParam_}.takeTime}
</if>
<if test="conditionParamRef.takeTime == null">
${_conditionType_} a.takeTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('takeTimeList') and conditionParamRef.takeTimeList.size() > 0">
${_conditionType_} a.takeTime in
<foreach collection="conditionParamRef.takeTimeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('takeTimeNotList') and conditionParamRef.takeTimeNotList.size() > 0">
${_conditionType_} a.takeTime not in
<foreach collection="conditionParamRef.takeTimeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('takeTimeStart') and conditionParamRef.takeTimeStart != null">
${_conditionType_} a.takeTime <![CDATA[ >= ]]> #{${_conditionParam_}.takeTimeStart}
</if>
<if test="conditionParamRef.containsKey('takeTimeEnd') and conditionParamRef.takeTimeEnd != null">
${_conditionType_} a.takeTime <![CDATA[ <= ]]> #{${_conditionParam_}.takeTimeEnd}
</if>
<if test="conditionParamRef.containsKey('pageCode')">
<if test="conditionParamRef.pageCode != null and conditionParamRef.pageCode != ''">
${_conditionType_} a.pageCode like #{${_conditionParam_}.pageCode}
</if>
<if test="conditionParamRef.pageCode == null">
${_conditionType_} a.pageCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageName')">
<if test="conditionParamRef.pageName != null and conditionParamRef.pageName != ''">
${_conditionType_} a.pageName like #{${_conditionParam_}.pageName}
</if>
<if test="conditionParamRef.pageName == null">
${_conditionType_} a.pageName is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('coordinate')">
<if test="conditionParamRef.coordinate != null and conditionParamRef.coordinate != ''">
${_conditionType_} a.coordinate like #{${_conditionParam_}.coordinate}
</if>
<if test="conditionParamRef.coordinate == null">
${_conditionType_} a.coordinate is null
</if>
</if>
<if test="conditionParamRef.containsKey('coordinateList') and conditionParamRef.coordinateList.size() > 0">
${_conditionType_} a.coordinate in
<foreach collection="conditionParamRef.coordinateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('coordinateNotList') and conditionParamRef.coordinateNotList.size() > 0">
${_conditionType_} a.coordinate not in
<foreach collection="conditionParamRef.coordinateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productName')">
a.productName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('businessCode')">
a.businessCode
<if test='orderCol.businessCode != null and "DESC".equalsIgnoreCase(orderCol.businessCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('businessName')">
a.businessName
<if test='orderCol.businessName != null and "DESC".equalsIgnoreCase(orderCol.businessName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventCode')">
a.eventCode
<if test='orderCol.eventCode != null and "DESC".equalsIgnoreCase(orderCol.eventCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventName')">
a.eventName
<if test='orderCol.eventName != null and "DESC".equalsIgnoreCase(orderCol.eventName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('takeTime')">
a.takeTime
<if test='orderCol.takeTime != null and "DESC".equalsIgnoreCase(orderCol.takeTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageCode')">
a.pageCode
<if test='orderCol.pageCode != null and "DESC".equalsIgnoreCase(orderCol.pageCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageName')">
a.pageName
<if test='orderCol.pageName != null and "DESC".equalsIgnoreCase(orderCol.pageName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('coordinate')">
a.coordinate
<if test='orderCol.coordinate != null and "DESC".equalsIgnoreCase(orderCol.coordinate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.page.dao.ibatis.PageInfoDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PageInfoEntity" id="PageInfoEntity-Map">
<id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" />
<result property="productName" column="productName" />
<result property="pageCode" column="pageCode" />
<result property="pageName" column="pageName" />
<result property="screenUrl" column="screenUrl" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('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')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageCode') or colPickMode == 1 and data.containsKey('pageCode')))">
a.pageCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('pageName') or colPickMode == 1 and data.containsKey('pageName')))">
a.pageName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('screenUrl') or colPickMode == 1 and data.containsKey('screenUrl')))">
a.screenUrl,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageInfoEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_info
(deviceNum,productId,productName,pageCode,pageName,screenUrl,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{deviceNum},#{productId},#{productName},#{pageCode},#{pageName},#{screenUrl},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_info
(deviceNum,productId,productName,pageCode,pageName,screenUrl,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deviceNum},#{item.productId},#{item.productName},#{item.pageCode},#{item.pageName},#{item.screenUrl},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_page_info as a
set
<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'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('pageCode')) or (colPickMode==1 and !data.containsKey('pageCode'))">
a.pageCode=#{data.pageCode},
</if>
<if test="(colPickMode==0 and data.containsKey('pageName')) or (colPickMode==1 and !data.containsKey('pageName'))">
a.pageName=#{data.pageName},
</if>
<if test="(colPickMode==0 and data.containsKey('screenUrl')) or (colPickMode==1 and !data.containsKey('screenUrl'))">
a.screenUrl=#{data.screenUrl},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_info as a
<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),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="productName=(case" suffix="ELSE productName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))">
when a.id=#{item.id} then #{item.productName}
</if>
</foreach>
</trim>
<trim prefix="pageCode=(case" suffix="ELSE pageCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageCode')) or (colPickMode==1 and !item.containsKey('pageCode'))">
when a.id=#{item.id} then #{item.pageCode}
</if>
</foreach>
</trim>
<trim prefix="pageName=(case" suffix="ELSE pageName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('pageName')) or (colPickMode==1 and !item.containsKey('pageName'))">
when a.id=#{item.id} then #{item.pageName}
</if>
</foreach>
</trim>
<trim prefix="screenUrl=(case" suffix="ELSE screenUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('screenUrl')) or (colPickMode==1 and !item.containsKey('screenUrl'))">
when a.id=#{item.id} then #{item.screenUrl}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PageInfoEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_info as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_page_info as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_page_info where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_page_info where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_page_info where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_page_info as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="PageInfoEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_info as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_page_info as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</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.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('productName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName}
</if>
<if test="conditionParamRef.productName == null">
${_conditionType_} a.productName is null
</if>
</if>
<if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCode')">
<if test="conditionParamRef.pageCode != null and conditionParamRef.pageCode != ''">
${_conditionType_} a.pageCode like #{${_conditionParam_}.pageCode}
</if>
<if test="conditionParamRef.pageCode == null">
${_conditionType_} a.pageCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageCodeList') and conditionParamRef.pageCodeList.size() > 0">
${_conditionType_} a.pageCode in
<foreach collection="conditionParamRef.pageCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageCodeNotList') and conditionParamRef.pageCodeNotList.size() > 0">
${_conditionType_} a.pageCode not in
<foreach collection="conditionParamRef.pageCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageName')">
<if test="conditionParamRef.pageName != null and conditionParamRef.pageName != ''">
${_conditionType_} a.pageName like #{${_conditionParam_}.pageName}
</if>
<if test="conditionParamRef.pageName == null">
${_conditionType_} a.pageName is null
</if>
</if>
<if test="conditionParamRef.containsKey('pageNameList') and conditionParamRef.pageNameList.size() > 0">
${_conditionType_} a.pageName in
<foreach collection="conditionParamRef.pageNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('pageNameNotList') and conditionParamRef.pageNameNotList.size() > 0">
${_conditionType_} a.pageName not in
<foreach collection="conditionParamRef.pageNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('screenUrl')">
<if test="conditionParamRef.screenUrl != null and conditionParamRef.screenUrl != ''">
${_conditionType_} a.screenUrl like #{${_conditionParam_}.screenUrl}
</if>
<if test="conditionParamRef.screenUrl == null">
${_conditionType_} a.screenUrl is null
</if>
</if>
<if test="conditionParamRef.containsKey('screenUrlList') and conditionParamRef.screenUrlList.size() > 0">
${_conditionType_} a.screenUrl in
<foreach collection="conditionParamRef.screenUrlList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('screenUrlNotList') and conditionParamRef.screenUrlNotList.size() > 0">
${_conditionType_} a.screenUrl not in
<foreach collection="conditionParamRef.screenUrlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productName')">
a.productName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageCode')">
a.pageCode
<if test='orderCol.pageCode != null and "DESC".equalsIgnoreCase(orderCol.pageCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('pageName')">
a.pageName
<if test='orderCol.pageName != null and "DESC".equalsIgnoreCase(orderCol.pageName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('screenUrl')">
a.screenUrl
<if test='orderCol.screenUrl != null and "DESC".equalsIgnoreCase(orderCol.screenUrl)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.page.dao.ibatis.PageRouteDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="PageRouteEntity" id="PageRouteEntity-Map">
<id property="id" column="id" />
<result property="deviceNum" column="deviceNum" />
<result property="productId" column="productId" />
<result property="productName" column="productName" />
<result property="sourceCode" column="sourceCode" />
<result property="sourceName" column="sourceName" />
<result property="targetCode" column="targetCode" />
<result property="targetName" column="targetName" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('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')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sourceCode') or colPickMode == 1 and data.containsKey('sourceCode')))">
a.sourceCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sourceName') or colPickMode == 1 and data.containsKey('sourceName')))">
a.sourceName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('targetCode') or colPickMode == 1 and data.containsKey('targetCode')))">
a.targetCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('targetName') or colPickMode == 1 and data.containsKey('targetName')))">
a.targetName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PageRouteEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_page_route
(deviceNum,productId,productName,sourceCode,sourceName,targetCode,targetName,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{deviceNum},#{productId},#{productName},#{sourceCode},#{sourceName},#{targetCode},#{targetName},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_page_route
(deviceNum,productId,productName,sourceCode,sourceName,targetCode,targetName,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deviceNum},#{item.productId},#{item.productName},#{item.sourceCode},#{item.sourceName},#{item.targetCode},#{item.targetName},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_page_route as a
set
<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'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('sourceCode')) or (colPickMode==1 and !data.containsKey('sourceCode'))">
a.sourceCode=#{data.sourceCode},
</if>
<if test="(colPickMode==0 and data.containsKey('sourceName')) or (colPickMode==1 and !data.containsKey('sourceName'))">
a.sourceName=#{data.sourceName},
</if>
<if test="(colPickMode==0 and data.containsKey('targetCode')) or (colPickMode==1 and !data.containsKey('targetCode'))">
a.targetCode=#{data.targetCode},
</if>
<if test="(colPickMode==0 and data.containsKey('targetName')) or (colPickMode==1 and !data.containsKey('targetName'))">
a.targetName=#{data.targetName},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_page_route as a
<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),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="productName=(case" suffix="ELSE productName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))">
when a.id=#{item.id} then #{item.productName}
</if>
</foreach>
</trim>
<trim prefix="sourceCode=(case" suffix="ELSE sourceCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('sourceCode')) or (colPickMode==1 and !item.containsKey('sourceCode'))">
when a.id=#{item.id} then #{item.sourceCode}
</if>
</foreach>
</trim>
<trim prefix="sourceName=(case" suffix="ELSE sourceName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('sourceName')) or (colPickMode==1 and !item.containsKey('sourceName'))">
when a.id=#{item.id} then #{item.sourceName}
</if>
</foreach>
</trim>
<trim prefix="targetCode=(case" suffix="ELSE targetCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('targetCode')) or (colPickMode==1 and !item.containsKey('targetCode'))">
when a.id=#{item.id} then #{item.targetCode}
</if>
</foreach>
</trim>
<trim prefix="targetName=(case" suffix="ELSE targetName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('targetName')) or (colPickMode==1 and !item.containsKey('targetName'))">
when a.id=#{item.id} then #{item.targetName}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PageRouteEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_route as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_page_route as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_page_route where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_page_route where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_page_route where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_page_route as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="PageRouteEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_page_route as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_page_route as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</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.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('productName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName}
</if>
<if test="conditionParamRef.productName == null">
${_conditionType_} a.productName is null
</if>
</if>
<if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0">
${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0">
${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceCode')">
<if test="conditionParamRef.sourceCode != null and conditionParamRef.sourceCode != ''">
${_conditionType_} a.sourceCode like #{${_conditionParam_}.sourceCode}
</if>
<if test="conditionParamRef.sourceCode == null">
${_conditionType_} a.sourceCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('sourceCodeList') and conditionParamRef.sourceCodeList.size() > 0">
${_conditionType_} a.sourceCode in
<foreach collection="conditionParamRef.sourceCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceCodeNotList') and conditionParamRef.sourceCodeNotList.size() > 0">
${_conditionType_} a.sourceCode not in
<foreach collection="conditionParamRef.sourceCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceName')">
<if test="conditionParamRef.sourceName != null and conditionParamRef.sourceName != ''">
${_conditionType_} a.sourceName like #{${_conditionParam_}.sourceName}
</if>
<if test="conditionParamRef.sourceName == null">
${_conditionType_} a.sourceName is null
</if>
</if>
<if test="conditionParamRef.containsKey('sourceNameList') and conditionParamRef.sourceNameList.size() > 0">
${_conditionType_} a.sourceName in
<foreach collection="conditionParamRef.sourceNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceNameNotList') and conditionParamRef.sourceNameNotList.size() > 0">
${_conditionType_} a.sourceName not in
<foreach collection="conditionParamRef.sourceNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('targetCode')">
<if test="conditionParamRef.targetCode != null and conditionParamRef.targetCode != ''">
${_conditionType_} a.targetCode like #{${_conditionParam_}.targetCode}
</if>
<if test="conditionParamRef.targetCode == null">
${_conditionType_} a.targetCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('targetCodeList') and conditionParamRef.targetCodeList.size() > 0">
${_conditionType_} a.targetCode in
<foreach collection="conditionParamRef.targetCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('targetCodeNotList') and conditionParamRef.targetCodeNotList.size() > 0">
${_conditionType_} a.targetCode not in
<foreach collection="conditionParamRef.targetCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('targetName')">
<if test="conditionParamRef.targetName != null and conditionParamRef.targetName != ''">
${_conditionType_} a.targetName like #{${_conditionParam_}.targetName}
</if>
<if test="conditionParamRef.targetName == null">
${_conditionType_} a.targetName is null
</if>
</if>
<if test="conditionParamRef.containsKey('targetNameList') and conditionParamRef.targetNameList.size() > 0">
${_conditionType_} a.targetName in
<foreach collection="conditionParamRef.targetNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('targetNameNotList') and conditionParamRef.targetNameNotList.size() > 0">
${_conditionType_} a.targetName not in
<foreach collection="conditionParamRef.targetNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deviceNum')">
a.deviceNum
<if test='orderCol.deviceNum != null and "DESC".equalsIgnoreCase(orderCol.deviceNum)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productName')">
a.productName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('sourceCode')">
a.sourceCode
<if test='orderCol.sourceCode != null and "DESC".equalsIgnoreCase(orderCol.sourceCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('sourceName')">
a.sourceName
<if test='orderCol.sourceName != null and "DESC".equalsIgnoreCase(orderCol.sourceName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('targetCode')">
a.targetCode
<if test='orderCol.targetCode != null and "DESC".equalsIgnoreCase(orderCol.targetCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('targetName')">
a.targetName
<if test='orderCol.targetName != null and "DESC".equalsIgnoreCase(orderCol.targetName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
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