Commit 0c55074c authored by 赵啸非's avatar 赵啸非

添加代办帮办

parent 004353a9
......@@ -218,3 +218,12 @@ ALTER TABLE mortals_sys_app_info_templete_field ADD COLUMN `serviceApiParams` v
-- ----------------------------
ALTER TABLE mortals_sys_window_hall ADD COLUMN `siteId` bigint(20) default '1' COMMENT '站点Id';
-- ----------------------------
2024-01-03
-- ----------------------------
ALTER TABLE mortals_sys_site_matter ADD COLUMN `agent` tinyint(2) DEFAULT '0' COMMENT '代办帮办(0.否,1.是)';
ALTER TABLE mortals_sys_site_matter ADD COLUMN `agentName` varchar(64) COMMENT '代办姓名';
ALTER TABLE mortals_sys_site_matter ADD COLUMN `agentPhone` varchar(32) COMMENT '代办电话';
ALTER TABLE mortals_sys_site_matter ADD COLUMN `agentPost` varchar(64) COMMENT '职务';
package com.mortals.xhx.module.site.model;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
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;
import lombok.Data;
/**
* 站点事项实体对象
*
* @author zxfei
* @date 2023-04-12
* @date 2024-01-04
*/
@Data
public class SiteMatterEntity extends SiteMatterVo {
private static final long serialVersionUID = 1L;
......@@ -32,10 +35,6 @@ public class SiteMatterEntity extends SiteMatterVo {
* 事项名称
*/
private String matterName;
/**
* 事项编码
*/
private String matterCode;
/**
* 部门ID
*/
......@@ -44,6 +43,10 @@ public class SiteMatterEntity extends SiteMatterVo {
* 部门名称
*/
private String deptName;
/**
* 事项编码
*/
private String matterCode;
/**
* 事项类型
*/
......@@ -52,10 +55,6 @@ public class SiteMatterEntity extends SiteMatterVo {
* 事项来源
*/
private Integer source;
/**
* 部门编号
*/
private String deptCode;
/**
* 热门(0.否,1.是)
*/
......@@ -64,182 +63,26 @@ public class SiteMatterEntity extends SiteMatterVo {
* 显示(0.否,1.是)
*/
private Integer display;
public SiteMatterEntity(){}
/**
* 获取 站点ID
* @return Long
*/
public Long getSiteId(){
return siteId;
}
/**
* 设置 站点ID
* @param siteId
*/
public void setSiteId(Long siteId){
this.siteId = siteId;
}
/**
* 获取 站点名称
* @return String
*/
public String getSiteName(){
return siteName;
}
/**
* 设置 站点名称
* @param siteName
*/
public void setSiteName(String siteName){
this.siteName = siteName;
}
/**
* 获取 事项ID
* @return Long
*/
public Long getMatterId(){
return matterId;
}
/**
* 设置 事项ID
* @param matterId
*/
public void setMatterId(Long matterId){
this.matterId = matterId;
}
/**
* 获取 事项名称
* @return String
*/
public String getMatterName(){
return matterName;
}
/**
* 设置 事项名称
* @param matterName
*/
public void setMatterName(String matterName){
this.matterName = matterName;
}
/**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 部门ID
* @return Long
*/
public Long getDeptId(){
return deptId;
}
/**
* 设置 部门ID
* @param deptId
*/
public void setDeptId(Long deptId){
this.deptId = deptId;
}
/**
* 获取 部门名称
* @return String
*/
public String getDeptName(){
return deptName;
}
/**
* 设置 部门名称
* @param deptName
*/
public void setDeptName(String deptName){
this.deptName = deptName;
}
/**
* 获取 事项类型
* @return String
*/
public String getEventTypeShow(){
return eventTypeShow;
}
/**
* 设置 事项类型
* @param eventTypeShow
*/
public void setEventTypeShow(String eventTypeShow){
this.eventTypeShow = eventTypeShow;
}
/**
* 获取 事项来源
* @return Integer
*/
public Integer getSource(){
return source;
}
/**
* 设置 事项来源
* @param source
*/
public void setSource(Integer source){
this.source = source;
}
/**
* 获取 部门编号
* @return String
*/
public String getDeptCode(){
return deptCode;
}
/**
* 设置 部门编号
* @param deptCode
* 部门编号
*/
public void setDeptCode(String deptCode){
this.deptCode = deptCode;
}
private String deptCode;
/**
* 获取 热门(0.否,1.是)
* @return Integer
* 代办帮办(0.否,1.是)
*/
public Integer getHot(){
return hot;
}
private Integer agent;
/**
* 设置 热门(0.否,1.是)
* @param hot
* 代办姓名
*/
public void setHot(Integer hot){
this.hot = hot;
}
private String agentName;
/**
* 获取 显示(0.否,1.是)
* @return Integer
* 代办电话
*/
public Integer getDisplay(){
return display;
}
private String agentPhone;
/**
* 设置 显示(0.否,1.是)
* @param display
* 职务
*/
public void setDisplay(Integer display){
this.display = display;
}
private String agentPost;
@Override
public int hashCode() {
return this.getId().hashCode();
......@@ -256,47 +99,22 @@ public class SiteMatterEntity extends SiteMatterVo {
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",siteId:").append(getSiteId());
sb.append(",siteName:").append(getSiteName());
sb.append(",matterId:").append(getMatterId());
sb.append(",matterName:").append(getMatterName());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",deptId:").append(getDeptId());
sb.append(",deptName:").append(getDeptName());
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();
}
public void initAttrValue(){
this.siteId = null;
this.siteName = null;
this.siteName = "";
this.matterId = null;
this.matterName = null;
this.matterCode = null;
this.matterName = "";
this.deptId = null;
this.deptName = null;
this.eventTypeShow = null;
this.deptName = "";
this.matterCode = "";
this.eventTypeShow = "";
this.source = 0;
this.deptCode = null;
this.hot = 0;
this.display =1;
this.display = 0;
this.deptCode = "";
this.agent = 0;
this.agentName = "";
this.agentPhone = "";
this.agentPost = "";
}
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ import com.mortals.xhx.module.site.model.SiteMatterEntity;
* 站点事项查询对象
*
* @author zxfei
* @date 2023-04-12
* @date 2024-01-04
*/
public class SiteMatterQuery extends SiteMatterEntity {
/** 开始 序号,主键,自增长 */
......@@ -64,11 +64,33 @@ public class SiteMatterQuery extends SiteMatterEntity {
/** 事项名称排除列表 */
private List <String> matterNameNotList;
/** 事项编码 */
private List<String> matterCodeList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 修改时间 */
private String updateTimeStart;
/** 结束 修改时间 */
private String updateTimeEnd;
/** 事项编码排除列表 */
private List <String> matterCodeNotList;
/** 开始 部门ID */
private Long deptIdStart;
......@@ -89,6 +111,11 @@ public class SiteMatterQuery extends SiteMatterEntity {
/** 部门名称排除列表 */
private List <String> deptNameNotList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项编码排除列表 */
private List <String> matterCodeNotList;
/** 事项类型 */
private List<String> eventTypeShowList;
......@@ -109,38 +136,6 @@ public class SiteMatterQuery extends SiteMatterEntity {
/** 事项来源排除列表 */
private List <Integer> sourceNotList;
/** 部门编号 */
private List<String> deptCodeList;
/** 部门编号排除列表 */
private List <String> deptCodeNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 修改时间 */
private String updateTimeStart;
/** 结束 修改时间 */
private String updateTimeEnd;
/** 开始 热门(0.否,1.是) */
private Integer hotStart;
......@@ -171,6 +166,41 @@ public class SiteMatterQuery extends SiteMatterEntity {
/** 显示(0.否,1.是)排除列表 */
private List <Integer> displayNotList;
/** 部门编号 */
private List<String> deptCodeList;
/** 部门编号排除列表 */
private List <String> deptCodeNotList;
/** 开始 代办帮办(0.否,1.是) */
private Integer agentStart;
/** 结束 代办帮办(0.否,1.是) */
private Integer agentEnd;
/** 增加 代办帮办(0.否,1.是) */
private Integer agentIncrement;
/** 代办帮办(0.否,1.是)列表 */
private List <Integer> agentList;
/** 代办帮办(0.否,1.是)排除列表 */
private List <Integer> agentNotList;
/** 代办姓名 */
private List<String> agentNameList;
/** 代办姓名排除列表 */
private List <String> agentNameNotList;
/** 代办电话 */
private List<String> agentPhoneList;
/** 代办电话排除列表 */
private List <String> agentPhoneNotList;
/** 职务 */
private List<String> agentPostList;
/** 职务排除列表 */
private List <String> agentPostNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<SiteMatterQuery> orConditionList;
......@@ -487,35 +517,148 @@ public class SiteMatterQuery extends SiteMatterEntity {
}
/**
* 获取 事项编码
* @return matterCodeList
* 获取 开始 创建时间
* @return createTimeStart
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 事项编码
* @param matterCodeList
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 事项编码
* @return matterCodeNotList
* 获取 结束 创建时间
* @return createTimeEnd
*/
public List<String> getMatterCodeNotList(){
return this.matterCodeNotList;
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 事项编码
* @param matterCodeNotList
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setMatterCodeNotList(List<String> matterCodeNotList){
this.matterCodeNotList = matterCodeNotList;
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 创建用户
* @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 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;
}
/**
......@@ -632,36 +775,68 @@ public class SiteMatterQuery extends SiteMatterEntity {
}
/**
* 获取 事项类型
* @return eventTypeShowList
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getEventTypeShowList(){
return this.eventTypeShowList;
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项类型
* @param eventTypeShowList
* 设置 事项编码
* @param matterCodeList
*/
public void setEventTypeShowList(List<String> eventTypeShowList){
this.eventTypeShowList = eventTypeShowList;
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/**
* 获取 事项类型
* @return eventTypeShowNotList
* 获取 事项编码
* @return matterCodeNotList
*/
public List<String> getEventTypeShowNotList(){
return this.eventTypeShowNotList;
public List<String> getMatterCodeNotList(){
return this.matterCodeNotList;
}
/**
* 设置 事项类型
* @param eventTypeShowNotList
* 设置 事项编码
* @param matterCodeNotList
*/
public void setEventTypeShowNotList(List<String> eventTypeShowNotList){
this.eventTypeShowNotList = eventTypeShowNotList;
}
public void setMatterCodeNotList(List<String> matterCodeNotList){
this.matterCodeNotList = matterCodeNotList;
}
/**
* 获取 事项类型
* @return eventTypeShowList
*/
public List<String> getEventTypeShowList(){
return this.eventTypeShowList;
}
/**
* 设置 事项类型
* @param eventTypeShowList
*/
public void setEventTypeShowList(List<String> eventTypeShowList){
this.eventTypeShowList = eventTypeShowList;
}
/**
* 获取 事项类型
* @return eventTypeShowNotList
*/
public List<String> getEventTypeShowNotList(){
return this.eventTypeShowNotList;
}
/**
* 设置 事项类型
* @param eventTypeShowNotList
*/
public void setEventTypeShowNotList(List<String> eventTypeShowNotList){
this.eventTypeShowNotList = eventTypeShowNotList;
}
/**
* 获取 开始 事项来源
......@@ -745,343 +920,375 @@ public class SiteMatterQuery extends SiteMatterEntity {
/**
* 获取 部门编号
* @return deptCodeList
* 获取 开始 热门(0.否,1.是)
* @return hotStart
*/
public List<String> getDeptCodeList(){
return this.deptCodeList;
public Integer getHotStart(){
return this.hotStart;
}
/**
* 设置 部门编号
* @param deptCodeList
* 设置 开始 热门(0.否,1.是)
* @param hotStart
*/
public void setDeptCodeList(List<String> deptCodeList){
this.deptCodeList = deptCodeList;
public void setHotStart(Integer hotStart){
this.hotStart = hotStart;
}
/**
* 获取 部门编号
* @return deptCodeNotList
* 获取 结束 热门(0.否,1.是)
* @return $hotEnd
*/
public List<String> getDeptCodeNotList(){
return this.deptCodeNotList;
public Integer getHotEnd(){
return this.hotEnd;
}
/**
* 设置 部门编号
* @param deptCodeNotList
* 设置 结束 热门(0.否,1.是)
* @param hotEnd
*/
public void setDeptCodeNotList(List<String> deptCodeNotList){
this.deptCodeNotList = deptCodeNotList;
public void setHotEnd(Integer hotEnd){
this.hotEnd = hotEnd;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
* 获取 增加 热门(0.否,1.是)
* @return hotIncrement
*/
public String getCreateTimeStart(){
return this.createTimeStart;
public Integer getHotIncrement(){
return this.hotIncrement;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
* 设置 增加 热门(0.否,1.是)
* @param hotIncrement
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
public void setHotIncrement(Integer hotIncrement){
this.hotIncrement = hotIncrement;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
* 获取 热门(0.否,1.是)
* @return hotList
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
public List<Integer> getHotList(){
return this.hotList;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
* 设置 热门(0.否,1.是)
* @param hotList
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
public void setHotList(List<Integer> hotList){
this.hotList = hotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
* 获取 热门(0.否,1.是)
* @return hotNotList
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
public List<Integer> getHotNotList(){
return this.hotNotList;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
* 设置 热门(0.否,1.是)
* @param hotNotList
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
public void setHotNotList(List<Integer> hotNotList){
this.hotNotList = hotNotList;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
* 获取 开始 显示(0.否,1.是)
* @return displayStart
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
public Integer getDisplayStart(){
return this.displayStart;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
* 设置 开始 显示(0.否,1.是)
* @param displayStart
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
public void setDisplayStart(Integer displayStart){
this.displayStart = displayStart;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
* 获取 结束 显示(0.否,1.是)
* @return $displayEnd
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
public Integer getDisplayEnd(){
return this.displayEnd;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
* 设置 结束 显示(0.否,1.是)
* @param displayEnd
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
public void setDisplayEnd(Integer displayEnd){
this.displayEnd = displayEnd;
}
/**
* 获取 创建用户
* @return createUserIdList
* 获取 增加 显示(0.否,1.是)
* @return displayIncrement
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
public Integer getDisplayIncrement(){
return this.displayIncrement;
}
/**
* 设置 创建用户
* @param createUserIdList
* 设置 增加 显示(0.否,1.是)
* @param displayIncrement
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
public void setDisplayIncrement(Integer displayIncrement){
this.displayIncrement = displayIncrement;
}
/**
* 获取 创建用户
* @return createUserIdNotList
* 获取 显示(0.否,1.是)
* @return displayList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
public List<Integer> getDisplayList(){
return this.displayList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
* 设置 显示(0.否,1.是)
* @param displayList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
public void setDisplayList(List<Integer> displayList){
this.displayList = displayList;
}
/**
* 获取 显示(0.否,1.是)
* @return displayNotList
*/
public List<Integer> getDisplayNotList(){
return this.displayNotList;
}
/**
* 获取 开始 修改时间
* @return updateTimeStart
* 设置 显示(0.否,1.是)
* @param displayNotList
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
public void setDisplayNotList(List<Integer> displayNotList){
this.displayNotList = displayNotList;
}
/**
* 设置 开始 修改时间
* @param updateTimeStart
* 获取 部门编号
* @return deptCodeList
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
public List<String> getDeptCodeList(){
return this.deptCodeList;
}
/**
* 获取 结束 修改时间
* @return updateTimeEnd
* 设置 部门编号
* @param deptCodeList
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
public void setDeptCodeList(List<String> deptCodeList){
this.deptCodeList = deptCodeList;
}
/**
* 设置 结束 修改时间
* @param updateTimeEnd
* 获取 部门编号
* @return deptCodeNotList
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
public List<String> getDeptCodeNotList(){
return this.deptCodeNotList;
}
/**
* 获取 开始 热门(0.否,1.是)
* @return hotStart
* 设置 部门编号
* @param deptCodeNotList
*/
public Integer getHotStart(){
return this.hotStart;
public void setDeptCodeNotList(List<String> deptCodeNotList){
this.deptCodeNotList = deptCodeNotList;
}
/**
* 设置 开始 热门(0.否,1.是)
* @param hotStart
* 获取 开始 代办帮办(0.否,1.是)
* @return agentStart
*/
public void setHotStart(Integer hotStart){
this.hotStart = hotStart;
public Integer getAgentStart(){
return this.agentStart;
}
/**
* 获取 结束 热门(0.否,1.是)
* @return $hotEnd
* 设置 开始 代办帮办(0.否,1.是)
* @param agentStart
*/
public Integer getHotEnd(){
return this.hotEnd;
public void setAgentStart(Integer agentStart){
this.agentStart = agentStart;
}
/**
* 设置 结束 热门(0.否,1.是)
* @param hotEnd
* 获取 结束 代办帮办(0.否,1.是)
* @return $agentEnd
*/
public void setHotEnd(Integer hotEnd){
this.hotEnd = hotEnd;
public Integer getAgentEnd(){
return this.agentEnd;
}
/**
* 获取 增加 热门(0.否,1.是)
* @return hotIncrement
* 设置 结束 代办帮办(0.否,1.是)
* @param agentEnd
*/
public Integer getHotIncrement(){
return this.hotIncrement;
public void setAgentEnd(Integer agentEnd){
this.agentEnd = agentEnd;
}
/**
* 设置 增加 热门(0.否,1.是)
* @param hotIncrement
* 获取 增加 代办帮办(0.否,1.是)
* @return agentIncrement
*/
public void setHotIncrement(Integer hotIncrement){
this.hotIncrement = hotIncrement;
public Integer getAgentIncrement(){
return this.agentIncrement;
}
/**
* 获取 热门(0.否,1.是)
* @return hotList
* 设置 增加 代办帮办(0.否,1.是)
* @param agentIncrement
*/
public List<Integer> getHotList(){
return this.hotList;
public void setAgentIncrement(Integer agentIncrement){
this.agentIncrement = agentIncrement;
}
/**
* 设置 热门(0.否,1.是)
* @param hotList
* 获取 代办帮办(0.否,1.是)
* @return agentList
*/
public void setHotList(List<Integer> hotList){
this.hotList = hotList;
public List<Integer> getAgentList(){
return this.agentList;
}
/**
* 获取 热门(0.否,1.是)
* @return hotNotList
* 设置 代办帮办(0.否,1.是)
* @param agentList
*/
public List<Integer> getHotNotList(){
return this.hotNotList;
public void setAgentList(List<Integer> agentList){
this.agentList = agentList;
}
/**
* 设置 热门(0.否,1.是)
* @param hotNotList
* 获取 代办帮办(0.否,1.是)
* @return agentNotList
*/
public void setHotNotList(List<Integer> hotNotList){
this.hotNotList = hotNotList;
public List<Integer> getAgentNotList(){
return this.agentNotList;
}
/**
* 设置 代办帮办(0.否,1.是)
* @param agentNotList
*/
public void setAgentNotList(List<Integer> agentNotList){
this.agentNotList = agentNotList;
}
/**
* 获取 开始 显示(0.否,1.是)
* @return displayStart
* 获取 代办姓名
* @return agentNameList
*/
public Integer getDisplayStart(){
return this.displayStart;
public List<String> getAgentNameList(){
return this.agentNameList;
}
/**
* 设置 开始 显示(0.否,1.是)
* @param displayStart
* 设置 代办姓名
* @param agentNameList
*/
public void setDisplayStart(Integer displayStart){
this.displayStart = displayStart;
public void setAgentNameList(List<String> agentNameList){
this.agentNameList = agentNameList;
}
/**
* 获取 结束 显示(0.否,1.是)
* @return $displayEnd
* 获取 代办姓名
* @return agentNameNotList
*/
public Integer getDisplayEnd(){
return this.displayEnd;
public List<String> getAgentNameNotList(){
return this.agentNameNotList;
}
/**
* 设置 结束 显示(0.否,1.是)
* @param displayEnd
* 设置 代办姓名
* @param agentNameNotList
*/
public void setDisplayEnd(Integer displayEnd){
this.displayEnd = displayEnd;
public void setAgentNameNotList(List<String> agentNameNotList){
this.agentNameNotList = agentNameNotList;
}
/**
* 获取 代办电话
* @return agentPhoneList
*/
public List<String> getAgentPhoneList(){
return this.agentPhoneList;
}
/**
* 获取 增加 显示(0.否,1.是)
* @return displayIncrement
* 设置 代办电话
* @param agentPhoneList
*/
public Integer getDisplayIncrement(){
return this.displayIncrement;
public void setAgentPhoneList(List<String> agentPhoneList){
this.agentPhoneList = agentPhoneList;
}
/**
* 设置 增加 显示(0.否,1.是)
* @param displayIncrement
* 获取 代办电话
* @return agentPhoneNotList
*/
public void setDisplayIncrement(Integer displayIncrement){
this.displayIncrement = displayIncrement;
public List<String> getAgentPhoneNotList(){
return this.agentPhoneNotList;
}
/**
* 获取 显示(0.否,1.是)
* @return displayList
* 设置 代办电话
* @param agentPhoneNotList
*/
public List<Integer> getDisplayList(){
return this.displayList;
public void setAgentPhoneNotList(List<String> agentPhoneNotList){
this.agentPhoneNotList = agentPhoneNotList;
}
/**
* 设置 显示(0.否,1.是)
* @param displayList
* 获取 职务
* @return agentPostList
*/
public void setDisplayList(List<Integer> displayList){
this.displayList = displayList;
public List<String> getAgentPostList(){
return this.agentPostList;
}
/**
* 获取 显示(0.否,1.是)
* @return displayNotList
* 设置 职务
* @param agentPostList
*/
public List<Integer> getDisplayNotList(){
return this.displayNotList;
public void setAgentPostList(List<String> agentPostList){
this.agentPostList = agentPostList;
}
/**
* 设置 显示(0.否,1.是)
* @param displayNotList
* 获取 职务
* @return agentPostNotList
*/
public void setDisplayNotList(List<Integer> displayNotList){
this.displayNotList = displayNotList;
public List<String> getAgentPostNotList(){
return this.agentPostNotList;
}
/**
* 设置 职务
* @param agentPostNotList
*/
public void setAgentPostNotList(List<String> agentPostNotList){
this.agentPostNotList = agentPostNotList;
}
/**
* 设置 序号,主键,自增长
......@@ -1285,23 +1492,60 @@ public class SiteMatterQuery extends SiteMatterEntity {
/**
* 设置 事项编码
* @param matterCode
* 设置 创建用户
* @param createUserId
*/
public SiteMatterQuery matterCode(String matterCode){
setMatterCode(matterCode);
public SiteMatterQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
* 设置 开始 创建用户
* @param createUserIdStart
*/
public SiteMatterQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
public SiteMatterQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public SiteMatterQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public SiteMatterQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public SiteMatterQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public SiteMatterQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 部门ID
* @param deptId
......@@ -1376,6 +1620,25 @@ public class SiteMatterQuery extends SiteMatterEntity {
}
/**
* 设置 事项编码
* @param matterCode
*/
public SiteMatterQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public SiteMatterQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/**
* 设置 事项类型
* @param eventTypeShow
......@@ -1448,81 +1711,6 @@ public class SiteMatterQuery extends SiteMatterEntity {
return this;
}
/**
* 设置 部门编号
* @param deptCode
*/
public SiteMatterQuery deptCode(String deptCode){
setDeptCode(deptCode);
return this;
}
/**
* 设置 部门编号
* @param deptCodeList
*/
public SiteMatterQuery deptCodeList(List<String> deptCodeList){
this.deptCodeList = deptCodeList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public SiteMatterQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public SiteMatterQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public SiteMatterQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public SiteMatterQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public SiteMatterQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public SiteMatterQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 热门(0.否,1.是)
* @param hot
......@@ -1631,6 +1819,136 @@ public class SiteMatterQuery extends SiteMatterEntity {
return this;
}
/**
* 设置 部门编号
* @param deptCode
*/
public SiteMatterQuery deptCode(String deptCode){
setDeptCode(deptCode);
return this;
}
/**
* 设置 部门编号
* @param deptCodeList
*/
public SiteMatterQuery deptCodeList(List<String> deptCodeList){
this.deptCodeList = deptCodeList;
return this;
}
/**
* 设置 代办帮办(0.否,1.是)
* @param agent
*/
public SiteMatterQuery agent(Integer agent){
setAgent(agent);
return this;
}
/**
* 设置 开始 代办帮办(0.否,1.是)
* @param agentStart
*/
public SiteMatterQuery agentStart(Integer agentStart){
this.agentStart = agentStart;
return this;
}
/**
* 设置 结束 代办帮办(0.否,1.是)
* @param agentEnd
*/
public SiteMatterQuery agentEnd(Integer agentEnd){
this.agentEnd = agentEnd;
return this;
}
/**
* 设置 增加 代办帮办(0.否,1.是)
* @param agentIncrement
*/
public SiteMatterQuery agentIncrement(Integer agentIncrement){
this.agentIncrement = agentIncrement;
return this;
}
/**
* 设置 代办帮办(0.否,1.是)
* @param agentList
*/
public SiteMatterQuery agentList(List<Integer> agentList){
this.agentList = agentList;
return this;
}
/**
* 设置 代办帮办(0.否,1.是)
* @param agentNotList
*/
public SiteMatterQuery agentNotList(List<Integer> agentNotList){
this.agentNotList = agentNotList;
return this;
}
/**
* 设置 代办姓名
* @param agentName
*/
public SiteMatterQuery agentName(String agentName){
setAgentName(agentName);
return this;
}
/**
* 设置 代办姓名
* @param agentNameList
*/
public SiteMatterQuery agentNameList(List<String> agentNameList){
this.agentNameList = agentNameList;
return this;
}
/**
* 设置 代办电话
* @param agentPhone
*/
public SiteMatterQuery agentPhone(String agentPhone){
setAgentPhone(agentPhone);
return this;
}
/**
* 设置 代办电话
* @param agentPhoneList
*/
public SiteMatterQuery agentPhoneList(List<String> agentPhoneList){
this.agentPhoneList = agentPhoneList;
return this;
}
/**
* 设置 职务
* @param agentPost
*/
public SiteMatterQuery agentPost(String agentPost){
setAgentPost(agentPost);
return this;
}
/**
* 设置 职务
* @param agentPostList
*/
public SiteMatterQuery agentPostList(List<String> agentPostList){
this.agentPostList = agentPostList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -10,17 +10,21 @@
<result property="siteName" column="siteName" />
<result property="matterId" column="matterId" />
<result property="matterName" column="matterName" />
<result property="matterCode" column="matterCode" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
<result property="deptId" column="deptId" />
<result property="deptName" column="deptName" />
<result property="matterCode" column="matterCode" />
<result property="eventTypeShow" column="eventTypeShow" />
<result property="source" column="source" />
<result property="deptCode" column="deptCode" />
<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" />
<result property="deptCode" column="deptCode" />
<result property="agent" column="agent" />
<result property="agentName" column="agentName" />
<result property="agentPhone" column="agentPhone" />
<result property="agentPost" column="agentPost" />
</resultMap>
......@@ -43,8 +47,14 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterName') or colPickMode == 1 and data.containsKey('matterName')))">
a.matterName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterCode') or colPickMode == 1 and data.containsKey('matterCode')))">
a.matterCode,
<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('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</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>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptId') or colPickMode == 1 and data.containsKey('deptId')))">
a.deptId,
......@@ -52,47 +62,53 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptName') or colPickMode == 1 and data.containsKey('deptName')))">
a.deptName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterCode') or colPickMode == 1 and data.containsKey('matterCode')))">
a.matterCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventTypeShow') or colPickMode == 1 and data.containsKey('eventTypeShow')))">
a.eventTypeShow,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))">
a.source,
</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>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptCode') or colPickMode == 1 and data.containsKey('deptCode')))">
a.deptCode,
</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 test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('agent') or colPickMode == 1 and data.containsKey('agent')))">
a.agent,
</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 test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('agentName') or colPickMode == 1 and data.containsKey('agentName')))">
a.agentName,
</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 test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('agentPhone') or colPickMode == 1 and data.containsKey('agentPhone')))">
a.agentPhone,
</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 test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('agentPost') or colPickMode == 1 and data.containsKey('agentPost')))">
a.agentPost,
</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,hot,display)
(siteId,siteName,matterId,matterName,createTime,createUserId,updateTime,deptId,deptName,matterCode,eventTypeShow,source,hot,display,deptCode,agent,agentName,agentPhone,agentPost)
VALUES
(#{siteId},#{siteName},#{matterId},#{matterName},#{matterCode},#{deptId},#{deptName},#{eventTypeShow},#{source},#{deptCode},#{createTime},#{createUserId},#{updateTime},#{hot},#{display})
(#{siteId},#{siteName},#{matterId},#{matterName},#{createTime},#{createUserId},#{updateTime},#{deptId},#{deptName},#{matterCode},#{eventTypeShow},#{source},#{hot},#{display},#{deptCode},#{agent},#{agentName},#{agentPhone},#{agentPost})
</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,hot,display)
(siteId,siteName,matterId,matterName,createTime,createUserId,updateTime,deptId,deptName,matterCode,eventTypeShow,source,hot,display,deptCode,agent,agentName,agentPhone,agentPost)
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.hot},#{item.display})
(#{item.siteId},#{item.siteName},#{item.matterId},#{item.matterName},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.deptId},#{item.deptName},#{item.matterCode},#{item.eventTypeShow},#{item.source},#{item.hot},#{item.display},#{item.deptCode},#{item.agent},#{item.agentName},#{item.agentPhone},#{item.agentPost})
</foreach>
</insert>
......@@ -120,8 +136,17 @@
<if test="(colPickMode==0 and data.containsKey('matterName')) or (colPickMode==1 and !data.containsKey('matterName'))">
a.matterName=#{data.matterName},
</if>
<if test="(colPickMode==0 and data.containsKey('matterCode')) or (colPickMode==1 and !data.containsKey('matterCode'))">
a.matterCode=#{data.matterCode},
<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('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('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('deptId')) or (colPickMode==1 and !data.containsKey('deptId'))">
a.deptId=#{data.deptId},
......@@ -132,6 +157,9 @@
<if test="(colPickMode==0 and data.containsKey('deptName')) or (colPickMode==1 and !data.containsKey('deptName'))">
a.deptName=#{data.deptName},
</if>
<if test="(colPickMode==0 and data.containsKey('matterCode')) or (colPickMode==1 and !data.containsKey('matterCode'))">
a.matterCode=#{data.matterCode},
</if>
<if test="(colPickMode==0 and data.containsKey('eventTypeShow')) or (colPickMode==1 and !data.containsKey('eventTypeShow'))">
a.eventTypeShow=#{data.eventTypeShow},
</if>
......@@ -141,21 +169,6 @@
<if test="(colPickMode==0 and data.containsKey('sourceIncrement')) or (colPickMode==1 and !data.containsKey('sourceIncrement'))">
a.source=ifnull(a.source,0) + #{data.sourceIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('deptCode')) or (colPickMode==1 and !data.containsKey('deptCode'))">
a.deptCode=#{data.deptCode},
</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('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('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>
......@@ -168,6 +181,24 @@
<if test="(colPickMode==0 and data.containsKey('displayIncrement')) or (colPickMode==1 and !data.containsKey('displayIncrement'))">
a.display=ifnull(a.display,0) + #{data.displayIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('deptCode')) or (colPickMode==1 and !data.containsKey('deptCode'))">
a.deptCode=#{data.deptCode},
</if>
<if test="(colPickMode==0 and data.containsKey('agent')) or (colPickMode==1 and !data.containsKey('agent'))">
a.agent=#{data.agent},
</if>
<if test="(colPickMode==0 and data.containsKey('agentIncrement')) or (colPickMode==1 and !data.containsKey('agentIncrement'))">
a.agent=ifnull(a.agent,0) + #{data.agentIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('agentName')) or (colPickMode==1 and !data.containsKey('agentName'))">
a.agentName=#{data.agentName},
</if>
<if test="(colPickMode==0 and data.containsKey('agentPhone')) or (colPickMode==1 and !data.containsKey('agentPhone'))">
a.agentPhone=#{data.agentPhone},
</if>
<if test="(colPickMode==0 and data.containsKey('agentPost')) or (colPickMode==1 and !data.containsKey('agentPost'))">
a.agentPost=#{data.agentPost},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
......@@ -218,10 +249,29 @@
</if>
</foreach>
</trim>
<trim prefix="matterCode=(case" suffix="ELSE matterCode end),">
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('matterCode')) or (colPickMode==1 and !item.containsKey('matterCode'))">
when a.id=#{item.id} then #{item.matterCode}
<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="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="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>
......@@ -244,6 +294,13 @@
</if>
</foreach>
</trim>
<trim prefix="matterCode=(case" suffix="ELSE matterCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('matterCode')) or (colPickMode==1 and !item.containsKey('matterCode'))">
when a.id=#{item.id} then #{item.matterCode}
</if>
</foreach>
</trim>
<trim prefix="eventTypeShow=(case" suffix="ELSE eventTypeShow end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventTypeShow')) or (colPickMode==1 and !item.containsKey('eventTypeShow'))">
......@@ -263,39 +320,6 @@
</choose>
</foreach>
</trim>
<trim prefix="deptCode=(case" suffix="ELSE deptCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deptCode')) or (colPickMode==1 and !item.containsKey('deptCode'))">
when a.id=#{item.id} then #{item.deptCode}
</if>
</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="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="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 prefix="hot=(case" suffix="ELSE hot end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
......@@ -320,6 +344,46 @@
</choose>
</foreach>
</trim>
<trim prefix="deptCode=(case" suffix="ELSE deptCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deptCode')) or (colPickMode==1 and !item.containsKey('deptCode'))">
when a.id=#{item.id} then #{item.deptCode}
</if>
</foreach>
</trim>
<trim prefix="agent=(case" suffix="ELSE agent end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('agent')) or (colPickMode==1 and !item.containsKey('agent'))">
when a.id=#{item.id} then #{item.agent}
</when>
<when test="(colPickMode==0 and item.containsKey('agentIncrement')) or (colPickMode==1 and !item.containsKey('agentIncrement'))">
when a.id=#{item.id} then ifnull(a.agent,0) + #{item.agentIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="agentName=(case" suffix="ELSE agentName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('agentName')) or (colPickMode==1 and !item.containsKey('agentName'))">
when a.id=#{item.id} then #{item.agentName}
</if>
</foreach>
</trim>
<trim prefix="agentPhone=(case" suffix="ELSE agentPhone end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('agentPhone')) or (colPickMode==1 and !item.containsKey('agentPhone'))">
when a.id=#{item.id} then #{item.agentPhone}
</if>
</foreach>
</trim>
<trim prefix="agentPost=(case" suffix="ELSE agentPost end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('agentPost')) or (colPickMode==1 and !item.containsKey('agentPost'))">
when a.id=#{item.id} then #{item.agentPost}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
......@@ -560,26 +624,62 @@
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterCode')">
<if test="conditionParamRef.matterCode != null and conditionParamRef.matterCode != ''">
${_conditionType_} a.matterCode like #{${_conditionParam_}.matterCode}
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.matterCode == null">
${_conditionType_} a.matterCode is null
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<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=",">
<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('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('matterCodeNotList') and conditionParamRef.matterCodeNotList.size() > 0">
${_conditionType_} a.matterCode not in
<foreach collection="conditionParamRef.matterCodeNotList" open="(" close=")" index="index" item="item" separator=",">
<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('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>
<if test="conditionParamRef.containsKey('deptId')">
<if test="conditionParamRef.deptId != null ">
${_conditionType_} a.deptId = #{${_conditionParam_}.deptId}
......@@ -629,6 +729,27 @@
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterCode')">
<if test="conditionParamRef.matterCode != null and conditionParamRef.matterCode != ''">
${_conditionType_} a.matterCode like #{${_conditionParam_}.matterCode}
</if>
<if test="conditionParamRef.matterCode == null">
${_conditionType_} a.matterCode is null
</if>
</if>
<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') and conditionParamRef.matterCodeNotList.size() > 0">
${_conditionType_} a.matterCode not in
<foreach collection="conditionParamRef.matterCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventTypeShow')">
<if test="conditionParamRef.eventTypeShow != null and conditionParamRef.eventTypeShow != ''">
${_conditionType_} a.eventTypeShow like #{${_conditionParam_}.eventTypeShow}
......@@ -676,6 +797,60 @@
${_conditionType_} a.source <![CDATA[ <= ]]> #{${_conditionParam_}.sourceEnd}
</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>
<if test="conditionParamRef.containsKey('deptCode')">
<if test="conditionParamRef.deptCode != null and conditionParamRef.deptCode != ''">
......@@ -697,129 +872,234 @@
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
<if test="conditionParamRef.containsKey('agent')">
<if test="conditionParamRef.agent != null ">
${_conditionType_} a.agent = #{${_conditionParam_}.agent}
</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('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
<if test="conditionParamRef.agent == null">
${_conditionType_} a.agent 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=",">
<if test="conditionParamRef.containsKey('agentList') and conditionParamRef.agentList.size() > 0">
${_conditionType_} a.agent in
<foreach collection="conditionParamRef.agentList" 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=",">
<if test="conditionParamRef.containsKey('agentNotList') and conditionParamRef.agentNotList.size() > 0">
${_conditionType_} a.agent not in
<foreach collection="conditionParamRef.agentNotList" 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 test="conditionParamRef.containsKey('agentStart') and conditionParamRef.agentStart != null">
${_conditionType_} a.agent <![CDATA[ >= ]]> #{${_conditionParam_}.agentStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
<if test="conditionParamRef.containsKey('agentEnd') and conditionParamRef.agentEnd != null">
${_conditionType_} a.agent <![CDATA[ <= ]]> #{${_conditionParam_}.agentEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
<if test="conditionParamRef.containsKey('agentName')">
<if test="conditionParamRef.agentName != null and conditionParamRef.agentName != ''">
${_conditionType_} a.agentName like #{${_conditionParam_}.agentName}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
<if test="conditionParamRef.agentName == null">
${_conditionType_} a.agentName 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 test="conditionParamRef.containsKey('agentNameList') and conditionParamRef.agentNameList.size() > 0">
${_conditionType_} a.agentName in
<foreach collection="conditionParamRef.agentNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</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 test="conditionParamRef.containsKey('agentNameNotList') and conditionParamRef.agentNameNotList.size() > 0">
${_conditionType_} a.agentName not in
<foreach collection="conditionParamRef.agentNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('hot')">
<if test="conditionParamRef.hot != null ">
${_conditionType_} a.hot = #{${_conditionParam_}.hot}
<if test="conditionParamRef.containsKey('agentPhone')">
<if test="conditionParamRef.agentPhone != null and conditionParamRef.agentPhone != ''">
${_conditionType_} a.agentPhone like #{${_conditionParam_}.agentPhone}
</if>
<if test="conditionParamRef.hot == null">
${_conditionType_} a.hot is null
<if test="conditionParamRef.agentPhone == null">
${_conditionType_} a.agentPhone 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=",">
<if test="conditionParamRef.containsKey('agentPhoneList') and conditionParamRef.agentPhoneList.size() > 0">
${_conditionType_} a.agentPhone in
<foreach collection="conditionParamRef.agentPhoneList" 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=",">
<if test="conditionParamRef.containsKey('agentPhoneNotList') and conditionParamRef.agentPhoneNotList.size() > 0">
${_conditionType_} a.agentPhone not in
<foreach collection="conditionParamRef.agentPhoneNotList" 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 test="conditionParamRef.containsKey('agentPost')">
<if test="conditionParamRef.agentPost != null and conditionParamRef.agentPost != ''">
${_conditionType_} a.agentPost like #{${_conditionParam_}.agentPost}
</if>
<if test="conditionParamRef.display == null">
${_conditionType_} a.display is null
<if test="conditionParamRef.agentPost == null">
${_conditionType_} a.agentPost 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=",">
<if test="conditionParamRef.containsKey('agentPostList') and conditionParamRef.agentPostList.size() > 0">
${_conditionType_} a.agentPost in
<foreach collection="conditionParamRef.agentPostList" 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=",">
<if test="conditionParamRef.containsKey('agentPostNotList') and conditionParamRef.agentPostNotList.size() > 0">
${_conditionType_} a.agentPost not in
<foreach collection="conditionParamRef.agentPostNotList" 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()">
order by
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
field(a.id,
<foreach collection="conditionParamRef.idList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
field(a.siteId,
<foreach collection="conditionParamRef.siteIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('matterIdList') and conditionParamRef.matterIdList.size() > 0">
field(a.matterId,
<foreach collection="conditionParamRef.matterIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
field(a.createUserId,
<foreach collection="conditionParamRef.createUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0">
field(a.deptId,
<foreach collection="conditionParamRef.deptIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('sourceList') and conditionParamRef.sourceList.size() > 0">
field(a.source,
<foreach collection="conditionParamRef.sourceList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('hotList') and conditionParamRef.hotList.size() > 0">
field(a.hot,
<foreach collection="conditionParamRef.hotList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('displayList') and conditionParamRef.displayList.size() > 0">
field(a.display,
<foreach collection="conditionParamRef.displayList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('agentList') and conditionParamRef.agentList.size() > 0">
field(a.agent,
<foreach collection="conditionParamRef.agentList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
a.${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
field(a.id,
<foreach collection="conditionParamRef.idList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('siteIdList') and conditionParamRef.siteIdList.size() > 0">
field(a.siteId,
<foreach collection="conditionParamRef.siteIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('matterIdList') and conditionParamRef.matterIdList.size() > 0">
field(a.matterId,
<foreach collection="conditionParamRef.matterIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
field(a.createUserId,
<foreach collection="conditionParamRef.createUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0">
field(a.deptId,
<foreach collection="conditionParamRef.deptIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('sourceList') and conditionParamRef.sourceList.size() > 0">
field(a.source,
<foreach collection="conditionParamRef.sourceList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('hotList') and conditionParamRef.hotList.size() > 0">
field(a.hot,
<foreach collection="conditionParamRef.hotList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('displayList') and conditionParamRef.displayList.size() > 0">
field(a.display,
<foreach collection="conditionParamRef.displayList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('agentList') and conditionParamRef.agentList.size() > 0">
field(a.agent,
<foreach collection="conditionParamRef.agentList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
......@@ -846,9 +1126,19 @@
<if test='orderCol.matterName != null and "DESC".equalsIgnoreCase(orderCol.matterName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('matterCode')">
a.matterCode
<if test='orderCol.matterCode != null and "DESC".equalsIgnoreCase(orderCol.matterCode)'>DESC</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('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deptId')">
......@@ -861,6 +1151,11 @@
<if test='orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('matterCode')">
a.matterCode
<if test='orderCol.matterCode != null and "DESC".equalsIgnoreCase(orderCol.matterCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventTypeShow')">
a.eventTypeShow
<if test='orderCol.eventTypeShow != null and "DESC".equalsIgnoreCase(orderCol.eventTypeShow)'>DESC</if>
......@@ -871,44 +1166,51 @@
<if test='orderCol.source != null and "DESC".equalsIgnoreCase(orderCol.source)'>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>
<if test="orderCol.containsKey('deptCode')">
a.deptCode
<if test='orderCol.deptCode != null and "DESC".equalsIgnoreCase(orderCol.deptCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
<if test="orderCol.containsKey('agent')">
a.agent
<if test='orderCol.agent != null and "DESC".equalsIgnoreCase(orderCol.agent)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
<if test="orderCol.containsKey('agentName')">
a.agentName
<if test='orderCol.agentName != null and "DESC".equalsIgnoreCase(orderCol.agentName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<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 test="orderCol.containsKey('agentPhone')">
a.agentPhone
<if test='orderCol.agentPhone != null and "DESC".equalsIgnoreCase(orderCol.agentPhone)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('display')">
a.display
<if test='orderCol.display != null and "DESC".equalsIgnoreCase(orderCol.display)'>DESC</if>
<if test="orderCol.containsKey('agentPost')">
a.agentPost
<if test='orderCol.agentPost != null and "DESC".equalsIgnoreCase(orderCol.agentPost)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="gr·oupList" open="" close="" index="index" item="item" separator=",">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
......
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