Commit 6da8255c authored by 赵啸非's avatar 赵啸非

核查列表添加

parent 5ae2d7fd
...@@ -7,11 +7,11 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -7,11 +7,11 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.perform.model.vo.PerformPerposeDeptVo; import com.mortals.xhx.module.perform.model.vo.PerformPerposeDeptVo;
import lombok.Data; import lombok.Data;
/** /**
* 部门考核目标详细信息实体对象 * 部门考核目标详细信息实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-16 * @date 2023-07-12
*/ */
@Data @Data
public class PerformPerposeDeptEntity extends PerformPerposeDeptVo { public class PerformPerposeDeptEntity extends PerformPerposeDeptVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -3,26 +3,26 @@ package com.mortals.xhx.module.perform.model; ...@@ -3,26 +3,26 @@ package com.mortals.xhx.module.perform.model;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.perform.model.PerformPerposeDeptEntity; import com.mortals.xhx.module.perform.model.PerformPerposeDeptEntity;
/** /**
* 部门考核目标详细信息查询对象 * 部门考核目标详细信息查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-16 * @date 2023-07-12
*/ */
public class PerformPerposeDeptQuery extends PerformPerposeDeptEntity { public class PerformPerposeDeptQuery extends PerformPerposeDeptEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
private Long IdStart; private Long idStart;
/** 结束 序号,主键,自增长 */ /** 结束 序号,主键,自增长 */
private Long IdEnd; private Long idEnd;
/** 增加 序号,主键,自增长 */ /** 增加 序号,主键,自增长 */
private Long IdIncrement; private Long idIncrement;
/** 序号,主键,自增长列表 */ /** 序号,主键,自增长列表 */
private List <Long> IdList; private List <Long> idList;
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> IdNotList; private List <Long> idNotList;
/** 开始 考核目标id */ /** 开始 考核目标id */
private Long purposeConfIdStart; private Long purposeConfIdStart;
...@@ -116,82 +116,82 @@ public class PerformPerposeDeptQuery extends PerformPerposeDeptEntity { ...@@ -116,82 +116,82 @@ public class PerformPerposeDeptQuery extends PerformPerposeDeptEntity {
/** /**
* 获取 开始 序号,主键,自增长 * 获取 开始 序号,主键,自增长
* @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;
} }
...@@ -649,55 +649,55 @@ public class PerformPerposeDeptQuery extends PerformPerposeDeptEntity { ...@@ -649,55 +649,55 @@ public class PerformPerposeDeptQuery extends PerformPerposeDeptEntity {
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param Id * @param id
*/ */
public PerformPerposeDeptQuery Id(Long Id){ public PerformPerposeDeptQuery id(Long id){
setId(Id); setId(id);
return this; return this;
} }
/** /**
* 设置 开始 序号,主键,自增长 * 设置 开始 序号,主键,自增长
* @param IdStart * @param idStart
*/ */
public PerformPerposeDeptQuery IdStart(Long IdStart){ public PerformPerposeDeptQuery idStart(Long idStart){
this.IdStart = IdStart; this.idStart = idStart;
return this; return this;
} }
/** /**
* 设置 结束 序号,主键,自增长 * 设置 结束 序号,主键,自增长
* @param IdEnd * @param idEnd
*/ */
public PerformPerposeDeptQuery IdEnd(Long IdEnd){ public PerformPerposeDeptQuery idEnd(Long idEnd){
this.IdEnd = IdEnd; this.idEnd = idEnd;
return this; return this;
} }
/** /**
* 设置 增加 序号,主键,自增长 * 设置 增加 序号,主键,自增长
* @param IdIncrement * @param idIncrement
*/ */
public PerformPerposeDeptQuery IdIncrement(Long IdIncrement){ public PerformPerposeDeptQuery idIncrement(Long idIncrement){
this.IdIncrement = IdIncrement; this.idIncrement = idIncrement;
return this; return this;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param IdList * @param idList
*/ */
public PerformPerposeDeptQuery IdList(List<Long> IdList){ public PerformPerposeDeptQuery idList(List<Long> idList){
this.IdList = IdList; this.idList = idList;
return this; return this;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param IdNotList * @param idNotList
*/ */
public PerformPerposeDeptQuery IdNotList(List<Long> IdNotList){ public PerformPerposeDeptQuery idNotList(List<Long> idNotList){
this.IdNotList = IdNotList; this.idNotList = idNotList;
return this; return this;
} }
......
...@@ -7,11 +7,11 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -7,11 +7,11 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.perform.model.vo.PerformPerposeStaffVo; import com.mortals.xhx.module.perform.model.vo.PerformPerposeStaffVo;
import lombok.Data; import lombok.Data;
/** /**
* 员工考核目标详细信息实体对象 * 员工考核目标详细信息实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-16 * @date 2023-07-12
*/ */
@Data @Data
public class PerformPerposeStaffEntity extends PerformPerposeStaffVo { public class PerformPerposeStaffEntity extends PerformPerposeStaffVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -3,26 +3,26 @@ package com.mortals.xhx.module.perform.model; ...@@ -3,26 +3,26 @@ package com.mortals.xhx.module.perform.model;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.perform.model.PerformPerposeStaffEntity; import com.mortals.xhx.module.perform.model.PerformPerposeStaffEntity;
/** /**
* 员工考核目标详细信息查询对象 * 员工考核目标详细信息查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-05-16 * @date 2023-07-12
*/ */
public class PerformPerposeStaffQuery extends PerformPerposeStaffEntity { public class PerformPerposeStaffQuery extends PerformPerposeStaffEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
private Long IdStart; private Long idStart;
/** 结束 序号,主键,自增长 */ /** 结束 序号,主键,自增长 */
private Long IdEnd; private Long idEnd;
/** 增加 序号,主键,自增长 */ /** 增加 序号,主键,自增长 */
private Long IdIncrement; private Long idIncrement;
/** 序号,主键,自增长列表 */ /** 序号,主键,自增长列表 */
private List <Long> IdList; private List <Long> idList;
/** 序号,主键,自增长排除列表 */ /** 序号,主键,自增长排除列表 */
private List <Long> IdNotList; private List <Long> idNotList;
/** 开始 考核目标id */ /** 开始 考核目标id */
private Long purposeConfIdStart; private Long purposeConfIdStart;
...@@ -121,82 +121,82 @@ public class PerformPerposeStaffQuery extends PerformPerposeStaffEntity { ...@@ -121,82 +121,82 @@ public class PerformPerposeStaffQuery extends PerformPerposeStaffEntity {
/** /**
* 获取 开始 序号,主键,自增长 * 获取 开始 序号,主键,自增长
* @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;
} }
...@@ -686,55 +686,55 @@ public class PerformPerposeStaffQuery extends PerformPerposeStaffEntity { ...@@ -686,55 +686,55 @@ public class PerformPerposeStaffQuery extends PerformPerposeStaffEntity {
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param Id * @param id
*/ */
public PerformPerposeStaffQuery Id(Long Id){ public PerformPerposeStaffQuery id(Long id){
setId(Id); setId(id);
return this; return this;
} }
/** /**
* 设置 开始 序号,主键,自增长 * 设置 开始 序号,主键,自增长
* @param IdStart * @param idStart
*/ */
public PerformPerposeStaffQuery IdStart(Long IdStart){ public PerformPerposeStaffQuery idStart(Long idStart){
this.IdStart = IdStart; this.idStart = idStart;
return this; return this;
} }
/** /**
* 设置 结束 序号,主键,自增长 * 设置 结束 序号,主键,自增长
* @param IdEnd * @param idEnd
*/ */
public PerformPerposeStaffQuery IdEnd(Long IdEnd){ public PerformPerposeStaffQuery idEnd(Long idEnd){
this.IdEnd = IdEnd; this.idEnd = idEnd;
return this; return this;
} }
/** /**
* 设置 增加 序号,主键,自增长 * 设置 增加 序号,主键,自增长
* @param IdIncrement * @param idIncrement
*/ */
public PerformPerposeStaffQuery IdIncrement(Long IdIncrement){ public PerformPerposeStaffQuery idIncrement(Long idIncrement){
this.IdIncrement = IdIncrement; this.idIncrement = idIncrement;
return this; return this;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param IdList * @param idList
*/ */
public PerformPerposeStaffQuery IdList(List<Long> IdList){ public PerformPerposeStaffQuery idList(List<Long> idList){
this.IdList = IdList; this.idList = idList;
return this; return this;
} }
/** /**
* 设置 序号,主键,自增长 * 设置 序号,主键,自增长
* @param IdNotList * @param idNotList
*/ */
public PerformPerposeStaffQuery IdNotList(List<Long> IdNotList){ public PerformPerposeStaffQuery idNotList(List<Long> idNotList){
this.IdNotList = IdNotList; this.idNotList = idNotList;
return this; return this;
} }
......
<?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.perform.dao.ibatis.PerformPerposeDeptStatDaoImpl"> <mapper namespace="com.mortals.xhx.module.perform.dao.ibatis.PerformPerposeDeptDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="PerformPerposeDeptStatEntity" id="PerformPerposeDeptStatEntity-Map"> <resultMap type="PerformPerposeDeptEntity" id="PerformPerposeDeptEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="purposeConfId" column="purposeConfId" />
<result property="deptId" column="deptId" /> <result property="deptId" column="deptId" />
<result property="deptName" column="deptName" /> <result property="deptName" column="deptName" />
<result property="absentRate" column="absentRate" />
<result property="absenceRate" column="absenceRate" />
<result property="lateRate" column="lateRate" />
<result property="earlyRate" column="earlyRate" />
<result property="leaveRate" column="leaveRate" />
<result property="turnoverRate" column="turnoverRate" />
<result property="sleepRate" column="sleepRate" />
<result property="playPhoneRate" column="playPhoneRate" />
<result property="expireWorkRate" column="expireWorkRate" />
<result property="negaReviewRate" column="negaReviewRate" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="year" column="year" />
<result property="month" column="month" />
<result property="day" column="day" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" /> <result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" /> <result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" /> <result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap> </resultMap>
...@@ -36,92 +24,62 @@ ...@@ -36,92 +24,62 @@
<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('purposeConfId') or colPickMode == 1 and data.containsKey('purposeConfId')))">
a.purposeConfId,
</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('absentRate') or colPickMode == 1 and data.containsKey('absentRate')))">
a.absentRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('absenceRate') or colPickMode == 1 and data.containsKey('absenceRate')))">
a.absenceRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('lateRate') or colPickMode == 1 and data.containsKey('lateRate')))">
a.lateRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('earlyRate') or colPickMode == 1 and data.containsKey('earlyRate')))">
a.earlyRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('leaveRate') or colPickMode == 1 and data.containsKey('leaveRate')))">
a.leaveRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('turnoverRate') or colPickMode == 1 and data.containsKey('turnoverRate')))">
a.turnoverRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sleepRate') or colPickMode == 1 and data.containsKey('sleepRate')))">
a.sleepRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('playPhoneRate') or colPickMode == 1 and data.containsKey('playPhoneRate')))">
a.playPhoneRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('expireWorkRate') or colPickMode == 1 and data.containsKey('expireWorkRate')))">
a.expireWorkRate,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('negaReviewRate') or colPickMode == 1 and data.containsKey('negaReviewRate')))">
a.negaReviewRate,
</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('year') or colPickMode == 1 and data.containsKey('year')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.year, a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('month') or colPickMode == 1 and data.containsKey('month')))">
a.month,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('day') or colPickMode == 1 and data.containsKey('day')))">
a.day,
</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('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.createUserId, 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('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
</trim> </trim>
</sql> </sql>
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PerformPerposeDeptStatEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="PerformPerposeDeptEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_perform_perpose_dept_stat insert into mortals_xhx_perform_perpose_dept
(deptId,deptName,absentRate,absenceRate,lateRate,earlyRate,leaveRate,turnoverRate,sleepRate,playPhoneRate,expireWorkRate,negaReviewRate,remark,year,month,day,createTime,createUserId,updateTime,updateUserId) (purposeConfId,deptId,deptName,remark,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
(#{deptId},#{deptName},#{absentRate},#{absenceRate},#{lateRate},#{earlyRate},#{leaveRate},#{turnoverRate},#{sleepRate},#{playPhoneRate},#{expireWorkRate},#{negaReviewRate},#{remark},#{year},#{month},#{day},#{createTime},#{createUserId},#{updateTime},#{updateUserId}) (#{purposeConfId},#{deptId},#{deptName},#{remark},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_perform_perpose_dept_stat insert into mortals_xhx_perform_perpose_dept
(deptId,deptName,absentRate,absenceRate,lateRate,earlyRate,leaveRate,turnoverRate,sleepRate,playPhoneRate,expireWorkRate,negaReviewRate,remark,year,month,day,createTime,createUserId,updateTime,updateUserId) (purposeConfId,deptId,deptName,remark,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deptId},#{item.deptName},#{item.absentRate},#{item.absenceRate},#{item.lateRate},#{item.earlyRate},#{item.leaveRate},#{item.turnoverRate},#{item.sleepRate},#{item.playPhoneRate},#{item.expireWorkRate},#{item.negaReviewRate},#{item.remark},#{item.year},#{item.month},#{item.day},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId}) (#{item.purposeConfId},#{item.deptId},#{item.deptName},#{item.remark},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
<!-- 根据ParamDto更新 --> <!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto"> <update id="update" parameterType="paramDto">
update mortals_xhx_perform_perpose_dept_stat as a update mortals_xhx_perform_perpose_dept as a
set set
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('purposeConfId')) or (colPickMode==1 and !data.containsKey('purposeConfId'))">
a.purposeConfId=#{data.purposeConfId},
</if>
<if test="(colPickMode==0 and data.containsKey('purposeConfIdIncrement')) or (colPickMode==1 and !data.containsKey('purposeConfIdIncrement'))">
a.purposeConfId=ifnull(a.purposeConfId,0) + #{data.purposeConfIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('deptId')) or (colPickMode==1 and !data.containsKey('deptId'))"> <if test="(colPickMode==0 and data.containsKey('deptId')) or (colPickMode==1 and !data.containsKey('deptId'))">
a.deptId=#{data.deptId}, a.deptId=#{data.deptId},
</if> </if>
...@@ -131,98 +89,17 @@ ...@@ -131,98 +89,17 @@
<if test="(colPickMode==0 and data.containsKey('deptName')) or (colPickMode==1 and !data.containsKey('deptName'))"> <if test="(colPickMode==0 and data.containsKey('deptName')) or (colPickMode==1 and !data.containsKey('deptName'))">
a.deptName=#{data.deptName}, a.deptName=#{data.deptName},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('absentRate')) or (colPickMode==1 and !data.containsKey('absentRate'))">
a.absentRate=#{data.absentRate},
</if>
<if test="(colPickMode==0 and data.containsKey('absentRateIncrement')) or (colPickMode==1 and !data.containsKey('absentRateIncrement'))">
a.absentRate=ifnull(a.absentRate,0) + #{data.absentRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('absenceRate')) or (colPickMode==1 and !data.containsKey('absenceRate'))">
a.absenceRate=#{data.absenceRate},
</if>
<if test="(colPickMode==0 and data.containsKey('absenceRateIncrement')) or (colPickMode==1 and !data.containsKey('absenceRateIncrement'))">
a.absenceRate=ifnull(a.absenceRate,0) + #{data.absenceRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('lateRate')) or (colPickMode==1 and !data.containsKey('lateRate'))">
a.lateRate=#{data.lateRate},
</if>
<if test="(colPickMode==0 and data.containsKey('lateRateIncrement')) or (colPickMode==1 and !data.containsKey('lateRateIncrement'))">
a.lateRate=ifnull(a.lateRate,0) + #{data.lateRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('earlyRate')) or (colPickMode==1 and !data.containsKey('earlyRate'))">
a.earlyRate=#{data.earlyRate},
</if>
<if test="(colPickMode==0 and data.containsKey('earlyRateIncrement')) or (colPickMode==1 and !data.containsKey('earlyRateIncrement'))">
a.earlyRate=ifnull(a.earlyRate,0) + #{data.earlyRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('leaveRate')) or (colPickMode==1 and !data.containsKey('leaveRate'))">
a.leaveRate=#{data.leaveRate},
</if>
<if test="(colPickMode==0 and data.containsKey('leaveRateIncrement')) or (colPickMode==1 and !data.containsKey('leaveRateIncrement'))">
a.leaveRate=ifnull(a.leaveRate,0) + #{data.leaveRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('turnoverRate')) or (colPickMode==1 and !data.containsKey('turnoverRate'))">
a.turnoverRate=#{data.turnoverRate},
</if>
<if test="(colPickMode==0 and data.containsKey('turnoverRateIncrement')) or (colPickMode==1 and !data.containsKey('turnoverRateIncrement'))">
a.turnoverRate=ifnull(a.turnoverRate,0) + #{data.turnoverRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('sleepRate')) or (colPickMode==1 and !data.containsKey('sleepRate'))">
a.sleepRate=#{data.sleepRate},
</if>
<if test="(colPickMode==0 and data.containsKey('sleepRateIncrement')) or (colPickMode==1 and !data.containsKey('sleepRateIncrement'))">
a.sleepRate=ifnull(a.sleepRate,0) + #{data.sleepRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('playPhoneRate')) or (colPickMode==1 and !data.containsKey('playPhoneRate'))">
a.playPhoneRate=#{data.playPhoneRate},
</if>
<if test="(colPickMode==0 and data.containsKey('playPhoneRateIncrement')) or (colPickMode==1 and !data.containsKey('playPhoneRateIncrement'))">
a.playPhoneRate=ifnull(a.playPhoneRate,0) + #{data.playPhoneRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('expireWorkRate')) or (colPickMode==1 and !data.containsKey('expireWorkRate'))">
a.expireWorkRate=#{data.expireWorkRate},
</if>
<if test="(colPickMode==0 and data.containsKey('expireWorkRateIncrement')) or (colPickMode==1 and !data.containsKey('expireWorkRateIncrement'))">
a.expireWorkRate=ifnull(a.expireWorkRate,0) + #{data.expireWorkRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('negaReviewRate')) or (colPickMode==1 and !data.containsKey('negaReviewRate'))">
a.negaReviewRate=#{data.negaReviewRate},
</if>
<if test="(colPickMode==0 and data.containsKey('negaReviewRateIncrement')) or (colPickMode==1 and !data.containsKey('negaReviewRateIncrement'))">
a.negaReviewRate=ifnull(a.negaReviewRate,0) + #{data.negaReviewRateIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('remark')) or (colPickMode==1 and !data.containsKey('remark'))"> <if test="(colPickMode==0 and data.containsKey('remark')) or (colPickMode==1 and !data.containsKey('remark'))">
a.remark=#{data.remark}, a.remark=#{data.remark},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('year')) or (colPickMode==1 and !data.containsKey('year'))">
a.year=#{data.year},
</if>
<if test="(colPickMode==0 and data.containsKey('yearIncrement')) or (colPickMode==1 and !data.containsKey('yearIncrement'))">
a.year=ifnull(a.year,0) + #{data.yearIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('month')) or (colPickMode==1 and !data.containsKey('month'))">
a.month=#{data.month},
</if>
<if test="(colPickMode==0 and data.containsKey('monthIncrement')) or (colPickMode==1 and !data.containsKey('monthIncrement'))">
a.month=ifnull(a.month,0) + #{data.monthIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('day')) or (colPickMode==1 and !data.containsKey('day'))">
a.day=#{data.day},
</if>
<if test="(colPickMode==0 and data.containsKey('dayIncrement')) or (colPickMode==1 and !data.containsKey('dayIncrement'))">
a.day=ifnull(a.day,0) + #{data.dayIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))"> <if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId}, a.createUserId=#{data.createUserId},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))"> <if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement}, a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))"> <if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.updateTime=#{data.updateTime}, a.createTime=#{data.createTime},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))"> <if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId}, a.updateUserId=#{data.updateUserId},
...@@ -230,6 +107,9 @@ ...@@ -230,6 +107,9 @@
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))"> <if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement}, a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim> </trim>
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where where
...@@ -240,8 +120,20 @@ ...@@ -240,8 +120,20 @@
</update> </update>
<!-- 批量更新 --> <!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_perform_perpose_dept_stat as a update mortals_xhx_perform_perpose_dept as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="purposeConfId=(case" suffix="ELSE purposeConfId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('purposeConfId')) or (colPickMode==1 and !item.containsKey('purposeConfId'))">
when a.id=#{item.id} then #{item.purposeConfId}
</when>
<when test="(colPickMode==0 and item.containsKey('purposeConfIdIncrement')) or (colPickMode==1 and !item.containsKey('purposeConfIdIncrement'))">
when a.id=#{item.id} then ifnull(a.purposeConfId,0) + #{item.purposeConfIdIncrement}
</when>
</choose>
</foreach>
</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>
...@@ -261,126 +153,6 @@ ...@@ -261,126 +153,6 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="absentRate=(case" suffix="ELSE absentRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('absentRate')) or (colPickMode==1 and !item.containsKey('absentRate'))">
when a.id=#{item.id} then #{item.absentRate}
</when>
<when test="(colPickMode==0 and item.containsKey('absentRateIncrement')) or (colPickMode==1 and !item.containsKey('absentRateIncrement'))">
when a.id=#{item.id} then ifnull(a.absentRate,0) + #{item.absentRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="absenceRate=(case" suffix="ELSE absenceRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('absenceRate')) or (colPickMode==1 and !item.containsKey('absenceRate'))">
when a.id=#{item.id} then #{item.absenceRate}
</when>
<when test="(colPickMode==0 and item.containsKey('absenceRateIncrement')) or (colPickMode==1 and !item.containsKey('absenceRateIncrement'))">
when a.id=#{item.id} then ifnull(a.absenceRate,0) + #{item.absenceRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="lateRate=(case" suffix="ELSE lateRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('lateRate')) or (colPickMode==1 and !item.containsKey('lateRate'))">
when a.id=#{item.id} then #{item.lateRate}
</when>
<when test="(colPickMode==0 and item.containsKey('lateRateIncrement')) or (colPickMode==1 and !item.containsKey('lateRateIncrement'))">
when a.id=#{item.id} then ifnull(a.lateRate,0) + #{item.lateRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="earlyRate=(case" suffix="ELSE earlyRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('earlyRate')) or (colPickMode==1 and !item.containsKey('earlyRate'))">
when a.id=#{item.id} then #{item.earlyRate}
</when>
<when test="(colPickMode==0 and item.containsKey('earlyRateIncrement')) or (colPickMode==1 and !item.containsKey('earlyRateIncrement'))">
when a.id=#{item.id} then ifnull(a.earlyRate,0) + #{item.earlyRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="leaveRate=(case" suffix="ELSE leaveRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('leaveRate')) or (colPickMode==1 and !item.containsKey('leaveRate'))">
when a.id=#{item.id} then #{item.leaveRate}
</when>
<when test="(colPickMode==0 and item.containsKey('leaveRateIncrement')) or (colPickMode==1 and !item.containsKey('leaveRateIncrement'))">
when a.id=#{item.id} then ifnull(a.leaveRate,0) + #{item.leaveRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="turnoverRate=(case" suffix="ELSE turnoverRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('turnoverRate')) or (colPickMode==1 and !item.containsKey('turnoverRate'))">
when a.id=#{item.id} then #{item.turnoverRate}
</when>
<when test="(colPickMode==0 and item.containsKey('turnoverRateIncrement')) or (colPickMode==1 and !item.containsKey('turnoverRateIncrement'))">
when a.id=#{item.id} then ifnull(a.turnoverRate,0) + #{item.turnoverRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="sleepRate=(case" suffix="ELSE sleepRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('sleepRate')) or (colPickMode==1 and !item.containsKey('sleepRate'))">
when a.id=#{item.id} then #{item.sleepRate}
</when>
<when test="(colPickMode==0 and item.containsKey('sleepRateIncrement')) or (colPickMode==1 and !item.containsKey('sleepRateIncrement'))">
when a.id=#{item.id} then ifnull(a.sleepRate,0) + #{item.sleepRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="playPhoneRate=(case" suffix="ELSE playPhoneRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('playPhoneRate')) or (colPickMode==1 and !item.containsKey('playPhoneRate'))">
when a.id=#{item.id} then #{item.playPhoneRate}
</when>
<when test="(colPickMode==0 and item.containsKey('playPhoneRateIncrement')) or (colPickMode==1 and !item.containsKey('playPhoneRateIncrement'))">
when a.id=#{item.id} then ifnull(a.playPhoneRate,0) + #{item.playPhoneRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="expireWorkRate=(case" suffix="ELSE expireWorkRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('expireWorkRate')) or (colPickMode==1 and !item.containsKey('expireWorkRate'))">
when a.id=#{item.id} then #{item.expireWorkRate}
</when>
<when test="(colPickMode==0 and item.containsKey('expireWorkRateIncrement')) or (colPickMode==1 and !item.containsKey('expireWorkRateIncrement'))">
when a.id=#{item.id} then ifnull(a.expireWorkRate,0) + #{item.expireWorkRateIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="negaReviewRate=(case" suffix="ELSE negaReviewRate end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('negaReviewRate')) or (colPickMode==1 and !item.containsKey('negaReviewRate'))">
when a.id=#{item.id} then #{item.negaReviewRate}
</when>
<when test="(colPickMode==0 and item.containsKey('negaReviewRateIncrement')) or (colPickMode==1 and !item.containsKey('negaReviewRateIncrement'))">
when a.id=#{item.id} then ifnull(a.negaReviewRate,0) + #{item.negaReviewRateIncrement}
</when>
</choose>
</foreach>
</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'))">
...@@ -388,49 +160,6 @@ ...@@ -388,49 +160,6 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="year=(case" suffix="ELSE year end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('year')) or (colPickMode==1 and !item.containsKey('year'))">
when a.id=#{item.id} then #{item.year}
</when>
<when test="(colPickMode==0 and item.containsKey('yearIncrement')) or (colPickMode==1 and !item.containsKey('yearIncrement'))">
when a.id=#{item.id} then ifnull(a.year,0) + #{item.yearIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="month=(case" suffix="ELSE month end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('month')) or (colPickMode==1 and !item.containsKey('month'))">
when a.id=#{item.id} then #{item.month}
</when>
<when test="(colPickMode==0 and item.containsKey('monthIncrement')) or (colPickMode==1 and !item.containsKey('monthIncrement'))">
when a.id=#{item.id} then ifnull(a.month,0) + #{item.monthIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="day=(case" suffix="ELSE day end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('day')) or (colPickMode==1 and !item.containsKey('day'))">
when a.id=#{item.id} then #{item.day}
</when>
<when test="(colPickMode==0 and item.containsKey('dayIncrement')) or (colPickMode==1 and !item.containsKey('dayIncrement'))">
when a.id=#{item.id} then ifnull(a.day,0) + #{item.dayIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="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>
...@@ -443,10 +172,10 @@ ...@@ -443,10 +172,10 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime 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('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))"> <if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.updateTime} when a.id=#{item.id} then #{item.createTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
...@@ -462,6 +191,13 @@ ...@@ -462,6 +191,13 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim> </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=")">
...@@ -469,25 +205,25 @@ ...@@ -469,25 +205,25 @@
</foreach> </foreach>
</update> </update>
<!-- 根据主健查询 --> <!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PerformPerposeDeptStatEntity-Map"> <select id="getByKey" parameterType="paramDto" resultMap="PerformPerposeDeptEntity-Map">
select <include refid="_columns"/> select <include refid="_columns"/>
from mortals_xhx_perform_perpose_dept_stat as a from mortals_xhx_perform_perpose_dept as a
where a.id=#{condition.id} where a.id=#{condition.id}
</select> </select>
<!-- 根据主健删除 --> <!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto"> <delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_perform_perpose_dept_stat as a where a.id=#{condition.id} delete a.* from mortals_xhx_perform_perpose_dept as a where a.id=#{condition.id}
</delete> </delete>
<!-- 根据主健删除一批,针对单一主健有效 --> <!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys"> <delete id="deleteByKeys">
delete from mortals_xhx_perform_perpose_dept_stat where id in delete from mortals_xhx_perform_perpose_dept where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")"> <foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</delete> </delete>
<!-- 根据主健列表删除一批,针对单一主健有效 --> <!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList"> <delete id="deleteByKeyList">
delete from mortals_xhx_perform_perpose_dept_stat where id in delete from mortals_xhx_perform_perpose_dept where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
...@@ -495,14 +231,14 @@ ...@@ -495,14 +231,14 @@
<!-- 根据对象列表删除一批,针对单一主健有效 --> <!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList"> <delete id="deleteByEntityList">
delete from mortals_xhx_perform_perpose_dept_stat where id in delete from mortals_xhx_perform_perpose_dept where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id} #{item.id}
</foreach> </foreach>
</delete> </delete>
<!-- 根据paramDto删除一批 --> <!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto"> <delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_perform_perpose_dept_stat as a delete a.* from mortals_xhx_perform_perpose_dept as a
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where where
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
...@@ -511,9 +247,9 @@ ...@@ -511,9 +247,9 @@
</trim> </trim>
</delete> </delete>
<!-- 获取列表 --> <!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="PerformPerposeDeptStatEntity-Map"> <select id="getList" parameterType="paramDto" resultMap="PerformPerposeDeptEntity-Map">
select <include refid="_columns"/> select <include refid="_columns"/>
from mortals_xhx_perform_perpose_dept_stat as a from mortals_xhx_perform_perpose_dept as a
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where where
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
...@@ -528,7 +264,7 @@ ...@@ -528,7 +264,7 @@
<!-- 获取 --> <!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int"> <select id="getListCount" parameterType="paramDto" resultType="int">
select count(1) select count(1)
from mortals_xhx_perform_perpose_dept_stat as a from mortals_xhx_perform_perpose_dept as a
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where where
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
...@@ -605,6 +341,33 @@ ...@@ -605,6 +341,33 @@
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('purposeConfId')">
<if test="conditionParamRef.purposeConfId != null ">
${_conditionType_} a.purposeConfId = #{${_conditionParam_}.purposeConfId}
</if>
<if test="conditionParamRef.purposeConfId == null">
${_conditionType_} a.purposeConfId is null
</if>
</if>
<if test="conditionParamRef.containsKey('purposeConfIdList') and conditionParamRef.purposeConfIdList.size() > 0">
${_conditionType_} a.purposeConfId in
<foreach collection="conditionParamRef.purposeConfIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('purposeConfIdNotList') and conditionParamRef.purposeConfIdNotList.size() > 0">
${_conditionType_} a.purposeConfId not in
<foreach collection="conditionParamRef.purposeConfIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('purposeConfIdStart') and conditionParamRef.purposeConfIdStart != null">
${_conditionType_} a.purposeConfId <![CDATA[ >= ]]> #{${_conditionParam_}.purposeConfIdStart}
</if>
<if test="conditionParamRef.containsKey('purposeConfIdEnd') and conditionParamRef.purposeConfIdEnd != null">
${_conditionType_} a.purposeConfId <![CDATA[ <= ]]> #{${_conditionParam_}.purposeConfIdEnd}
</if>
<if test="conditionParamRef.containsKey('deptId')"> <if test="conditionParamRef.containsKey('deptId')">
<if test="conditionParamRef.deptId != null "> <if test="conditionParamRef.deptId != null ">
${_conditionType_} a.deptId = #{${_conditionParam_}.deptId} ${_conditionType_} a.deptId = #{${_conditionParam_}.deptId}
...@@ -653,276 +416,6 @@ ...@@ -653,276 +416,6 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('absentRate')">
<if test="conditionParamRef.absentRate != null ">
${_conditionType_} a.absentRate = #{${_conditionParam_}.absentRate}
</if>
<if test="conditionParamRef.absentRate == null">
${_conditionType_} a.absentRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('absentRateList') and conditionParamRef.absentRateList.size() > 0">
${_conditionType_} a.absentRate in
<foreach collection="conditionParamRef.absentRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('absentRateNotList') and conditionParamRef.absentRateNotList.size() > 0">
${_conditionType_} a.absentRate not in
<foreach collection="conditionParamRef.absentRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('absentRateStart') and conditionParamRef.absentRateStart != null">
${_conditionType_} a.absentRate <![CDATA[ >= ]]> #{${_conditionParam_}.absentRateStart}
</if>
<if test="conditionParamRef.containsKey('absentRateEnd') and conditionParamRef.absentRateEnd != null">
${_conditionType_} a.absentRate <![CDATA[ <= ]]> #{${_conditionParam_}.absentRateEnd}
</if>
<if test="conditionParamRef.containsKey('absenceRate')">
<if test="conditionParamRef.absenceRate != null ">
${_conditionType_} a.absenceRate = #{${_conditionParam_}.absenceRate}
</if>
<if test="conditionParamRef.absenceRate == null">
${_conditionType_} a.absenceRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('absenceRateList') and conditionParamRef.absenceRateList.size() > 0">
${_conditionType_} a.absenceRate in
<foreach collection="conditionParamRef.absenceRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('absenceRateNotList') and conditionParamRef.absenceRateNotList.size() > 0">
${_conditionType_} a.absenceRate not in
<foreach collection="conditionParamRef.absenceRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('absenceRateStart') and conditionParamRef.absenceRateStart != null">
${_conditionType_} a.absenceRate <![CDATA[ >= ]]> #{${_conditionParam_}.absenceRateStart}
</if>
<if test="conditionParamRef.containsKey('absenceRateEnd') and conditionParamRef.absenceRateEnd != null">
${_conditionType_} a.absenceRate <![CDATA[ <= ]]> #{${_conditionParam_}.absenceRateEnd}
</if>
<if test="conditionParamRef.containsKey('lateRate')">
<if test="conditionParamRef.lateRate != null ">
${_conditionType_} a.lateRate = #{${_conditionParam_}.lateRate}
</if>
<if test="conditionParamRef.lateRate == null">
${_conditionType_} a.lateRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('lateRateList') and conditionParamRef.lateRateList.size() > 0">
${_conditionType_} a.lateRate in
<foreach collection="conditionParamRef.lateRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('lateRateNotList') and conditionParamRef.lateRateNotList.size() > 0">
${_conditionType_} a.lateRate not in
<foreach collection="conditionParamRef.lateRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('lateRateStart') and conditionParamRef.lateRateStart != null">
${_conditionType_} a.lateRate <![CDATA[ >= ]]> #{${_conditionParam_}.lateRateStart}
</if>
<if test="conditionParamRef.containsKey('lateRateEnd') and conditionParamRef.lateRateEnd != null">
${_conditionType_} a.lateRate <![CDATA[ <= ]]> #{${_conditionParam_}.lateRateEnd}
</if>
<if test="conditionParamRef.containsKey('earlyRate')">
<if test="conditionParamRef.earlyRate != null ">
${_conditionType_} a.earlyRate = #{${_conditionParam_}.earlyRate}
</if>
<if test="conditionParamRef.earlyRate == null">
${_conditionType_} a.earlyRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('earlyRateList') and conditionParamRef.earlyRateList.size() > 0">
${_conditionType_} a.earlyRate in
<foreach collection="conditionParamRef.earlyRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('earlyRateNotList') and conditionParamRef.earlyRateNotList.size() > 0">
${_conditionType_} a.earlyRate not in
<foreach collection="conditionParamRef.earlyRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('earlyRateStart') and conditionParamRef.earlyRateStart != null">
${_conditionType_} a.earlyRate <![CDATA[ >= ]]> #{${_conditionParam_}.earlyRateStart}
</if>
<if test="conditionParamRef.containsKey('earlyRateEnd') and conditionParamRef.earlyRateEnd != null">
${_conditionType_} a.earlyRate <![CDATA[ <= ]]> #{${_conditionParam_}.earlyRateEnd}
</if>
<if test="conditionParamRef.containsKey('leaveRate')">
<if test="conditionParamRef.leaveRate != null ">
${_conditionType_} a.leaveRate = #{${_conditionParam_}.leaveRate}
</if>
<if test="conditionParamRef.leaveRate == null">
${_conditionType_} a.leaveRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('leaveRateList') and conditionParamRef.leaveRateList.size() > 0">
${_conditionType_} a.leaveRate in
<foreach collection="conditionParamRef.leaveRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('leaveRateNotList') and conditionParamRef.leaveRateNotList.size() > 0">
${_conditionType_} a.leaveRate not in
<foreach collection="conditionParamRef.leaveRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('leaveRateStart') and conditionParamRef.leaveRateStart != null">
${_conditionType_} a.leaveRate <![CDATA[ >= ]]> #{${_conditionParam_}.leaveRateStart}
</if>
<if test="conditionParamRef.containsKey('leaveRateEnd') and conditionParamRef.leaveRateEnd != null">
${_conditionType_} a.leaveRate <![CDATA[ <= ]]> #{${_conditionParam_}.leaveRateEnd}
</if>
<if test="conditionParamRef.containsKey('turnoverRate')">
<if test="conditionParamRef.turnoverRate != null ">
${_conditionType_} a.turnoverRate = #{${_conditionParam_}.turnoverRate}
</if>
<if test="conditionParamRef.turnoverRate == null">
${_conditionType_} a.turnoverRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('turnoverRateList') and conditionParamRef.turnoverRateList.size() > 0">
${_conditionType_} a.turnoverRate in
<foreach collection="conditionParamRef.turnoverRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('turnoverRateNotList') and conditionParamRef.turnoverRateNotList.size() > 0">
${_conditionType_} a.turnoverRate not in
<foreach collection="conditionParamRef.turnoverRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('turnoverRateStart') and conditionParamRef.turnoverRateStart != null">
${_conditionType_} a.turnoverRate <![CDATA[ >= ]]> #{${_conditionParam_}.turnoverRateStart}
</if>
<if test="conditionParamRef.containsKey('turnoverRateEnd') and conditionParamRef.turnoverRateEnd != null">
${_conditionType_} a.turnoverRate <![CDATA[ <= ]]> #{${_conditionParam_}.turnoverRateEnd}
</if>
<if test="conditionParamRef.containsKey('sleepRate')">
<if test="conditionParamRef.sleepRate != null ">
${_conditionType_} a.sleepRate = #{${_conditionParam_}.sleepRate}
</if>
<if test="conditionParamRef.sleepRate == null">
${_conditionType_} a.sleepRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('sleepRateList') and conditionParamRef.sleepRateList.size() > 0">
${_conditionType_} a.sleepRate in
<foreach collection="conditionParamRef.sleepRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sleepRateNotList') and conditionParamRef.sleepRateNotList.size() > 0">
${_conditionType_} a.sleepRate not in
<foreach collection="conditionParamRef.sleepRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sleepRateStart') and conditionParamRef.sleepRateStart != null">
${_conditionType_} a.sleepRate <![CDATA[ >= ]]> #{${_conditionParam_}.sleepRateStart}
</if>
<if test="conditionParamRef.containsKey('sleepRateEnd') and conditionParamRef.sleepRateEnd != null">
${_conditionType_} a.sleepRate <![CDATA[ <= ]]> #{${_conditionParam_}.sleepRateEnd}
</if>
<if test="conditionParamRef.containsKey('playPhoneRate')">
<if test="conditionParamRef.playPhoneRate != null ">
${_conditionType_} a.playPhoneRate = #{${_conditionParam_}.playPhoneRate}
</if>
<if test="conditionParamRef.playPhoneRate == null">
${_conditionType_} a.playPhoneRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('playPhoneRateList') and conditionParamRef.playPhoneRateList.size() > 0">
${_conditionType_} a.playPhoneRate in
<foreach collection="conditionParamRef.playPhoneRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('playPhoneRateNotList') and conditionParamRef.playPhoneRateNotList.size() > 0">
${_conditionType_} a.playPhoneRate not in
<foreach collection="conditionParamRef.playPhoneRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('playPhoneRateStart') and conditionParamRef.playPhoneRateStart != null">
${_conditionType_} a.playPhoneRate <![CDATA[ >= ]]> #{${_conditionParam_}.playPhoneRateStart}
</if>
<if test="conditionParamRef.containsKey('playPhoneRateEnd') and conditionParamRef.playPhoneRateEnd != null">
${_conditionType_} a.playPhoneRate <![CDATA[ <= ]]> #{${_conditionParam_}.playPhoneRateEnd}
</if>
<if test="conditionParamRef.containsKey('expireWorkRate')">
<if test="conditionParamRef.expireWorkRate != null ">
${_conditionType_} a.expireWorkRate = #{${_conditionParam_}.expireWorkRate}
</if>
<if test="conditionParamRef.expireWorkRate == null">
${_conditionType_} a.expireWorkRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('expireWorkRateList') and conditionParamRef.expireWorkRateList.size() > 0">
${_conditionType_} a.expireWorkRate in
<foreach collection="conditionParamRef.expireWorkRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('expireWorkRateNotList') and conditionParamRef.expireWorkRateNotList.size() > 0">
${_conditionType_} a.expireWorkRate not in
<foreach collection="conditionParamRef.expireWorkRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('expireWorkRateStart') and conditionParamRef.expireWorkRateStart != null">
${_conditionType_} a.expireWorkRate <![CDATA[ >= ]]> #{${_conditionParam_}.expireWorkRateStart}
</if>
<if test="conditionParamRef.containsKey('expireWorkRateEnd') and conditionParamRef.expireWorkRateEnd != null">
${_conditionType_} a.expireWorkRate <![CDATA[ <= ]]> #{${_conditionParam_}.expireWorkRateEnd}
</if>
<if test="conditionParamRef.containsKey('negaReviewRate')">
<if test="conditionParamRef.negaReviewRate != null ">
${_conditionType_} a.negaReviewRate = #{${_conditionParam_}.negaReviewRate}
</if>
<if test="conditionParamRef.negaReviewRate == null">
${_conditionType_} a.negaReviewRate is null
</if>
</if>
<if test="conditionParamRef.containsKey('negaReviewRateList') and conditionParamRef.negaReviewRateList.size() > 0">
${_conditionType_} a.negaReviewRate in
<foreach collection="conditionParamRef.negaReviewRateList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('negaReviewRateNotList') and conditionParamRef.negaReviewRateNotList.size() > 0">
${_conditionType_} a.negaReviewRate not in
<foreach collection="conditionParamRef.negaReviewRateNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('negaReviewRateStart') and conditionParamRef.negaReviewRateStart != null">
${_conditionType_} a.negaReviewRate <![CDATA[ >= ]]> #{${_conditionParam_}.negaReviewRateStart}
</if>
<if test="conditionParamRef.containsKey('negaReviewRateEnd') and conditionParamRef.negaReviewRateEnd != null">
${_conditionType_} a.negaReviewRate <![CDATA[ <= ]]> #{${_conditionParam_}.negaReviewRateEnd}
</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 != ''">
...@@ -944,102 +437,6 @@ ...@@ -944,102 +437,6 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('year')">
<if test="conditionParamRef.year != null ">
${_conditionType_} a.year = #{${_conditionParam_}.year}
</if>
<if test="conditionParamRef.year == null">
${_conditionType_} a.year is null
</if>
</if>
<if test="conditionParamRef.containsKey('yearList') and conditionParamRef.yearList.size() > 0">
${_conditionType_} a.year in
<foreach collection="conditionParamRef.yearList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('yearNotList') and conditionParamRef.yearNotList.size() > 0">
${_conditionType_} a.year not in
<foreach collection="conditionParamRef.yearNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('yearStart') and conditionParamRef.yearStart != null">
${_conditionType_} a.year <![CDATA[ >= ]]> #{${_conditionParam_}.yearStart}
</if>
<if test="conditionParamRef.containsKey('yearEnd') and conditionParamRef.yearEnd != null">
${_conditionType_} a.year <![CDATA[ <= ]]> #{${_conditionParam_}.yearEnd}
</if>
<if test="conditionParamRef.containsKey('month')">
<if test="conditionParamRef.month != null ">
${_conditionType_} a.month = #{${_conditionParam_}.month}
</if>
<if test="conditionParamRef.month == null">
${_conditionType_} a.month is null
</if>
</if>
<if test="conditionParamRef.containsKey('monthList') and conditionParamRef.monthList.size() > 0">
${_conditionType_} a.month in
<foreach collection="conditionParamRef.monthList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('monthNotList') and conditionParamRef.monthNotList.size() > 0">
${_conditionType_} a.month not in
<foreach collection="conditionParamRef.monthNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('monthStart') and conditionParamRef.monthStart != null">
${_conditionType_} a.month <![CDATA[ >= ]]> #{${_conditionParam_}.monthStart}
</if>
<if test="conditionParamRef.containsKey('monthEnd') and conditionParamRef.monthEnd != null">
${_conditionType_} a.month <![CDATA[ <= ]]> #{${_conditionParam_}.monthEnd}
</if>
<if test="conditionParamRef.containsKey('day')">
<if test="conditionParamRef.day != null ">
${_conditionType_} a.day = #{${_conditionParam_}.day}
</if>
<if test="conditionParamRef.day == null">
${_conditionType_} a.day is null
</if>
</if>
<if test="conditionParamRef.containsKey('dayList') and conditionParamRef.dayList.size() > 0">
${_conditionType_} a.day in
<foreach collection="conditionParamRef.dayList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('dayNotList') and conditionParamRef.dayNotList.size() > 0">
${_conditionType_} a.day not in
<foreach collection="conditionParamRef.dayNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('dayStart') and conditionParamRef.dayStart != null">
${_conditionType_} a.day <![CDATA[ >= ]]> #{${_conditionParam_}.dayStart}
</if>
<if test="conditionParamRef.containsKey('dayEnd') and conditionParamRef.dayEnd != null">
${_conditionType_} a.day <![CDATA[ <= ]]> #{${_conditionParam_}.dayEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createUserId')"> <if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null "> <if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId} ${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
...@@ -1068,19 +465,19 @@ ...@@ -1068,19 +465,19 @@
</if> </if>
<if test="conditionParamRef.containsKey('updateTime')"> <if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.updateTime != null "> <if test="conditionParamRef.createTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime} ${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if> </if>
<if test="conditionParamRef.updateTime == null"> <if test="conditionParamRef.createTime == null">
${_conditionType_} a.updateTime is null ${_conditionType_} a.createTime is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''"> <if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 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.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if> </if>
<if test="conditionParamRef.containsKey('updateUserId')"> <if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null "> <if test="conditionParamRef.updateUserId != null ">
...@@ -1109,6 +506,21 @@ ...@@ -1109,6 +506,21 @@
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd} ${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if> </if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql> </sql>
<sql id="_orderCols_"> <sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()"> <if test="orderColList != null and !orderColList.isEmpty()">
...@@ -1127,6 +539,11 @@ ...@@ -1127,6 +539,11 @@
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('purposeConfId')">
a.purposeConfId
<if test='orderCol.purposeConfId != null and "DESC".equalsIgnoreCase(orderCol.purposeConfId)'>DESC</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>
...@@ -1137,74 +554,14 @@ ...@@ -1137,74 +554,14 @@
<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('absentRate')">
a.absentRate
<if test='orderCol.absentRate != null and "DESC".equalsIgnoreCase(orderCol.absentRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('absenceRate')">
a.absenceRate
<if test='orderCol.absenceRate != null and "DESC".equalsIgnoreCase(orderCol.absenceRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('lateRate')">
a.lateRate
<if test='orderCol.lateRate != null and "DESC".equalsIgnoreCase(orderCol.lateRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('earlyRate')">
a.earlyRate
<if test='orderCol.earlyRate != null and "DESC".equalsIgnoreCase(orderCol.earlyRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('leaveRate')">
a.leaveRate
<if test='orderCol.leaveRate != null and "DESC".equalsIgnoreCase(orderCol.leaveRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('turnoverRate')">
a.turnoverRate
<if test='orderCol.turnoverRate != null and "DESC".equalsIgnoreCase(orderCol.turnoverRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('sleepRate')">
a.sleepRate
<if test='orderCol.sleepRate != null and "DESC".equalsIgnoreCase(orderCol.sleepRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('playPhoneRate')">
a.playPhoneRate
<if test='orderCol.playPhoneRate != null and "DESC".equalsIgnoreCase(orderCol.playPhoneRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('expireWorkRate')">
a.expireWorkRate
<if test='orderCol.expireWorkRate != null and "DESC".equalsIgnoreCase(orderCol.expireWorkRate)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('negaReviewRate')">
a.negaReviewRate
<if test='orderCol.negaReviewRate != null and "DESC".equalsIgnoreCase(orderCol.negaReviewRate)'>DESC</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('year')"> <if test="orderCol.containsKey('createUserId')">
a.year a.createUserId
<if test='orderCol.year != null and "DESC".equalsIgnoreCase(orderCol.year)'>DESC</if> <if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('month')">
a.month
<if test='orderCol.month != null and "DESC".equalsIgnoreCase(orderCol.month)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('day')">
a.day
<if test='orderCol.day != null and "DESC".equalsIgnoreCase(orderCol.day)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createTime')"> <if test="orderCol.containsKey('createTime')">
...@@ -1212,9 +569,9 @@ ...@@ -1212,9 +569,9 @@
<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('createUserId')"> <if test="orderCol.containsKey('updateUserId')">
a.createUserId a.updateUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>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')">
...@@ -1222,11 +579,6 @@ ...@@ -1222,11 +579,6 @@
<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('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
</trim> </trim>
</if> </if>
</sql> </sql>
......
<?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.perform.dao.ibatis.PerformPerposeStaffDaoImpl"> <mapper namespace="com.mortals.xhx.module.perform.dao.ibatis.PerformPerposeStaffDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</trim> </trim>
</sql> </sql>
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="PerformPerposeStaffEntity" useGeneratedKeys="true" keyProperty="Id"> <insert id="insert" parameterType="PerformPerposeStaffEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_perform_perpose_staff insert into mortals_xhx_perform_perpose_staff
(purposeConfId,staffId,staffName,number,remark,createUserId,createTime,updateUserId,updateTime) (purposeConfId,staffId,staffName,number,remark,createUserId,createTime,updateUserId,updateTime)
VALUES VALUES
...@@ -133,10 +133,10 @@ ...@@ -133,10 +133,10 @@
<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('purposeConfId')) or (colPickMode==1 and !item.containsKey('purposeConfId'))"> <when test="(colPickMode==0 and item.containsKey('purposeConfId')) or (colPickMode==1 and !item.containsKey('purposeConfId'))">
when a.Id=#{item.Id} then #{item.purposeConfId} when a.id=#{item.id} then #{item.purposeConfId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('purposeConfIdIncrement')) or (colPickMode==1 and !item.containsKey('purposeConfIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('purposeConfIdIncrement')) or (colPickMode==1 and !item.containsKey('purposeConfIdIncrement'))">
when a.Id=#{item.Id} then ifnull(a.purposeConfId,0) + #{item.purposeConfIdIncrement} when a.id=#{item.id} then ifnull(a.purposeConfId,0) + #{item.purposeConfIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
...@@ -145,10 +145,10 @@ ...@@ -145,10 +145,10 @@
<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>
...@@ -156,21 +156,21 @@ ...@@ -156,21 +156,21 @@
<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="number=(case" suffix="ELSE number end),"> <trim prefix="number=(case" suffix="ELSE number 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('number')) or (colPickMode==1 and !item.containsKey('number'))"> <if test="(colPickMode==0 and item.containsKey('number')) or (colPickMode==1 and !item.containsKey('number'))">
when a.Id=#{item.Id} then #{item.number} when a.id=#{item.id} then #{item.number}
</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>
...@@ -178,10 +178,10 @@ ...@@ -178,10 +178,10 @@
<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>
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
<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>
...@@ -197,10 +197,10 @@ ...@@ -197,10 +197,10 @@
<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>
...@@ -208,36 +208,36 @@ ...@@ -208,36 +208,36 @@
<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=")">
#{item.Id} #{item.id}
</foreach> </foreach>
</update> </update>
<!-- 根据主健查询 --> <!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="PerformPerposeStaffEntity-Map"> <select id="getByKey" parameterType="paramDto" resultMap="PerformPerposeStaffEntity-Map">
select <include refid="_columns"/> select <include refid="_columns"/>
from mortals_xhx_perform_perpose_staff as a from mortals_xhx_perform_perpose_staff as a
where a.Id=#{condition.Id} where a.id=#{condition.id}
</select> </select>
<!-- 根据主健删除 --> <!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto"> <delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_perform_perpose_staff as a where a.Id=#{condition.Id} delete a.* from mortals_xhx_perform_perpose_staff as a where a.id=#{condition.id}
</delete> </delete>
<!-- 根据主健删除一批,针对单一主健有效 --> <!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys"> <delete id="deleteByKeys">
delete from mortals_xhx_perform_perpose_staff where Id in delete from mortals_xhx_perform_perpose_staff where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")"> <foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</delete> </delete>
<!-- 根据主健列表删除一批,针对单一主健有效 --> <!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList"> <delete id="deleteByKeyList">
delete from mortals_xhx_perform_perpose_staff where Id in delete from mortals_xhx_perform_perpose_staff where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
...@@ -245,9 +245,9 @@ ...@@ -245,9 +245,9 @@
<!-- 根据对象列表删除一批,针对单一主健有效 --> <!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList"> <delete id="deleteByEntityList">
delete from mortals_xhx_perform_perpose_staff where Id in delete from mortals_xhx_perform_perpose_staff where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.Id} #{item.id}
</foreach> </foreach>
</delete> </delete>
<!-- 根据paramDto删除一批 --> <!-- 根据paramDto删除一批 -->
...@@ -325,34 +325,34 @@ ...@@ -325,34 +325,34 @@
<bind name="conditionParamRef" value="${_conditionParam_}"/> <bind name="conditionParamRef" value="${_conditionParam_}"/>
<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>
</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>
<if test="conditionParamRef.Id == null"> <if test="conditionParamRef.id == null">
${_conditionType_} a.Id is null ${_conditionType_} a.id is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('IdList') and conditionParamRef.IdList.size() > 0"> <if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.Id in ${_conditionType_} a.id in
<foreach collection="conditionParamRef.IdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('IdNotList') and conditionParamRef.IdNotList.size() > 0"> <if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.Id not in ${_conditionType_} a.id not in
<foreach collection="conditionParamRef.IdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('IdStart') and conditionParamRef.IdStart != null"> <if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.Id <![CDATA[ >= ]]> #{${_conditionParam_}.IdStart} ${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if> </if>
<if test="conditionParamRef.containsKey('IdEnd') and conditionParamRef.IdEnd != null"> <if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.Id <![CDATA[ <= ]]> #{${_conditionParam_}.IdEnd} ${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if> </if>
<if test="conditionParamRef.containsKey('purposeConfId')"> <if test="conditionParamRef.containsKey('purposeConfId')">
...@@ -569,9 +569,9 @@ ...@@ -569,9 +569,9 @@
<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('purposeConfId')"> <if test="orderCol.containsKey('purposeConfId')">
......
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