Commit 6d6c51e0 authored by 廖旭伟's avatar 廖旭伟

综窗事项管理等

parent 29d06970
package com.mortals.xhx.daemon.task;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.service.ITask;
import com.mortals.framework.service.ITaskExcuteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* 同步综窗事项
*/
@Slf4j
@Service("SyncImplementationTask")
public class SyncImplementationTaskImpl implements ITaskExcuteService {
@Override
public void excuteTask(ITask task) throws AppException {
}
@Override
public void stopTask(ITask task) throws AppException {
}
}
package com.mortals.xhx.module.matter.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
import java.util.List;
/**
* 申报事项列表Dao
* 申报事项列表 DAO接口
*
* @author zxfei
* @date 2024-06-20
*/
public interface ApplyMatterDao extends ICRUDDao<ApplyMatterEntity,Long>{
}
package com.mortals.xhx.module.matter.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import java.util.List;
/**
* 综窗事项列表Dao
* 综窗事项列表 DAO接口
*
* @author zxfei
* @date 2024-06-20
*/
public interface EventImplementationDao extends ICRUDDao<EventImplementationEntity,Long>{
}
package com.mortals.xhx.module.matter.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.matter.dao.ApplyMatterDao;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 申报事项列表DaoImpl DAO接口
*
* @author zxfei
* @date 2024-06-20
*/
@Repository("applyMatterDao")
public class ApplyMatterDaoImpl extends BaseCRUDDaoMybatis<ApplyMatterEntity,Long> implements ApplyMatterDao {
}
package com.mortals.xhx.module.matter.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.matter.dao.EventImplementationDao;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 综窗事项列表DaoImpl DAO接口
*
* @author zxfei
* @date 2024-06-20
*/
@Repository("eventImplementationDao")
public class EventImplementationDaoImpl extends BaseCRUDDaoMybatis<EventImplementationEntity,Long> implements EventImplementationDao {
}
package com.mortals.xhx.module.matter.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.matter.model.vo.ApplyMatterVo;
import lombok.Data;
/**
* 申报事项列表实体对象
*
* @author zxfei
* @date 2024-06-20
*/
@Data
public class ApplyMatterEntity extends ApplyMatterVo {
private static final long serialVersionUID = 1L;
/**
* 可申报类型
*/
private Integer applyType;
/**
* 实施清单事项ID
*/
private String eventId;
/**
* 事项类型
*/
private String eventType;
/**
* 实施编码
*/
private String implementCoding;
/**
* 业务办理项编码
*/
private String handlingItemCode;
/**
* 实施清单名称
*/
private String implementName;
/**
* 事项面向对象分类
*/
private String eventObjectType;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ApplyMatterEntity) {
ApplyMatterEntity tmp = (ApplyMatterEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.applyType = 0;
this.eventId = "";
this.eventType = "";
this.implementCoding = "";
this.handlingItemCode = "";
this.implementName = "";
this.eventObjectType = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.model;
import java.util.List;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
/**
* 申报事项列表查询对象
*
* @author zxfei
* @date 2024-06-20
*/
public class ApplyMatterQuery extends ApplyMatterEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 可申报类型 */
private Integer applyTypeStart;
/** 结束 可申报类型 */
private Integer applyTypeEnd;
/** 增加 可申报类型 */
private Integer applyTypeIncrement;
/** 可申报类型列表 */
private List <Integer> applyTypeList;
/** 可申报类型排除列表 */
private List <Integer> applyTypeNotList;
/** 实施清单事项ID */
private List<String> eventIdList;
/** 实施清单事项ID排除列表 */
private List <String> eventIdNotList;
/** 事项类型 */
private List<String> eventTypeList;
/** 事项类型排除列表 */
private List <String> eventTypeNotList;
/** 实施编码 */
private List<String> implementCodingList;
/** 实施编码排除列表 */
private List <String> implementCodingNotList;
/** 业务办理项编码 */
private List<String> handlingItemCodeList;
/** 业务办理项编码排除列表 */
private List <String> handlingItemCodeNotList;
/** 实施清单名称 */
private List<String> implementNameList;
/** 实施清单名称排除列表 */
private List <String> implementNameNotList;
/** 事项面向对象分类 */
private List<String> eventObjectTypeList;
/** 事项面向对象分类排除列表 */
private List <String> eventObjectTypeNotList;
/** 开始 更新用户 */
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<ApplyMatterQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<ApplyMatterQuery> andConditionList;
public ApplyMatterQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @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 applyTypeStart
*/
public Integer getApplyTypeStart(){
return this.applyTypeStart;
}
/**
* 设置 开始 可申报类型
* @param applyTypeStart
*/
public void setApplyTypeStart(Integer applyTypeStart){
this.applyTypeStart = applyTypeStart;
}
/**
* 获取 结束 可申报类型
* @return $applyTypeEnd
*/
public Integer getApplyTypeEnd(){
return this.applyTypeEnd;
}
/**
* 设置 结束 可申报类型
* @param applyTypeEnd
*/
public void setApplyTypeEnd(Integer applyTypeEnd){
this.applyTypeEnd = applyTypeEnd;
}
/**
* 获取 增加 可申报类型
* @return applyTypeIncrement
*/
public Integer getApplyTypeIncrement(){
return this.applyTypeIncrement;
}
/**
* 设置 增加 可申报类型
* @param applyTypeIncrement
*/
public void setApplyTypeIncrement(Integer applyTypeIncrement){
this.applyTypeIncrement = applyTypeIncrement;
}
/**
* 获取 可申报类型
* @return applyTypeList
*/
public List<Integer> getApplyTypeList(){
return this.applyTypeList;
}
/**
* 设置 可申报类型
* @param applyTypeList
*/
public void setApplyTypeList(List<Integer> applyTypeList){
this.applyTypeList = applyTypeList;
}
/**
* 获取 可申报类型
* @return applyTypeNotList
*/
public List<Integer> getApplyTypeNotList(){
return this.applyTypeNotList;
}
/**
* 设置 可申报类型
* @param applyTypeNotList
*/
public void setApplyTypeNotList(List<Integer> applyTypeNotList){
this.applyTypeNotList = applyTypeNotList;
}
/**
* 获取 实施清单事项ID
* @return eventIdList
*/
public List<String> getEventIdList(){
return this.eventIdList;
}
/**
* 设置 实施清单事项ID
* @param eventIdList
*/
public void setEventIdList(List<String> eventIdList){
this.eventIdList = eventIdList;
}
/**
* 获取 实施清单事项ID
* @return eventIdNotList
*/
public List<String> getEventIdNotList(){
return this.eventIdNotList;
}
/**
* 设置 实施清单事项ID
* @param eventIdNotList
*/
public void setEventIdNotList(List<String> eventIdNotList){
this.eventIdNotList = eventIdNotList;
}
/**
* 获取 事项类型
* @return eventTypeList
*/
public List<String> getEventTypeList(){
return this.eventTypeList;
}
/**
* 设置 事项类型
* @param eventTypeList
*/
public void setEventTypeList(List<String> eventTypeList){
this.eventTypeList = eventTypeList;
}
/**
* 获取 事项类型
* @return eventTypeNotList
*/
public List<String> getEventTypeNotList(){
return this.eventTypeNotList;
}
/**
* 设置 事项类型
* @param eventTypeNotList
*/
public void setEventTypeNotList(List<String> eventTypeNotList){
this.eventTypeNotList = eventTypeNotList;
}
/**
* 获取 实施编码
* @return implementCodingList
*/
public List<String> getImplementCodingList(){
return this.implementCodingList;
}
/**
* 设置 实施编码
* @param implementCodingList
*/
public void setImplementCodingList(List<String> implementCodingList){
this.implementCodingList = implementCodingList;
}
/**
* 获取 实施编码
* @return implementCodingNotList
*/
public List<String> getImplementCodingNotList(){
return this.implementCodingNotList;
}
/**
* 设置 实施编码
* @param implementCodingNotList
*/
public void setImplementCodingNotList(List<String> implementCodingNotList){
this.implementCodingNotList = implementCodingNotList;
}
/**
* 获取 业务办理项编码
* @return handlingItemCodeList
*/
public List<String> getHandlingItemCodeList(){
return this.handlingItemCodeList;
}
/**
* 设置 业务办理项编码
* @param handlingItemCodeList
*/
public void setHandlingItemCodeList(List<String> handlingItemCodeList){
this.handlingItemCodeList = handlingItemCodeList;
}
/**
* 获取 业务办理项编码
* @return handlingItemCodeNotList
*/
public List<String> getHandlingItemCodeNotList(){
return this.handlingItemCodeNotList;
}
/**
* 设置 业务办理项编码
* @param handlingItemCodeNotList
*/
public void setHandlingItemCodeNotList(List<String> handlingItemCodeNotList){
this.handlingItemCodeNotList = handlingItemCodeNotList;
}
/**
* 获取 实施清单名称
* @return implementNameList
*/
public List<String> getImplementNameList(){
return this.implementNameList;
}
/**
* 设置 实施清单名称
* @param implementNameList
*/
public void setImplementNameList(List<String> implementNameList){
this.implementNameList = implementNameList;
}
/**
* 获取 实施清单名称
* @return implementNameNotList
*/
public List<String> getImplementNameNotList(){
return this.implementNameNotList;
}
/**
* 设置 实施清单名称
* @param implementNameNotList
*/
public void setImplementNameNotList(List<String> implementNameNotList){
this.implementNameNotList = implementNameNotList;
}
/**
* 获取 事项面向对象分类
* @return eventObjectTypeList
*/
public List<String> getEventObjectTypeList(){
return this.eventObjectTypeList;
}
/**
* 设置 事项面向对象分类
* @param eventObjectTypeList
*/
public void setEventObjectTypeList(List<String> eventObjectTypeList){
this.eventObjectTypeList = eventObjectTypeList;
}
/**
* 获取 事项面向对象分类
* @return eventObjectTypeNotList
*/
public List<String> getEventObjectTypeNotList(){
return this.eventObjectTypeNotList;
}
/**
* 设置 事项面向对象分类
* @param eventObjectTypeNotList
*/
public void setEventObjectTypeNotList(List<String> eventObjectTypeNotList){
this.eventObjectTypeNotList = eventObjectTypeNotList;
}
/**
* 获取 开始 更新用户
* @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 ApplyMatterQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public ApplyMatterQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public ApplyMatterQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public ApplyMatterQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public ApplyMatterQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public ApplyMatterQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 可申报类型
* @param applyType
*/
public ApplyMatterQuery applyType(Integer applyType){
setApplyType(applyType);
return this;
}
/**
* 设置 开始 可申报类型
* @param applyTypeStart
*/
public ApplyMatterQuery applyTypeStart(Integer applyTypeStart){
this.applyTypeStart = applyTypeStart;
return this;
}
/**
* 设置 结束 可申报类型
* @param applyTypeEnd
*/
public ApplyMatterQuery applyTypeEnd(Integer applyTypeEnd){
this.applyTypeEnd = applyTypeEnd;
return this;
}
/**
* 设置 增加 可申报类型
* @param applyTypeIncrement
*/
public ApplyMatterQuery applyTypeIncrement(Integer applyTypeIncrement){
this.applyTypeIncrement = applyTypeIncrement;
return this;
}
/**
* 设置 可申报类型
* @param applyTypeList
*/
public ApplyMatterQuery applyTypeList(List<Integer> applyTypeList){
this.applyTypeList = applyTypeList;
return this;
}
/**
* 设置 可申报类型
* @param applyTypeNotList
*/
public ApplyMatterQuery applyTypeNotList(List<Integer> applyTypeNotList){
this.applyTypeNotList = applyTypeNotList;
return this;
}
/**
* 设置 实施清单事项ID
* @param eventId
*/
public ApplyMatterQuery eventId(String eventId){
setEventId(eventId);
return this;
}
/**
* 设置 实施清单事项ID
* @param eventIdList
*/
public ApplyMatterQuery eventIdList(List<String> eventIdList){
this.eventIdList = eventIdList;
return this;
}
/**
* 设置 事项类型
* @param eventType
*/
public ApplyMatterQuery eventType(String eventType){
setEventType(eventType);
return this;
}
/**
* 设置 事项类型
* @param eventTypeList
*/
public ApplyMatterQuery eventTypeList(List<String> eventTypeList){
this.eventTypeList = eventTypeList;
return this;
}
/**
* 设置 实施编码
* @param implementCoding
*/
public ApplyMatterQuery implementCoding(String implementCoding){
setImplementCoding(implementCoding);
return this;
}
/**
* 设置 实施编码
* @param implementCodingList
*/
public ApplyMatterQuery implementCodingList(List<String> implementCodingList){
this.implementCodingList = implementCodingList;
return this;
}
/**
* 设置 业务办理项编码
* @param handlingItemCode
*/
public ApplyMatterQuery handlingItemCode(String handlingItemCode){
setHandlingItemCode(handlingItemCode);
return this;
}
/**
* 设置 业务办理项编码
* @param handlingItemCodeList
*/
public ApplyMatterQuery handlingItemCodeList(List<String> handlingItemCodeList){
this.handlingItemCodeList = handlingItemCodeList;
return this;
}
/**
* 设置 实施清单名称
* @param implementName
*/
public ApplyMatterQuery implementName(String implementName){
setImplementName(implementName);
return this;
}
/**
* 设置 实施清单名称
* @param implementNameList
*/
public ApplyMatterQuery implementNameList(List<String> implementNameList){
this.implementNameList = implementNameList;
return this;
}
/**
* 设置 事项面向对象分类
* @param eventObjectType
*/
public ApplyMatterQuery eventObjectType(String eventObjectType){
setEventObjectType(eventObjectType);
return this;
}
/**
* 设置 事项面向对象分类
* @param eventObjectTypeList
*/
public ApplyMatterQuery eventObjectTypeList(List<String> eventObjectTypeList){
this.eventObjectTypeList = eventObjectTypeList;
return this;
}
/**
* 设置 更新用户
* @param createUserId
*/
public ApplyMatterQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param createUserIdStart
*/
public ApplyMatterQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param createUserIdEnd
*/
public ApplyMatterQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param createUserIdIncrement
*/
public ApplyMatterQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param createUserIdList
*/
public ApplyMatterQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 更新用户
* @param createUserIdNotList
*/
public ApplyMatterQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public ApplyMatterQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public ApplyMatterQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public ApplyMatterQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public ApplyMatterQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public ApplyMatterQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public ApplyMatterQuery 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<ApplyMatterQuery> 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<ApplyMatterQuery> 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<ApplyMatterQuery> 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<ApplyMatterQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.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.matter.model.vo.EventImplementationVo;
import lombok.Data;
/**
* 综窗事项列表实体对象
*
* @author zxfei
* @date 2024-06-20
*/
@Data
public class EventImplementationEntity extends EventImplementationVo {
private static final long serialVersionUID = 1L;
/**
* 实施清单事项ID
*/
private String eventId;
/**
* 事项类型
*/
private String eventType;
/**
* 实施编码
*/
private String implementCoding;
/**
* 业务办理项编码
*/
private String handlingItemCode;
/**
* 实施清单名称
*/
private String implementName;
/**
* 事项面向对象分类
*/
private String eventObjectType;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof EventImplementationEntity) {
EventImplementationEntity tmp = (EventImplementationEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.eventId = "";
this.eventType = "";
this.implementCoding = "";
this.handlingItemCode = "";
this.implementName = "";
this.eventObjectType = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.model;
import java.util.List;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
/**
* 综窗事项列表查询对象
*
* @author zxfei
* @date 2024-06-20
*/
public class EventImplementationQuery extends EventImplementationEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 实施清单事项ID */
private List<String> eventIdList;
/** 实施清单事项ID排除列表 */
private List <String> eventIdNotList;
/** 事项类型 */
private List<String> eventTypeList;
/** 事项类型排除列表 */
private List <String> eventTypeNotList;
/** 实施编码 */
private List<String> implementCodingList;
/** 实施编码排除列表 */
private List <String> implementCodingNotList;
/** 业务办理项编码 */
private List<String> handlingItemCodeList;
/** 业务办理项编码排除列表 */
private List <String> handlingItemCodeNotList;
/** 实施清单名称 */
private List<String> implementNameList;
/** 实施清单名称排除列表 */
private List <String> implementNameNotList;
/** 事项面向对象分类 */
private List<String> eventObjectTypeList;
/** 事项面向对象分类排除列表 */
private List <String> eventObjectTypeNotList;
/** 开始 更新用户 */
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<EventImplementationQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<EventImplementationQuery> andConditionList;
public EventImplementationQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @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;
}
/**
* 获取 实施清单事项ID
* @return eventIdList
*/
public List<String> getEventIdList(){
return this.eventIdList;
}
/**
* 设置 实施清单事项ID
* @param eventIdList
*/
public void setEventIdList(List<String> eventIdList){
this.eventIdList = eventIdList;
}
/**
* 获取 实施清单事项ID
* @return eventIdNotList
*/
public List<String> getEventIdNotList(){
return this.eventIdNotList;
}
/**
* 设置 实施清单事项ID
* @param eventIdNotList
*/
public void setEventIdNotList(List<String> eventIdNotList){
this.eventIdNotList = eventIdNotList;
}
/**
* 获取 事项类型
* @return eventTypeList
*/
public List<String> getEventTypeList(){
return this.eventTypeList;
}
/**
* 设置 事项类型
* @param eventTypeList
*/
public void setEventTypeList(List<String> eventTypeList){
this.eventTypeList = eventTypeList;
}
/**
* 获取 事项类型
* @return eventTypeNotList
*/
public List<String> getEventTypeNotList(){
return this.eventTypeNotList;
}
/**
* 设置 事项类型
* @param eventTypeNotList
*/
public void setEventTypeNotList(List<String> eventTypeNotList){
this.eventTypeNotList = eventTypeNotList;
}
/**
* 获取 实施编码
* @return implementCodingList
*/
public List<String> getImplementCodingList(){
return this.implementCodingList;
}
/**
* 设置 实施编码
* @param implementCodingList
*/
public void setImplementCodingList(List<String> implementCodingList){
this.implementCodingList = implementCodingList;
}
/**
* 获取 实施编码
* @return implementCodingNotList
*/
public List<String> getImplementCodingNotList(){
return this.implementCodingNotList;
}
/**
* 设置 实施编码
* @param implementCodingNotList
*/
public void setImplementCodingNotList(List<String> implementCodingNotList){
this.implementCodingNotList = implementCodingNotList;
}
/**
* 获取 业务办理项编码
* @return handlingItemCodeList
*/
public List<String> getHandlingItemCodeList(){
return this.handlingItemCodeList;
}
/**
* 设置 业务办理项编码
* @param handlingItemCodeList
*/
public void setHandlingItemCodeList(List<String> handlingItemCodeList){
this.handlingItemCodeList = handlingItemCodeList;
}
/**
* 获取 业务办理项编码
* @return handlingItemCodeNotList
*/
public List<String> getHandlingItemCodeNotList(){
return this.handlingItemCodeNotList;
}
/**
* 设置 业务办理项编码
* @param handlingItemCodeNotList
*/
public void setHandlingItemCodeNotList(List<String> handlingItemCodeNotList){
this.handlingItemCodeNotList = handlingItemCodeNotList;
}
/**
* 获取 实施清单名称
* @return implementNameList
*/
public List<String> getImplementNameList(){
return this.implementNameList;
}
/**
* 设置 实施清单名称
* @param implementNameList
*/
public void setImplementNameList(List<String> implementNameList){
this.implementNameList = implementNameList;
}
/**
* 获取 实施清单名称
* @return implementNameNotList
*/
public List<String> getImplementNameNotList(){
return this.implementNameNotList;
}
/**
* 设置 实施清单名称
* @param implementNameNotList
*/
public void setImplementNameNotList(List<String> implementNameNotList){
this.implementNameNotList = implementNameNotList;
}
/**
* 获取 事项面向对象分类
* @return eventObjectTypeList
*/
public List<String> getEventObjectTypeList(){
return this.eventObjectTypeList;
}
/**
* 设置 事项面向对象分类
* @param eventObjectTypeList
*/
public void setEventObjectTypeList(List<String> eventObjectTypeList){
this.eventObjectTypeList = eventObjectTypeList;
}
/**
* 获取 事项面向对象分类
* @return eventObjectTypeNotList
*/
public List<String> getEventObjectTypeNotList(){
return this.eventObjectTypeNotList;
}
/**
* 设置 事项面向对象分类
* @param eventObjectTypeNotList
*/
public void setEventObjectTypeNotList(List<String> eventObjectTypeNotList){
this.eventObjectTypeNotList = eventObjectTypeNotList;
}
/**
* 获取 开始 更新用户
* @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 EventImplementationQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public EventImplementationQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public EventImplementationQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public EventImplementationQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public EventImplementationQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public EventImplementationQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 实施清单事项ID
* @param eventId
*/
public EventImplementationQuery eventId(String eventId){
setEventId(eventId);
return this;
}
/**
* 设置 实施清单事项ID
* @param eventIdList
*/
public EventImplementationQuery eventIdList(List<String> eventIdList){
this.eventIdList = eventIdList;
return this;
}
/**
* 设置 事项类型
* @param eventType
*/
public EventImplementationQuery eventType(String eventType){
setEventType(eventType);
return this;
}
/**
* 设置 事项类型
* @param eventTypeList
*/
public EventImplementationQuery eventTypeList(List<String> eventTypeList){
this.eventTypeList = eventTypeList;
return this;
}
/**
* 设置 实施编码
* @param implementCoding
*/
public EventImplementationQuery implementCoding(String implementCoding){
setImplementCoding(implementCoding);
return this;
}
/**
* 设置 实施编码
* @param implementCodingList
*/
public EventImplementationQuery implementCodingList(List<String> implementCodingList){
this.implementCodingList = implementCodingList;
return this;
}
/**
* 设置 业务办理项编码
* @param handlingItemCode
*/
public EventImplementationQuery handlingItemCode(String handlingItemCode){
setHandlingItemCode(handlingItemCode);
return this;
}
/**
* 设置 业务办理项编码
* @param handlingItemCodeList
*/
public EventImplementationQuery handlingItemCodeList(List<String> handlingItemCodeList){
this.handlingItemCodeList = handlingItemCodeList;
return this;
}
/**
* 设置 实施清单名称
* @param implementName
*/
public EventImplementationQuery implementName(String implementName){
setImplementName(implementName);
return this;
}
/**
* 设置 实施清单名称
* @param implementNameList
*/
public EventImplementationQuery implementNameList(List<String> implementNameList){
this.implementNameList = implementNameList;
return this;
}
/**
* 设置 事项面向对象分类
* @param eventObjectType
*/
public EventImplementationQuery eventObjectType(String eventObjectType){
setEventObjectType(eventObjectType);
return this;
}
/**
* 设置 事项面向对象分类
* @param eventObjectTypeList
*/
public EventImplementationQuery eventObjectTypeList(List<String> eventObjectTypeList){
this.eventObjectTypeList = eventObjectTypeList;
return this;
}
/**
* 设置 更新用户
* @param createUserId
*/
public EventImplementationQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param createUserIdStart
*/
public EventImplementationQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param createUserIdEnd
*/
public EventImplementationQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param createUserIdIncrement
*/
public EventImplementationQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param createUserIdList
*/
public EventImplementationQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 更新用户
* @param createUserIdNotList
*/
public EventImplementationQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public EventImplementationQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public EventImplementationQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public EventImplementationQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public EventImplementationQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public EventImplementationQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public EventImplementationQuery 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<EventImplementationQuery> 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<EventImplementationQuery> 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<EventImplementationQuery> 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<EventImplementationQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 申报事项列表视图对象
*
* @author zxfei
* @date 2024-06-20
*/
@Data
public class ApplyMatterVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.matter.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 综窗事项列表视图对象
*
* @author zxfei
* @date 2024-06-20
*/
@Data
public class EventImplementationVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.matter.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
import com.mortals.xhx.module.matter.dao.ApplyMatterDao;
/**
* ApplyMatterService
*
* 申报事项列表 service接口
*
* @author zxfei
* @date 2024-06-20
*/
public interface ApplyMatterService extends ICRUDService<ApplyMatterEntity,Long>{
ApplyMatterDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.matter.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import com.mortals.xhx.module.matter.dao.EventImplementationDao;
import java.util.List;
/**
* EventImplementationService
*
* 综窗事项列表 service接口
*
* @author zxfei
* @date 2024-06-20
*/
public interface EventImplementationService extends ICRUDService<EventImplementationEntity,Long>{
EventImplementationDao getDao();
/**
* 同步综窗事项到本地库
*/
void syncEventImplementation();
/**
* 新增或者修改
*/
void saveOrUpdate(List<EventImplementationEntity> list);
}
\ No newline at end of file
package com.mortals.xhx.module.matter.service.impl;
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.matter.dao.ApplyMatterDao;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
import com.mortals.xhx.module.matter.service.ApplyMatterService;
import lombok.extern.slf4j.Slf4j;
/**
* ApplyMatterService
* 申报事项列表 service实现
*
* @author zxfei
* @date 2024-06-20
*/
@Service("applyMatterService")
@Slf4j
public class ApplyMatterServiceImpl extends AbstractCRUDServiceImpl<ApplyMatterDao, ApplyMatterEntity, Long> implements ApplyMatterService {
}
\ No newline at end of file
package com.mortals.xhx.module.matter.service.impl;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.mortals.framework.common.Rest;
import com.mortals.framework.service.ICacheService;
import com.mortals.xhx.busiz.req.ComplexImplementationReq;
import com.mortals.xhx.busiz.rsp.ApiResp;
import com.mortals.xhx.busiz.rsp.ImplementEventInfo;
import com.mortals.xhx.busiz.rsp.RecordsItem;
import com.mortals.xhx.common.code.ApiRespCodeEnum;
import com.mortals.xhx.module.matter.model.EventImplementationQuery;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
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.matter.dao.EventImplementationDao;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import com.mortals.xhx.module.matter.service.EventImplementationService;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import static com.mortals.xhx.common.key.Constant.HTTP_TIMEOUT;
import static com.mortals.xhx.common.key.RedisKey.KEY_COMPLEX_REQ;
import static com.mortals.xhx.common.key.RedisKey.KEY_EVENT_IMPLEMENTATION_RESP;
/**
* EventImplementationService
* 综窗事项列表 service实现
*
* @author zxfei
* @date 2024-06-20
*/
@Service("eventImplementationService")
@Slf4j
public class EventImplementationServiceImpl extends AbstractCRUDServiceImpl<EventImplementationDao, EventImplementationEntity, Long> implements EventImplementationService {
@Autowired
private ICacheService cacheService;
@Override
public void syncEventImplementation() {
int currentPage = 1;
int pageSize = 20;
ComplexImplementationReq req = new ComplexImplementationReq();
req.setUrlPath("eventImplementation/list");
req.setPageSize(pageSize);
req.setCurrentPage(currentPage);
try {
req.setNonce(RandomUtil.randomNumbers(6));
cacheService.lpush(KEY_COMPLEX_REQ, JSONObject.toJSONString(req));
String rest = cacheService.blpop(KEY_EVENT_IMPLEMENTATION_RESP + req.getNonce(), HTTP_TIMEOUT, String.class);
if (ObjectUtil.isEmpty(rest)) {
throw new AppException("请求访问超时");
}
Rest<ImplementEventInfo> eventListRest = JSON.parseObject(rest, new TypeReference<Rest<ImplementEventInfo>>() {
});
if(eventListRest.getCode()==ApiRespCodeEnum.SUCCESS.getValue()){
List<EventImplementationEntity> list = convertEventImplementation(eventListRest.getData().getRecords());
this.saveOrUpdate(list);
int total = eventListRest.getData().getTotal();
int pages = total/pageSize + 1;
if(pages > 1){
while (currentPage < pages){
currentPage++;
req.setCurrentPage(currentPage);
req.setNonce(RandomUtil.randomNumbers(6));
cacheService.lpush(KEY_COMPLEX_REQ, JSONObject.toJSONString(req));
String restTemp = cacheService.blpop(KEY_EVENT_IMPLEMENTATION_RESP + req.getNonce(), HTTP_TIMEOUT, String.class);
if (ObjectUtil.isEmpty(restTemp)) {
throw new AppException("请求访问超时");
}
Rest<ImplementEventInfo> eventListTemp = JSON.parseObject(rest, new TypeReference<Rest<ImplementEventInfo>>() {
});
if(eventListTemp.getCode()==ApiRespCodeEnum.SUCCESS.getValue()){
List<EventImplementationEntity> listTemp = convertEventImplementation(eventListTemp.getData().getRecords());
this.saveOrUpdate(listTemp);
}
}
}
}
} catch (Exception e) {
log.error("同步数据失败", e);
}
}
@Override
public void saveOrUpdate(List<EventImplementationEntity> list) {
if(CollectionUtils.isNotEmpty(list)){
List<EventImplementationEntity> saveList = new ArrayList<>();
List<EventImplementationEntity> updateList = new ArrayList<>();
for(EventImplementationEntity entity:list){
EventImplementationEntity temp = this.selectOne(new EventImplementationQuery().eventId(entity.getEventId()));
if(temp!=null){
entity.setId(temp.getId());
entity.setUpdateTime(new Date());
updateList.add(entity);
}else {
entity.setCreateTime(new Date());
saveList.add(entity);
}
}
if(CollectionUtils.isNotEmpty(saveList)){
this.save(saveList);
}
if(CollectionUtils.isNotEmpty(updateList)){
this.update(updateList);
}
}
}
private List<EventImplementationEntity> convertEventImplementation(List<RecordsItem> records){
List<EventImplementationEntity> list = new ArrayList<>();
if(CollectionUtils.isNotEmpty(records)){
for (RecordsItem item:records){
EventImplementationEntity entity = new EventImplementationEntity();
entity.initAttrValue();
entity.setEventId(item.getEventId());
entity.setEventObjectType(item.getEventObjectType());
entity.setEventType(item.getEventType());
entity.setHandlingItemCode(item.getHandlingItemCode());
entity.setImplementName(item.getImplementName());
entity.setImplementCoding(item.getImplementCoding());
list.add(entity);
}
}
return list;
}
public static void main(String[] args) {
int total = 175;
int pageSize = 50;
int currentPage = 1;
System.out.println("当前页数:"+currentPage);
int pages = total/pageSize + 1;
System.out.println("总页数:"+pages);
while (currentPage < pages){
currentPage++;
System.out.println("当前页数:"+currentPage);
}
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.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 org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.matter.model.ApplyMatterEntity;
import com.mortals.xhx.module.matter.service.ApplyMatterService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
import com.mortals.xhx.common.code.*;
/**
*
* 申报事项列表
*
* @author zxfei
* @date 2024-06-20
*/
@RestController
@RequestMapping("apply/matter")
public class ApplyMatterController extends BaseCRUDJsonBodyMappingController<ApplyMatterService,ApplyMatterEntity,Long> {
@Autowired
private ParamService paramService;
public ApplyMatterController(){
super.setModuleDesc( "申报事项列表");
}
@Override
protected void init(Map<String, Object> model, Context context) {
//this.addDict(model, "applyType", ApplyTypeEnum.getEnumMap());
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.web;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICacheService;
import com.mortals.framework.util.StringUtils;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import com.mortals.xhx.module.matter.service.EventImplementationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
*
* 综窗事项列表
*
* @author zxfei
* @date 2024-06-20
*/
@RestController
@RequestMapping("event/implementation")
public class EventImplementationController extends BaseCRUDJsonBodyMappingController<EventImplementationService,EventImplementationEntity,Long> {
@Autowired
private ParamService paramService;
@Autowired
private ICacheService cacheService;
private ExecutorService executorService = Executors.newCachedThreadPool();
private static String SYNC_TASK_KEY ="syncEventImplementation:run";
public EventImplementationController(){
super.setModuleDesc( "综窗事项列表");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
@PostMapping({"sync"})
@UnAuth
public Rest<Object> syncEventImplementation() {
Rest<Object> ret = new Rest();
Map<String, Object> model = new HashMap();
String busiDesc = "同步综窗事项";
int code = 1;
try {
String verify = cacheService.get(SYNC_TASK_KEY);
if(StringUtils.isNotEmpty(verify)&&verify.equals("true")){
throw new AppException("同步任务正在执行,请勿重复操作");
}
executorService.submit(new Runnable() {
@Override
public void run() {
cacheService.setnx(SYNC_TASK_KEY,"true",3600);
service.syncEventImplementation();
}
});
cacheService.setnx(SYNC_TASK_KEY,"false",60);
model.put("message_info","开始执行同步,请稍后查看");
} catch (Exception var9) {
code = -1;
this.doException(this.request, busiDesc, model, var9);
}
ret.setCode(code);
ret.setMsg(model.get("message_info") == null ? "" : model.remove("message_info").toString());
return ret;
}
}
\ 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.matter.dao.ibatis.ApplyMatterDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="ApplyMatterEntity" id="ApplyMatterEntity-Map">
<id property="id" column="id" />
<result property="applyType" column="applyType" />
<result property="eventId" column="eventId" />
<result property="eventType" column="eventType" />
<result property="implementCoding" column="implementCoding" />
<result property="handlingItemCode" column="handlingItemCode" />
<result property="implementName" column="implementName" />
<result property="eventObjectType" column="eventObjectType" />
<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('applyType') or colPickMode == 1 and data.containsKey('applyType')))">
a.applyType,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventId') or colPickMode == 1 and data.containsKey('eventId')))">
a.eventId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventType') or colPickMode == 1 and data.containsKey('eventType')))">
a.eventType,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('implementCoding') or colPickMode == 1 and data.containsKey('implementCoding')))">
a.implementCoding,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('handlingItemCode') or colPickMode == 1 and data.containsKey('handlingItemCode')))">
a.handlingItemCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('implementName') or colPickMode == 1 and data.containsKey('implementName')))">
a.implementName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventObjectType') or colPickMode == 1 and data.containsKey('eventObjectType')))">
a.eventObjectType,
</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="ApplyMatterEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_apply_matter
(applyType,eventId,eventType,implementCoding,handlingItemCode,implementName,eventObjectType,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{applyType},#{eventId},#{eventType},#{implementCoding},#{handlingItemCode},#{implementName},#{eventObjectType},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_apply_matter
(applyType,eventId,eventType,implementCoding,handlingItemCode,implementName,eventObjectType,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.applyType},#{item.eventId},#{item.eventType},#{item.implementCoding},#{item.handlingItemCode},#{item.implementName},#{item.eventObjectType},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_apply_matter as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('applyType')) or (colPickMode==1 and !data.containsKey('applyType'))">
a.applyType=#{data.applyType},
</if>
<if test="(colPickMode==0 and data.containsKey('applyTypeIncrement')) or (colPickMode==1 and !data.containsKey('applyTypeIncrement'))">
a.applyType=ifnull(a.applyType,0) + #{data.applyTypeIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('eventId')) or (colPickMode==1 and !data.containsKey('eventId'))">
a.eventId=#{data.eventId},
</if>
<if test="(colPickMode==0 and data.containsKey('eventType')) or (colPickMode==1 and !data.containsKey('eventType'))">
a.eventType=#{data.eventType},
</if>
<if test="(colPickMode==0 and data.containsKey('implementCoding')) or (colPickMode==1 and !data.containsKey('implementCoding'))">
a.implementCoding=#{data.implementCoding},
</if>
<if test="(colPickMode==0 and data.containsKey('handlingItemCode')) or (colPickMode==1 and !data.containsKey('handlingItemCode'))">
a.handlingItemCode=#{data.handlingItemCode},
</if>
<if test="(colPickMode==0 and data.containsKey('implementName')) or (colPickMode==1 and !data.containsKey('implementName'))">
a.implementName=#{data.implementName},
</if>
<if test="(colPickMode==0 and data.containsKey('eventObjectType')) or (colPickMode==1 and !data.containsKey('eventObjectType'))">
a.eventObjectType=#{data.eventObjectType},
</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_apply_matter as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="applyType=(case" suffix="ELSE applyType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('applyType')) or (colPickMode==1 and !item.containsKey('applyType'))">
when a.id=#{item.id} then #{item.applyType}
</when>
<when test="(colPickMode==0 and item.containsKey('applyTypeIncrement')) or (colPickMode==1 and !item.containsKey('applyTypeIncrement'))">
when a.id=#{item.id} then ifnull(a.applyType,0) + #{item.applyTypeIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="eventId=(case" suffix="ELSE eventId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventId')) or (colPickMode==1 and !item.containsKey('eventId'))">
when a.id=#{item.id} then #{item.eventId}
</if>
</foreach>
</trim>
<trim prefix="eventType=(case" suffix="ELSE eventType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventType')) or (colPickMode==1 and !item.containsKey('eventType'))">
when a.id=#{item.id} then #{item.eventType}
</if>
</foreach>
</trim>
<trim prefix="implementCoding=(case" suffix="ELSE implementCoding end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('implementCoding')) or (colPickMode==1 and !item.containsKey('implementCoding'))">
when a.id=#{item.id} then #{item.implementCoding}
</if>
</foreach>
</trim>
<trim prefix="handlingItemCode=(case" suffix="ELSE handlingItemCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('handlingItemCode')) or (colPickMode==1 and !item.containsKey('handlingItemCode'))">
when a.id=#{item.id} then #{item.handlingItemCode}
</if>
</foreach>
</trim>
<trim prefix="implementName=(case" suffix="ELSE implementName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('implementName')) or (colPickMode==1 and !item.containsKey('implementName'))">
when a.id=#{item.id} then #{item.implementName}
</if>
</foreach>
</trim>
<trim prefix="eventObjectType=(case" suffix="ELSE eventObjectType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventObjectType')) or (colPickMode==1 and !item.containsKey('eventObjectType'))">
when a.id=#{item.id} then #{item.eventObjectType}
</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="ApplyMatterEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_apply_matter as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_apply_matter as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_apply_matter where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_apply_matter where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_apply_matter 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_apply_matter as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="ApplyMatterEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_apply_matter 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_apply_matter 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('applyType')">
<if test="conditionParamRef.applyType != null ">
${_conditionType_} a.applyType = #{${_conditionParam_}.applyType}
</if>
<if test="conditionParamRef.applyType == null">
${_conditionType_} a.applyType is null
</if>
</if>
<if test="conditionParamRef.containsKey('applyTypeList') and conditionParamRef.applyTypeList.size() > 0">
${_conditionType_} a.applyType in
<foreach collection="conditionParamRef.applyTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('applyTypeNotList') and conditionParamRef.applyTypeNotList.size() > 0">
${_conditionType_} a.applyType not in
<foreach collection="conditionParamRef.applyTypeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('applyTypeStart') and conditionParamRef.applyTypeStart != null">
${_conditionType_} a.applyType <![CDATA[ >= ]]> #{${_conditionParam_}.applyTypeStart}
</if>
<if test="conditionParamRef.containsKey('applyTypeEnd') and conditionParamRef.applyTypeEnd != null">
${_conditionType_} a.applyType <![CDATA[ <= ]]> #{${_conditionParam_}.applyTypeEnd}
</if>
<if test="conditionParamRef.containsKey('eventId')">
<if test="conditionParamRef.eventId != null and conditionParamRef.eventId != ''">
${_conditionType_} a.eventId like #{${_conditionParam_}.eventId}
</if>
<if test="conditionParamRef.eventId == null">
${_conditionType_} a.eventId is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventIdList') and conditionParamRef.eventIdList.size() > 0">
${_conditionType_} a.eventId in
<foreach collection="conditionParamRef.eventIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventIdNotList') and conditionParamRef.eventIdNotList.size() > 0">
${_conditionType_} a.eventId not in
<foreach collection="conditionParamRef.eventIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventType')">
<if test="conditionParamRef.eventType != null and conditionParamRef.eventType != ''">
${_conditionType_} a.eventType like #{${_conditionParam_}.eventType}
</if>
<if test="conditionParamRef.eventType == null">
${_conditionType_} a.eventType is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventTypeList') and conditionParamRef.eventTypeList.size() > 0">
${_conditionType_} a.eventType in
<foreach collection="conditionParamRef.eventTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventTypeNotList') and conditionParamRef.eventTypeNotList.size() > 0">
${_conditionType_} a.eventType not in
<foreach collection="conditionParamRef.eventTypeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementCoding')">
<if test="conditionParamRef.implementCoding != null and conditionParamRef.implementCoding != ''">
${_conditionType_} a.implementCoding like #{${_conditionParam_}.implementCoding}
</if>
<if test="conditionParamRef.implementCoding == null">
${_conditionType_} a.implementCoding is null
</if>
</if>
<if test="conditionParamRef.containsKey('implementCodingList') and conditionParamRef.implementCodingList.size() > 0">
${_conditionType_} a.implementCoding in
<foreach collection="conditionParamRef.implementCodingList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementCodingNotList') and conditionParamRef.implementCodingNotList.size() > 0">
${_conditionType_} a.implementCoding not in
<foreach collection="conditionParamRef.implementCodingNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('handlingItemCode')">
<if test="conditionParamRef.handlingItemCode != null and conditionParamRef.handlingItemCode != ''">
${_conditionType_} a.handlingItemCode like #{${_conditionParam_}.handlingItemCode}
</if>
<if test="conditionParamRef.handlingItemCode == null">
${_conditionType_} a.handlingItemCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('handlingItemCodeList') and conditionParamRef.handlingItemCodeList.size() > 0">
${_conditionType_} a.handlingItemCode in
<foreach collection="conditionParamRef.handlingItemCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('handlingItemCodeNotList') and conditionParamRef.handlingItemCodeNotList.size() > 0">
${_conditionType_} a.handlingItemCode not in
<foreach collection="conditionParamRef.handlingItemCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementName')">
<if test="conditionParamRef.implementName != null and conditionParamRef.implementName != ''">
${_conditionType_} a.implementName like #{${_conditionParam_}.implementName}
</if>
<if test="conditionParamRef.implementName == null">
${_conditionType_} a.implementName is null
</if>
</if>
<if test="conditionParamRef.containsKey('implementNameList') and conditionParamRef.implementNameList.size() > 0">
${_conditionType_} a.implementName in
<foreach collection="conditionParamRef.implementNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementNameNotList') and conditionParamRef.implementNameNotList.size() > 0">
${_conditionType_} a.implementName not in
<foreach collection="conditionParamRef.implementNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventObjectType')">
<if test="conditionParamRef.eventObjectType != null and conditionParamRef.eventObjectType != ''">
${_conditionType_} a.eventObjectType like #{${_conditionParam_}.eventObjectType}
</if>
<if test="conditionParamRef.eventObjectType == null">
${_conditionType_} a.eventObjectType is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventObjectTypeList') and conditionParamRef.eventObjectTypeList.size() > 0">
${_conditionType_} a.eventObjectType in
<foreach collection="conditionParamRef.eventObjectTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventObjectTypeNotList') and conditionParamRef.eventObjectTypeNotList.size() > 0">
${_conditionType_} a.eventObjectType not in
<foreach collection="conditionParamRef.eventObjectTypeNotList" 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
<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('applyTypeList') and conditionParamRef.applyTypeList.size() > 0">
field(a.applyType,
<foreach collection="conditionParamRef.applyTypeList" 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('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
field(a.updateUserId,
<foreach collection="conditionParamRef.updateUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
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('applyTypeList') and conditionParamRef.applyTypeList.size() > 0">
field(a.applyType,
<foreach collection="conditionParamRef.applyTypeList" 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('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
field(a.updateUserId,
<foreach collection="conditionParamRef.updateUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<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('applyType')">
a.applyType
<if test='orderCol.applyType != null and "DESC".equalsIgnoreCase(orderCol.applyType)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventId')">
a.eventId
<if test='orderCol.eventId != null and "DESC".equalsIgnoreCase(orderCol.eventId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventType')">
a.eventType
<if test='orderCol.eventType != null and "DESC".equalsIgnoreCase(orderCol.eventType)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('implementCoding')">
a.implementCoding
<if test='orderCol.implementCoding != null and "DESC".equalsIgnoreCase(orderCol.implementCoding)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('handlingItemCode')">
a.handlingItemCode
<if test='orderCol.handlingItemCode != null and "DESC".equalsIgnoreCase(orderCol.handlingItemCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('implementName')">
a.implementName
<if test='orderCol.implementName != null and "DESC".equalsIgnoreCase(orderCol.implementName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventObjectType')">
a.eventObjectType
<if test='orderCol.eventObjectType != null and "DESC".equalsIgnoreCase(orderCol.eventObjectType)'>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.matter.dao.ibatis.EventImplementationDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="EventImplementationEntity" id="EventImplementationEntity-Map">
<id property="id" column="id" />
<result property="eventId" column="eventId" />
<result property="eventType" column="eventType" />
<result property="implementCoding" column="implementCoding" />
<result property="handlingItemCode" column="handlingItemCode" />
<result property="implementName" column="implementName" />
<result property="eventObjectType" column="eventObjectType" />
<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('eventId') or colPickMode == 1 and data.containsKey('eventId')))">
a.eventId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventType') or colPickMode == 1 and data.containsKey('eventType')))">
a.eventType,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('implementCoding') or colPickMode == 1 and data.containsKey('implementCoding')))">
a.implementCoding,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('handlingItemCode') or colPickMode == 1 and data.containsKey('handlingItemCode')))">
a.handlingItemCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('implementName') or colPickMode == 1 and data.containsKey('implementName')))">
a.implementName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('eventObjectType') or colPickMode == 1 and data.containsKey('eventObjectType')))">
a.eventObjectType,
</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="EventImplementationEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_event_implementation
(eventId,eventType,implementCoding,handlingItemCode,implementName,eventObjectType,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{eventId},#{eventType},#{implementCoding},#{handlingItemCode},#{implementName},#{eventObjectType},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_event_implementation
(eventId,eventType,implementCoding,handlingItemCode,implementName,eventObjectType,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.eventId},#{item.eventType},#{item.implementCoding},#{item.handlingItemCode},#{item.implementName},#{item.eventObjectType},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_event_implementation as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('eventId')) or (colPickMode==1 and !data.containsKey('eventId'))">
a.eventId=#{data.eventId},
</if>
<if test="(colPickMode==0 and data.containsKey('eventType')) or (colPickMode==1 and !data.containsKey('eventType'))">
a.eventType=#{data.eventType},
</if>
<if test="(colPickMode==0 and data.containsKey('implementCoding')) or (colPickMode==1 and !data.containsKey('implementCoding'))">
a.implementCoding=#{data.implementCoding},
</if>
<if test="(colPickMode==0 and data.containsKey('handlingItemCode')) or (colPickMode==1 and !data.containsKey('handlingItemCode'))">
a.handlingItemCode=#{data.handlingItemCode},
</if>
<if test="(colPickMode==0 and data.containsKey('implementName')) or (colPickMode==1 and !data.containsKey('implementName'))">
a.implementName=#{data.implementName},
</if>
<if test="(colPickMode==0 and data.containsKey('eventObjectType')) or (colPickMode==1 and !data.containsKey('eventObjectType'))">
a.eventObjectType=#{data.eventObjectType},
</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_event_implementation as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="eventId=(case" suffix="ELSE eventId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventId')) or (colPickMode==1 and !item.containsKey('eventId'))">
when a.id=#{item.id} then #{item.eventId}
</if>
</foreach>
</trim>
<trim prefix="eventType=(case" suffix="ELSE eventType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventType')) or (colPickMode==1 and !item.containsKey('eventType'))">
when a.id=#{item.id} then #{item.eventType}
</if>
</foreach>
</trim>
<trim prefix="implementCoding=(case" suffix="ELSE implementCoding end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('implementCoding')) or (colPickMode==1 and !item.containsKey('implementCoding'))">
when a.id=#{item.id} then #{item.implementCoding}
</if>
</foreach>
</trim>
<trim prefix="handlingItemCode=(case" suffix="ELSE handlingItemCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('handlingItemCode')) or (colPickMode==1 and !item.containsKey('handlingItemCode'))">
when a.id=#{item.id} then #{item.handlingItemCode}
</if>
</foreach>
</trim>
<trim prefix="implementName=(case" suffix="ELSE implementName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('implementName')) or (colPickMode==1 and !item.containsKey('implementName'))">
when a.id=#{item.id} then #{item.implementName}
</if>
</foreach>
</trim>
<trim prefix="eventObjectType=(case" suffix="ELSE eventObjectType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('eventObjectType')) or (colPickMode==1 and !item.containsKey('eventObjectType'))">
when a.id=#{item.id} then #{item.eventObjectType}
</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="EventImplementationEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_event_implementation as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_event_implementation as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_event_implementation where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_event_implementation where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_event_implementation 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_event_implementation as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="EventImplementationEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_event_implementation 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_event_implementation 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('eventId')">
<if test="conditionParamRef.eventId != null and conditionParamRef.eventId != ''">
${_conditionType_} a.eventId like #{${_conditionParam_}.eventId}
</if>
<if test="conditionParamRef.eventId == null">
${_conditionType_} a.eventId is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventIdList') and conditionParamRef.eventIdList.size() > 0">
${_conditionType_} a.eventId in
<foreach collection="conditionParamRef.eventIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventIdNotList') and conditionParamRef.eventIdNotList.size() > 0">
${_conditionType_} a.eventId not in
<foreach collection="conditionParamRef.eventIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventType')">
<if test="conditionParamRef.eventType != null and conditionParamRef.eventType != ''">
${_conditionType_} a.eventType like #{${_conditionParam_}.eventType}
</if>
<if test="conditionParamRef.eventType == null">
${_conditionType_} a.eventType is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventTypeList') and conditionParamRef.eventTypeList.size() > 0">
${_conditionType_} a.eventType in
<foreach collection="conditionParamRef.eventTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventTypeNotList') and conditionParamRef.eventTypeNotList.size() > 0">
${_conditionType_} a.eventType not in
<foreach collection="conditionParamRef.eventTypeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementCoding')">
<if test="conditionParamRef.implementCoding != null and conditionParamRef.implementCoding != ''">
${_conditionType_} a.implementCoding like #{${_conditionParam_}.implementCoding}
</if>
<if test="conditionParamRef.implementCoding == null">
${_conditionType_} a.implementCoding is null
</if>
</if>
<if test="conditionParamRef.containsKey('implementCodingList') and conditionParamRef.implementCodingList.size() > 0">
${_conditionType_} a.implementCoding in
<foreach collection="conditionParamRef.implementCodingList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementCodingNotList') and conditionParamRef.implementCodingNotList.size() > 0">
${_conditionType_} a.implementCoding not in
<foreach collection="conditionParamRef.implementCodingNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('handlingItemCode')">
<if test="conditionParamRef.handlingItemCode != null and conditionParamRef.handlingItemCode != ''">
${_conditionType_} a.handlingItemCode like #{${_conditionParam_}.handlingItemCode}
</if>
<if test="conditionParamRef.handlingItemCode == null">
${_conditionType_} a.handlingItemCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('handlingItemCodeList') and conditionParamRef.handlingItemCodeList.size() > 0">
${_conditionType_} a.handlingItemCode in
<foreach collection="conditionParamRef.handlingItemCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('handlingItemCodeNotList') and conditionParamRef.handlingItemCodeNotList.size() > 0">
${_conditionType_} a.handlingItemCode not in
<foreach collection="conditionParamRef.handlingItemCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementName')">
<if test="conditionParamRef.implementName != null and conditionParamRef.implementName != ''">
${_conditionType_} a.implementName like #{${_conditionParam_}.implementName}
</if>
<if test="conditionParamRef.implementName == null">
${_conditionType_} a.implementName is null
</if>
</if>
<if test="conditionParamRef.containsKey('implementNameList') and conditionParamRef.implementNameList.size() > 0">
${_conditionType_} a.implementName in
<foreach collection="conditionParamRef.implementNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('implementNameNotList') and conditionParamRef.implementNameNotList.size() > 0">
${_conditionType_} a.implementName not in
<foreach collection="conditionParamRef.implementNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventObjectType')">
<if test="conditionParamRef.eventObjectType != null and conditionParamRef.eventObjectType != ''">
${_conditionType_} a.eventObjectType like #{${_conditionParam_}.eventObjectType}
</if>
<if test="conditionParamRef.eventObjectType == null">
${_conditionType_} a.eventObjectType is null
</if>
</if>
<if test="conditionParamRef.containsKey('eventObjectTypeList') and conditionParamRef.eventObjectTypeList.size() > 0">
${_conditionType_} a.eventObjectType in
<foreach collection="conditionParamRef.eventObjectTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('eventObjectTypeNotList') and conditionParamRef.eventObjectTypeNotList.size() > 0">
${_conditionType_} a.eventObjectType not in
<foreach collection="conditionParamRef.eventObjectTypeNotList" 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
<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('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('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
field(a.updateUserId,
<foreach collection="conditionParamRef.updateUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
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('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('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
field(a.updateUserId,
<foreach collection="conditionParamRef.updateUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<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('eventId')">
a.eventId
<if test='orderCol.eventId != null and "DESC".equalsIgnoreCase(orderCol.eventId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventType')">
a.eventType
<if test='orderCol.eventType != null and "DESC".equalsIgnoreCase(orderCol.eventType)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('implementCoding')">
a.implementCoding
<if test='orderCol.implementCoding != null and "DESC".equalsIgnoreCase(orderCol.implementCoding)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('handlingItemCode')">
a.handlingItemCode
<if test='orderCol.handlingItemCode != null and "DESC".equalsIgnoreCase(orderCol.handlingItemCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('implementName')">
a.implementName
<if test='orderCol.implementName != null and "DESC".equalsIgnoreCase(orderCol.implementName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('eventObjectType')">
a.eventObjectType
<if test='orderCol.eventObjectType != null and "DESC".equalsIgnoreCase(orderCol.eventObjectType)'>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
...@@ -51,3 +51,45 @@ INSERT INTO `mortals_xhx_menu` VALUES (null, '员工离职信息', '/staff/leave ...@@ -51,3 +51,45 @@ INSERT INTO `mortals_xhx_menu` VALUES (null, '员工离职信息', '/staff/leave
INSERT INTO `mortals_xhx_resource` VALUES (null, '员工离职信息-菜单管理-查看', '/staff/leave/list,/staff/leave/view,/staff/leave/info,/staff/leave/export,/staff/leave/exportExcel,/staff/leave/downloadTemplate,/staff/leave/download', 3, 0, NULL, NULL, NULL, 0); INSERT INTO `mortals_xhx_resource` VALUES (null, '员工离职信息-菜单管理-查看', '/staff/leave/list,/staff/leave/view,/staff/leave/info,/staff/leave/export,/staff/leave/exportExcel,/staff/leave/downloadTemplate,/staff/leave/download', 3, 0, NULL, NULL, NULL, 0);
INSERT INTO `mortals_xhx_resource` VALUES (null, '员工离职信息-菜单管理-维护', '/staff/leave/add,/staff/leave/edit,/staff/leave/delete,/staff/leave/logicDelete,/staff/leave/save,/staff/leave/importData', 3, 0, NULL, NULL, NULL, 0); INSERT INTO `mortals_xhx_resource` VALUES (null, '员工离职信息-菜单管理-维护', '/staff/leave/add,/staff/leave/edit,/staff/leave/delete,/staff/leave/logicDelete,/staff/leave/save,/staff/leave/importData', 3, 0, NULL, NULL, NULL, 0);
-- ----------------------------
-- 2024-06-20
-- 综窗事项列表表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_event_implementation`;
CREATE TABLE mortals_xhx_event_implementation(
`id` bigint(20) AUTO_INCREMENT COMMENT '序号,主键,自增长',
`eventId` varchar(128) NOT NULL COMMENT '实施清单事项ID',
`eventType` varchar(128) NOT NULL COMMENT '事项类型',
`implementCoding` varchar(128) NOT NULL COMMENT '实施编码',
`handlingItemCode` varchar(128) NOT NULL COMMENT '业务办理项编码',
`implementName` varchar(128) NOT NULL COMMENT '实施清单名称',
`eventObjectType` varchar(32) NOT NULL COMMENT '事项面向对象分类',
`createUserId` bigint(20) COMMENT '更新用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) COMMENT '更新用户',
`updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`)
,KEY `eventType` (`eventType`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='综窗事项列表';
-- ----------------------------
-- 申报事项列表表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_apply_matter`;
CREATE TABLE mortals_xhx_apply_matter(
`id` bigint(20) AUTO_INCREMENT COMMENT '序号,主键,自增长',
`applyType` tinyint(2) NOT NULL COMMENT '可申报类型',
`eventId` varchar(128) NOT NULL COMMENT '实施清单事项ID',
`eventType` varchar(128) NOT NULL COMMENT '事项类型',
`implementCoding` varchar(128) NOT NULL COMMENT '实施编码',
`handlingItemCode` varchar(128) NOT NULL COMMENT '业务办理项编码',
`implementName` varchar(128) NOT NULL COMMENT '实施清单名称',
`eventObjectType` varchar(32) NOT NULL COMMENT '事项面向对象分类',
`createUserId` bigint(20) COMMENT '更新用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) COMMENT '更新用户',
`updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`)
,KEY `eventType` (`eventType`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='申报事项列表';
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