Commit 562da3b7 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 5e443f53 7e650ea6
...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao; ...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.check.model.CheckAttendRecordEntity; import com.mortals.xhx.module.check.model.CheckAttendRecordEntity;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
/** /**
...@@ -22,4 +24,18 @@ public interface CheckAttendRecordDao extends ICRUDDao<CheckAttendRecordEntity, ...@@ -22,4 +24,18 @@ public interface CheckAttendRecordDao extends ICRUDDao<CheckAttendRecordEntity,
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query); List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query);
/**
* 个人绩效统计
* @param query
* @return
*/
List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query);
} }
...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao; ...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.check.model.CheckComplainRecordEntity; import com.mortals.xhx.module.check.model.CheckComplainRecordEntity;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
/** /**
...@@ -22,4 +24,18 @@ public interface CheckComplainRecordDao extends ICRUDDao<CheckComplainRecordEnt ...@@ -22,4 +24,18 @@ public interface CheckComplainRecordDao extends ICRUDDao<CheckComplainRecordEnt
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query); List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query);
/**
* 个人绩效统计
* @param query
* @return
*/
List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query);
} }
...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao; ...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.check.model.CheckEffectRecordEntity; import com.mortals.xhx.module.check.model.CheckEffectRecordEntity;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
/** /**
...@@ -22,4 +24,18 @@ public interface CheckEffectRecordDao extends ICRUDDao<CheckEffectRecordEntity, ...@@ -22,4 +24,18 @@ public interface CheckEffectRecordDao extends ICRUDDao<CheckEffectRecordEntity,
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query); List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query);
/**
* 个人绩效统计
* @param query
* @return
*/
List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query);
} }
...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao; ...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.check.model.CheckGoworkRecordEntity; import com.mortals.xhx.module.check.model.CheckGoworkRecordEntity;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
/** /**
...@@ -22,4 +24,18 @@ public interface CheckGoworkRecordDao extends ICRUDDao<CheckGoworkRecordEntity, ...@@ -22,4 +24,18 @@ public interface CheckGoworkRecordDao extends ICRUDDao<CheckGoworkRecordEntity,
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query); List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query);
/**
* 个人绩效统计
* @param query
* @return
*/
List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query);
} }
...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao; ...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.check.model.CheckOtherRecordEntity; import com.mortals.xhx.module.check.model.CheckOtherRecordEntity;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
/** /**
...@@ -22,4 +24,18 @@ public interface CheckOtherRecordDao extends ICRUDDao<CheckOtherRecordEntity,Lo ...@@ -22,4 +24,18 @@ public interface CheckOtherRecordDao extends ICRUDDao<CheckOtherRecordEntity,Lo
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query); List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query);
/**
* 个人绩效统计
* @param query
* @return
*/
List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query);
} }
...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao; ...@@ -4,6 +4,8 @@ import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.check.model.CheckReviewRecordEntity; import com.mortals.xhx.module.check.model.CheckReviewRecordEntity;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
/** /**
...@@ -22,4 +24,18 @@ public interface CheckReviewRecordDao extends ICRUDDao<CheckReviewRecordEntity, ...@@ -22,4 +24,18 @@ public interface CheckReviewRecordDao extends ICRUDDao<CheckReviewRecordEntity,
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query); List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query);
/**
* 个人绩效统计
* @param query
* @return
*/
List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query);
} }
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.check.dao.CheckAttendRecordDao; import com.mortals.xhx.module.check.dao.CheckAttendRecordDao;
import com.mortals.xhx.module.check.model.CheckAttendRecordEntity; import com.mortals.xhx.module.check.model.CheckAttendRecordEntity;
...@@ -23,4 +25,14 @@ public class CheckAttendRecordDaoImpl extends BaseCRUDDaoMybatis<CheckAttendReco ...@@ -23,4 +25,14 @@ public class CheckAttendRecordDaoImpl extends BaseCRUDDaoMybatis<CheckAttendReco
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query); return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query);
} }
@Override
public List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getStaffPerformStat"), query);
}
@Override
public List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getDeptPerformStat"), query);
}
} }
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.check.dao.CheckComplainRecordDao; import com.mortals.xhx.module.check.dao.CheckComplainRecordDao;
import com.mortals.xhx.module.check.model.CheckComplainRecordEntity; import com.mortals.xhx.module.check.model.CheckComplainRecordEntity;
...@@ -23,4 +25,14 @@ public class CheckComplainRecordDaoImpl extends BaseCRUDDaoMybatis<CheckComplain ...@@ -23,4 +25,14 @@ public class CheckComplainRecordDaoImpl extends BaseCRUDDaoMybatis<CheckComplain
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query); return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query);
} }
@Override
public List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getStaffPerformStat"), query);
}
@Override
public List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getDeptPerformStat"), query);
}
} }
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.check.dao.CheckEffectRecordDao; import com.mortals.xhx.module.check.dao.CheckEffectRecordDao;
import com.mortals.xhx.module.check.model.CheckEffectRecordEntity; import com.mortals.xhx.module.check.model.CheckEffectRecordEntity;
...@@ -23,4 +25,14 @@ public class CheckEffectRecordDaoImpl extends BaseCRUDDaoMybatis<CheckEffectReco ...@@ -23,4 +25,14 @@ public class CheckEffectRecordDaoImpl extends BaseCRUDDaoMybatis<CheckEffectReco
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query); return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query);
} }
@Override
public List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getStaffPerformStat"), query);
}
@Override
public List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getDeptPerformStat"), query);
}
} }
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.check.dao.CheckGoworkRecordDao; import com.mortals.xhx.module.check.dao.CheckGoworkRecordDao;
import com.mortals.xhx.module.check.model.CheckGoworkRecordEntity; import com.mortals.xhx.module.check.model.CheckGoworkRecordEntity;
...@@ -23,4 +25,14 @@ public class CheckGoworkRecordDaoImpl extends BaseCRUDDaoMybatis<CheckGoworkReco ...@@ -23,4 +25,14 @@ public class CheckGoworkRecordDaoImpl extends BaseCRUDDaoMybatis<CheckGoworkReco
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query); return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query);
} }
@Override
public List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getStaffPerformStat"), query);
}
@Override
public List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getDeptPerformStat"), query);
}
} }
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.check.dao.CheckOtherRecordDao; import com.mortals.xhx.module.check.dao.CheckOtherRecordDao;
import com.mortals.xhx.module.check.model.CheckOtherRecordEntity; import com.mortals.xhx.module.check.model.CheckOtherRecordEntity;
...@@ -23,4 +25,14 @@ public class CheckOtherRecordDaoImpl extends BaseCRUDDaoMybatis<CheckOtherRecord ...@@ -23,4 +25,14 @@ public class CheckOtherRecordDaoImpl extends BaseCRUDDaoMybatis<CheckOtherRecord
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query); return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query);
} }
@Override
public List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getStaffPerformStat"), query);
}
@Override
public List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getDeptPerformStat"), query);
}
} }
...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis; ...@@ -3,6 +3,8 @@ package com.mortals.xhx.module.check.dao.ibatis;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.check.dao.CheckReviewRecordDao; import com.mortals.xhx.module.check.dao.CheckReviewRecordDao;
import com.mortals.xhx.module.check.model.CheckReviewRecordEntity; import com.mortals.xhx.module.check.model.CheckReviewRecordEntity;
...@@ -23,4 +25,14 @@ public class CheckReviewRecordDaoImpl extends BaseCRUDDaoMybatis<CheckReviewReco ...@@ -23,4 +25,14 @@ public class CheckReviewRecordDaoImpl extends BaseCRUDDaoMybatis<CheckReviewReco
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query); return this.getSqlSession().selectList(this.getSqlId("getSummaryCheckList"), query);
} }
@Override
public List<StaffPerformStatEntity> getStaffPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getStaffPerformStat"), query);
}
@Override
public List<DeptPerformStatEntity> getDeptPerformStat(StaffCheckSummaryQuery query) {
return this.getSqlSession().selectList(this.getSqlId("getDeptPerformStat"), query);
}
} }
...@@ -6,6 +6,8 @@ import com.mortals.xhx.module.check.model.CheckAttendRecordEntity; ...@@ -6,6 +6,8 @@ import com.mortals.xhx.module.check.model.CheckAttendRecordEntity;
import com.mortals.xhx.module.check.dao.CheckAttendRecordDao; import com.mortals.xhx.module.check.dao.CheckAttendRecordDao;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo; import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import com.mortals.xhx.module.dept.model.DeptPerformStatEntity;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import java.util.List; import java.util.List;
...@@ -35,4 +37,18 @@ public interface CheckAttendRecordService extends ICRUDService<CheckAttendRecord ...@@ -35,4 +37,18 @@ public interface CheckAttendRecordService extends ICRUDService<CheckAttendRecord
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException; List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException;
/**
* 个人绩效统计
* @param query
* @return
*/
void doSaveStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
void doSaveDeptPerformStat(StaffCheckSummaryQuery query);
} }
\ No newline at end of file
...@@ -35,4 +35,18 @@ public interface CheckComplainRecordService extends ICRUDService<CheckComplainRe ...@@ -35,4 +35,18 @@ public interface CheckComplainRecordService extends ICRUDService<CheckComplainRe
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException; List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException;
/**
* 个人绩效统计
* @param query
* @return
*/
void doSaveStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
void doSaveDeptPerformStat(StaffCheckSummaryQuery query);
} }
\ No newline at end of file
...@@ -35,4 +35,18 @@ public interface CheckEffectRecordService extends ICRUDService<CheckEffectRecord ...@@ -35,4 +35,18 @@ public interface CheckEffectRecordService extends ICRUDService<CheckEffectRecord
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException; List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException;
/**
* 个人绩效统计
* @param query
* @return
*/
void doSaveStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
void doSaveDeptPerformStat(StaffCheckSummaryQuery query);
} }
\ No newline at end of file
...@@ -35,4 +35,18 @@ public interface CheckGoworkRecordService extends ICRUDService<CheckGoworkRecord ...@@ -35,4 +35,18 @@ public interface CheckGoworkRecordService extends ICRUDService<CheckGoworkRecord
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException; List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException;
/**
* 个人绩效统计
* @param query
* @return
*/
void doSaveStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
void doSaveDeptPerformStat(StaffCheckSummaryQuery query);
} }
\ No newline at end of file
...@@ -35,4 +35,18 @@ public interface CheckOtherRecordService extends ICRUDService<CheckOtherRecordEn ...@@ -35,4 +35,18 @@ public interface CheckOtherRecordService extends ICRUDService<CheckOtherRecordEn
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException; List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException;
/**
* 个人绩效统计
* @param query
* @return
*/
void doSaveStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
void doSaveDeptPerformStat(StaffCheckSummaryQuery query);
} }
\ No newline at end of file
...@@ -35,4 +35,18 @@ public interface CheckReviewRecordService extends ICRUDService<CheckReviewRecord ...@@ -35,4 +35,18 @@ public interface CheckReviewRecordService extends ICRUDService<CheckReviewRecord
* @return * @return
*/ */
List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException; List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException;
/**
* 个人绩效统计
* @param query
* @return
*/
void doSaveStaffPerformStat(StaffCheckSummaryQuery query);
/**
* 部门绩效统计
* @param query
* @return
*/
void doSaveDeptPerformStat(StaffCheckSummaryQuery query);
} }
\ No newline at end of file
...@@ -18,4 +18,42 @@ ...@@ -18,4 +18,42 @@
GROUP BY GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m') staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select> </select>
<!-- 个人绩效统计 -->
<select id="getStaffPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.staff.model.StaffPerformStatEntity">
SELECT
staffId,staffName,workNum,deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as attendScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as attendScoreSub
FROM
mortals_xhx_check_attend_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
<!-- 部门绩效统计 -->
<select id="getDeptPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT
deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as attendScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as attendScoreSub
FROM
mortals_xhx_check_attend_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -18,4 +18,42 @@ ...@@ -18,4 +18,42 @@
GROUP BY GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m') staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select> </select>
<!-- 个人绩效统计 -->
<select id="getStaffPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.staff.model.StaffPerformStatEntity">
SELECT
staffId,staffName,workNum,deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as complainScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as complainScoreSub
FROM
mortals_xhx_check_complain_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
<!-- 部门绩效统计 -->
<select id="getDeptPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT
deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as complainScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as complainScoreSub
FROM
mortals_xhx_check_complain_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -18,4 +18,42 @@ ...@@ -18,4 +18,42 @@
GROUP BY GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m') staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select> </select>
<!-- 个人绩效统计 -->
<select id="getStaffPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.staff.model.StaffPerformStatEntity">
SELECT
staffId,staffName,workNum,deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as effectScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as effectScoreSub
FROM
mortals_xhx_check_effect_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
<!-- 部门绩效统计 -->
<select id="getDeptPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT
deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as effectScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as effectScoreSub
FROM
mortals_xhx_check_effect_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -18,4 +18,42 @@ ...@@ -18,4 +18,42 @@
GROUP BY GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m') staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select> </select>
<!-- 个人绩效统计 -->
<select id="getStaffPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.staff.model.StaffPerformStatEntity">
SELECT
staffId,staffName,workNum,deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as attendScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as attendScoreSub
FROM
mortals_xhx_check_gowork_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
<!-- 部门绩效统计 -->
<select id="getDeptPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT
deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as goworkScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as goworkScoreSub
FROM
mortals_xhx_check_gowork_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -18,4 +18,42 @@ ...@@ -18,4 +18,42 @@
GROUP BY GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m') staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select> </select>
<!-- 个人绩效统计 -->
<select id="getStaffPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.staff.model.StaffPerformStatEntity">
SELECT
staffId,staffName,workNum,deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as otherScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as otherScoreSub
FROM
mortals_xhx_check_other_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
<!-- 部门绩效统计 -->
<select id="getDeptPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT
deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as otherScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as otherScoreSub
FROM
mortals_xhx_check_other_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -18,4 +18,42 @@ ...@@ -18,4 +18,42 @@
GROUP BY GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m') staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select> </select>
<!-- 个人绩效统计 -->
<select id="getStaffPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.staff.model.StaffPerformStatEntity">
SELECT
staffId,staffName,workNum,deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as reviewScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as reviewScoreSub
FROM
mortals_xhx_check_review_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
<!-- 部门绩效统计 -->
<select id="getDeptPerformStat" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT
deptId,deptName,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%d') as `day`,
SUM(CASE subAddType WHEN 1 THEN score ELSE 0 END) as reviewScoreAdd,
SUM(CASE subAddType WHEN 2 THEN score ELSE 0 END) as reviewScoreSub
FROM
mortals_xhx_check_review_record
WHERE checkStatus = 2
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
<if test="checkTimeStart != null and checkTimeStart!=''"> AND checkTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
GROUP BY
deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m-%d');
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment