Commit 4cad9a2a authored by wenqy's avatar wenqy

考勤模块提交

parent 56b22778
...@@ -63,4 +63,4 @@ public enum ErrorStatusEnum { ...@@ -63,4 +63,4 @@ public enum ErrorStatusEnum {
} }
return resultMap; return resultMap;
} }
} }
\ No newline at end of file
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.attendance.model; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.attendance.model;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
...@@ -28,6 +30,8 @@ public class AttendanceClassDetailEntity extends AttendanceClassDetailVo { ...@@ -28,6 +30,8 @@ public class AttendanceClassDetailEntity extends AttendanceClassDetailVo {
/** /**
* 上班打卡时间 * 上班打卡时间
*/ */
@JsonFormat(pattern = "HH:mm")
@JSONField(format = "HH:mm")
private Date goWorkDate; private Date goWorkDate;
/** /**
* 上班打卡前时间段,单位分钟 * 上班打卡前时间段,单位分钟
...@@ -40,6 +44,8 @@ public class AttendanceClassDetailEntity extends AttendanceClassDetailVo { ...@@ -40,6 +44,8 @@ public class AttendanceClassDetailEntity extends AttendanceClassDetailVo {
/** /**
* 下班打卡时间 * 下班打卡时间
*/ */
@JsonFormat(pattern = "HH:mm")
@JSONField(format = "HH:mm")
private Date offWorkDate; private Date offWorkDate;
/** /**
* 下班打卡前时间段,单位分钟 * 下班打卡前时间段,单位分钟
...@@ -237,4 +243,4 @@ public class AttendanceClassDetailEntity extends AttendanceClassDetailVo { ...@@ -237,4 +243,4 @@ public class AttendanceClassDetailEntity extends AttendanceClassDetailVo {
this.remark = ""; this.remark = "";
} }
} }
\ No newline at end of file
...@@ -8,170 +8,188 @@ import com.mortals.framework.annotation.Excel; ...@@ -8,170 +8,188 @@ import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.attendance.model.vo.AttendanceRecordDetailVo; import com.mortals.xhx.module.attendance.model.vo.AttendanceRecordDetailVo;
/** /**
* 考勤打卡记录详细信息实体对象 * 考勤打卡记录详细信息实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-07 * @date 2023-04-09
*/ */
public class AttendanceRecordDetailEntity extends AttendanceRecordDetailVo { public class AttendanceRecordDetailEntity extends AttendanceRecordDetailVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 考勤记录ID * 考勤记录ID
*/ */
private Long recordId; private Long recordId;
/** /**
* 班次ID * 班次ID
*/ */
private Long shiftsId; private Long shiftsId;
/** /**
* 班次名称 * 班次名称
*/ */
private String shiftsName; private String shiftsName;
/** /**
* 上班打卡时间 * 上班打卡时间
*/ */
private Date goWorkDate; private Date goWorkDate;
/** /**
* 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
*/ */
private Integer goWorkResult; private Integer goWorkResult;
/** /**
* 下班打卡时间 * 下班打卡时间
*/ */
private Date offWorkDate; private Date offWorkDate;
/** /**
* 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
*/ */
private Integer offWorkResult; private Integer offWorkResult;
/** /**
* 备注 * 备注
*/ */
private String remark; private String remark;
/**
* 排序字段
*/
private Integer orderNum;
public AttendanceRecordDetailEntity(){} public AttendanceRecordDetailEntity(){}
/** /**
* 获取 考勤记录ID * 获取 考勤记录ID
* @return Long * @return Long
*/ */
public Long getRecordId(){ public Long getRecordId(){
return recordId; return recordId;
} }
/** /**
* 设置 考勤记录ID * 设置 考勤记录ID
* @param recordId * @param recordId
*/ */
public void setRecordId(Long recordId){ public void setRecordId(Long recordId){
this.recordId = recordId; this.recordId = recordId;
} }
/** /**
* 获取 班次ID * 获取 班次ID
* @return Long * @return Long
*/ */
public Long getShiftsId(){ public Long getShiftsId(){
return shiftsId; return shiftsId;
} }
/** /**
* 设置 班次ID * 设置 班次ID
* @param shiftsId * @param shiftsId
*/ */
public void setShiftsId(Long shiftsId){ public void setShiftsId(Long shiftsId){
this.shiftsId = shiftsId; this.shiftsId = shiftsId;
} }
/** /**
* 获取 班次名称 * 获取 班次名称
* @return String * @return String
*/ */
public String getShiftsName(){ public String getShiftsName(){
return shiftsName; return shiftsName;
} }
/** /**
* 设置 班次名称 * 设置 班次名称
* @param shiftsName * @param shiftsName
*/ */
public void setShiftsName(String shiftsName){ public void setShiftsName(String shiftsName){
this.shiftsName = shiftsName; this.shiftsName = shiftsName;
} }
/** /**
* 获取 上班打卡时间 * 获取 上班打卡时间
* @return Date * @return Date
*/ */
public Date getGoWorkDate(){ public Date getGoWorkDate(){
return goWorkDate; return goWorkDate;
} }
/** /**
* 设置 上班打卡时间 * 设置 上班打卡时间
* @param goWorkDate * @param goWorkDate
*/ */
public void setGoWorkDate(Date goWorkDate){ public void setGoWorkDate(Date goWorkDate){
this.goWorkDate = goWorkDate; this.goWorkDate = goWorkDate;
} }
/** /**
* 获取 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return Integer * @return Integer
*/ */
public Integer getGoWorkResult(){ public Integer getGoWorkResult(){
return goWorkResult; return goWorkResult;
} }
/** /**
* 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResult * @param goWorkResult
*/ */
public void setGoWorkResult(Integer goWorkResult){ public void setGoWorkResult(Integer goWorkResult){
this.goWorkResult = goWorkResult; this.goWorkResult = goWorkResult;
} }
/** /**
* 获取 下班打卡时间 * 获取 下班打卡时间
* @return Date * @return Date
*/ */
public Date getOffWorkDate(){ public Date getOffWorkDate(){
return offWorkDate; return offWorkDate;
} }
/** /**
* 设置 下班打卡时间 * 设置 下班打卡时间
* @param offWorkDate * @param offWorkDate
*/ */
public void setOffWorkDate(Date offWorkDate){ public void setOffWorkDate(Date offWorkDate){
this.offWorkDate = offWorkDate; this.offWorkDate = offWorkDate;
} }
/** /**
* 获取 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return Integer * @return Integer
*/ */
public Integer getOffWorkResult(){ public Integer getOffWorkResult(){
return offWorkResult; return offWorkResult;
} }
/** /**
* 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResult * @param offWorkResult
*/ */
public void setOffWorkResult(Integer offWorkResult){ public void setOffWorkResult(Integer offWorkResult){
this.offWorkResult = offWorkResult; this.offWorkResult = offWorkResult;
} }
/** /**
* 获取 备注 * 获取 备注
* @return String * @return String
*/ */
public String getRemark(){ public String getRemark(){
return remark; return remark;
} }
/** /**
* 设置 备注 * 设置 备注
* @param remark * @param remark
*/ */
public void setRemark(String remark){ public void setRemark(String remark){
this.remark = remark; this.remark = remark;
} }
/**
* 获取 排序字段
* @return Integer
*/
public Integer getOrderNum(){
return orderNum;
}
/**
* 设置 排序字段
* @param orderNum
*/
public void setOrderNum(Integer orderNum){
this.orderNum = orderNum;
}
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
} }
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
...@@ -179,7 +197,7 @@ public class AttendanceRecordDetailEntity extends AttendanceRecordDetailVo { ...@@ -179,7 +197,7 @@ public class AttendanceRecordDetailEntity extends AttendanceRecordDetailVo {
if (obj instanceof AttendanceRecordDetailEntity) { if (obj instanceof AttendanceRecordDetailEntity) {
AttendanceRecordDetailEntity tmp = (AttendanceRecordDetailEntity) obj; AttendanceRecordDetailEntity tmp = (AttendanceRecordDetailEntity) obj;
if (this.getId() == tmp.getId()) { if (this.getId() == tmp.getId()) {
return true; return true;
} }
} }
return false; return false;
...@@ -195,25 +213,28 @@ public class AttendanceRecordDetailEntity extends AttendanceRecordDetailVo { ...@@ -195,25 +213,28 @@ public class AttendanceRecordDetailEntity extends AttendanceRecordDetailVo {
sb.append(",offWorkDate:").append(getOffWorkDate()); sb.append(",offWorkDate:").append(getOffWorkDate());
sb.append(",offWorkResult:").append(getOffWorkResult()); sb.append(",offWorkResult:").append(getOffWorkResult());
sb.append(",remark:").append(getRemark()); sb.append(",remark:").append(getRemark());
sb.append(",orderNum:").append(getOrderNum());
return sb.toString(); return sb.toString();
} }
public void initAttrValue(){ public void initAttrValue(){
this.recordId = null; this.recordId = null;
this.shiftsId = null;
this.shiftsId = null; this.shiftsName = "";
this.shiftsName = ""; this.goWorkDate = null;
this.goWorkDate = null; this.goWorkResult = null;
this.goWorkResult = null; this.offWorkDate = null;
this.offWorkDate = null; this.offWorkResult = null;
this.offWorkResult = null; this.remark = "";
this.remark = ""; this.orderNum = 1;
} }
} }
\ No newline at end of file
...@@ -4,11 +4,11 @@ import java.util.Date; ...@@ -4,11 +4,11 @@ import java.util.Date;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.attendance.model.AttendanceRecordDetailEntity; import com.mortals.xhx.module.attendance.model.AttendanceRecordDetailEntity;
/** /**
* 考勤打卡记录详细信息查询对象 * 考勤打卡记录详细信息查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-04-07 * @date 2023-04-09
*/ */
public class AttendanceRecordDetailQuery extends AttendanceRecordDetailEntity { public class AttendanceRecordDetailQuery extends AttendanceRecordDetailEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
private Long idStart; private Long idStart;
...@@ -149,6 +149,21 @@ public class AttendanceRecordDetailQuery extends AttendanceRecordDetailEntity { ...@@ -149,6 +149,21 @@ public class AttendanceRecordDetailQuery extends AttendanceRecordDetailEntity {
/** 结束 更新时间 */ /** 结束 更新时间 */
private String updateTimeEnd; private String updateTimeEnd;
/** 开始 排序字段 */
private Integer orderNumStart;
/** 结束 排序字段 */
private Integer orderNumEnd;
/** 增加 排序字段 */
private Integer orderNumIncrement;
/** 排序字段列表 */
private List <Integer> orderNumList;
/** 排序字段排除列表 */
private List <Integer> orderNumNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */ /** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<AttendanceRecordDetailQuery> orConditionList; private List<AttendanceRecordDetailQuery> orConditionList;
...@@ -158,1214 +173,1349 @@ public class AttendanceRecordDetailQuery extends AttendanceRecordDetailEntity { ...@@ -158,1214 +173,1349 @@ public class AttendanceRecordDetailQuery extends AttendanceRecordDetailEntity {
public AttendanceRecordDetailQuery(){} public AttendanceRecordDetailQuery(){}
/** /**
* 获取 开始 序号,主键,自增长 * 获取 开始 序号,主键,自增长
* @return idStart * @return idStart
*/ */
public Long getIdStart(){ public Long getIdStart(){
return this.idStart; return this.idStart;
} }
/** /**
* 设置 开始 序号,主键,自增长 * 设置 开始 序号,主键,自增长
* @param idStart * @param idStart
*/ */
public void setIdStart(Long idStart){ public void setIdStart(Long idStart){
this.idStart = idStart; this.idStart = idStart;
} }
/** /**
* 获取 结束 序号,主键,自增长 * 获取 结束 序号,主键,自增长
* @return $idEnd * @return $idEnd
*/ */
public Long getIdEnd(){ public Long getIdEnd(){
return this.idEnd; return this.idEnd;
} }
/** /**
* 设置 结束 序号,主键,自增长 * 设置 结束 序号,主键,自增长
* @param idEnd * @param idEnd
*/ */
public void setIdEnd(Long idEnd){ public void setIdEnd(Long idEnd){
this.idEnd = idEnd; this.idEnd = idEnd;
} }
/** /**
* 获取 增加 序号,主键,自增长 * 获取 增加 序号,主键,自增长
* @return idIncrement * @return idIncrement
*/ */
public Long getIdIncrement(){ public Long getIdIncrement(){
return this.idIncrement; return this.idIncrement;
} }
/** /**
* 设置 增加 序号,主键,自增长 * 设置 增加 序号,主键,自增长
* @param idIncrement * @param idIncrement
*/ */
public void setIdIncrement(Long idIncrement){ public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement; this.idIncrement = idIncrement;
} }
/** /**
* 获取 序号,主键,自增长 * 获取 序号,主键,自增长
* @return idList * @return idList
*/ */
public List<Long> getIdList(){ public List<Long> getIdList(){
return this.idList; return this.idList;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param idList * @param idList
*/ */
public void setIdList(List<Long> idList){ public void setIdList(List<Long> idList){
this.idList = idList; this.idList = idList;
} }
/** /**
* 获取 序号,主键,自增长 * 获取 序号,主键,自增长
* @return idNotList * @return idNotList
*/ */
public List<Long> getIdNotList(){ public List<Long> getIdNotList(){
return this.idNotList; return this.idNotList;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param idNotList * @param idNotList
*/ */
public void setIdNotList(List<Long> idNotList){ public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList; this.idNotList = idNotList;
} }
/** /**
* 获取 开始 考勤记录ID * 获取 开始 考勤记录ID
* @return recordIdStart * @return recordIdStart
*/ */
public Long getRecordIdStart(){ public Long getRecordIdStart(){
return this.recordIdStart; return this.recordIdStart;
} }
/** /**
* 设置 开始 考勤记录ID * 设置 开始 考勤记录ID
* @param recordIdStart * @param recordIdStart
*/ */
public void setRecordIdStart(Long recordIdStart){ public void setRecordIdStart(Long recordIdStart){
this.recordIdStart = recordIdStart; this.recordIdStart = recordIdStart;
} }
/** /**
* 获取 结束 考勤记录ID * 获取 结束 考勤记录ID
* @return $recordIdEnd * @return $recordIdEnd
*/ */
public Long getRecordIdEnd(){ public Long getRecordIdEnd(){
return this.recordIdEnd; return this.recordIdEnd;
} }
/** /**
* 设置 结束 考勤记录ID * 设置 结束 考勤记录ID
* @param recordIdEnd * @param recordIdEnd
*/ */
public void setRecordIdEnd(Long recordIdEnd){ public void setRecordIdEnd(Long recordIdEnd){
this.recordIdEnd = recordIdEnd; this.recordIdEnd = recordIdEnd;
} }
/** /**
* 获取 增加 考勤记录ID * 获取 增加 考勤记录ID
* @return recordIdIncrement * @return recordIdIncrement
*/ */
public Long getRecordIdIncrement(){ public Long getRecordIdIncrement(){
return this.recordIdIncrement; return this.recordIdIncrement;
} }
/** /**
* 设置 增加 考勤记录ID * 设置 增加 考勤记录ID
* @param recordIdIncrement * @param recordIdIncrement
*/ */
public void setRecordIdIncrement(Long recordIdIncrement){ public void setRecordIdIncrement(Long recordIdIncrement){
this.recordIdIncrement = recordIdIncrement; this.recordIdIncrement = recordIdIncrement;
} }
/** /**
* 获取 考勤记录ID * 获取 考勤记录ID
* @return recordIdList * @return recordIdList
*/ */
public List<Long> getRecordIdList(){ public List<Long> getRecordIdList(){
return this.recordIdList; return this.recordIdList;
} }
/** /**
* 设置 考勤记录ID * 设置 考勤记录ID
* @param recordIdList * @param recordIdList
*/ */
public void setRecordIdList(List<Long> recordIdList){ public void setRecordIdList(List<Long> recordIdList){
this.recordIdList = recordIdList; this.recordIdList = recordIdList;
} }
/** /**
* 获取 考勤记录ID * 获取 考勤记录ID
* @return recordIdNotList * @return recordIdNotList
*/ */
public List<Long> getRecordIdNotList(){ public List<Long> getRecordIdNotList(){
return this.recordIdNotList; return this.recordIdNotList;
} }
/** /**
* 设置 考勤记录ID * 设置 考勤记录ID
* @param recordIdNotList * @param recordIdNotList
*/ */
public void setRecordIdNotList(List<Long> recordIdNotList){ public void setRecordIdNotList(List<Long> recordIdNotList){
this.recordIdNotList = recordIdNotList; this.recordIdNotList = recordIdNotList;
} }
/** /**
* 获取 开始 班次ID * 获取 开始 班次ID
* @return shiftsIdStart * @return shiftsIdStart
*/ */
public Long getShiftsIdStart(){ public Long getShiftsIdStart(){
return this.shiftsIdStart; return this.shiftsIdStart;
} }
/** /**
* 设置 开始 班次ID * 设置 开始 班次ID
* @param shiftsIdStart * @param shiftsIdStart
*/ */
public void setShiftsIdStart(Long shiftsIdStart){ public void setShiftsIdStart(Long shiftsIdStart){
this.shiftsIdStart = shiftsIdStart; this.shiftsIdStart = shiftsIdStart;
} }
/** /**
* 获取 结束 班次ID * 获取 结束 班次ID
* @return $shiftsIdEnd * @return $shiftsIdEnd
*/ */
public Long getShiftsIdEnd(){ public Long getShiftsIdEnd(){
return this.shiftsIdEnd; return this.shiftsIdEnd;
} }
/** /**
* 设置 结束 班次ID * 设置 结束 班次ID
* @param shiftsIdEnd * @param shiftsIdEnd
*/ */
public void setShiftsIdEnd(Long shiftsIdEnd){ public void setShiftsIdEnd(Long shiftsIdEnd){
this.shiftsIdEnd = shiftsIdEnd; this.shiftsIdEnd = shiftsIdEnd;
} }
/** /**
* 获取 增加 班次ID * 获取 增加 班次ID
* @return shiftsIdIncrement * @return shiftsIdIncrement
*/ */
public Long getShiftsIdIncrement(){ public Long getShiftsIdIncrement(){
return this.shiftsIdIncrement; return this.shiftsIdIncrement;
} }
/** /**
* 设置 增加 班次ID * 设置 增加 班次ID
* @param shiftsIdIncrement * @param shiftsIdIncrement
*/ */
public void setShiftsIdIncrement(Long shiftsIdIncrement){ public void setShiftsIdIncrement(Long shiftsIdIncrement){
this.shiftsIdIncrement = shiftsIdIncrement; this.shiftsIdIncrement = shiftsIdIncrement;
} }
/** /**
* 获取 班次ID * 获取 班次ID
* @return shiftsIdList * @return shiftsIdList
*/ */
public List<Long> getShiftsIdList(){ public List<Long> getShiftsIdList(){
return this.shiftsIdList; return this.shiftsIdList;
} }
/** /**
* 设置 班次ID * 设置 班次ID
* @param shiftsIdList * @param shiftsIdList
*/ */
public void setShiftsIdList(List<Long> shiftsIdList){ public void setShiftsIdList(List<Long> shiftsIdList){
this.shiftsIdList = shiftsIdList; this.shiftsIdList = shiftsIdList;
} }
/** /**
* 获取 班次ID * 获取 班次ID
* @return shiftsIdNotList * @return shiftsIdNotList
*/ */
public List<Long> getShiftsIdNotList(){ public List<Long> getShiftsIdNotList(){
return this.shiftsIdNotList; return this.shiftsIdNotList;
} }
/** /**
* 设置 班次ID * 设置 班次ID
* @param shiftsIdNotList * @param shiftsIdNotList
*/ */
public void setShiftsIdNotList(List<Long> shiftsIdNotList){ public void setShiftsIdNotList(List<Long> shiftsIdNotList){
this.shiftsIdNotList = shiftsIdNotList; this.shiftsIdNotList = shiftsIdNotList;
} }
/** /**
* 获取 班次名称 * 获取 班次名称
* @return shiftsNameList * @return shiftsNameList
*/ */
public List<String> getShiftsNameList(){ public List<String> getShiftsNameList(){
return this.shiftsNameList; return this.shiftsNameList;
} }
/** /**
* 设置 班次名称 * 设置 班次名称
* @param shiftsNameList * @param shiftsNameList
*/ */
public void setShiftsNameList(List<String> shiftsNameList){ public void setShiftsNameList(List<String> shiftsNameList){
this.shiftsNameList = shiftsNameList; this.shiftsNameList = shiftsNameList;
} }
/** /**
* 获取 班次名称 * 获取 班次名称
* @return shiftsNameNotList * @return shiftsNameNotList
*/ */
public List<String> getShiftsNameNotList(){ public List<String> getShiftsNameNotList(){
return this.shiftsNameNotList; return this.shiftsNameNotList;
} }
/** /**
* 设置 班次名称 * 设置 班次名称
* @param shiftsNameNotList * @param shiftsNameNotList
*/ */
public void setShiftsNameNotList(List<String> shiftsNameNotList){ public void setShiftsNameNotList(List<String> shiftsNameNotList){
this.shiftsNameNotList = shiftsNameNotList; this.shiftsNameNotList = shiftsNameNotList;
} }
/** /**
* 获取 开始 上班打卡时间 * 获取 开始 上班打卡时间
* @return goWorkDateStart * @return goWorkDateStart
*/ */
public String getGoWorkDateStart(){ public String getGoWorkDateStart(){
return this.goWorkDateStart; return this.goWorkDateStart;
} }
/** /**
* 设置 开始 上班打卡时间 * 设置 开始 上班打卡时间
* @param goWorkDateStart * @param goWorkDateStart
*/ */
public void setGoWorkDateStart(String goWorkDateStart){ public void setGoWorkDateStart(String goWorkDateStart){
this.goWorkDateStart = goWorkDateStart; this.goWorkDateStart = goWorkDateStart;
} }
/** /**
* 获取 结束 上班打卡时间 * 获取 结束 上班打卡时间
* @return goWorkDateEnd * @return goWorkDateEnd
*/ */
public String getGoWorkDateEnd(){ public String getGoWorkDateEnd(){
return this.goWorkDateEnd; return this.goWorkDateEnd;
} }
/** /**
* 设置 结束 上班打卡时间 * 设置 结束 上班打卡时间
* @param goWorkDateEnd * @param goWorkDateEnd
*/ */
public void setGoWorkDateEnd(String goWorkDateEnd){ public void setGoWorkDateEnd(String goWorkDateEnd){
this.goWorkDateEnd = goWorkDateEnd; this.goWorkDateEnd = goWorkDateEnd;
} }
/** /**
* 获取 开始 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 开始 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return goWorkResultStart * @return goWorkResultStart
*/ */
public Integer getGoWorkResultStart(){ public Integer getGoWorkResultStart(){
return this.goWorkResultStart; return this.goWorkResultStart;
} }
/** /**
* 设置 开始 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 开始 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultStart * @param goWorkResultStart
*/ */
public void setGoWorkResultStart(Integer goWorkResultStart){ public void setGoWorkResultStart(Integer goWorkResultStart){
this.goWorkResultStart = goWorkResultStart; this.goWorkResultStart = goWorkResultStart;
} }
/** /**
* 获取 结束 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 结束 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return $goWorkResultEnd * @return $goWorkResultEnd
*/ */
public Integer getGoWorkResultEnd(){ public Integer getGoWorkResultEnd(){
return this.goWorkResultEnd; return this.goWorkResultEnd;
} }
/** /**
* 设置 结束 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 结束 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultEnd * @param goWorkResultEnd
*/ */
public void setGoWorkResultEnd(Integer goWorkResultEnd){ public void setGoWorkResultEnd(Integer goWorkResultEnd){
this.goWorkResultEnd = goWorkResultEnd; this.goWorkResultEnd = goWorkResultEnd;
} }
/** /**
* 获取 增加 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 增加 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return goWorkResultIncrement * @return goWorkResultIncrement
*/ */
public Integer getGoWorkResultIncrement(){ public Integer getGoWorkResultIncrement(){
return this.goWorkResultIncrement; return this.goWorkResultIncrement;
} }
/** /**
* 设置 增加 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 增加 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultIncrement * @param goWorkResultIncrement
*/ */
public void setGoWorkResultIncrement(Integer goWorkResultIncrement){ public void setGoWorkResultIncrement(Integer goWorkResultIncrement){
this.goWorkResultIncrement = goWorkResultIncrement; this.goWorkResultIncrement = goWorkResultIncrement;
} }
/** /**
* 获取 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return goWorkResultList * @return goWorkResultList
*/ */
public List<Integer> getGoWorkResultList(){ public List<Integer> getGoWorkResultList(){
return this.goWorkResultList; return this.goWorkResultList;
} }
/** /**
* 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultList * @param goWorkResultList
*/ */
public void setGoWorkResultList(List<Integer> goWorkResultList){ public void setGoWorkResultList(List<Integer> goWorkResultList){
this.goWorkResultList = goWorkResultList; this.goWorkResultList = goWorkResultList;
} }
/** /**
* 获取 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return goWorkResultNotList * @return goWorkResultNotList
*/ */
public List<Integer> getGoWorkResultNotList(){ public List<Integer> getGoWorkResultNotList(){
return this.goWorkResultNotList; return this.goWorkResultNotList;
} }
/** /**
* 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultNotList * @param goWorkResultNotList
*/ */
public void setGoWorkResultNotList(List<Integer> goWorkResultNotList){ public void setGoWorkResultNotList(List<Integer> goWorkResultNotList){
this.goWorkResultNotList = goWorkResultNotList; this.goWorkResultNotList = goWorkResultNotList;
} }
/** /**
* 获取 开始 下班打卡时间 * 获取 开始 下班打卡时间
* @return offWorkDateStart * @return offWorkDateStart
*/ */
public String getOffWorkDateStart(){ public String getOffWorkDateStart(){
return this.offWorkDateStart; return this.offWorkDateStart;
} }
/** /**
* 设置 开始 下班打卡时间 * 设置 开始 下班打卡时间
* @param offWorkDateStart * @param offWorkDateStart
*/ */
public void setOffWorkDateStart(String offWorkDateStart){ public void setOffWorkDateStart(String offWorkDateStart){
this.offWorkDateStart = offWorkDateStart; this.offWorkDateStart = offWorkDateStart;
} }
/** /**
* 获取 结束 下班打卡时间 * 获取 结束 下班打卡时间
* @return offWorkDateEnd * @return offWorkDateEnd
*/ */
public String getOffWorkDateEnd(){ public String getOffWorkDateEnd(){
return this.offWorkDateEnd; return this.offWorkDateEnd;
} }
/** /**
* 设置 结束 下班打卡时间 * 设置 结束 下班打卡时间
* @param offWorkDateEnd * @param offWorkDateEnd
*/ */
public void setOffWorkDateEnd(String offWorkDateEnd){ public void setOffWorkDateEnd(String offWorkDateEnd){
this.offWorkDateEnd = offWorkDateEnd; this.offWorkDateEnd = offWorkDateEnd;
} }
/** /**
* 获取 开始 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 开始 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return offWorkResultStart * @return offWorkResultStart
*/ */
public Integer getOffWorkResultStart(){ public Integer getOffWorkResultStart(){
return this.offWorkResultStart; return this.offWorkResultStart;
} }
/** /**
* 设置 开始 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 开始 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultStart * @param offWorkResultStart
*/ */
public void setOffWorkResultStart(Integer offWorkResultStart){ public void setOffWorkResultStart(Integer offWorkResultStart){
this.offWorkResultStart = offWorkResultStart; this.offWorkResultStart = offWorkResultStart;
} }
/** /**
* 获取 结束 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 结束 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return $offWorkResultEnd * @return $offWorkResultEnd
*/ */
public Integer getOffWorkResultEnd(){ public Integer getOffWorkResultEnd(){
return this.offWorkResultEnd; return this.offWorkResultEnd;
} }
/** /**
* 设置 结束 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 结束 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultEnd * @param offWorkResultEnd
*/ */
public void setOffWorkResultEnd(Integer offWorkResultEnd){ public void setOffWorkResultEnd(Integer offWorkResultEnd){
this.offWorkResultEnd = offWorkResultEnd; this.offWorkResultEnd = offWorkResultEnd;
} }
/** /**
* 获取 增加 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 增加 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return offWorkResultIncrement * @return offWorkResultIncrement
*/ */
public Integer getOffWorkResultIncrement(){ public Integer getOffWorkResultIncrement(){
return this.offWorkResultIncrement; return this.offWorkResultIncrement;
} }
/** /**
* 设置 增加 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 增加 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultIncrement * @param offWorkResultIncrement
*/ */
public void setOffWorkResultIncrement(Integer offWorkResultIncrement){ public void setOffWorkResultIncrement(Integer offWorkResultIncrement){
this.offWorkResultIncrement = offWorkResultIncrement; this.offWorkResultIncrement = offWorkResultIncrement;
} }
/** /**
* 获取 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return offWorkResultList * @return offWorkResultList
*/ */
public List<Integer> getOffWorkResultList(){ public List<Integer> getOffWorkResultList(){
return this.offWorkResultList; return this.offWorkResultList;
} }
/** /**
* 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultList * @param offWorkResultList
*/ */
public void setOffWorkResultList(List<Integer> offWorkResultList){ public void setOffWorkResultList(List<Integer> offWorkResultList){
this.offWorkResultList = offWorkResultList; this.offWorkResultList = offWorkResultList;
} }
/** /**
* 获取 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 获取 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @return offWorkResultNotList * @return offWorkResultNotList
*/ */
public List<Integer> getOffWorkResultNotList(){ public List<Integer> getOffWorkResultNotList(){
return this.offWorkResultNotList; return this.offWorkResultNotList;
} }
/** /**
* 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultNotList * @param offWorkResultNotList
*/ */
public void setOffWorkResultNotList(List<Integer> offWorkResultNotList){ public void setOffWorkResultNotList(List<Integer> offWorkResultNotList){
this.offWorkResultNotList = offWorkResultNotList; this.offWorkResultNotList = offWorkResultNotList;
} }
/** /**
* 获取 备注 * 获取 备注
* @return remarkList * @return remarkList
*/ */
public List<String> getRemarkList(){ public List<String> getRemarkList(){
return this.remarkList; return this.remarkList;
} }
/** /**
* 设置 备注 * 设置 备注
* @param remarkList * @param remarkList
*/ */
public void setRemarkList(List<String> remarkList){ public void setRemarkList(List<String> remarkList){
this.remarkList = remarkList; this.remarkList = remarkList;
} }
/** /**
* 获取 备注 * 获取 备注
* @return remarkNotList * @return remarkNotList
*/ */
public List<String> getRemarkNotList(){ public List<String> getRemarkNotList(){
return this.remarkNotList; return this.remarkNotList;
} }
/** /**
* 设置 备注 * 设置 备注
* @param remarkNotList * @param remarkNotList
*/ */
public void setRemarkNotList(List<String> remarkNotList){ public void setRemarkNotList(List<String> remarkNotList){
this.remarkNotList = remarkNotList; this.remarkNotList = remarkNotList;
} }
/** /**
* 获取 开始 创建用户 * 获取 开始 创建用户
* @return createUserIdStart * @return createUserIdStart
*/ */
public Long getCreateUserIdStart(){ public Long getCreateUserIdStart(){
return this.createUserIdStart; return this.createUserIdStart;
} }
/** /**
* 设置 开始 创建用户 * 设置 开始 创建用户
* @param createUserIdStart * @param createUserIdStart
*/ */
public void setCreateUserIdStart(Long createUserIdStart){ public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart; this.createUserIdStart = createUserIdStart;
} }
/** /**
* 获取 结束 创建用户 * 获取 结束 创建用户
* @return $createUserIdEnd * @return $createUserIdEnd
*/ */
public Long getCreateUserIdEnd(){ public Long getCreateUserIdEnd(){
return this.createUserIdEnd; return this.createUserIdEnd;
} }
/** /**
* 设置 结束 创建用户 * 设置 结束 创建用户
* @param createUserIdEnd * @param createUserIdEnd
*/ */
public void setCreateUserIdEnd(Long createUserIdEnd){ public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd; this.createUserIdEnd = createUserIdEnd;
} }
/** /**
* 获取 增加 创建用户 * 获取 增加 创建用户
* @return createUserIdIncrement * @return createUserIdIncrement
*/ */
public Long getCreateUserIdIncrement(){ public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement; return this.createUserIdIncrement;
} }
/** /**
* 设置 增加 创建用户 * 设置 增加 创建用户
* @param createUserIdIncrement * @param createUserIdIncrement
*/ */
public void setCreateUserIdIncrement(Long createUserIdIncrement){ public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement; this.createUserIdIncrement = createUserIdIncrement;
} }
/** /**
* 获取 创建用户 * 获取 创建用户
* @return createUserIdList * @return createUserIdList
*/ */
public List<Long> getCreateUserIdList(){ public List<Long> getCreateUserIdList(){
return this.createUserIdList; return this.createUserIdList;
} }
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserIdList * @param createUserIdList
*/ */
public void setCreateUserIdList(List<Long> createUserIdList){ public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList; this.createUserIdList = createUserIdList;
} }
/** /**
* 获取 创建用户 * 获取 创建用户
* @return createUserIdNotList * @return createUserIdNotList
*/ */
public List<Long> getCreateUserIdNotList(){ public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList; return this.createUserIdNotList;
} }
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserIdNotList * @param createUserIdNotList
*/ */
public void setCreateUserIdNotList(List<Long> createUserIdNotList){ public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList; this.createUserIdNotList = createUserIdNotList;
} }
/** /**
* 获取 开始 创建时间 * 获取 开始 创建时间
* @return createTimeStart * @return createTimeStart
*/ */
public String getCreateTimeStart(){ public String getCreateTimeStart(){
return this.createTimeStart; return this.createTimeStart;
} }
/** /**
* 设置 开始 创建时间 * 设置 开始 创建时间
* @param createTimeStart * @param createTimeStart
*/ */
public void setCreateTimeStart(String createTimeStart){ public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart; this.createTimeStart = createTimeStart;
} }
/** /**
* 获取 结束 创建时间 * 获取 结束 创建时间
* @return createTimeEnd * @return createTimeEnd
*/ */
public String getCreateTimeEnd(){ public String getCreateTimeEnd(){
return this.createTimeEnd; return this.createTimeEnd;
} }
/** /**
* 设置 结束 创建时间 * 设置 结束 创建时间
* @param createTimeEnd * @param createTimeEnd
*/ */
public void setCreateTimeEnd(String createTimeEnd){ public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd; this.createTimeEnd = createTimeEnd;
} }
/** /**
* 获取 开始 更新用户 * 获取 开始 更新用户
* @return updateUserIdStart * @return updateUserIdStart
*/ */
public Long getUpdateUserIdStart(){ public Long getUpdateUserIdStart(){
return this.updateUserIdStart; return this.updateUserIdStart;
} }
/** /**
* 设置 开始 更新用户 * 设置 开始 更新用户
* @param updateUserIdStart * @param updateUserIdStart
*/ */
public void setUpdateUserIdStart(Long updateUserIdStart){ public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart; this.updateUserIdStart = updateUserIdStart;
} }
/** /**
* 获取 结束 更新用户 * 获取 结束 更新用户
* @return $updateUserIdEnd * @return $updateUserIdEnd
*/ */
public Long getUpdateUserIdEnd(){ public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd; return this.updateUserIdEnd;
} }
/** /**
* 设置 结束 更新用户 * 设置 结束 更新用户
* @param updateUserIdEnd * @param updateUserIdEnd
*/ */
public void setUpdateUserIdEnd(Long updateUserIdEnd){ public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd; this.updateUserIdEnd = updateUserIdEnd;
} }
/** /**
* 获取 增加 更新用户 * 获取 增加 更新用户
* @return updateUserIdIncrement * @return updateUserIdIncrement
*/ */
public Long getUpdateUserIdIncrement(){ public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement; return this.updateUserIdIncrement;
} }
/** /**
* 设置 增加 更新用户 * 设置 增加 更新用户
* @param updateUserIdIncrement * @param updateUserIdIncrement
*/ */
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){ public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement; this.updateUserIdIncrement = updateUserIdIncrement;
} }
/** /**
* 获取 更新用户 * 获取 更新用户
* @return updateUserIdList * @return updateUserIdList
*/ */
public List<Long> getUpdateUserIdList(){ public List<Long> getUpdateUserIdList(){
return this.updateUserIdList; return this.updateUserIdList;
} }
/** /**
* 设置 更新用户 * 设置 更新用户
* @param updateUserIdList * @param updateUserIdList
*/ */
public void setUpdateUserIdList(List<Long> updateUserIdList){ public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList; this.updateUserIdList = updateUserIdList;
} }
/** /**
* 获取 更新用户 * 获取 更新用户
* @return updateUserIdNotList * @return updateUserIdNotList
*/ */
public List<Long> getUpdateUserIdNotList(){ public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList; return this.updateUserIdNotList;
} }
/** /**
* 设置 更新用户 * 设置 更新用户
* @param updateUserIdNotList * @param updateUserIdNotList
*/ */
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){ public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList; this.updateUserIdNotList = updateUserIdNotList;
} }
/** /**
* 获取 开始 更新时间 * 获取 开始 更新时间
* @return updateTimeStart * @return updateTimeStart
*/ */
public String getUpdateTimeStart(){ public String getUpdateTimeStart(){
return this.updateTimeStart; return this.updateTimeStart;
} }
/** /**
* 设置 开始 更新时间 * 设置 开始 更新时间
* @param updateTimeStart * @param updateTimeStart
*/ */
public void setUpdateTimeStart(String updateTimeStart){ public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart; this.updateTimeStart = updateTimeStart;
} }
/** /**
* 获取 结束 更新时间 * 获取 结束 更新时间
* @return updateTimeEnd * @return updateTimeEnd
*/ */
public String getUpdateTimeEnd(){ public String getUpdateTimeEnd(){
return this.updateTimeEnd; return this.updateTimeEnd;
} }
/** /**
* 设置 结束 更新时间 * 设置 结束 更新时间
* @param updateTimeEnd * @param updateTimeEnd
*/ */
public void setUpdateTimeEnd(String updateTimeEnd){ public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd; this.updateTimeEnd = updateTimeEnd;
} }
/** /**
* 设置 序号,主键,自增长 * 获取 开始 排序字段
* @param id * @return orderNumStart
*/ */
public Integer getOrderNumStart(){
return this.orderNumStart;
}
/**
* 设置 开始 排序字段
* @param orderNumStart
*/
public void setOrderNumStart(Integer orderNumStart){
this.orderNumStart = orderNumStart;
}
/**
* 获取 结束 排序字段
* @return $orderNumEnd
*/
public Integer getOrderNumEnd(){
return this.orderNumEnd;
}
/**
* 设置 结束 排序字段
* @param orderNumEnd
*/
public void setOrderNumEnd(Integer orderNumEnd){
this.orderNumEnd = orderNumEnd;
}
/**
* 获取 增加 排序字段
* @return orderNumIncrement
*/
public Integer getOrderNumIncrement(){
return this.orderNumIncrement;
}
/**
* 设置 增加 排序字段
* @param orderNumIncrement
*/
public void setOrderNumIncrement(Integer orderNumIncrement){
this.orderNumIncrement = orderNumIncrement;
}
/**
* 获取 排序字段
* @return orderNumList
*/
public List<Integer> getOrderNumList(){
return this.orderNumList;
}
/**
* 设置 排序字段
* @param orderNumList
*/
public void setOrderNumList(List<Integer> orderNumList){
this.orderNumList = orderNumList;
}
/**
* 获取 排序字段
* @return orderNumNotList
*/
public List<Integer> getOrderNumNotList(){
return this.orderNumNotList;
}
/**
* 设置 排序字段
* @param orderNumNotList
*/
public void setOrderNumNotList(List<Integer> orderNumNotList){
this.orderNumNotList = orderNumNotList;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public AttendanceRecordDetailQuery id(Long id){ public AttendanceRecordDetailQuery id(Long id){
setId(id); setId(id);
return this; return this;
} }
/** /**
* 设置 开始 序号,主键,自增长 * 设置 开始 序号,主键,自增长
* @param idStart * @param idStart
*/ */
public AttendanceRecordDetailQuery idStart(Long idStart){ public AttendanceRecordDetailQuery idStart(Long idStart){
this.idStart = idStart; this.idStart = idStart;
return this; return this;
} }
/** /**
* 设置 结束 序号,主键,自增长 * 设置 结束 序号,主键,自增长
* @param idEnd * @param idEnd
*/ */
public AttendanceRecordDetailQuery idEnd(Long idEnd){ public AttendanceRecordDetailQuery idEnd(Long idEnd){
this.idEnd = idEnd; this.idEnd = idEnd;
return this; return this;
} }
/** /**
* 设置 增加 序号,主键,自增长 * 设置 增加 序号,主键,自增长
* @param idIncrement * @param idIncrement
*/ */
public AttendanceRecordDetailQuery idIncrement(Long idIncrement){ public AttendanceRecordDetailQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement; this.idIncrement = idIncrement;
return this; return this;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param idList * @param idList
*/ */
public AttendanceRecordDetailQuery idList(List<Long> idList){ public AttendanceRecordDetailQuery idList(List<Long> idList){
this.idList = idList; this.idList = idList;
return this; return this;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param idNotList * @param idNotList
*/ */
public AttendanceRecordDetailQuery idNotList(List<Long> idNotList){ public AttendanceRecordDetailQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList; this.idNotList = idNotList;
return this; return this;
} }
/** /**
* 设置 考勤记录ID * 设置 考勤记录ID
* @param recordId * @param recordId
*/ */
public AttendanceRecordDetailQuery recordId(Long recordId){ public AttendanceRecordDetailQuery recordId(Long recordId){
setRecordId(recordId); setRecordId(recordId);
return this; return this;
} }
/** /**
* 设置 开始 考勤记录ID * 设置 开始 考勤记录ID
* @param recordIdStart * @param recordIdStart
*/ */
public AttendanceRecordDetailQuery recordIdStart(Long recordIdStart){ public AttendanceRecordDetailQuery recordIdStart(Long recordIdStart){
this.recordIdStart = recordIdStart; this.recordIdStart = recordIdStart;
return this; return this;
} }
/** /**
* 设置 结束 考勤记录ID * 设置 结束 考勤记录ID
* @param recordIdEnd * @param recordIdEnd
*/ */
public AttendanceRecordDetailQuery recordIdEnd(Long recordIdEnd){ public AttendanceRecordDetailQuery recordIdEnd(Long recordIdEnd){
this.recordIdEnd = recordIdEnd; this.recordIdEnd = recordIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 考勤记录ID * 设置 增加 考勤记录ID
* @param recordIdIncrement * @param recordIdIncrement
*/ */
public AttendanceRecordDetailQuery recordIdIncrement(Long recordIdIncrement){ public AttendanceRecordDetailQuery recordIdIncrement(Long recordIdIncrement){
this.recordIdIncrement = recordIdIncrement; this.recordIdIncrement = recordIdIncrement;
return this; return this;
} }
/** /**
* 设置 考勤记录ID * 设置 考勤记录ID
* @param recordIdList * @param recordIdList
*/ */
public AttendanceRecordDetailQuery recordIdList(List<Long> recordIdList){ public AttendanceRecordDetailQuery recordIdList(List<Long> recordIdList){
this.recordIdList = recordIdList; this.recordIdList = recordIdList;
return this; return this;
} }
/** /**
* 设置 考勤记录ID * 设置 考勤记录ID
* @param recordIdNotList * @param recordIdNotList
*/ */
public AttendanceRecordDetailQuery recordIdNotList(List<Long> recordIdNotList){ public AttendanceRecordDetailQuery recordIdNotList(List<Long> recordIdNotList){
this.recordIdNotList = recordIdNotList; this.recordIdNotList = recordIdNotList;
return this; return this;
} }
/** /**
* 设置 班次ID * 设置 班次ID
* @param shiftsId * @param shiftsId
*/ */
public AttendanceRecordDetailQuery shiftsId(Long shiftsId){ public AttendanceRecordDetailQuery shiftsId(Long shiftsId){
setShiftsId(shiftsId); setShiftsId(shiftsId);
return this; return this;
} }
/** /**
* 设置 开始 班次ID * 设置 开始 班次ID
* @param shiftsIdStart * @param shiftsIdStart
*/ */
public AttendanceRecordDetailQuery shiftsIdStart(Long shiftsIdStart){ public AttendanceRecordDetailQuery shiftsIdStart(Long shiftsIdStart){
this.shiftsIdStart = shiftsIdStart; this.shiftsIdStart = shiftsIdStart;
return this; return this;
} }
/** /**
* 设置 结束 班次ID * 设置 结束 班次ID
* @param shiftsIdEnd * @param shiftsIdEnd
*/ */
public AttendanceRecordDetailQuery shiftsIdEnd(Long shiftsIdEnd){ public AttendanceRecordDetailQuery shiftsIdEnd(Long shiftsIdEnd){
this.shiftsIdEnd = shiftsIdEnd; this.shiftsIdEnd = shiftsIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 班次ID * 设置 增加 班次ID
* @param shiftsIdIncrement * @param shiftsIdIncrement
*/ */
public AttendanceRecordDetailQuery shiftsIdIncrement(Long shiftsIdIncrement){ public AttendanceRecordDetailQuery shiftsIdIncrement(Long shiftsIdIncrement){
this.shiftsIdIncrement = shiftsIdIncrement; this.shiftsIdIncrement = shiftsIdIncrement;
return this; return this;
} }
/** /**
* 设置 班次ID * 设置 班次ID
* @param shiftsIdList * @param shiftsIdList
*/ */
public AttendanceRecordDetailQuery shiftsIdList(List<Long> shiftsIdList){ public AttendanceRecordDetailQuery shiftsIdList(List<Long> shiftsIdList){
this.shiftsIdList = shiftsIdList; this.shiftsIdList = shiftsIdList;
return this; return this;
} }
/** /**
* 设置 班次ID * 设置 班次ID
* @param shiftsIdNotList * @param shiftsIdNotList
*/ */
public AttendanceRecordDetailQuery shiftsIdNotList(List<Long> shiftsIdNotList){ public AttendanceRecordDetailQuery shiftsIdNotList(List<Long> shiftsIdNotList){
this.shiftsIdNotList = shiftsIdNotList; this.shiftsIdNotList = shiftsIdNotList;
return this; return this;
} }
/** /**
* 设置 班次名称 * 设置 班次名称
* @param shiftsName * @param shiftsName
*/ */
public AttendanceRecordDetailQuery shiftsName(String shiftsName){ public AttendanceRecordDetailQuery shiftsName(String shiftsName){
setShiftsName(shiftsName); setShiftsName(shiftsName);
return this; return this;
} }
/** /**
* 设置 班次名称 * 设置 班次名称
* @param shiftsNameList * @param shiftsNameList
*/ */
public AttendanceRecordDetailQuery shiftsNameList(List<String> shiftsNameList){ public AttendanceRecordDetailQuery shiftsNameList(List<String> shiftsNameList){
this.shiftsNameList = shiftsNameList; this.shiftsNameList = shiftsNameList;
return this; return this;
} }
/** /**
* 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResult * @param goWorkResult
*/ */
public AttendanceRecordDetailQuery goWorkResult(Integer goWorkResult){ public AttendanceRecordDetailQuery goWorkResult(Integer goWorkResult){
setGoWorkResult(goWorkResult); setGoWorkResult(goWorkResult);
return this; return this;
} }
/** /**
* 设置 开始 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 开始 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultStart * @param goWorkResultStart
*/ */
public AttendanceRecordDetailQuery goWorkResultStart(Integer goWorkResultStart){ public AttendanceRecordDetailQuery goWorkResultStart(Integer goWorkResultStart){
this.goWorkResultStart = goWorkResultStart; this.goWorkResultStart = goWorkResultStart;
return this; return this;
} }
/** /**
* 设置 结束 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 结束 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultEnd * @param goWorkResultEnd
*/ */
public AttendanceRecordDetailQuery goWorkResultEnd(Integer goWorkResultEnd){ public AttendanceRecordDetailQuery goWorkResultEnd(Integer goWorkResultEnd){
this.goWorkResultEnd = goWorkResultEnd; this.goWorkResultEnd = goWorkResultEnd;
return this; return this;
} }
/** /**
* 设置 增加 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 增加 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultIncrement * @param goWorkResultIncrement
*/ */
public AttendanceRecordDetailQuery goWorkResultIncrement(Integer goWorkResultIncrement){ public AttendanceRecordDetailQuery goWorkResultIncrement(Integer goWorkResultIncrement){
this.goWorkResultIncrement = goWorkResultIncrement; this.goWorkResultIncrement = goWorkResultIncrement;
return this; return this;
} }
/** /**
* 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultList * @param goWorkResultList
*/ */
public AttendanceRecordDetailQuery goWorkResultList(List<Integer> goWorkResultList){ public AttendanceRecordDetailQuery goWorkResultList(List<Integer> goWorkResultList){
this.goWorkResultList = goWorkResultList; this.goWorkResultList = goWorkResultList;
return this; return this;
} }
/** /**
* 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 上班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param goWorkResultNotList * @param goWorkResultNotList
*/ */
public AttendanceRecordDetailQuery goWorkResultNotList(List<Integer> goWorkResultNotList){ public AttendanceRecordDetailQuery goWorkResultNotList(List<Integer> goWorkResultNotList){
this.goWorkResultNotList = goWorkResultNotList; this.goWorkResultNotList = goWorkResultNotList;
return this; return this;
} }
/** /**
* 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResult * @param offWorkResult
*/ */
public AttendanceRecordDetailQuery offWorkResult(Integer offWorkResult){ public AttendanceRecordDetailQuery offWorkResult(Integer offWorkResult){
setOffWorkResult(offWorkResult); setOffWorkResult(offWorkResult);
return this; return this;
} }
/** /**
* 设置 开始 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 开始 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultStart * @param offWorkResultStart
*/ */
public AttendanceRecordDetailQuery offWorkResultStart(Integer offWorkResultStart){ public AttendanceRecordDetailQuery offWorkResultStart(Integer offWorkResultStart){
this.offWorkResultStart = offWorkResultStart; this.offWorkResultStart = offWorkResultStart;
return this; return this;
} }
/** /**
* 设置 结束 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 结束 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultEnd * @param offWorkResultEnd
*/ */
public AttendanceRecordDetailQuery offWorkResultEnd(Integer offWorkResultEnd){ public AttendanceRecordDetailQuery offWorkResultEnd(Integer offWorkResultEnd){
this.offWorkResultEnd = offWorkResultEnd; this.offWorkResultEnd = offWorkResultEnd;
return this; return this;
} }
/** /**
* 设置 增加 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 增加 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultIncrement * @param offWorkResultIncrement
*/ */
public AttendanceRecordDetailQuery offWorkResultIncrement(Integer offWorkResultIncrement){ public AttendanceRecordDetailQuery offWorkResultIncrement(Integer offWorkResultIncrement){
this.offWorkResultIncrement = offWorkResultIncrement; this.offWorkResultIncrement = offWorkResultIncrement;
return this; return this;
} }
/** /**
* 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultList * @param offWorkResultList
*/ */
public AttendanceRecordDetailQuery offWorkResultList(List<Integer> offWorkResultList){ public AttendanceRecordDetailQuery offWorkResultList(List<Integer> offWorkResultList){
this.offWorkResultList = offWorkResultList; this.offWorkResultList = offWorkResultList;
return this; return this;
} }
/** /**
* 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退) * 设置 下班打卡结果(1.正常,2.请假,3.缺卡,4.迟到,5.早退)
* @param offWorkResultNotList * @param offWorkResultNotList
*/ */
public AttendanceRecordDetailQuery offWorkResultNotList(List<Integer> offWorkResultNotList){ public AttendanceRecordDetailQuery offWorkResultNotList(List<Integer> offWorkResultNotList){
this.offWorkResultNotList = offWorkResultNotList; this.offWorkResultNotList = offWorkResultNotList;
return this; return this;
} }
/** /**
* 设置 备注 * 设置 备注
* @param remark * @param remark
*/ */
public AttendanceRecordDetailQuery remark(String remark){ public AttendanceRecordDetailQuery remark(String remark){
setRemark(remark); setRemark(remark);
return this; return this;
} }
/** /**
* 设置 备注 * 设置 备注
* @param remarkList * @param remarkList
*/ */
public AttendanceRecordDetailQuery remarkList(List<String> remarkList){ public AttendanceRecordDetailQuery remarkList(List<String> remarkList){
this.remarkList = remarkList; this.remarkList = remarkList;
return this; return this;
} }
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserId * @param createUserId
*/ */
public AttendanceRecordDetailQuery createUserId(Long createUserId){ public AttendanceRecordDetailQuery createUserId(Long createUserId){
setCreateUserId(createUserId); setCreateUserId(createUserId);
return this; return this;
} }
/** /**
* 设置 开始 创建用户 * 设置 开始 创建用户
* @param createUserIdStart * @param createUserIdStart
*/ */
public AttendanceRecordDetailQuery createUserIdStart(Long createUserIdStart){ public AttendanceRecordDetailQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart; this.createUserIdStart = createUserIdStart;
return this; return this;
} }
/** /**
* 设置 结束 创建用户 * 设置 结束 创建用户
* @param createUserIdEnd * @param createUserIdEnd
*/ */
public AttendanceRecordDetailQuery createUserIdEnd(Long createUserIdEnd){ public AttendanceRecordDetailQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd; this.createUserIdEnd = createUserIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 创建用户 * 设置 增加 创建用户
* @param createUserIdIncrement * @param createUserIdIncrement
*/ */
public AttendanceRecordDetailQuery createUserIdIncrement(Long createUserIdIncrement){ public AttendanceRecordDetailQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement; this.createUserIdIncrement = createUserIdIncrement;
return this; return this;
} }
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserIdList * @param createUserIdList
*/ */
public AttendanceRecordDetailQuery createUserIdList(List<Long> createUserIdList){ public AttendanceRecordDetailQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList; this.createUserIdList = createUserIdList;
return this; return this;
} }
/** /**
* 设置 创建用户 * 设置 创建用户
* @param createUserIdNotList * @param createUserIdNotList
*/ */
public AttendanceRecordDetailQuery createUserIdNotList(List<Long> createUserIdNotList){ public AttendanceRecordDetailQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList; this.createUserIdNotList = createUserIdNotList;
return this; return this;
} }
/** /**
* 设置 更新用户 * 设置 更新用户
* @param updateUserId * @param updateUserId
*/ */
public AttendanceRecordDetailQuery updateUserId(Long updateUserId){ public AttendanceRecordDetailQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId); setUpdateUserId(updateUserId);
return this; return this;
} }
/** /**
* 设置 开始 更新用户 * 设置 开始 更新用户
* @param updateUserIdStart * @param updateUserIdStart
*/ */
public AttendanceRecordDetailQuery updateUserIdStart(Long updateUserIdStart){ public AttendanceRecordDetailQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart; this.updateUserIdStart = updateUserIdStart;
return this; return this;
} }
/** /**
* 设置 结束 更新用户 * 设置 结束 更新用户
* @param updateUserIdEnd * @param updateUserIdEnd
*/ */
public AttendanceRecordDetailQuery updateUserIdEnd(Long updateUserIdEnd){ public AttendanceRecordDetailQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd; this.updateUserIdEnd = updateUserIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 更新用户 * 设置 增加 更新用户
* @param updateUserIdIncrement * @param updateUserIdIncrement
*/ */
public AttendanceRecordDetailQuery updateUserIdIncrement(Long updateUserIdIncrement){ public AttendanceRecordDetailQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement; this.updateUserIdIncrement = updateUserIdIncrement;
return this; return this;
} }
/** /**
* 设置 更新用户 * 设置 更新用户
* @param updateUserIdList * @param updateUserIdList
*/ */
public AttendanceRecordDetailQuery updateUserIdList(List<Long> updateUserIdList){ public AttendanceRecordDetailQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList; this.updateUserIdList = updateUserIdList;
return this; return this;
} }
/** /**
* 设置 更新用户 * 设置 更新用户
* @param updateUserIdNotList * @param updateUserIdNotList
*/ */
public AttendanceRecordDetailQuery updateUserIdNotList(List<Long> updateUserIdNotList){ public AttendanceRecordDetailQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList; this.updateUserIdNotList = updateUserIdNotList;
return this; return this;
} }
/**
* 设置 排序字段
* @param orderNum
*/
public AttendanceRecordDetailQuery orderNum(Integer orderNum){
setOrderNum(orderNum);
return this;
}
/**
* 设置 开始 排序字段
* @param orderNumStart
*/
public AttendanceRecordDetailQuery orderNumStart(Integer orderNumStart){
this.orderNumStart = orderNumStart;
return this;
}
/**
* 设置 结束 排序字段
* @param orderNumEnd
*/
public AttendanceRecordDetailQuery orderNumEnd(Integer orderNumEnd){
this.orderNumEnd = orderNumEnd;
return this;
}
/**
* 设置 增加 排序字段
* @param orderNumIncrement
*/
public AttendanceRecordDetailQuery orderNumIncrement(Integer orderNumIncrement){
this.orderNumIncrement = orderNumIncrement;
return this;
}
/**
* 设置 排序字段
* @param orderNumList
*/
public AttendanceRecordDetailQuery orderNumList(List<Integer> orderNumList){
this.orderNumList = orderNumList;
return this;
}
/**
* 设置 排序字段
* @param orderNumNotList
*/
public AttendanceRecordDetailQuery orderNumNotList(List<Integer> orderNumNotList){
this.orderNumNotList = orderNumNotList;
return this;
}
/** /**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) * 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList * @return orConditionList
*/ */
public List<AttendanceRecordDetailQuery> getOrConditionList(){ public List<AttendanceRecordDetailQuery> getOrConditionList(){
return this.orConditionList; return this.orConditionList;
} }
/** /**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) * 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList * @param orConditionList
*/ */
public void setOrConditionList(List<AttendanceRecordDetailQuery> orConditionList){ public void setOrConditionList(List<AttendanceRecordDetailQuery> orConditionList){
this.orConditionList = orConditionList; this.orConditionList = orConditionList;
} }
/** /**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) * 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList * @return andConditionList
*/ */
public List<AttendanceRecordDetailQuery> getAndConditionList(){ public List<AttendanceRecordDetailQuery> getAndConditionList(){
return this.andConditionList; return this.andConditionList;
} }
/** /**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) * 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList * @param andConditionList
*/ */
public void setAndConditionList(List<AttendanceRecordDetailQuery> andConditionList){ public void setAndConditionList(List<AttendanceRecordDetailQuery> andConditionList){
this.andConditionList = andConditionList; this.andConditionList = andConditionList;
} }
} }
\ No newline at end of file
...@@ -24,7 +24,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo { ...@@ -24,7 +24,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
/** /**
* 员工姓名 * 员工姓名
*/ */
@Excel(name = "员工姓名") @Excel(name = "姓名")
private String staffName; private String staffName;
/** /**
* 工号 * 工号
...@@ -70,7 +70,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo { ...@@ -70,7 +70,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
/** /**
* 考勤日期 * 考勤日期
*/ */
@Excel(name = "考勤日期", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "考勤时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date attendanceDate; private Date attendanceDate;
/** /**
* 考勤点名称 * 考勤点名称
...@@ -372,4 +372,4 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo { ...@@ -372,4 +372,4 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
this.remark = ""; this.remark = "";
} }
} }
\ No newline at end of file
package com.mortals.xhx.module.attendance.model.vo; package com.mortals.xhx.module.attendance.model.vo;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.attendance.model.AttendanceClassDetailEntity; import com.mortals.xhx.module.attendance.model.AttendanceClassDetailEntity;
import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -9,6 +11,16 @@ import java.util.List; ...@@ -9,6 +11,16 @@ import java.util.List;
* @author zxfei * @author zxfei
* @date 2023-04-08 * @date 2023-04-08
*/ */
@Data
public class AttendanceClassDetailVo extends BaseEntityLong { public class AttendanceClassDetailVo extends BaseEntityLong {
} //2023-04-01
\ No newline at end of file /** 开始 上班打卡时间 */
private String goWorkDateStart;
//2023-04-02
/** 结束 上班打卡时间 */
private String goWorkDateEnd;
}
package com.mortals.xhx.module.attendance.model.vo; package com.mortals.xhx.module.attendance.model.vo;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.attendance.model.AttendanceGroupEntity; import com.mortals.xhx.module.attendance.model.AttendanceGroupEntity;
import com.mortals.xhx.module.attendance.model.AttendanceGroupFixedworkEntity;
import com.mortals.xhx.module.attendance.model.AttendanceGroupFixedworkSpecialEntity;
import com.mortals.xhx.module.attendance.model.AttendanceGroupResponsibleEntity;
import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -9,6 +14,19 @@ import java.util.List; ...@@ -9,6 +14,19 @@ import java.util.List;
* @author zxfei * @author zxfei
* @date 2023-04-08 * @date 2023-04-08
*/ */
@Data
public class AttendanceGroupVo extends BaseEntityLong { public class AttendanceGroupVo extends BaseEntityLong {
} /**
\ No newline at end of file * 考勤组班次实体类
*/
private AttendanceGroupFixedworkEntity attendanceGroupFixedworkEntity;
/**
* 考勤组固定班次特殊日期配置
*/
private List<AttendanceGroupFixedworkSpecialEntity> fixedworkSpecial;
private AttendanceGroupResponsibleEntity groupResponsibleEntity;
}
package com.mortals.xhx.module.attendance.model.vo; package com.mortals.xhx.module.attendance.model.vo;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.attendance.model.AttendanceRecordHikEntity; import com.mortals.xhx.module.attendance.model.AttendanceRecordHikEntity;
import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -9,6 +12,10 @@ import java.util.List; ...@@ -9,6 +12,10 @@ import java.util.List;
* @author zxfei * @author zxfei
* @date 2023-04-08 * @date 2023-04-08
*/ */
@Data
public class AttendanceRecordHikVo extends BaseEntityLong { public class AttendanceRecordHikVo extends BaseEntityLong {
} @Excel(name = "所属组织")
\ No newline at end of file private String orgName;
}
package com.mortals.xhx.module.attendance.model.vo; package com.mortals.xhx.module.attendance.model.vo;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.attendance.model.AttendanceRecordDetailEntity;
import com.mortals.xhx.module.attendance.model.AttendanceRecordEntity; import com.mortals.xhx.module.attendance.model.AttendanceRecordEntity;
import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -9,6 +12,11 @@ import java.util.List; ...@@ -9,6 +12,11 @@ import java.util.List;
* @author zxfei * @author zxfei
* @date 2023-04-07 * @date 2023-04-07
*/ */
@Data
public class AttendanceRecordVo extends BaseEntityLong { public class AttendanceRecordVo extends BaseEntityLong {
} private List<AttendanceGroupFixedworkSpecialVo> list;
\ No newline at end of file
private AttendanceRecordDetailEntity attendanceRecordDetailEntity;
}
package com.mortals.xhx.module.attendance.service.impl; package com.mortals.xhx.module.attendance.service.impl;
import com.mortals.framework.model.PageInfo;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -14,6 +15,7 @@ import org.springframework.util.ObjectUtils; ...@@ -14,6 +15,7 @@ import org.springframework.util.ObjectUtils;
import java.util.Date; import java.util.Date;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* AttendanceRecordService * AttendanceRecordService
...@@ -26,7 +28,23 @@ import java.util.List; ...@@ -26,7 +28,23 @@ import java.util.List;
public class AttendanceRecordServiceImpl extends AbstractCRUDServiceImpl<AttendanceRecordDao, AttendanceRecordEntity, Long> implements AttendanceRecordService { public class AttendanceRecordServiceImpl extends AbstractCRUDServiceImpl<AttendanceRecordDao, AttendanceRecordEntity, Long> implements AttendanceRecordService {
@Autowired @Autowired
private AttendanceRecordDetailService attendanceRecordDetailService; private AttendanceRecordDetailService attendanceRecordDetailService;
@Override
protected void findAfter(AttendanceRecordEntity params, PageInfo pageInfo, Context context, List<AttendanceRecordEntity> list) throws AppException {
list.stream().map(item->{
//chax
List<AttendanceRecordDetailEntity> attendanceRecordDetailEntities = attendanceRecordDetailService.find(new AttendanceRecordDetailQuery().recordId(item.getId()));
item.setAttendanceRecordDetailList(attendanceRecordDetailEntities);
return item;
}).collect(Collectors.toList());
super.findAfter(params, pageInfo, context, list);
}
@Override @Override
protected void saveAfter(AttendanceRecordEntity entity, Context context) throws AppException { protected void saveAfter(AttendanceRecordEntity entity, Context context) throws AppException {
if(!ObjectUtils.isEmpty(entity.getAttendanceRecordDetailList())){ if(!ObjectUtils.isEmpty(entity.getAttendanceRecordDetailList())){
...@@ -66,4 +84,4 @@ public class AttendanceRecordServiceImpl extends AbstractCRUDServiceImpl<Attenda ...@@ -66,4 +84,4 @@ public class AttendanceRecordServiceImpl extends AbstractCRUDServiceImpl<Attenda
attendanceRecordDetailService.removeList(attendanceRecordDetaillist,context); attendanceRecordDetailService.removeList(attendanceRecordDetaillist,context);
super.removeAfter(ids, context, result); super.removeAfter(ids, context, result);
} }
} }
\ No newline at end of file
package com.mortals.xhx.module.attendance.web; package com.mortals.xhx.module.attendance.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.attendance.model.AttendanceClassDetailEntity;
import com.mortals.xhx.module.workman.model.WorkmanEntity;
import com.mortals.xhx.module.workman.model.WorkmanQuery;
import com.mortals.xhx.module.workman.service.WorkmanService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -13,12 +18,10 @@ import com.mortals.xhx.module.attendance.model.AttendanceClassEntity; ...@@ -13,12 +18,10 @@ import com.mortals.xhx.module.attendance.model.AttendanceClassEntity;
import com.mortals.xhx.module.attendance.service.AttendanceClassService; import com.mortals.xhx.module.attendance.service.AttendanceClassService;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils; import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List; import java.util.*;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
...@@ -35,6 +38,8 @@ public class AttendanceClassController extends BaseCRUDJsonBodyMappingController ...@@ -35,6 +38,8 @@ public class AttendanceClassController extends BaseCRUDJsonBodyMappingController
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private WorkmanService workmanService;
public AttendanceClassController(){ public AttendanceClassController(){
super.setModuleDesc( "考勤班次信息"); super.setModuleDesc( "考勤班次信息");
...@@ -42,8 +47,13 @@ public class AttendanceClassController extends BaseCRUDJsonBodyMappingController ...@@ -42,8 +47,13 @@ public class AttendanceClassController extends BaseCRUDJsonBodyMappingController
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model,"workManId",workmanService.find(new WorkmanQuery()).stream().collect(Collectors.toMap(x->x.getId().toString(),y->y.getName(),(o,n)->n)));
super.init(model, context); super.init(model, context);
} }
@Override
} protected void saveBefore(AttendanceClassEntity entity, Map<String, Object> model, Context context) throws AppException {
\ No newline at end of file entity.setClassResponsiblePersonName(workmanService.selectOne(new WorkmanQuery().id(entity.getClassResponsiblePersonId())).getName());
super.saveBefore(entity, model, context);
}
}
...@@ -46,4 +46,4 @@ public class AttendanceClassDetailController extends BaseCRUDJsonBodyMappingCont ...@@ -46,4 +46,4 @@ public class AttendanceClassDetailController extends BaseCRUDJsonBodyMappingCont
} }
} }
\ No newline at end of file
package com.mortals.xhx.module.attendance.web; package com.mortals.xhx.module.attendance.web;
import cn.hutool.core.stream.CollectorUtil;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.attendance.model.*;
import com.mortals.xhx.module.attendance.service.*;
import com.mortals.xhx.module.dept.model.DeptEntity;
import com.mortals.xhx.module.dept.model.DeptQuery;
import com.mortals.xhx.module.dept.model.DeptTreeSelect;
import com.mortals.xhx.module.dept.service.DeptService;
import com.mortals.xhx.module.workman.model.WorkmanQuery;
import com.mortals.xhx.module.workman.service.WorkmanService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context; 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.attendance.model.AttendanceGroupEntity;
import com.mortals.xhx.module.attendance.service.AttendanceGroupService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; 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.*;
/** /**
* *
* 考勤组信息 * 考勤组信息
...@@ -35,6 +33,18 @@ public class AttendanceGroupController extends BaseCRUDJsonBodyMappingController ...@@ -35,6 +33,18 @@ public class AttendanceGroupController extends BaseCRUDJsonBodyMappingController
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private WorkmanService workmanService;
@Autowired
private AttendanceClassService attendanceClassService;
@Autowired
private DeptService deptService;
@Autowired
private AttendanceGroupFixedworkService attendanceGroupFixedworkService;
@Autowired
private AttendanceGroupFixedworkSpecialService specialService;
@Autowired
private AttendanceGroupResponsibleService groupResponsibleService;
public AttendanceGroupController(){ public AttendanceGroupController(){
super.setModuleDesc( "考勤组信息"); super.setModuleDesc( "考勤组信息");
...@@ -44,8 +54,31 @@ public class AttendanceGroupController extends BaseCRUDJsonBodyMappingController ...@@ -44,8 +54,31 @@ public class AttendanceGroupController extends BaseCRUDJsonBodyMappingController
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "type", paramService.getParamBySecondOrganize("AttendanceGroup","type")); this.addDict(model, "type", paramService.getParamBySecondOrganize("AttendanceGroup","type"));
this.addDict(model, "attendanceType", paramService.getParamBySecondOrganize("AttendanceGroup","attendanceType")); this.addDict(model, "attendanceType", paramService.getParamBySecondOrganize("AttendanceGroup","attendanceType"));
List<DeptEntity> list = deptService.find(new DeptQuery());
List<DeptTreeSelect> treeSelects = deptService.buildDeptTreeSelect(list);
this.addDict(model,"deptId",treeSelects);
List<AttendanceClassEntity> attendanceClassEntities = attendanceClassService.find(new AttendanceClassQuery());
this.addDict(model,"classId",attendanceClassEntities);
this.addDict(model,"workMan",workmanService.find(new WorkmanQuery()).stream().collect(Collectors.toMap(x->x.getId().toString(), y->y.getName(),(o, n)->n)));
super.init(model, context); super.init(model, context);
} }
@Override
} protected int saveAfter(AttendanceGroupEntity entity, Map<String, Object> model, Context context) throws AppException {
\ No newline at end of file entity.getAttendanceGroupFixedworkEntity().setGroupId(entity.getId());
entity.getAttendanceGroupFixedworkEntity().setGroupName(entity.getGroupName());
AttendanceGroupFixedworkEntity save = attendanceGroupFixedworkService.save(entity.getAttendanceGroupFixedworkEntity());
List<AttendanceGroupFixedworkSpecialEntity> fixedworkSpecial = entity.getFixedworkSpecial();
if (fixedworkSpecial!=null && fixedworkSpecial.size()>0){
fixedworkSpecial.forEach(item->{
item.setFixedWorkId(save.getId());
});
}
specialService.save(fixedworkSpecial);
AttendanceGroupResponsibleEntity responsibleEntity = entity.getGroupResponsibleEntity();
responsibleEntity.setGroupId(entity.getId());
responsibleEntity.setGroupName(entity.getGroupName());
groupResponsibleService.save(responsibleEntity);
return super.saveAfter(entity, model, context);
}
}
...@@ -46,4 +46,5 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle ...@@ -46,4 +46,5 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
} }
}
\ No newline at end of file }
...@@ -4,10 +4,12 @@ import java.util.List; ...@@ -4,10 +4,12 @@ import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import com.mortals.xhx.module.dept.model.vo.DeptVo; import com.mortals.xhx.module.dept.model.vo.DeptVo;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.mortals.xhx.module.staff.model.StaffEntity;
import lombok.Data; import lombok.Data;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.io.Serializable; import java.io.Serializable;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
* 部门信息前端映射树结构实体类 * 部门信息前端映射树结构实体类
...@@ -35,12 +37,19 @@ public class DeptTreeSelect implements Serializable { ...@@ -35,12 +37,19 @@ public class DeptTreeSelect implements Serializable {
@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<DeptTreeSelect> children; private List<DeptTreeSelect> children;
/**
* 子节点
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<Map<String,Object>> personList;
public DeptTreeSelect(DeptEntity entity) { public DeptTreeSelect(DeptEntity entity) {
this.id = entity.getId(); this.id = entity.getId();
this.label = entity.getDeptName(); this.label = entity.getDeptName();
if(!ObjectUtils.isEmpty(entity.getChildren())){ if(!ObjectUtils.isEmpty(entity.getChildren())){
this.children = entity.getChildren().stream().map(DeptTreeSelect::new).collect(Collectors.toList()); this.children = entity.getChildren().stream().map(DeptTreeSelect::new).collect(Collectors.toList());
} }
this.personList = entity.getPersonList();
} }
} }
\ No newline at end of file
package com.mortals.xhx.module.dept.model.vo; package com.mortals.xhx.module.dept.model.vo;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.dept.model.DeptEntity; import com.mortals.xhx.module.dept.model.DeptEntity;
import com.mortals.xhx.module.staff.model.StaffEntity;
import lombok.Data; import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 部门信息视图对象 * 部门信息视图对象
* *
...@@ -16,7 +19,7 @@ public class DeptVo extends BaseEntityLong { ...@@ -16,7 +19,7 @@ public class DeptVo extends BaseEntityLong {
/** 子部门信息 */ /** 子部门信息 */
private List<DeptEntity> children = new ArrayList<>(); private List<DeptEntity> children = new ArrayList<>();
/** 子节点人员信息 */
private List<Map<String,Object>> personList = new ArrayList<>();
//成员数量 //成员数量
} }
\ No newline at end of file
package com.mortals.xhx.module.dept.service.impl; package com.mortals.xhx.module.dept.service.impl;
import com.mortals.xhx.module.staff.model.StaffEntity;
import com.mortals.xhx.module.staff.model.StaffQuery;
import com.mortals.xhx.module.staff.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
...@@ -25,6 +29,9 @@ import java.util.stream.Collectors; ...@@ -25,6 +29,9 @@ import java.util.stream.Collectors;
@Service("deptService") @Service("deptService")
public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity, Long> implements DeptService { public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity, Long> implements DeptService {
@Autowired
private StaffService staffService;
@Override @Override
protected void saveBefore(DeptEntity entity, Context context) throws AppException { protected void saveBefore(DeptEntity entity, Context context) throws AppException {
if(ObjectUtils.isEmpty(entity.getParentId())){ if(ObjectUtils.isEmpty(entity.getParentId())){
...@@ -129,7 +136,16 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity ...@@ -129,7 +136,16 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
for (Iterator<DeptEntity> iterator = list.iterator(); iterator.hasNext(); ) { for (Iterator<DeptEntity> iterator = list.iterator(); iterator.hasNext(); ) {
DeptEntity deptEntity = iterator.next(); DeptEntity deptEntity = iterator.next();
List<StaffEntity> staffEntities = staffService.find(new StaffQuery().deptId(deptEntity.getId()));
List<Map<String,Object>> personList = new ArrayList<>();
staffEntities.forEach(item->{
Map<String,Object> map= new HashMap<>();
map.put("staffId",item.getId());
map.put("staffName",item.getName());
map.put("deptId",item.getDeptId());
personList.add(map);
});
deptEntity.setPersonList(personList);
if (!tempList.contains(deptEntity.getParentId())) { if (!tempList.contains(deptEntity.getParentId())) {
recursionFn(list, deptEntity); recursionFn(list, deptEntity);
returnList.add(deptEntity); returnList.add(deptEntity);
...@@ -198,4 +214,4 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity ...@@ -198,4 +214,4 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
return dao.queryDeptParentId(deptId); return dao.queryDeptParentId(deptId);
} }
} }
\ No newline at end of file
...@@ -42,4 +42,4 @@ public class JobController extends BaseCRUDJsonBodyMappingController<JobService, ...@@ -42,4 +42,4 @@ public class JobController extends BaseCRUDJsonBodyMappingController<JobService,
super.doImportDataBefore(list, updateSupport, context); super.doImportDataBefore(list, updateSupport, context);
} }
} }
\ No newline at end of file
...@@ -55,4 +55,11 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman ...@@ -55,4 +55,11 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
deptEntity.setWorkName(entity.getName()); deptEntity.setWorkName(entity.getName());
return super.saveAfter(entity, model, context); return super.saveAfter(entity, model, context);
} }
}
\ No newline at end of file @Override
protected void saveBefore(WorkmanEntity entity, Map<String, Object> model, Context context) throws AppException {
DeptEntity deptEntity = deptService.selectOne(new DeptQuery().id(entity.getDeptId()));
entity.setDeptName(deptEntity.getDeptName());
super.saveBefore(entity, model, context);
}
}
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd"> "mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.attendance.dao.ibatis.AttendanceRecordDetailDaoImpl"> <mapper namespace="com.mortals.xhx.module.attendance.dao.ibatis.AttendanceRecordDetailDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="AttendanceRecordDetailEntity" id="AttendanceRecordDetailEntity-Map"> <resultMap type="AttendanceRecordDetailEntity" id="AttendanceRecordDetailEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="recordId" column="recordId" /> <result property="recordId" column="recordId" />
<result property="shiftsId" column="shiftsId" /> <result property="shiftsId" column="shiftsId" />
<result property="shiftsName" column="shiftsName" /> <result property="shiftsName" column="shiftsName" />
<result property="goWorkDate" column="goWorkDate" /> <result property="goWorkDate" column="goWorkDate" />
<result property="goWorkResult" column="goWorkResult" /> <result property="goWorkResult" column="goWorkResult" />
<result property="offWorkDate" column="offWorkDate" /> <result property="offWorkDate" column="offWorkDate" />
<result property="offWorkResult" column="offWorkResult" /> <result property="offWorkResult" column="offWorkResult" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="createUserId" column="createUserId" /> <result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" /> <result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" /> <result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" /> <result property="updateTime" column="updateTime" />
<result property="orderNum" column="orderNum" />
</resultMap> </resultMap>
<!-- 表所有列 --> <!-- 表所有列 -->
<sql id="_columns"> <sql id="_columns">
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recordId') or colPickMode == 1 and data.containsKey('recordId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recordId') or colPickMode == 1 and data.containsKey('recordId')))">
a.recordId, a.recordId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsId') or colPickMode == 1 and data.containsKey('shiftsId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsId') or colPickMode == 1 and data.containsKey('shiftsId')))">
a.shiftsId, a.shiftsId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsName') or colPickMode == 1 and data.containsKey('shiftsName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsName') or colPickMode == 1 and data.containsKey('shiftsName')))">
a.shiftsName, a.shiftsName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goWorkDate') or colPickMode == 1 and data.containsKey('goWorkDate')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goWorkDate') or colPickMode == 1 and data.containsKey('goWorkDate')))">
a.goWorkDate, a.goWorkDate,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goWorkResult') or colPickMode == 1 and data.containsKey('goWorkResult')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goWorkResult') or colPickMode == 1 and data.containsKey('goWorkResult')))">
a.goWorkResult, a.goWorkResult,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('offWorkDate') or colPickMode == 1 and data.containsKey('offWorkDate')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('offWorkDate') or colPickMode == 1 and data.containsKey('offWorkDate')))">
a.offWorkDate, a.offWorkDate,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('offWorkResult') or colPickMode == 1 and data.containsKey('offWorkResult')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('offWorkResult') or colPickMode == 1 and data.containsKey('offWorkResult')))">
a.offWorkResult, a.offWorkResult,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))">
a.remark, a.remark,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId, a.createUserId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime, a.createTime,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId, a.updateUserId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime, a.updateTime,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('orderNum') or colPickMode == 1 and data.containsKey('orderNum')))">
a.orderNum,
</if>
</trim> </trim>
</sql> </sql>
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="AttendanceRecordDetailEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="AttendanceRecordDetailEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_attendance_record_detail insert into mortals_xhx_attendance_record_detail
(recordId,shiftsId,shiftsName,goWorkDate,goWorkResult,offWorkDate,offWorkResult,remark,createUserId,createTime,updateUserId,updateTime) (recordId,shiftsId,shiftsName,goWorkDate,goWorkResult,offWorkDate,offWorkResult,remark,createUserId,createTime,updateUserId,updateTime,orderNum)
VALUES VALUES
(#{recordId},#{shiftsId},#{shiftsName},#{goWorkDate},#{goWorkResult},#{offWorkDate},#{offWorkResult},#{remark},#{createUserId},#{createTime},#{updateUserId},#{updateTime}) (#{recordId},#{shiftsId},#{shiftsName},#{goWorkDate},#{goWorkResult},#{offWorkDate},#{offWorkResult},#{remark},#{createUserId},#{createTime},#{updateUserId},#{updateTime},#{orderNum})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_attendance_record_detail insert into mortals_xhx_attendance_record_detail
(recordId,shiftsId,shiftsName,goWorkDate,goWorkResult,offWorkDate,offWorkResult,remark,createUserId,createTime,updateUserId,updateTime) (recordId,shiftsId,shiftsName,goWorkDate,goWorkResult,offWorkDate,offWorkResult,remark,createUserId,createTime,updateUserId,updateTime,orderNum)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.recordId},#{item.shiftsId},#{item.shiftsName},#{item.goWorkDate},#{item.goWorkResult},#{item.offWorkDate},#{item.offWorkResult},#{item.remark},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime}) (#{item.recordId},#{item.shiftsId},#{item.shiftsName},#{item.goWorkDate},#{item.goWorkResult},#{item.offWorkDate},#{item.offWorkResult},#{item.remark},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime},#{item.orderNum})
</foreach> </foreach>
</insert> </insert>
...@@ -144,6 +148,12 @@ ...@@ -144,6 +148,12 @@
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))"> <if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime}, a.updateTime=#{data.updateTime},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('orderNum')) or (colPickMode==1 and !data.containsKey('orderNum'))">
a.orderNum=#{data.orderNum},
</if>
<if test="(colPickMode==0 and data.containsKey('orderNumIncrement')) or (colPickMode==1 and !data.containsKey('orderNumIncrement'))">
a.orderNum=ifnull(a.orderNum,0) + #{data.orderNumIncrement},
</if>
</trim> </trim>
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where where
...@@ -156,120 +166,132 @@ ...@@ -156,120 +166,132 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_attendance_record_detail as a update mortals_xhx_attendance_record_detail as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="recordId=(case" suffix="ELSE recordId end),"> <trim prefix="recordId=(case" suffix="ELSE recordId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('recordId')) or (colPickMode==1 and !item.containsKey('recordId'))"> <when test="(colPickMode==0 and item.containsKey('recordId')) or (colPickMode==1 and !item.containsKey('recordId'))">
when a.id=#{item.id} then #{item.recordId} when a.id=#{item.id} then #{item.recordId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('recordIdIncrement')) or (colPickMode==1 and !item.containsKey('recordIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('recordIdIncrement')) or (colPickMode==1 and !item.containsKey('recordIdIncrement'))">
when a.id=#{item.id} then ifnull(a.recordId,0) + #{item.recordIdIncrement} when a.id=#{item.id} then ifnull(a.recordId,0) + #{item.recordIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="shiftsId=(case" suffix="ELSE shiftsId end),"> <trim prefix="shiftsId=(case" suffix="ELSE shiftsId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('shiftsId')) or (colPickMode==1 and !item.containsKey('shiftsId'))"> <when test="(colPickMode==0 and item.containsKey('shiftsId')) or (colPickMode==1 and !item.containsKey('shiftsId'))">
when a.id=#{item.id} then #{item.shiftsId} when a.id=#{item.id} then #{item.shiftsId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('shiftsIdIncrement')) or (colPickMode==1 and !item.containsKey('shiftsIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('shiftsIdIncrement')) or (colPickMode==1 and !item.containsKey('shiftsIdIncrement'))">
when a.id=#{item.id} then ifnull(a.shiftsId,0) + #{item.shiftsIdIncrement} when a.id=#{item.id} then ifnull(a.shiftsId,0) + #{item.shiftsIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="shiftsName=(case" suffix="ELSE shiftsName end),"> <trim prefix="shiftsName=(case" suffix="ELSE shiftsName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('shiftsName')) or (colPickMode==1 and !item.containsKey('shiftsName'))"> <if test="(colPickMode==0 and item.containsKey('shiftsName')) or (colPickMode==1 and !item.containsKey('shiftsName'))">
when a.id=#{item.id} then #{item.shiftsName} when a.id=#{item.id} then #{item.shiftsName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="goWorkDate=(case" suffix="ELSE goWorkDate end),"> <trim prefix="goWorkDate=(case" suffix="ELSE goWorkDate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('goWorkDate')) or (colPickMode==1 and !item.containsKey('goWorkDate'))"> <if test="(colPickMode==0 and item.containsKey('goWorkDate')) or (colPickMode==1 and !item.containsKey('goWorkDate'))">
when a.id=#{item.id} then #{item.goWorkDate} when a.id=#{item.id} then #{item.goWorkDate}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="goWorkResult=(case" suffix="ELSE goWorkResult end),"> <trim prefix="goWorkResult=(case" suffix="ELSE goWorkResult end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('goWorkResult')) or (colPickMode==1 and !item.containsKey('goWorkResult'))"> <when test="(colPickMode==0 and item.containsKey('goWorkResult')) or (colPickMode==1 and !item.containsKey('goWorkResult'))">
when a.id=#{item.id} then #{item.goWorkResult} when a.id=#{item.id} then #{item.goWorkResult}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('goWorkResultIncrement')) or (colPickMode==1 and !item.containsKey('goWorkResultIncrement'))"> <when test="(colPickMode==0 and item.containsKey('goWorkResultIncrement')) or (colPickMode==1 and !item.containsKey('goWorkResultIncrement'))">
when a.id=#{item.id} then ifnull(a.goWorkResult,0) + #{item.goWorkResultIncrement} when a.id=#{item.id} then ifnull(a.goWorkResult,0) + #{item.goWorkResultIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="offWorkDate=(case" suffix="ELSE offWorkDate end),"> <trim prefix="offWorkDate=(case" suffix="ELSE offWorkDate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('offWorkDate')) or (colPickMode==1 and !item.containsKey('offWorkDate'))"> <if test="(colPickMode==0 and item.containsKey('offWorkDate')) or (colPickMode==1 and !item.containsKey('offWorkDate'))">
when a.id=#{item.id} then #{item.offWorkDate} when a.id=#{item.id} then #{item.offWorkDate}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="offWorkResult=(case" suffix="ELSE offWorkResult end),"> <trim prefix="offWorkResult=(case" suffix="ELSE offWorkResult end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('offWorkResult')) or (colPickMode==1 and !item.containsKey('offWorkResult'))"> <when test="(colPickMode==0 and item.containsKey('offWorkResult')) or (colPickMode==1 and !item.containsKey('offWorkResult'))">
when a.id=#{item.id} then #{item.offWorkResult} when a.id=#{item.id} then #{item.offWorkResult}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('offWorkResultIncrement')) or (colPickMode==1 and !item.containsKey('offWorkResultIncrement'))"> <when test="(colPickMode==0 and item.containsKey('offWorkResultIncrement')) or (colPickMode==1 and !item.containsKey('offWorkResultIncrement'))">
when a.id=#{item.id} then ifnull(a.offWorkResult,0) + #{item.offWorkResultIncrement} when a.id=#{item.id} then ifnull(a.offWorkResult,0) + #{item.offWorkResultIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="remark=(case" suffix="ELSE remark end),"> <trim prefix="remark=(case" suffix="ELSE remark end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))"> <if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))">
when a.id=#{item.id} then #{item.remark} when a.id=#{item.id} then #{item.remark}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),"> <trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))"> <when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId} when a.id=#{item.id} then #{item.createUserId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement} when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),"> <trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))"> <if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime} when a.id=#{item.id} then #{item.createTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),"> <trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))"> <when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId} when a.id=#{item.id} then #{item.updateUserId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement} when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),"> <trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))"> <if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime} when a.id=#{item.id} then #{item.updateTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="orderNum=(case" suffix="ELSE orderNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('orderNum')) or (colPickMode==1 and !item.containsKey('orderNum'))">
when a.id=#{item.id} then #{item.orderNum}
</when>
<when test="(colPickMode==0 and item.containsKey('orderNumIncrement')) or (colPickMode==1 and !item.containsKey('orderNumIncrement'))">
when a.id=#{item.id} then ifnull(a.orderNum,0) + #{item.orderNumIncrement}
</when>
</choose>
</foreach>
</trim>
</trim> </trim>
where id in where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
...@@ -386,375 +408,407 @@ ...@@ -386,375 +408,407 @@
${_conditionType_} a.id=#{${_conditionParam_}.id} ${_conditionType_} a.id=#{${_conditionParam_}.id}
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('id')"> <if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null "> <if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id} ${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_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>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null"> <if test="conditionParamRef.id == null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_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('recordId')"> <if test="conditionParamRef.containsKey('recordId')">
<if test="conditionParamRef.recordId != null "> <if test="conditionParamRef.recordId != null ">
${_conditionType_} a.recordId = #{${_conditionParam_}.recordId} ${_conditionType_} a.recordId = #{${_conditionParam_}.recordId}
</if>
<if test="conditionParamRef.recordId == null">
${_conditionType_} a.recordId is null
</if>
</if>
<if test="conditionParamRef.containsKey('recordIdList')">
${_conditionType_} a.recordId in
<foreach collection="conditionParamRef.recordIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recordIdNotList')">
${_conditionType_} a.recordId not in
<foreach collection="conditionParamRef.recordIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recordIdStart') and conditionParamRef.recordIdStart != null">
${_conditionType_} a.recordId <![CDATA[ >= ]]> #{${_conditionParam_}.recordIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('recordIdEnd') and conditionParamRef.recordIdEnd != null"> <if test="conditionParamRef.recordId == null">
${_conditionType_} a.recordId <![CDATA[ <= ]]> #{${_conditionParam_}.recordIdEnd} ${_conditionType_} a.recordId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('recordIdList')">
${_conditionType_} a.recordId in
<foreach collection="conditionParamRef.recordIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recordIdNotList')">
${_conditionType_} a.recordId not in
<foreach collection="conditionParamRef.recordIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recordIdStart') and conditionParamRef.recordIdStart != null">
${_conditionType_} a.recordId <![CDATA[ >= ]]> #{${_conditionParam_}.recordIdStart}
</if>
<if test="conditionParamRef.containsKey('recordIdEnd') and conditionParamRef.recordIdEnd != null">
${_conditionType_} a.recordId <![CDATA[ <= ]]> #{${_conditionParam_}.recordIdEnd}
</if>
<if test="conditionParamRef.containsKey('shiftsId')"> <if test="conditionParamRef.containsKey('shiftsId')">
<if test="conditionParamRef.shiftsId != null "> <if test="conditionParamRef.shiftsId != null ">
${_conditionType_} a.shiftsId = #{${_conditionParam_}.shiftsId} ${_conditionType_} a.shiftsId = #{${_conditionParam_}.shiftsId}
</if>
<if test="conditionParamRef.shiftsId == null">
${_conditionType_} a.shiftsId is null
</if>
</if>
<if test="conditionParamRef.containsKey('shiftsIdList')">
${_conditionType_} a.shiftsId in
<foreach collection="conditionParamRef.shiftsIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('shiftsIdNotList')"> <if test="conditionParamRef.shiftsId == null">
${_conditionType_} a.shiftsId not in ${_conditionType_} a.shiftsId is null
<foreach collection="conditionParamRef.shiftsIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsIdStart') and conditionParamRef.shiftsIdStart != null">
${_conditionType_} a.shiftsId <![CDATA[ >= ]]> #{${_conditionParam_}.shiftsIdStart}
</if>
<if test="conditionParamRef.containsKey('shiftsIdEnd') and conditionParamRef.shiftsIdEnd != null">
${_conditionType_} a.shiftsId <![CDATA[ <= ]]> #{${_conditionParam_}.shiftsIdEnd}
</if> </if>
</if>
<if test="conditionParamRef.containsKey('shiftsIdList')">
${_conditionType_} a.shiftsId in
<foreach collection="conditionParamRef.shiftsIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsIdNotList')">
${_conditionType_} a.shiftsId not in
<foreach collection="conditionParamRef.shiftsIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsIdStart') and conditionParamRef.shiftsIdStart != null">
${_conditionType_} a.shiftsId <![CDATA[ >= ]]> #{${_conditionParam_}.shiftsIdStart}
</if>
<if test="conditionParamRef.containsKey('shiftsIdEnd') and conditionParamRef.shiftsIdEnd != null">
${_conditionType_} a.shiftsId <![CDATA[ <= ]]> #{${_conditionParam_}.shiftsIdEnd}
</if>
<if test="conditionParamRef.containsKey('shiftsName')"> <if test="conditionParamRef.containsKey('shiftsName')">
<if test="conditionParamRef.shiftsName != null and conditionParamRef.shiftsName != ''"> <if test="conditionParamRef.shiftsName != null and conditionParamRef.shiftsName != ''">
${_conditionType_} a.shiftsName like #{${_conditionParam_}.shiftsName} ${_conditionType_} a.shiftsName like #{${_conditionParam_}.shiftsName}
</if>
<if test="conditionParamRef.shiftsName == null">
${_conditionType_} a.shiftsName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('shiftsNameList')"> <if test="conditionParamRef.shiftsName == null">
${_conditionType_} a.shiftsName in ${_conditionType_} a.shiftsName is null
<foreach collection="conditionParamRef.shiftsNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsNameNotList')">
${_conditionType_} a.shiftsName not in
<foreach collection="conditionParamRef.shiftsNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('shiftsNameList')">
${_conditionType_} a.shiftsName in
<foreach collection="conditionParamRef.shiftsNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsNameNotList')">
${_conditionType_} a.shiftsName not in
<foreach collection="conditionParamRef.shiftsNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('goWorkDate')"> <if test="conditionParamRef.containsKey('goWorkDate')">
<if test="conditionParamRef.goWorkDate != null "> <if test="conditionParamRef.goWorkDate != null ">
${_conditionType_} a.goWorkDate = #{${_conditionParam_}.goWorkDate} ${_conditionType_} a.goWorkDate = #{${_conditionParam_}.goWorkDate}
</if>
<if test="conditionParamRef.goWorkDate == null">
${_conditionType_} a.goWorkDate is null
</if>
</if>
<if test="conditionParamRef.containsKey('goWorkDateStart') and conditionParamRef.goWorkDateStart != null and conditionParamRef.goWorkDateStart!=''">
${_conditionType_} a.goWorkDate <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.goWorkDateStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('goWorkDateEnd') and conditionParamRef.goWorkDateEnd != null and conditionParamRef.goWorkDateEnd!=''">
${_conditionType_} a.goWorkDate <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.goWorkDateEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if> </if>
<if test="conditionParamRef.containsKey('goWorkResult')"> <if test="conditionParamRef.goWorkDate == null">
<if test="conditionParamRef.goWorkResult != null "> ${_conditionType_} a.goWorkDate is null
${_conditionType_} a.goWorkResult = #{${_conditionParam_}.goWorkResult}
</if>
<if test="conditionParamRef.goWorkResult == null">
${_conditionType_} a.goWorkResult is null
</if>
</if>
<if test="conditionParamRef.containsKey('goWorkResultList')">
${_conditionType_} a.goWorkResult in
<foreach collection="conditionParamRef.goWorkResultList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('goWorkResultNotList')">
${_conditionType_} a.goWorkResult not in
<foreach collection="conditionParamRef.goWorkResultNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('goWorkResultStart') and conditionParamRef.goWorkResultStart != null"> </if>
${_conditionType_} a.goWorkResult <![CDATA[ >= ]]> #{${_conditionParam_}.goWorkResultStart} <if test="conditionParamRef.containsKey('goWorkDateStart') and conditionParamRef.goWorkDateStart != null and conditionParamRef.goWorkDateStart!=''">
${_conditionType_} a.goWorkDate <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.goWorkDateStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('goWorkDateEnd') and conditionParamRef.goWorkDateEnd != null and conditionParamRef.goWorkDateEnd!=''">
${_conditionType_} a.goWorkDate <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.goWorkDateEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('goWorkResult')">
<if test="conditionParamRef.goWorkResult != null ">
${_conditionType_} a.goWorkResult = #{${_conditionParam_}.goWorkResult}
</if> </if>
<if test="conditionParamRef.containsKey('goWorkResultEnd') and conditionParamRef.goWorkResultEnd != null"> <if test="conditionParamRef.goWorkResult == null">
${_conditionType_} a.goWorkResult <![CDATA[ <= ]]> #{${_conditionParam_}.goWorkResultEnd} ${_conditionType_} a.goWorkResult is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('goWorkResultList')">
${_conditionType_} a.goWorkResult in
<foreach collection="conditionParamRef.goWorkResultList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('goWorkResultNotList')">
${_conditionType_} a.goWorkResult not in
<foreach collection="conditionParamRef.goWorkResultNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('goWorkResultStart') and conditionParamRef.goWorkResultStart != null">
${_conditionType_} a.goWorkResult <![CDATA[ >= ]]> #{${_conditionParam_}.goWorkResultStart}
</if>
<if test="conditionParamRef.containsKey('goWorkResultEnd') and conditionParamRef.goWorkResultEnd != null">
${_conditionType_} a.goWorkResult <![CDATA[ <= ]]> #{${_conditionParam_}.goWorkResultEnd}
</if>
<if test="conditionParamRef.containsKey('offWorkDate')"> <if test="conditionParamRef.containsKey('offWorkDate')">
<if test="conditionParamRef.offWorkDate != null "> <if test="conditionParamRef.offWorkDate != null ">
${_conditionType_} a.offWorkDate = #{${_conditionParam_}.offWorkDate} ${_conditionType_} a.offWorkDate = #{${_conditionParam_}.offWorkDate}
</if>
<if test="conditionParamRef.offWorkDate == null">
${_conditionType_} a.offWorkDate is null
</if>
</if>
<if test="conditionParamRef.containsKey('offWorkDateStart') and conditionParamRef.offWorkDateStart != null and conditionParamRef.offWorkDateStart!=''">
${_conditionType_} a.offWorkDate <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.offWorkDateStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('offWorkDateEnd') and conditionParamRef.offWorkDateEnd != null and conditionParamRef.offWorkDateEnd!=''">
${_conditionType_} a.offWorkDate <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.offWorkDateEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('offWorkResult')">
<if test="conditionParamRef.offWorkResult != null ">
${_conditionType_} a.offWorkResult = #{${_conditionParam_}.offWorkResult}
</if>
<if test="conditionParamRef.offWorkResult == null">
${_conditionType_} a.offWorkResult is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('offWorkResultList')"> <if test="conditionParamRef.offWorkDate == null">
${_conditionType_} a.offWorkResult in ${_conditionType_} a.offWorkDate is null
<foreach collection="conditionParamRef.offWorkResultList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('offWorkResultNotList')"> </if>
${_conditionType_} a.offWorkResult not in <if test="conditionParamRef.containsKey('offWorkDateStart') and conditionParamRef.offWorkDateStart != null and conditionParamRef.offWorkDateStart!=''">
<foreach collection="conditionParamRef.offWorkResultNotList" open="(" close=")" index="index" item="item" separator=","> ${_conditionType_} a.offWorkDate <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.offWorkDateStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
#{item} </if>
</foreach> <if test="conditionParamRef.containsKey('offWorkDateEnd') and conditionParamRef.offWorkDateEnd != null and conditionParamRef.offWorkDateEnd!=''">
</if> ${_conditionType_} a.offWorkDate <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.offWorkDateEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
<if test="conditionParamRef.containsKey('offWorkResultStart') and conditionParamRef.offWorkResultStart != null"> </if>
${_conditionType_} a.offWorkResult <![CDATA[ >= ]]> #{${_conditionParam_}.offWorkResultStart} <if test="conditionParamRef.containsKey('offWorkResult')">
<if test="conditionParamRef.offWorkResult != null ">
${_conditionType_} a.offWorkResult = #{${_conditionParam_}.offWorkResult}
</if> </if>
<if test="conditionParamRef.containsKey('offWorkResultEnd') and conditionParamRef.offWorkResultEnd != null"> <if test="conditionParamRef.offWorkResult == null">
${_conditionType_} a.offWorkResult <![CDATA[ <= ]]> #{${_conditionParam_}.offWorkResultEnd} ${_conditionType_} a.offWorkResult is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('offWorkResultList')">
${_conditionType_} a.offWorkResult in
<foreach collection="conditionParamRef.offWorkResultList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('offWorkResultNotList')">
${_conditionType_} a.offWorkResult not in
<foreach collection="conditionParamRef.offWorkResultNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('offWorkResultStart') and conditionParamRef.offWorkResultStart != null">
${_conditionType_} a.offWorkResult <![CDATA[ >= ]]> #{${_conditionParam_}.offWorkResultStart}
</if>
<if test="conditionParamRef.containsKey('offWorkResultEnd') and conditionParamRef.offWorkResultEnd != null">
${_conditionType_} a.offWorkResult <![CDATA[ <= ]]> #{${_conditionParam_}.offWorkResultEnd}
</if>
<if test="conditionParamRef.containsKey('remark')"> <if test="conditionParamRef.containsKey('remark')">
<if test="conditionParamRef.remark != null and conditionParamRef.remark != ''"> <if test="conditionParamRef.remark != null and conditionParamRef.remark != ''">
${_conditionType_} a.remark like #{${_conditionParam_}.remark} ${_conditionType_} a.remark like #{${_conditionParam_}.remark}
</if>
<if test="conditionParamRef.remark == null">
${_conditionType_} a.remark is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('remarkList')"> <if test="conditionParamRef.remark == null">
${_conditionType_} a.remark in ${_conditionType_} a.remark is null
<foreach collection="conditionParamRef.remarkList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('remarkNotList')"> </if>
${_conditionType_} a.remark not in <if test="conditionParamRef.containsKey('remarkList')">
<foreach collection="conditionParamRef.remarkNotList" open="(" close=")" index="index" item="item" separator=","> ${_conditionType_} a.remark in
#{item} <foreach collection="conditionParamRef.remarkList" open="(" close=")" index="index" item="item" separator=",">
</foreach> #{item}
</if> </foreach>
<if test="conditionParamRef.containsKey('createUserId')"> </if>
<if test="conditionParamRef.createUserId != null "> <if test="conditionParamRef.containsKey('remarkNotList')">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId} ${_conditionType_} a.remark not in
</if> <foreach collection="conditionParamRef.remarkNotList" open="(" close=")" index="index" item="item" separator=",">
<if test="conditionParamRef.createUserId == null"> #{item}
${_conditionType_} a.createUserId is null </foreach>
</if> </if>
</if> <if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.containsKey('createUserIdList')"> <if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId in ${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_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>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null"> <if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd} ${_conditionType_} a.createUserId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_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.containsKey('createTime')">
<if test="conditionParamRef.createTime != null "> <if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime} ${_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')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')"> <if test="conditionParamRef.createTime == null">
${_conditionType_} a.updateUserId not in ${_conditionType_} a.createTime is null
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null"> </if>
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart} <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>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null"> <if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd} ${_conditionType_} a.updateUserId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_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.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null "> <if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime} ${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''"> <if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.updateTime is null
</if> </if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''"> </if>
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') <if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('orderNum')">
<if test="conditionParamRef.orderNum != null ">
${_conditionType_} a.orderNum = #{${_conditionParam_}.orderNum}
</if> </if>
<if test="conditionParamRef.orderNum == null">
${_conditionType_} a.orderNum is null
</if>
</if>
<if test="conditionParamRef.containsKey('orderNumList')">
${_conditionType_} a.orderNum in
<foreach collection="conditionParamRef.orderNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('orderNumNotList')">
${_conditionType_} a.orderNum not in
<foreach collection="conditionParamRef.orderNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('orderNumStart') and conditionParamRef.orderNumStart != null">
${_conditionType_} a.orderNum <![CDATA[ >= ]]> #{${_conditionParam_}.orderNumStart}
</if>
<if test="conditionParamRef.containsKey('orderNumEnd') and conditionParamRef.orderNumEnd != null">
${_conditionType_} a.orderNum <![CDATA[ <= ]]> #{${_conditionParam_}.orderNumEnd}
</if>
</sql> </sql>
<sql id="_orderCols_"> <sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()"> <if test="orderColList != null and !orderColList.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=","> <foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind} ${item.colName} ${item.sortKind}
</foreach> </foreach>
</trim> </trim>
</if> </if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"> <if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')"> <if test="orderCol.containsKey('id')">
a.id a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('recordId')"> <if test="orderCol.containsKey('recordId')">
a.recordId a.recordId
<if test='orderCol.recordId != null and "DESC".equalsIgnoreCase(orderCol.recordId)'>DESC</if> <if test='orderCol.recordId != null and "DESC".equalsIgnoreCase(orderCol.recordId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('shiftsId')"> <if test="orderCol.containsKey('shiftsId')">
a.shiftsId a.shiftsId
<if test='orderCol.shiftsId != null and "DESC".equalsIgnoreCase(orderCol.shiftsId)'>DESC</if> <if test='orderCol.shiftsId != null and "DESC".equalsIgnoreCase(orderCol.shiftsId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('shiftsName')"> <if test="orderCol.containsKey('shiftsName')">
a.shiftsName a.shiftsName
<if test='orderCol.shiftsName != null and "DESC".equalsIgnoreCase(orderCol.shiftsName)'>DESC</if> <if test='orderCol.shiftsName != null and "DESC".equalsIgnoreCase(orderCol.shiftsName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('goWorkDate')"> <if test="orderCol.containsKey('goWorkDate')">
a.goWorkDate a.goWorkDate
<if test='orderCol.goWorkDate != null and "DESC".equalsIgnoreCase(orderCol.goWorkDate)'>DESC</if> <if test='orderCol.goWorkDate != null and "DESC".equalsIgnoreCase(orderCol.goWorkDate)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('goWorkResult')"> <if test="orderCol.containsKey('goWorkResult')">
a.goWorkResult a.goWorkResult
<if test='orderCol.goWorkResult != null and "DESC".equalsIgnoreCase(orderCol.goWorkResult)'>DESC</if> <if test='orderCol.goWorkResult != null and "DESC".equalsIgnoreCase(orderCol.goWorkResult)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('offWorkDate')"> <if test="orderCol.containsKey('offWorkDate')">
a.offWorkDate a.offWorkDate
<if test='orderCol.offWorkDate != null and "DESC".equalsIgnoreCase(orderCol.offWorkDate)'>DESC</if> <if test='orderCol.offWorkDate != null and "DESC".equalsIgnoreCase(orderCol.offWorkDate)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('offWorkResult')"> <if test="orderCol.containsKey('offWorkResult')">
a.offWorkResult a.offWorkResult
<if test='orderCol.offWorkResult != null and "DESC".equalsIgnoreCase(orderCol.offWorkResult)'>DESC</if> <if test='orderCol.offWorkResult != null and "DESC".equalsIgnoreCase(orderCol.offWorkResult)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('remark')"> <if test="orderCol.containsKey('remark')">
a.remark a.remark
<if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if> <if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createUserId')"> <if test="orderCol.containsKey('createUserId')">
a.createUserId a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if> <if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createTime')"> <if test="orderCol.containsKey('createTime')">
a.createTime a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if> <if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('updateUserId')"> <if test="orderCol.containsKey('updateUserId')">
a.updateUserId a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if> <if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('updateTime')"> <if test="orderCol.containsKey('updateTime')">
a.updateTime a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if> <if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('orderNum')">
a.orderNum
<if test='orderCol.orderNum != null and "DESC".equalsIgnoreCase(orderCol.orderNum)'>DESC</if>
,
</if>
</trim> </trim>
</if> </if>
</sql> </sql>
...@@ -768,4 +822,4 @@ ...@@ -768,4 +822,4 @@
</trim> </trim>
</if> </if>
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd"> "mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.attendance.dao.ibatis.AttendanceRecordDaoImpl"> <mapper namespace="com.mortals.xhx.module.attendance.dao.ibatis.AttendanceRecordDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="AttendanceRecordEntity" id="AttendanceRecordEntity-Map"> <resultMap type="AttendanceRecordEntity" id="AttendanceRecordEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="staffId" column="staffId" /> <result property="staffId" column="staffId" />
<result property="staffName" column="staffName" /> <result property="staffName" column="staffName" />
<result property="workNum" column="workNum" /> <result property="workNum" column="workNum" />
<result property="deptId" column="deptId" /> <result property="deptId" column="deptId" />
<result property="deptName" column="deptName" /> <result property="deptName" column="deptName" />
<result property="positionId" column="positionId" /> <result property="positionId" column="positionId" />
<result property="positionName" column="positionName" /> <result property="positionName" column="positionName" />
<result property="attendanceGroupId" column="attendanceGroupId" /> <result property="attendanceGroupId" column="attendanceGroupId" />
<result property="attendanceGroupName" column="attendanceGroupName" /> <result property="attendanceGroupName" column="attendanceGroupName" />
<result property="shiftsId" column="shiftsId" /> <result property="shiftsId" column="shiftsId" />
<result property="shiftsName" column="shiftsName" /> <result property="shiftsName" column="shiftsName" />
<result property="attendanceDate" column="attendanceDate" /> <result property="attendanceDate" column="attendanceDate" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="createUserId" column="createUserId" /> <result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" /> <result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" /> <result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" /> <result property="updateTime" column="updateTime" />
<collection property="attendanceRecordDetailList" column="id" ofType="AttendanceRecordDetailEntity" javaType="ArrayList" select="getAttendanceRecordDetailByRecordId"></collection> <collection property="attendanceRecordDetailList" column="id" ofType="AttendanceRecordDetailEntity" javaType="ArrayList" select="getAttendanceRecordDetailByRecordId"></collection>
</resultMap> </resultMap>
<resultMap type="AttendanceRecordDetailEntity" id="AttendanceRecordDetailEntity-Map"> <resultMap type="AttendanceRecordDetailEntity" id="AttendanceRecordDetailEntity-Map">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="recordId" column="recordId" /> <result property="recordId" column="recordId" />
<result property="shiftsId" column="shiftsId" /> <result property="shiftsId" column="shiftsId" />
<result property="shiftsName" column="shiftsName" /> <result property="shiftsName" column="shiftsName" />
<result property="goWorkDate" column="goWorkDate" /> <result property="goWorkDate" column="goWorkDate" />
<result property="goWorkResult" column="goWorkResult" /> <result property="goWorkResult" column="goWorkResult" />
<result property="offWorkDate" column="offWorkDate" /> <result property="offWorkDate" column="offWorkDate" />
<result property="offWorkResult" column="offWorkResult" /> <result property="offWorkResult" column="offWorkResult" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="createUserId" column="createUserId" /> <result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" /> <result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" /> <result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" /> <result property="updateTime" column="updateTime" />
<result property="orderNum" column="orderNum" />
</resultMap> </resultMap>
<!-- 表所有列 --> <!-- 表所有列 -->
<sql id="_columns"> <sql id="_columns">
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('staffId') or colPickMode == 1 and data.containsKey('staffId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('staffId') or colPickMode == 1 and data.containsKey('staffId')))">
a.staffId, a.staffId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('staffName') or colPickMode == 1 and data.containsKey('staffName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('staffName') or colPickMode == 1 and data.containsKey('staffName')))">
a.staffName, a.staffName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workNum') or colPickMode == 1 and data.containsKey('workNum')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workNum') or colPickMode == 1 and data.containsKey('workNum')))">
a.workNum, a.workNum,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptId') or colPickMode == 1 and data.containsKey('deptId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptId') or colPickMode == 1 and data.containsKey('deptId')))">
a.deptId, a.deptId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptName') or colPickMode == 1 and data.containsKey('deptName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptName') or colPickMode == 1 and data.containsKey('deptName')))">
a.deptName, a.deptName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('positionId') or colPickMode == 1 and data.containsKey('positionId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('positionId') or colPickMode == 1 and data.containsKey('positionId')))">
a.positionId, a.positionId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('positionName') or colPickMode == 1 and data.containsKey('positionName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('positionName') or colPickMode == 1 and data.containsKey('positionName')))">
a.positionName, a.positionName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendanceGroupId') or colPickMode == 1 and data.containsKey('attendanceGroupId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendanceGroupId') or colPickMode == 1 and data.containsKey('attendanceGroupId')))">
a.attendanceGroupId, a.attendanceGroupId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendanceGroupName') or colPickMode == 1 and data.containsKey('attendanceGroupName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendanceGroupName') or colPickMode == 1 and data.containsKey('attendanceGroupName')))">
a.attendanceGroupName, a.attendanceGroupName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsId') or colPickMode == 1 and data.containsKey('shiftsId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsId') or colPickMode == 1 and data.containsKey('shiftsId')))">
a.shiftsId, a.shiftsId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsName') or colPickMode == 1 and data.containsKey('shiftsName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('shiftsName') or colPickMode == 1 and data.containsKey('shiftsName')))">
a.shiftsName, a.shiftsName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendanceDate') or colPickMode == 1 and data.containsKey('attendanceDate')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendanceDate') or colPickMode == 1 and data.containsKey('attendanceDate')))">
a.attendanceDate, a.attendanceDate,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))">
a.remark, a.remark,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId, a.createUserId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime, a.createTime,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId, a.updateUserId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime, a.updateTime,
</if> </if>
</trim> </trim>
</sql> </sql>
<!-- 子表所有列 --> <!-- 子表所有列 -->
<sql id="_columns_sub"> <sql id="_columns_sub">
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
b.id,b.recordId,b.shiftsId,b.shiftsName,b.goWorkDate,b.goWorkResult,b.offWorkDate,b.offWorkResult,b.remark,b.createUserId,b.createTime,b.updateUserId,b.updateTime, b.id,b.recordId,b.shiftsId,b.shiftsName,b.goWorkDate,b.goWorkResult,b.offWorkDate,b.offWorkResult,b.remark,b.createUserId,b.createTime,b.updateUserId,b.updateTime,b.orderNum,
</trim> </trim>
</sql> </sql>
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
...@@ -215,160 +216,160 @@ ...@@ -215,160 +216,160 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_attendance_record as a update mortals_xhx_attendance_record as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="staffId=(case" suffix="ELSE staffId end),"> <trim prefix="staffId=(case" suffix="ELSE staffId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('staffId')) or (colPickMode==1 and !item.containsKey('staffId'))"> <when test="(colPickMode==0 and item.containsKey('staffId')) or (colPickMode==1 and !item.containsKey('staffId'))">
when a.id=#{item.id} then #{item.staffId} when a.id=#{item.id} then #{item.staffId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('staffIdIncrement')) or (colPickMode==1 and !item.containsKey('staffIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('staffIdIncrement')) or (colPickMode==1 and !item.containsKey('staffIdIncrement'))">
when a.id=#{item.id} then ifnull(a.staffId,0) + #{item.staffIdIncrement} when a.id=#{item.id} then ifnull(a.staffId,0) + #{item.staffIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="staffName=(case" suffix="ELSE staffName end),"> <trim prefix="staffName=(case" suffix="ELSE staffName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('staffName')) or (colPickMode==1 and !item.containsKey('staffName'))"> <if test="(colPickMode==0 and item.containsKey('staffName')) or (colPickMode==1 and !item.containsKey('staffName'))">
when a.id=#{item.id} then #{item.staffName} when a.id=#{item.id} then #{item.staffName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="workNum=(case" suffix="ELSE workNum end),"> <trim prefix="workNum=(case" suffix="ELSE workNum end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('workNum')) or (colPickMode==1 and !item.containsKey('workNum'))"> <if test="(colPickMode==0 and item.containsKey('workNum')) or (colPickMode==1 and !item.containsKey('workNum'))">
when a.id=#{item.id} then #{item.workNum} when a.id=#{item.id} then #{item.workNum}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="deptId=(case" suffix="ELSE deptId end),"> <trim prefix="deptId=(case" suffix="ELSE deptId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('deptId')) or (colPickMode==1 and !item.containsKey('deptId'))"> <when test="(colPickMode==0 and item.containsKey('deptId')) or (colPickMode==1 and !item.containsKey('deptId'))">
when a.id=#{item.id} then #{item.deptId} when a.id=#{item.id} then #{item.deptId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('deptIdIncrement')) or (colPickMode==1 and !item.containsKey('deptIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('deptIdIncrement')) or (colPickMode==1 and !item.containsKey('deptIdIncrement'))">
when a.id=#{item.id} then ifnull(a.deptId,0) + #{item.deptIdIncrement} when a.id=#{item.id} then ifnull(a.deptId,0) + #{item.deptIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="deptName=(case" suffix="ELSE deptName end),"> <trim prefix="deptName=(case" suffix="ELSE deptName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deptName')) or (colPickMode==1 and !item.containsKey('deptName'))"> <if test="(colPickMode==0 and item.containsKey('deptName')) or (colPickMode==1 and !item.containsKey('deptName'))">
when a.id=#{item.id} then #{item.deptName} when a.id=#{item.id} then #{item.deptName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="positionId=(case" suffix="ELSE positionId end),"> <trim prefix="positionId=(case" suffix="ELSE positionId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('positionId')) or (colPickMode==1 and !item.containsKey('positionId'))"> <when test="(colPickMode==0 and item.containsKey('positionId')) or (colPickMode==1 and !item.containsKey('positionId'))">
when a.id=#{item.id} then #{item.positionId} when a.id=#{item.id} then #{item.positionId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('positionIdIncrement')) or (colPickMode==1 and !item.containsKey('positionIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('positionIdIncrement')) or (colPickMode==1 and !item.containsKey('positionIdIncrement'))">
when a.id=#{item.id} then ifnull(a.positionId,0) + #{item.positionIdIncrement} when a.id=#{item.id} then ifnull(a.positionId,0) + #{item.positionIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="positionName=(case" suffix="ELSE positionName end),"> <trim prefix="positionName=(case" suffix="ELSE positionName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('positionName')) or (colPickMode==1 and !item.containsKey('positionName'))"> <if test="(colPickMode==0 and item.containsKey('positionName')) or (colPickMode==1 and !item.containsKey('positionName'))">
when a.id=#{item.id} then #{item.positionName} when a.id=#{item.id} then #{item.positionName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="attendanceGroupId=(case" suffix="ELSE attendanceGroupId end),"> <trim prefix="attendanceGroupId=(case" suffix="ELSE attendanceGroupId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('attendanceGroupId')) or (colPickMode==1 and !item.containsKey('attendanceGroupId'))"> <when test="(colPickMode==0 and item.containsKey('attendanceGroupId')) or (colPickMode==1 and !item.containsKey('attendanceGroupId'))">
when a.id=#{item.id} then #{item.attendanceGroupId} when a.id=#{item.id} then #{item.attendanceGroupId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('attendanceGroupIdIncrement')) or (colPickMode==1 and !item.containsKey('attendanceGroupIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('attendanceGroupIdIncrement')) or (colPickMode==1 and !item.containsKey('attendanceGroupIdIncrement'))">
when a.id=#{item.id} then ifnull(a.attendanceGroupId,0) + #{item.attendanceGroupIdIncrement} when a.id=#{item.id} then ifnull(a.attendanceGroupId,0) + #{item.attendanceGroupIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="attendanceGroupName=(case" suffix="ELSE attendanceGroupName end),"> <trim prefix="attendanceGroupName=(case" suffix="ELSE attendanceGroupName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('attendanceGroupName')) or (colPickMode==1 and !item.containsKey('attendanceGroupName'))"> <if test="(colPickMode==0 and item.containsKey('attendanceGroupName')) or (colPickMode==1 and !item.containsKey('attendanceGroupName'))">
when a.id=#{item.id} then #{item.attendanceGroupName} when a.id=#{item.id} then #{item.attendanceGroupName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="shiftsId=(case" suffix="ELSE shiftsId end),"> <trim prefix="shiftsId=(case" suffix="ELSE shiftsId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('shiftsId')) or (colPickMode==1 and !item.containsKey('shiftsId'))"> <when test="(colPickMode==0 and item.containsKey('shiftsId')) or (colPickMode==1 and !item.containsKey('shiftsId'))">
when a.id=#{item.id} then #{item.shiftsId} when a.id=#{item.id} then #{item.shiftsId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('shiftsIdIncrement')) or (colPickMode==1 and !item.containsKey('shiftsIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('shiftsIdIncrement')) or (colPickMode==1 and !item.containsKey('shiftsIdIncrement'))">
when a.id=#{item.id} then ifnull(a.shiftsId,0) + #{item.shiftsIdIncrement} when a.id=#{item.id} then ifnull(a.shiftsId,0) + #{item.shiftsIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="shiftsName=(case" suffix="ELSE shiftsName end),"> <trim prefix="shiftsName=(case" suffix="ELSE shiftsName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('shiftsName')) or (colPickMode==1 and !item.containsKey('shiftsName'))"> <if test="(colPickMode==0 and item.containsKey('shiftsName')) or (colPickMode==1 and !item.containsKey('shiftsName'))">
when a.id=#{item.id} then #{item.shiftsName} when a.id=#{item.id} then #{item.shiftsName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="attendanceDate=(case" suffix="ELSE attendanceDate end),"> <trim prefix="attendanceDate=(case" suffix="ELSE attendanceDate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('attendanceDate')) or (colPickMode==1 and !item.containsKey('attendanceDate'))"> <if test="(colPickMode==0 and item.containsKey('attendanceDate')) or (colPickMode==1 and !item.containsKey('attendanceDate'))">
when a.id=#{item.id} then #{item.attendanceDate} when a.id=#{item.id} then #{item.attendanceDate}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="remark=(case" suffix="ELSE remark end),"> <trim prefix="remark=(case" suffix="ELSE remark end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))"> <if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))">
when a.id=#{item.id} then #{item.remark} when a.id=#{item.id} then #{item.remark}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),"> <trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))"> <when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId} when a.id=#{item.id} then #{item.createUserId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement} when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),"> <trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))"> <if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime} when a.id=#{item.id} then #{item.createTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),"> <trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))"> <when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId} when a.id=#{item.id} then #{item.updateUserId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement} when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),"> <trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))"> <if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime} when a.id=#{item.id} then #{item.updateTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
</trim> </trim>
where id in where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
...@@ -493,517 +494,517 @@ ...@@ -493,517 +494,517 @@
${_conditionType_} a.id=#{${_conditionParam_}.id} ${_conditionType_} a.id=#{${_conditionParam_}.id}
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('id')"> <if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null "> <if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id} ${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_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>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null"> <if test="conditionParamRef.id == null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_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('staffId')"> <if test="conditionParamRef.containsKey('staffId')">
<if test="conditionParamRef.staffId != null "> <if test="conditionParamRef.staffId != null ">
${_conditionType_} a.staffId = #{${_conditionParam_}.staffId} ${_conditionType_} a.staffId = #{${_conditionParam_}.staffId}
</if>
<if test="conditionParamRef.staffId == null">
${_conditionType_} a.staffId is null
</if>
</if>
<if test="conditionParamRef.containsKey('staffIdList')">
${_conditionType_} a.staffId in
<foreach collection="conditionParamRef.staffIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('staffIdNotList')">
${_conditionType_} a.staffId not in
<foreach collection="conditionParamRef.staffIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('staffIdStart') and conditionParamRef.staffIdStart != null">
${_conditionType_} a.staffId <![CDATA[ >= ]]> #{${_conditionParam_}.staffIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('staffIdEnd') and conditionParamRef.staffIdEnd != null"> <if test="conditionParamRef.staffId == null">
${_conditionType_} a.staffId <![CDATA[ <= ]]> #{${_conditionParam_}.staffIdEnd} ${_conditionType_} a.staffId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('staffIdList')">
${_conditionType_} a.staffId in
<foreach collection="conditionParamRef.staffIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('staffIdNotList')">
${_conditionType_} a.staffId not in
<foreach collection="conditionParamRef.staffIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('staffIdStart') and conditionParamRef.staffIdStart != null">
${_conditionType_} a.staffId <![CDATA[ >= ]]> #{${_conditionParam_}.staffIdStart}
</if>
<if test="conditionParamRef.containsKey('staffIdEnd') and conditionParamRef.staffIdEnd != null">
${_conditionType_} a.staffId <![CDATA[ <= ]]> #{${_conditionParam_}.staffIdEnd}
</if>
<if test="conditionParamRef.containsKey('staffName')"> <if test="conditionParamRef.containsKey('staffName')">
<if test="conditionParamRef.staffName != null and conditionParamRef.staffName != ''"> <if test="conditionParamRef.staffName != null and conditionParamRef.staffName != ''">
${_conditionType_} a.staffName like #{${_conditionParam_}.staffName} ${_conditionType_} a.staffName like #{${_conditionParam_}.staffName}
</if>
<if test="conditionParamRef.staffName == null">
${_conditionType_} a.staffName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('staffNameList')"> <if test="conditionParamRef.staffName == null">
${_conditionType_} a.staffName in ${_conditionType_} a.staffName is null
<foreach collection="conditionParamRef.staffNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('staffNameNotList')">
${_conditionType_} a.staffName not in
<foreach collection="conditionParamRef.staffNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('staffNameList')">
${_conditionType_} a.staffName in
<foreach collection="conditionParamRef.staffNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('staffNameNotList')">
${_conditionType_} a.staffName not in
<foreach collection="conditionParamRef.staffNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('workNum')"> <if test="conditionParamRef.containsKey('workNum')">
<if test="conditionParamRef.workNum != null and conditionParamRef.workNum != ''"> <if test="conditionParamRef.workNum != null and conditionParamRef.workNum != ''">
${_conditionType_} a.workNum like #{${_conditionParam_}.workNum} ${_conditionType_} a.workNum like #{${_conditionParam_}.workNum}
</if>
<if test="conditionParamRef.workNum == null">
${_conditionType_} a.workNum is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('workNumList')"> <if test="conditionParamRef.workNum == null">
${_conditionType_} a.workNum in ${_conditionType_} a.workNum is null
<foreach collection="conditionParamRef.workNumList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('workNumNotList')">
${_conditionType_} a.workNum not in
<foreach collection="conditionParamRef.workNumNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('deptId')"> </if>
<if test="conditionParamRef.deptId != null "> <if test="conditionParamRef.containsKey('workNumList')">
${_conditionType_} a.deptId = #{${_conditionParam_}.deptId} ${_conditionType_} a.workNum in
</if> <foreach collection="conditionParamRef.workNumList" open="(" close=")" index="index" item="item" separator=",">
<if test="conditionParamRef.deptId == null"> #{item}
${_conditionType_} a.deptId is null </foreach>
</if> </if>
</if> <if test="conditionParamRef.containsKey('workNumNotList')">
<if test="conditionParamRef.containsKey('deptIdList')"> ${_conditionType_} a.workNum not in
${_conditionType_} a.deptId in <foreach collection="conditionParamRef.workNumNotList" open="(" close=")" index="index" item="item" separator=",">
<foreach collection="conditionParamRef.deptIdList" open="(" close=")" index="index" item="item" separator=","> #{item}
#{item} </foreach>
</foreach> </if>
</if> <if test="conditionParamRef.containsKey('deptId')">
<if test="conditionParamRef.containsKey('deptIdNotList')"> <if test="conditionParamRef.deptId != null ">
${_conditionType_} a.deptId not in ${_conditionType_} a.deptId = #{${_conditionParam_}.deptId}
<foreach collection="conditionParamRef.deptIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdStart') and conditionParamRef.deptIdStart != null">
${_conditionType_} a.deptId <![CDATA[ >= ]]> #{${_conditionParam_}.deptIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('deptIdEnd') and conditionParamRef.deptIdEnd != null"> <if test="conditionParamRef.deptId == null">
${_conditionType_} a.deptId <![CDATA[ <= ]]> #{${_conditionParam_}.deptIdEnd} ${_conditionType_} a.deptId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('deptIdList')">
${_conditionType_} a.deptId in
<foreach collection="conditionParamRef.deptIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdNotList')">
${_conditionType_} a.deptId not in
<foreach collection="conditionParamRef.deptIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdStart') and conditionParamRef.deptIdStart != null">
${_conditionType_} a.deptId <![CDATA[ >= ]]> #{${_conditionParam_}.deptIdStart}
</if>
<if test="conditionParamRef.containsKey('deptIdEnd') and conditionParamRef.deptIdEnd != null">
${_conditionType_} a.deptId <![CDATA[ <= ]]> #{${_conditionParam_}.deptIdEnd}
</if>
<if test="conditionParamRef.containsKey('deptName')"> <if test="conditionParamRef.containsKey('deptName')">
<if test="conditionParamRef.deptName != null and conditionParamRef.deptName != ''"> <if test="conditionParamRef.deptName != null and conditionParamRef.deptName != ''">
${_conditionType_} a.deptName like #{${_conditionParam_}.deptName} ${_conditionType_} a.deptName like #{${_conditionParam_}.deptName}
</if>
<if test="conditionParamRef.deptName == null">
${_conditionType_} a.deptName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('deptNameList')"> <if test="conditionParamRef.deptName == null">
${_conditionType_} a.deptName in ${_conditionType_} a.deptName is null
<foreach collection="conditionParamRef.deptNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptNameNotList')">
${_conditionType_} a.deptName not in
<foreach collection="conditionParamRef.deptNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('positionId')"> </if>
<if test="conditionParamRef.positionId != null "> <if test="conditionParamRef.containsKey('deptNameList')">
${_conditionType_} a.positionId = #{${_conditionParam_}.positionId} ${_conditionType_} a.deptName in
</if> <foreach collection="conditionParamRef.deptNameList" open="(" close=")" index="index" item="item" separator=",">
<if test="conditionParamRef.positionId == null"> #{item}
${_conditionType_} a.positionId is null </foreach>
</if> </if>
</if> <if test="conditionParamRef.containsKey('deptNameNotList')">
<if test="conditionParamRef.containsKey('positionIdList')"> ${_conditionType_} a.deptName not in
${_conditionType_} a.positionId in <foreach collection="conditionParamRef.deptNameNotList" open="(" close=")" index="index" item="item" separator=",">
<foreach collection="conditionParamRef.positionIdList" open="(" close=")" index="index" item="item" separator=","> #{item}
#{item} </foreach>
</foreach> </if>
</if> <if test="conditionParamRef.containsKey('positionId')">
<if test="conditionParamRef.containsKey('positionIdNotList')"> <if test="conditionParamRef.positionId != null ">
${_conditionType_} a.positionId not in ${_conditionType_} a.positionId = #{${_conditionParam_}.positionId}
<foreach collection="conditionParamRef.positionIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('positionIdStart') and conditionParamRef.positionIdStart != null">
${_conditionType_} a.positionId <![CDATA[ >= ]]> #{${_conditionParam_}.positionIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('positionIdEnd') and conditionParamRef.positionIdEnd != null"> <if test="conditionParamRef.positionId == null">
${_conditionType_} a.positionId <![CDATA[ <= ]]> #{${_conditionParam_}.positionIdEnd} ${_conditionType_} a.positionId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('positionIdList')">
${_conditionType_} a.positionId in
<foreach collection="conditionParamRef.positionIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('positionIdNotList')">
${_conditionType_} a.positionId not in
<foreach collection="conditionParamRef.positionIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('positionIdStart') and conditionParamRef.positionIdStart != null">
${_conditionType_} a.positionId <![CDATA[ >= ]]> #{${_conditionParam_}.positionIdStart}
</if>
<if test="conditionParamRef.containsKey('positionIdEnd') and conditionParamRef.positionIdEnd != null">
${_conditionType_} a.positionId <![CDATA[ <= ]]> #{${_conditionParam_}.positionIdEnd}
</if>
<if test="conditionParamRef.containsKey('positionName')"> <if test="conditionParamRef.containsKey('positionName')">
<if test="conditionParamRef.positionName != null and conditionParamRef.positionName != ''"> <if test="conditionParamRef.positionName != null and conditionParamRef.positionName != ''">
${_conditionType_} a.positionName like #{${_conditionParam_}.positionName} ${_conditionType_} a.positionName like #{${_conditionParam_}.positionName}
</if>
<if test="conditionParamRef.positionName == null">
${_conditionType_} a.positionName is null
</if>
</if>
<if test="conditionParamRef.containsKey('positionNameList')">
${_conditionType_} a.positionName in
<foreach collection="conditionParamRef.positionNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('positionNameNotList')"> <if test="conditionParamRef.positionName == null">
${_conditionType_} a.positionName not in ${_conditionType_} a.positionName is null
<foreach collection="conditionParamRef.positionNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('attendanceGroupId')">
<if test="conditionParamRef.attendanceGroupId != null ">
${_conditionType_} a.attendanceGroupId = #{${_conditionParam_}.attendanceGroupId}
</if>
<if test="conditionParamRef.attendanceGroupId == null">
${_conditionType_} a.attendanceGroupId is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('attendanceGroupIdList')"> </if>
${_conditionType_} a.attendanceGroupId in <if test="conditionParamRef.containsKey('positionNameList')">
<foreach collection="conditionParamRef.attendanceGroupIdList" open="(" close=")" index="index" item="item" separator=","> ${_conditionType_} a.positionName in
#{item} <foreach collection="conditionParamRef.positionNameList" open="(" close=")" index="index" item="item" separator=",">
</foreach> #{item}
</if> </foreach>
<if test="conditionParamRef.containsKey('attendanceGroupIdNotList')"> </if>
${_conditionType_} a.attendanceGroupId not in <if test="conditionParamRef.containsKey('positionNameNotList')">
<foreach collection="conditionParamRef.attendanceGroupIdNotList" open="(" close=")" index="index" item="item" separator=","> ${_conditionType_} a.positionName not in
#{item} <foreach collection="conditionParamRef.positionNameNotList" open="(" close=")" index="index" item="item" separator=",">
</foreach> #{item}
</if> </foreach>
<if test="conditionParamRef.containsKey('attendanceGroupIdStart') and conditionParamRef.attendanceGroupIdStart != null"> </if>
${_conditionType_} a.attendanceGroupId <![CDATA[ >= ]]> #{${_conditionParam_}.attendanceGroupIdStart} <if test="conditionParamRef.containsKey('attendanceGroupId')">
<if test="conditionParamRef.attendanceGroupId != null ">
${_conditionType_} a.attendanceGroupId = #{${_conditionParam_}.attendanceGroupId}
</if> </if>
<if test="conditionParamRef.containsKey('attendanceGroupIdEnd') and conditionParamRef.attendanceGroupIdEnd != null"> <if test="conditionParamRef.attendanceGroupId == null">
${_conditionType_} a.attendanceGroupId <![CDATA[ <= ]]> #{${_conditionParam_}.attendanceGroupIdEnd} ${_conditionType_} a.attendanceGroupId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('attendanceGroupIdList')">
${_conditionType_} a.attendanceGroupId in
<foreach collection="conditionParamRef.attendanceGroupIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('attendanceGroupIdNotList')">
${_conditionType_} a.attendanceGroupId not in
<foreach collection="conditionParamRef.attendanceGroupIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('attendanceGroupIdStart') and conditionParamRef.attendanceGroupIdStart != null">
${_conditionType_} a.attendanceGroupId <![CDATA[ >= ]]> #{${_conditionParam_}.attendanceGroupIdStart}
</if>
<if test="conditionParamRef.containsKey('attendanceGroupIdEnd') and conditionParamRef.attendanceGroupIdEnd != null">
${_conditionType_} a.attendanceGroupId <![CDATA[ <= ]]> #{${_conditionParam_}.attendanceGroupIdEnd}
</if>
<if test="conditionParamRef.containsKey('attendanceGroupName')"> <if test="conditionParamRef.containsKey('attendanceGroupName')">
<if test="conditionParamRef.attendanceGroupName != null and conditionParamRef.attendanceGroupName != ''"> <if test="conditionParamRef.attendanceGroupName != null and conditionParamRef.attendanceGroupName != ''">
${_conditionType_} a.attendanceGroupName like #{${_conditionParam_}.attendanceGroupName} ${_conditionType_} a.attendanceGroupName like #{${_conditionParam_}.attendanceGroupName}
</if>
<if test="conditionParamRef.attendanceGroupName == null">
${_conditionType_} a.attendanceGroupName is null
</if>
</if>
<if test="conditionParamRef.containsKey('attendanceGroupNameList')">
${_conditionType_} a.attendanceGroupName in
<foreach collection="conditionParamRef.attendanceGroupNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('attendanceGroupNameNotList')"> <if test="conditionParamRef.attendanceGroupName == null">
${_conditionType_} a.attendanceGroupName not in ${_conditionType_} a.attendanceGroupName is null
<foreach collection="conditionParamRef.attendanceGroupNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('shiftsId')"> </if>
<if test="conditionParamRef.shiftsId != null "> <if test="conditionParamRef.containsKey('attendanceGroupNameList')">
${_conditionType_} a.shiftsId = #{${_conditionParam_}.shiftsId} ${_conditionType_} a.attendanceGroupName in
</if> <foreach collection="conditionParamRef.attendanceGroupNameList" open="(" close=")" index="index" item="item" separator=",">
<if test="conditionParamRef.shiftsId == null"> #{item}
${_conditionType_} a.shiftsId is null </foreach>
</if> </if>
</if> <if test="conditionParamRef.containsKey('attendanceGroupNameNotList')">
<if test="conditionParamRef.containsKey('shiftsIdList')"> ${_conditionType_} a.attendanceGroupName not in
${_conditionType_} a.shiftsId in <foreach collection="conditionParamRef.attendanceGroupNameNotList" open="(" close=")" index="index" item="item" separator=",">
<foreach collection="conditionParamRef.shiftsIdList" open="(" close=")" index="index" item="item" separator=","> #{item}
#{item} </foreach>
</foreach> </if>
</if> <if test="conditionParamRef.containsKey('shiftsId')">
<if test="conditionParamRef.containsKey('shiftsIdNotList')"> <if test="conditionParamRef.shiftsId != null ">
${_conditionType_} a.shiftsId not in ${_conditionType_} a.shiftsId = #{${_conditionParam_}.shiftsId}
<foreach collection="conditionParamRef.shiftsIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsIdStart') and conditionParamRef.shiftsIdStart != null">
${_conditionType_} a.shiftsId <![CDATA[ >= ]]> #{${_conditionParam_}.shiftsIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('shiftsIdEnd') and conditionParamRef.shiftsIdEnd != null"> <if test="conditionParamRef.shiftsId == null">
${_conditionType_} a.shiftsId <![CDATA[ <= ]]> #{${_conditionParam_}.shiftsIdEnd} ${_conditionType_} a.shiftsId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('shiftsIdList')">
${_conditionType_} a.shiftsId in
<foreach collection="conditionParamRef.shiftsIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsIdNotList')">
${_conditionType_} a.shiftsId not in
<foreach collection="conditionParamRef.shiftsIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsIdStart') and conditionParamRef.shiftsIdStart != null">
${_conditionType_} a.shiftsId <![CDATA[ >= ]]> #{${_conditionParam_}.shiftsIdStart}
</if>
<if test="conditionParamRef.containsKey('shiftsIdEnd') and conditionParamRef.shiftsIdEnd != null">
${_conditionType_} a.shiftsId <![CDATA[ <= ]]> #{${_conditionParam_}.shiftsIdEnd}
</if>
<if test="conditionParamRef.containsKey('shiftsName')"> <if test="conditionParamRef.containsKey('shiftsName')">
<if test="conditionParamRef.shiftsName != null and conditionParamRef.shiftsName != ''"> <if test="conditionParamRef.shiftsName != null and conditionParamRef.shiftsName != ''">
${_conditionType_} a.shiftsName like #{${_conditionParam_}.shiftsName} ${_conditionType_} a.shiftsName like #{${_conditionParam_}.shiftsName}
</if>
<if test="conditionParamRef.shiftsName == null">
${_conditionType_} a.shiftsName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('shiftsNameList')"> <if test="conditionParamRef.shiftsName == null">
${_conditionType_} a.shiftsName in ${_conditionType_} a.shiftsName is null
<foreach collection="conditionParamRef.shiftsNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsNameNotList')">
${_conditionType_} a.shiftsName not in
<foreach collection="conditionParamRef.shiftsNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('shiftsNameList')">
${_conditionType_} a.shiftsName in
<foreach collection="conditionParamRef.shiftsNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('shiftsNameNotList')">
${_conditionType_} a.shiftsName not in
<foreach collection="conditionParamRef.shiftsNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('attendanceDate')"> <if test="conditionParamRef.containsKey('attendanceDate')">
<if test="conditionParamRef.attendanceDate != null "> <if test="conditionParamRef.attendanceDate != null ">
${_conditionType_} a.attendanceDate = #{${_conditionParam_}.attendanceDate} ${_conditionType_} a.attendanceDate = #{${_conditionParam_}.attendanceDate}
</if>
<if test="conditionParamRef.attendanceDate == null">
${_conditionType_} a.attendanceDate is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('attendanceDateStart') and conditionParamRef.attendanceDateStart != null and conditionParamRef.attendanceDateStart!=''"> <if test="conditionParamRef.attendanceDate == null">
${_conditionType_} a.attendanceDate <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.attendanceDateStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.attendanceDate is null
</if>
<if test="conditionParamRef.containsKey('attendanceDateEnd') and conditionParamRef.attendanceDateEnd != null and conditionParamRef.attendanceDateEnd!=''">
${_conditionType_} a.attendanceDate <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.attendanceDateEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if> </if>
</if>
<if test="conditionParamRef.containsKey('attendanceDateStart') and conditionParamRef.attendanceDateStart != null and conditionParamRef.attendanceDateStart!=''">
${_conditionType_} a.attendanceDate <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.attendanceDateStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('attendanceDateEnd') and conditionParamRef.attendanceDateEnd != null and conditionParamRef.attendanceDateEnd!=''">
${_conditionType_} a.attendanceDate <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.attendanceDateEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('remark')"> <if test="conditionParamRef.containsKey('remark')">
<if test="conditionParamRef.remark != null and conditionParamRef.remark != ''"> <if test="conditionParamRef.remark != null and conditionParamRef.remark != ''">
${_conditionType_} a.remark like #{${_conditionParam_}.remark} ${_conditionType_} a.remark like #{${_conditionParam_}.remark}
</if>
<if test="conditionParamRef.remark == null">
${_conditionType_} a.remark is null
</if>
</if>
<if test="conditionParamRef.containsKey('remarkList')">
${_conditionType_} a.remark in
<foreach collection="conditionParamRef.remarkList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('remarkNotList')"> <if test="conditionParamRef.remark == null">
${_conditionType_} a.remark not in ${_conditionType_} a.remark is null
<foreach collection="conditionParamRef.remarkNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('createUserId')"> </if>
<if test="conditionParamRef.createUserId != null "> <if test="conditionParamRef.containsKey('remarkList')">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId} ${_conditionType_} a.remark in
</if> <foreach collection="conditionParamRef.remarkList" open="(" close=")" index="index" item="item" separator=",">
<if test="conditionParamRef.createUserId == null"> #{item}
${_conditionType_} a.createUserId is null </foreach>
</if> </if>
</if> <if test="conditionParamRef.containsKey('remarkNotList')">
<if test="conditionParamRef.containsKey('createUserIdList')"> ${_conditionType_} a.remark not in
${_conditionType_} a.createUserId in <foreach collection="conditionParamRef.remarkNotList" open="(" close=")" index="index" item="item" separator=",">
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=","> #{item}
#{item} </foreach>
</foreach> </if>
</if> <if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.containsKey('createUserIdNotList')"> <if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId not in ${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
<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>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null"> <if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd} ${_conditionType_} a.createUserId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_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.containsKey('createTime')">
<if test="conditionParamRef.createTime != null "> <if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime} ${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''"> <if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.createTime is null
</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')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null"> </if>
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart} <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>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null"> <if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd} ${_conditionType_} a.updateUserId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_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.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null "> <if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime} ${_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>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''"> <if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.updateTime is null
</if> </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>
<sql id="_orderCols_"> <sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()"> <if test="orderColList != null and !orderColList.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=","> <foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind} ${item.colName} ${item.sortKind}
</foreach> </foreach>
</trim> </trim>
</if> </if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"> <if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')"> <if test="orderCol.containsKey('id')">
a.id a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('staffId')"> <if test="orderCol.containsKey('staffId')">
a.staffId a.staffId
<if test='orderCol.staffId != null and "DESC".equalsIgnoreCase(orderCol.staffId)'>DESC</if> <if test='orderCol.staffId != null and "DESC".equalsIgnoreCase(orderCol.staffId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('staffName')"> <if test="orderCol.containsKey('staffName')">
a.staffName a.staffName
<if test='orderCol.staffName != null and "DESC".equalsIgnoreCase(orderCol.staffName)'>DESC</if> <if test='orderCol.staffName != null and "DESC".equalsIgnoreCase(orderCol.staffName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('workNum')"> <if test="orderCol.containsKey('workNum')">
a.workNum a.workNum
<if test='orderCol.workNum != null and "DESC".equalsIgnoreCase(orderCol.workNum)'>DESC</if> <if test='orderCol.workNum != null and "DESC".equalsIgnoreCase(orderCol.workNum)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deptId')"> <if test="orderCol.containsKey('deptId')">
a.deptId a.deptId
<if test='orderCol.deptId != null and "DESC".equalsIgnoreCase(orderCol.deptId)'>DESC</if> <if test='orderCol.deptId != null and "DESC".equalsIgnoreCase(orderCol.deptId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deptName')"> <if test="orderCol.containsKey('deptName')">
a.deptName a.deptName
<if test='orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'>DESC</if> <if test='orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('positionId')"> <if test="orderCol.containsKey('positionId')">
a.positionId a.positionId
<if test='orderCol.positionId != null and "DESC".equalsIgnoreCase(orderCol.positionId)'>DESC</if> <if test='orderCol.positionId != null and "DESC".equalsIgnoreCase(orderCol.positionId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('positionName')"> <if test="orderCol.containsKey('positionName')">
a.positionName a.positionName
<if test='orderCol.positionName != null and "DESC".equalsIgnoreCase(orderCol.positionName)'>DESC</if> <if test='orderCol.positionName != null and "DESC".equalsIgnoreCase(orderCol.positionName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('attendanceGroupId')"> <if test="orderCol.containsKey('attendanceGroupId')">
a.attendanceGroupId a.attendanceGroupId
<if test='orderCol.attendanceGroupId != null and "DESC".equalsIgnoreCase(orderCol.attendanceGroupId)'>DESC</if> <if test='orderCol.attendanceGroupId != null and "DESC".equalsIgnoreCase(orderCol.attendanceGroupId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('attendanceGroupName')"> <if test="orderCol.containsKey('attendanceGroupName')">
a.attendanceGroupName a.attendanceGroupName
<if test='orderCol.attendanceGroupName != null and "DESC".equalsIgnoreCase(orderCol.attendanceGroupName)'>DESC</if> <if test='orderCol.attendanceGroupName != null and "DESC".equalsIgnoreCase(orderCol.attendanceGroupName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('shiftsId')"> <if test="orderCol.containsKey('shiftsId')">
a.shiftsId a.shiftsId
<if test='orderCol.shiftsId != null and "DESC".equalsIgnoreCase(orderCol.shiftsId)'>DESC</if> <if test='orderCol.shiftsId != null and "DESC".equalsIgnoreCase(orderCol.shiftsId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('shiftsName')"> <if test="orderCol.containsKey('shiftsName')">
a.shiftsName a.shiftsName
<if test='orderCol.shiftsName != null and "DESC".equalsIgnoreCase(orderCol.shiftsName)'>DESC</if> <if test='orderCol.shiftsName != null and "DESC".equalsIgnoreCase(orderCol.shiftsName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('attendanceDate')"> <if test="orderCol.containsKey('attendanceDate')">
a.attendanceDate a.attendanceDate
<if test='orderCol.attendanceDate != null and "DESC".equalsIgnoreCase(orderCol.attendanceDate)'>DESC</if> <if test='orderCol.attendanceDate != null and "DESC".equalsIgnoreCase(orderCol.attendanceDate)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('remark')"> <if test="orderCol.containsKey('remark')">
a.remark a.remark
<if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if> <if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createUserId')"> <if test="orderCol.containsKey('createUserId')">
a.createUserId a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if> <if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createTime')"> <if test="orderCol.containsKey('createTime')">
a.createTime a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if> <if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('updateUserId')"> <if test="orderCol.containsKey('updateUserId')">
a.updateUserId a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if> <if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('updateTime')"> <if test="orderCol.containsKey('updateTime')">
a.updateTime a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if> <if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
, ,
</if> </if>
</trim> </trim>
</if> </if>
</sql> </sql>
...@@ -1017,4 +1018,4 @@ ...@@ -1017,4 +1018,4 @@
</trim> </trim>
</if> </if>
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file
...@@ -230,9 +230,10 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '考勤组信息-菜单管理- ...@@ -230,9 +230,10 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '考勤组信息-菜单管理-
-- ---------------------------- -- ----------------------------
-- 考勤组信息参数 SQL -- 考勤组信息参数 SQL
-- ---------------------------- -- ----------------------------
INSERT INTO `mortals_xhx_param` VALUES (null, '类型', 'AttendanceGroup', 'type', '1', '固定班', 1, 4, 0, 'type', NULL, NULL, NULL); INSERT INTO `mortals_xhx_param` VALUES (null, '类型', 'AttendanceGroup', 'type', '1', '固定班', 1, 4, 0, 'type', NULL, NULL, NULL);
-- ---------------------------- -- ----------------------------
-- 考勤班次信息菜单 SQL -- 考勤班次信息菜单 SQL
-- ---------------------------- -- ----------------------------
INSERT INTO `mortals_xhx_menu` VALUES (null, '考勤班次信息', '/attendance/class/list', 0, 1, 1, 0, 0,'',NULL, NULL, NULL, 0, 0, 1, NULL, NULL, NULL); INSERT INTO `mortals_xhx_menu` VALUES (null, '考勤班次信息', '/attendance/class/list', 0, 1, 1, 0, 0,'',NULL, NULL, NULL, 0, 0, 1, NULL, NULL, NULL);
...@@ -569,4 +570,4 @@ INSERT INTO `mortals_xhx_param` VALUES (null, '请假类型', 'AttendanceVacatio ...@@ -569,4 +570,4 @@ INSERT INTO `mortals_xhx_param` VALUES (null, '请假类型', 'AttendanceVacatio
INSERT INTO `mortals_xhx_param` VALUES (null, '请假类型', 'AttendanceVacationRecord', 'type', '20', '调回单位', 1, 4, 0, 'type', NULL, NULL, NULL); INSERT INTO `mortals_xhx_param` VALUES (null, '请假类型', 'AttendanceVacationRecord', 'type', '20', '调回单位', 1, 4, 0, 'type', NULL, NULL, NULL);
INSERT INTO `mortals_xhx_param` VALUES (null, '请假类型', 'AttendanceVacationRecord', 'type', '21', '探亲假', 1, 4, 0, 'type', NULL, NULL, NULL); INSERT INTO `mortals_xhx_param` VALUES (null, '请假类型', 'AttendanceVacationRecord', 'type', '21', '探亲假', 1, 4, 0, 'type', NULL, NULL, NULL);
INSERT INTO `mortals_xhx_param` VALUES (null, '增减类型', 'AttendanceVacationRecord', 'subAddType', '1', '增加', 1, 4, 0, 'subAddType', NULL, NULL, NULL); INSERT INTO `mortals_xhx_param` VALUES (null, '增减类型', 'AttendanceVacationRecord', 'subAddType', '1', '增加', 1, 4, 0, 'subAddType', NULL, NULL, NULL);
INSERT INTO `mortals_xhx_param` VALUES (null, '增减类型', 'AttendanceVacationRecord', 'subAddType', '2', '扣除', 1, 4, 0, 'subAddType', NULL, NULL, NULL); INSERT INTO `mortals_xhx_param` VALUES (null, '增减类型', 'AttendanceVacationRecord', 'subAddType', '2', '扣除', 1, 4, 0, 'subAddType', NULL, NULL, NULL);
\ No newline at end of file
...@@ -329,6 +329,7 @@ PRIMARY KEY (`id`) ...@@ -329,6 +329,7 @@ PRIMARY KEY (`id`)
-- ---------------------------- -- ----------------------------
-- 请假记录信息表 -- 请假记录信息表
-- ---------------------------- -- ----------------------------
......
...@@ -6925,7 +6925,7 @@ data|object|数据对象 ...@@ -6925,7 +6925,7 @@ data|object|数据对象
&emsp;&emsp;groupName|String|考勤组名称 &emsp;&emsp;groupName|String|考勤组名称
&emsp;&emsp;personNum|Integer|人数 &emsp;&emsp;personNum|Integer|人数
&emsp;&emsp;responsiblePerson|String|负责人 &emsp;&emsp;responsiblePerson|String|负责人
&emsp;&emsp;type|Integer|类型(1.固定班) &emsp;&emsp;type|Integer|类型(1.固定班)
&emsp;&emsp;attendanceTime|Integer|考勤时间 &emsp;&emsp;attendanceTime|Integer|考勤时间
&emsp;&emsp;remark|String|备注 &emsp;&emsp;remark|String|备注
&emsp;&emsp;createUserId|Long|创建用户 &emsp;&emsp;createUserId|Long|创建用户
...@@ -6975,7 +6975,7 @@ data|object|数据对象 ...@@ -6975,7 +6975,7 @@ data|object|数据对象
&emsp;groupName|String|考勤组名称 &emsp;groupName|String|考勤组名称
&emsp;personNum|Integer|人数 &emsp;personNum|Integer|人数
&emsp;responsiblePerson|String|负责人 &emsp;responsiblePerson|String|负责人
&emsp;type|Integer|类型(1.固定班) &emsp;type|Integer|类型(1.固定班)
&emsp;attendanceTime|Integer|考勤时间 &emsp;attendanceTime|Integer|考勤时间
&emsp;remark|String|备注 &emsp;remark|String|备注
&emsp;createUserId|Long|创建用户 &emsp;createUserId|Long|创建用户
...@@ -7022,7 +7022,7 @@ dict|object|字典对象 ...@@ -7022,7 +7022,7 @@ dict|object|字典对象
groupName|String|否|考勤组名称 groupName|String|否|考勤组名称
personNum|Integer|否|人数 personNum|Integer|否|人数
responsiblePerson|String|否|负责人 responsiblePerson|String|否|负责人
type|Integer|否|类型(1.固定班) type|Integer|否|类型(1.固定班)
attendanceTime|Integer|否|考勤时间 attendanceTime|Integer|否|考勤时间
remark|String|否|备注 remark|String|否|备注
...@@ -7051,7 +7051,7 @@ data|object|数据对象 ...@@ -7051,7 +7051,7 @@ data|object|数据对象
&emsp;&emsp;groupName|String|考勤组名称 &emsp;&emsp;groupName|String|考勤组名称
&emsp;&emsp;personNum|Integer|人数 &emsp;&emsp;personNum|Integer|人数
&emsp;&emsp;responsiblePerson|String|负责人 &emsp;&emsp;responsiblePerson|String|负责人
&emsp;&emsp;type|Integer|类型(1.固定班) &emsp;&emsp;type|Integer|类型(1.固定班)
&emsp;&emsp;attendanceTime|Integer|考勤时间 &emsp;&emsp;attendanceTime|Integer|考勤时间
&emsp;&emsp;remark|String|备注 &emsp;&emsp;remark|String|备注
&emsp;&emsp;createUserId|Long|创建用户 &emsp;&emsp;createUserId|Long|创建用户
...@@ -10707,7 +10707,7 @@ msg|String|消息|- ...@@ -10707,7 +10707,7 @@ msg|String|消息|-
### type ### type
字典参数key|字典参数值|其它 字典参数key|字典参数值|其它
:---|:---|:--- :---|:---|:---
1|固定班|- 1|固定班|-
### leaveType ### leaveType
字典参数key|字典参数值|其它 字典参数key|字典参数值|其它
:---|:---|:--- :---|:---|:---
......
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