Commit e792f4e7 authored by 廖旭伟's avatar 廖旭伟

新增功能:窗口绩效汇总登记表

parent 414ffd28
......@@ -12,6 +12,9 @@ import com.mortals.xhx.module.staff.model.*;
import com.mortals.xhx.module.staff.service.StaffPerformStatService;
import com.mortals.xhx.module.staff.service.StaffPerformSummaryService;
import com.mortals.xhx.module.staff.service.StaffService;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import com.mortals.xhx.module.window.model.WindowPerformSummaryQuery;
import com.mortals.xhx.module.window.service.WindowPerformSummaryService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -38,6 +41,8 @@ public class StaffPerformInitDataTaskImpl implements ITaskExcuteService {
private HolidayService holidayService;
@Autowired
private StaffService staffService;
@Autowired
private WindowPerformSummaryService windowPerformSummaryService;
@Override
public void excuteTask(ITask task) throws AppException {
......@@ -161,6 +166,13 @@ public class StaffPerformInitDataTaskImpl implements ITaskExcuteService {
});
staffPerformSummaryService.save(summaryList);
}
//初始化部门窗口绩效
List<WindowPerformSummaryEntity> list = windowPerformSummaryService.find(new WindowPerformSummaryQuery().year(year).month(month));
if(CollectionUtils.isEmpty(list)) {
windowPerformSummaryService.initWindowPerformSummary(year,month);
}
}
}
......
package com.mortals.xhx.module.window.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import java.util.List;
/**
* 窗口绩效汇总登记Dao
* 窗口绩效汇总登记 DAO接口
*
* @author zxfei
* @date 2025-03-10
*/
public interface WindowPerformSummaryDao extends ICRUDDao<WindowPerformSummaryEntity,Long>{
}
package com.mortals.xhx.module.window.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.window.dao.WindowPerformSummaryDao;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 窗口绩效汇总登记DaoImpl DAO接口
*
* @author zxfei
* @date 2025-03-10
*/
@Repository("windowPerformSummaryDao")
public class WindowPerformSummaryDaoImpl extends BaseCRUDDaoMybatis<WindowPerformSummaryEntity,Long> implements WindowPerformSummaryDao {
}
package com.mortals.xhx.module.window.model;
import java.math.BigDecimal;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.vo.WindowPerformSummaryVo;
import lombok.Data;
/**
* 窗口绩效汇总登记实体对象
*
* @author zxfei
* @date 2025-03-10
*/
@Data
public class WindowPerformSummaryEntity extends WindowPerformSummaryVo {
private static final long serialVersionUID = 1L;
/**
* 考核年度
*/
@Excel(name = "考核年度")
private Integer year;
/**
* 考核月份
*/
@Excel(name = "考核月份")
private Integer month;
/**
* 入驻部门id
*/
private Long deptId;
/**
* 入驻部门名称
*/
@Excel(name = "入驻部门(单位名称)")
private String deptName;
/**
* 窗口建设得分
*/
@Excel(name = "窗口建设得分")
private BigDecimal ckjsdf;
/**
* 重点任务推进得分
*/
@Excel(name = "重点任务推进得分")
private BigDecimal zdrwdf;
/**
* 加分
*/
@Excel(name = "加分")
private BigDecimal addTotalScore;
/**
* 合计得分
*/
@Excel(name = "合计得分")
private BigDecimal sumScore;
/**
* 评选建议
*/
@Excel(name = "评选建议", readConverterExp = "0=无,1=红旗窗口")
private Integer suggestion;
/**
* 备注
*/
@Excel(name = "备注")
private String remark;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof WindowPerformSummaryEntity) {
WindowPerformSummaryEntity tmp = (WindowPerformSummaryEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.year = DateUtil.year(new Date());
this.month = DateUtil.month(new Date())+1;
this.deptId = null;
this.deptName = "";
this.ckjsdf = null;
this.zdrwdf = null;
this.addTotalScore = BigDecimal.ZERO;
this.sumScore = BigDecimal.ZERO;
this.suggestion = 0;
this.remark = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.model;
import java.math.BigDecimal;
import java.util.List;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
/**
* 窗口绩效汇总登记查询对象
*
* @author zxfei
* @date 2025-03-10
*/
public class WindowPerformSummaryQuery extends WindowPerformSummaryEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 考核年度 */
private Integer yearStart;
/** 结束 考核年度 */
private Integer yearEnd;
/** 增加 考核年度 */
private Integer yearIncrement;
/** 考核年度列表 */
private List <Integer> yearList;
/** 考核年度排除列表 */
private List <Integer> yearNotList;
/** 开始 考核月份 */
private Integer monthStart;
/** 结束 考核月份 */
private Integer monthEnd;
/** 增加 考核月份 */
private Integer monthIncrement;
/** 考核月份列表 */
private List <Integer> monthList;
/** 考核月份排除列表 */
private List <Integer> monthNotList;
/** 开始 入驻部门id */
private Long deptIdStart;
/** 结束 入驻部门id */
private Long deptIdEnd;
/** 增加 入驻部门id */
private Long deptIdIncrement;
/** 入驻部门id列表 */
private List <Long> deptIdList;
/** 入驻部门id排除列表 */
private List <Long> deptIdNotList;
/** 入驻部门名称 */
private List<String> deptNameList;
/** 入驻部门名称排除列表 */
private List <String> deptNameNotList;
/** 开始 窗口建设得分 */
private BigDecimal ckjsdfStart;
/** 结束 窗口建设得分 */
private BigDecimal ckjsdfEnd;
/** 增加 窗口建设得分 */
private BigDecimal ckjsdfIncrement;
/** 窗口建设得分列表 */
private List <BigDecimal> ckjsdfList;
/** 窗口建设得分排除列表 */
private List <BigDecimal> ckjsdfNotList;
/** 开始 重点任务推进得分 */
private BigDecimal zdrwdfStart;
/** 结束 重点任务推进得分 */
private BigDecimal zdrwdfEnd;
/** 增加 重点任务推进得分 */
private BigDecimal zdrwdfIncrement;
/** 重点任务推进得分列表 */
private List <BigDecimal> zdrwdfList;
/** 重点任务推进得分排除列表 */
private List <BigDecimal> zdrwdfNotList;
/** 开始 加分 */
private BigDecimal addTotalScoreStart;
/** 结束 加分 */
private BigDecimal addTotalScoreEnd;
/** 增加 加分 */
private BigDecimal addTotalScoreIncrement;
/** 加分列表 */
private List <BigDecimal> addTotalScoreList;
/** 加分排除列表 */
private List <BigDecimal> addTotalScoreNotList;
/** 开始 合计得分 */
private BigDecimal sumScoreStart;
/** 结束 合计得分 */
private BigDecimal sumScoreEnd;
/** 增加 合计得分 */
private BigDecimal sumScoreIncrement;
/** 合计得分列表 */
private List <BigDecimal> sumScoreList;
/** 合计得分排除列表 */
private List <BigDecimal> sumScoreNotList;
/** 开始 评选建议 */
private Integer suggestionStart;
/** 结束 评选建议 */
private Integer suggestionEnd;
/** 增加 评选建议 */
private Integer suggestionIncrement;
/** 评选建议列表 */
private List <Integer> suggestionList;
/** 评选建议排除列表 */
private List <Integer> suggestionNotList;
/** 备注 */
private List<String> remarkList;
/** 备注排除列表 */
private List <String> remarkNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<WindowPerformSummaryQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<WindowPerformSummaryQuery> andConditionList;
public WindowPerformSummaryQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 开始 考核年度
* @return yearStart
*/
public Integer getYearStart(){
return this.yearStart;
}
/**
* 设置 开始 考核年度
* @param yearStart
*/
public void setYearStart(Integer yearStart){
this.yearStart = yearStart;
}
/**
* 获取 结束 考核年度
* @return $yearEnd
*/
public Integer getYearEnd(){
return this.yearEnd;
}
/**
* 设置 结束 考核年度
* @param yearEnd
*/
public void setYearEnd(Integer yearEnd){
this.yearEnd = yearEnd;
}
/**
* 获取 增加 考核年度
* @return yearIncrement
*/
public Integer getYearIncrement(){
return this.yearIncrement;
}
/**
* 设置 增加 考核年度
* @param yearIncrement
*/
public void setYearIncrement(Integer yearIncrement){
this.yearIncrement = yearIncrement;
}
/**
* 获取 考核年度
* @return yearList
*/
public List<Integer> getYearList(){
return this.yearList;
}
/**
* 设置 考核年度
* @param yearList
*/
public void setYearList(List<Integer> yearList){
this.yearList = yearList;
}
/**
* 获取 考核年度
* @return yearNotList
*/
public List<Integer> getYearNotList(){
return this.yearNotList;
}
/**
* 设置 考核年度
* @param yearNotList
*/
public void setYearNotList(List<Integer> yearNotList){
this.yearNotList = yearNotList;
}
/**
* 获取 开始 考核月份
* @return monthStart
*/
public Integer getMonthStart(){
return this.monthStart;
}
/**
* 设置 开始 考核月份
* @param monthStart
*/
public void setMonthStart(Integer monthStart){
this.monthStart = monthStart;
}
/**
* 获取 结束 考核月份
* @return $monthEnd
*/
public Integer getMonthEnd(){
return this.monthEnd;
}
/**
* 设置 结束 考核月份
* @param monthEnd
*/
public void setMonthEnd(Integer monthEnd){
this.monthEnd = monthEnd;
}
/**
* 获取 增加 考核月份
* @return monthIncrement
*/
public Integer getMonthIncrement(){
return this.monthIncrement;
}
/**
* 设置 增加 考核月份
* @param monthIncrement
*/
public void setMonthIncrement(Integer monthIncrement){
this.monthIncrement = monthIncrement;
}
/**
* 获取 考核月份
* @return monthList
*/
public List<Integer> getMonthList(){
return this.monthList;
}
/**
* 设置 考核月份
* @param monthList
*/
public void setMonthList(List<Integer> monthList){
this.monthList = monthList;
}
/**
* 获取 考核月份
* @return monthNotList
*/
public List<Integer> getMonthNotList(){
return this.monthNotList;
}
/**
* 设置 考核月份
* @param monthNotList
*/
public void setMonthNotList(List<Integer> monthNotList){
this.monthNotList = monthNotList;
}
/**
* 获取 开始 入驻部门id
* @return deptIdStart
*/
public Long getDeptIdStart(){
return this.deptIdStart;
}
/**
* 设置 开始 入驻部门id
* @param deptIdStart
*/
public void setDeptIdStart(Long deptIdStart){
this.deptIdStart = deptIdStart;
}
/**
* 获取 结束 入驻部门id
* @return $deptIdEnd
*/
public Long getDeptIdEnd(){
return this.deptIdEnd;
}
/**
* 设置 结束 入驻部门id
* @param deptIdEnd
*/
public void setDeptIdEnd(Long deptIdEnd){
this.deptIdEnd = deptIdEnd;
}
/**
* 获取 增加 入驻部门id
* @return deptIdIncrement
*/
public Long getDeptIdIncrement(){
return this.deptIdIncrement;
}
/**
* 设置 增加 入驻部门id
* @param deptIdIncrement
*/
public void setDeptIdIncrement(Long deptIdIncrement){
this.deptIdIncrement = deptIdIncrement;
}
/**
* 获取 入驻部门id
* @return deptIdList
*/
public List<Long> getDeptIdList(){
return this.deptIdList;
}
/**
* 设置 入驻部门id
* @param deptIdList
*/
public void setDeptIdList(List<Long> deptIdList){
this.deptIdList = deptIdList;
}
/**
* 获取 入驻部门id
* @return deptIdNotList
*/
public List<Long> getDeptIdNotList(){
return this.deptIdNotList;
}
/**
* 设置 入驻部门id
* @param deptIdNotList
*/
public void setDeptIdNotList(List<Long> deptIdNotList){
this.deptIdNotList = deptIdNotList;
}
/**
* 获取 入驻部门名称
* @return deptNameList
*/
public List<String> getDeptNameList(){
return this.deptNameList;
}
/**
* 设置 入驻部门名称
* @param deptNameList
*/
public void setDeptNameList(List<String> deptNameList){
this.deptNameList = deptNameList;
}
/**
* 获取 入驻部门名称
* @return deptNameNotList
*/
public List<String> getDeptNameNotList(){
return this.deptNameNotList;
}
/**
* 设置 入驻部门名称
* @param deptNameNotList
*/
public void setDeptNameNotList(List<String> deptNameNotList){
this.deptNameNotList = deptNameNotList;
}
/**
* 获取 开始 窗口建设得分
* @return ckjsdfStart
*/
public BigDecimal getCkjsdfStart(){
return this.ckjsdfStart;
}
/**
* 设置 开始 窗口建设得分
* @param ckjsdfStart
*/
public void setCkjsdfStart(BigDecimal ckjsdfStart){
this.ckjsdfStart = ckjsdfStart;
}
/**
* 获取 结束 窗口建设得分
* @return $ckjsdfEnd
*/
public BigDecimal getCkjsdfEnd(){
return this.ckjsdfEnd;
}
/**
* 设置 结束 窗口建设得分
* @param ckjsdfEnd
*/
public void setCkjsdfEnd(BigDecimal ckjsdfEnd){
this.ckjsdfEnd = ckjsdfEnd;
}
/**
* 获取 增加 窗口建设得分
* @return ckjsdfIncrement
*/
public BigDecimal getCkjsdfIncrement(){
return this.ckjsdfIncrement;
}
/**
* 设置 增加 窗口建设得分
* @param ckjsdfIncrement
*/
public void setCkjsdfIncrement(BigDecimal ckjsdfIncrement){
this.ckjsdfIncrement = ckjsdfIncrement;
}
/**
* 获取 窗口建设得分
* @return ckjsdfList
*/
public List<BigDecimal> getCkjsdfList(){
return this.ckjsdfList;
}
/**
* 设置 窗口建设得分
* @param ckjsdfList
*/
public void setCkjsdfList(List<BigDecimal> ckjsdfList){
this.ckjsdfList = ckjsdfList;
}
/**
* 获取 窗口建设得分
* @return ckjsdfNotList
*/
public List<BigDecimal> getCkjsdfNotList(){
return this.ckjsdfNotList;
}
/**
* 设置 窗口建设得分
* @param ckjsdfNotList
*/
public void setCkjsdfNotList(List<BigDecimal> ckjsdfNotList){
this.ckjsdfNotList = ckjsdfNotList;
}
/**
* 获取 开始 重点任务推进得分
* @return zdrwdfStart
*/
public BigDecimal getZdrwdfStart(){
return this.zdrwdfStart;
}
/**
* 设置 开始 重点任务推进得分
* @param zdrwdfStart
*/
public void setZdrwdfStart(BigDecimal zdrwdfStart){
this.zdrwdfStart = zdrwdfStart;
}
/**
* 获取 结束 重点任务推进得分
* @return $zdrwdfEnd
*/
public BigDecimal getZdrwdfEnd(){
return this.zdrwdfEnd;
}
/**
* 设置 结束 重点任务推进得分
* @param zdrwdfEnd
*/
public void setZdrwdfEnd(BigDecimal zdrwdfEnd){
this.zdrwdfEnd = zdrwdfEnd;
}
/**
* 获取 增加 重点任务推进得分
* @return zdrwdfIncrement
*/
public BigDecimal getZdrwdfIncrement(){
return this.zdrwdfIncrement;
}
/**
* 设置 增加 重点任务推进得分
* @param zdrwdfIncrement
*/
public void setZdrwdfIncrement(BigDecimal zdrwdfIncrement){
this.zdrwdfIncrement = zdrwdfIncrement;
}
/**
* 获取 重点任务推进得分
* @return zdrwdfList
*/
public List<BigDecimal> getZdrwdfList(){
return this.zdrwdfList;
}
/**
* 设置 重点任务推进得分
* @param zdrwdfList
*/
public void setZdrwdfList(List<BigDecimal> zdrwdfList){
this.zdrwdfList = zdrwdfList;
}
/**
* 获取 重点任务推进得分
* @return zdrwdfNotList
*/
public List<BigDecimal> getZdrwdfNotList(){
return this.zdrwdfNotList;
}
/**
* 设置 重点任务推进得分
* @param zdrwdfNotList
*/
public void setZdrwdfNotList(List<BigDecimal> zdrwdfNotList){
this.zdrwdfNotList = zdrwdfNotList;
}
/**
* 获取 开始 加分
* @return addTotalScoreStart
*/
public BigDecimal getAddTotalScoreStart(){
return this.addTotalScoreStart;
}
/**
* 设置 开始 加分
* @param addTotalScoreStart
*/
public void setAddTotalScoreStart(BigDecimal addTotalScoreStart){
this.addTotalScoreStart = addTotalScoreStart;
}
/**
* 获取 结束 加分
* @return $addTotalScoreEnd
*/
public BigDecimal getAddTotalScoreEnd(){
return this.addTotalScoreEnd;
}
/**
* 设置 结束 加分
* @param addTotalScoreEnd
*/
public void setAddTotalScoreEnd(BigDecimal addTotalScoreEnd){
this.addTotalScoreEnd = addTotalScoreEnd;
}
/**
* 获取 增加 加分
* @return addTotalScoreIncrement
*/
public BigDecimal getAddTotalScoreIncrement(){
return this.addTotalScoreIncrement;
}
/**
* 设置 增加 加分
* @param addTotalScoreIncrement
*/
public void setAddTotalScoreIncrement(BigDecimal addTotalScoreIncrement){
this.addTotalScoreIncrement = addTotalScoreIncrement;
}
/**
* 获取 加分
* @return addTotalScoreList
*/
public List<BigDecimal> getAddTotalScoreList(){
return this.addTotalScoreList;
}
/**
* 设置 加分
* @param addTotalScoreList
*/
public void setAddTotalScoreList(List<BigDecimal> addTotalScoreList){
this.addTotalScoreList = addTotalScoreList;
}
/**
* 获取 加分
* @return addTotalScoreNotList
*/
public List<BigDecimal> getAddTotalScoreNotList(){
return this.addTotalScoreNotList;
}
/**
* 设置 加分
* @param addTotalScoreNotList
*/
public void setAddTotalScoreNotList(List<BigDecimal> addTotalScoreNotList){
this.addTotalScoreNotList = addTotalScoreNotList;
}
/**
* 获取 开始 合计得分
* @return sumScoreStart
*/
public BigDecimal getSumScoreStart(){
return this.sumScoreStart;
}
/**
* 设置 开始 合计得分
* @param sumScoreStart
*/
public void setSumScoreStart(BigDecimal sumScoreStart){
this.sumScoreStart = sumScoreStart;
}
/**
* 获取 结束 合计得分
* @return $sumScoreEnd
*/
public BigDecimal getSumScoreEnd(){
return this.sumScoreEnd;
}
/**
* 设置 结束 合计得分
* @param sumScoreEnd
*/
public void setSumScoreEnd(BigDecimal sumScoreEnd){
this.sumScoreEnd = sumScoreEnd;
}
/**
* 获取 增加 合计得分
* @return sumScoreIncrement
*/
public BigDecimal getSumScoreIncrement(){
return this.sumScoreIncrement;
}
/**
* 设置 增加 合计得分
* @param sumScoreIncrement
*/
public void setSumScoreIncrement(BigDecimal sumScoreIncrement){
this.sumScoreIncrement = sumScoreIncrement;
}
/**
* 获取 合计得分
* @return sumScoreList
*/
public List<BigDecimal> getSumScoreList(){
return this.sumScoreList;
}
/**
* 设置 合计得分
* @param sumScoreList
*/
public void setSumScoreList(List<BigDecimal> sumScoreList){
this.sumScoreList = sumScoreList;
}
/**
* 获取 合计得分
* @return sumScoreNotList
*/
public List<BigDecimal> getSumScoreNotList(){
return this.sumScoreNotList;
}
/**
* 设置 合计得分
* @param sumScoreNotList
*/
public void setSumScoreNotList(List<BigDecimal> sumScoreNotList){
this.sumScoreNotList = sumScoreNotList;
}
/**
* 获取 开始 评选建议
* @return suggestionStart
*/
public Integer getSuggestionStart(){
return this.suggestionStart;
}
/**
* 设置 开始 评选建议
* @param suggestionStart
*/
public void setSuggestionStart(Integer suggestionStart){
this.suggestionStart = suggestionStart;
}
/**
* 获取 结束 评选建议
* @return $suggestionEnd
*/
public Integer getSuggestionEnd(){
return this.suggestionEnd;
}
/**
* 设置 结束 评选建议
* @param suggestionEnd
*/
public void setSuggestionEnd(Integer suggestionEnd){
this.suggestionEnd = suggestionEnd;
}
/**
* 获取 增加 评选建议
* @return suggestionIncrement
*/
public Integer getSuggestionIncrement(){
return this.suggestionIncrement;
}
/**
* 设置 增加 评选建议
* @param suggestionIncrement
*/
public void setSuggestionIncrement(Integer suggestionIncrement){
this.suggestionIncrement = suggestionIncrement;
}
/**
* 获取 评选建议
* @return suggestionList
*/
public List<Integer> getSuggestionList(){
return this.suggestionList;
}
/**
* 设置 评选建议
* @param suggestionList
*/
public void setSuggestionList(List<Integer> suggestionList){
this.suggestionList = suggestionList;
}
/**
* 获取 评选建议
* @return suggestionNotList
*/
public List<Integer> getSuggestionNotList(){
return this.suggestionNotList;
}
/**
* 设置 评选建议
* @param suggestionNotList
*/
public void setSuggestionNotList(List<Integer> suggestionNotList){
this.suggestionNotList = suggestionNotList;
}
/**
* 获取 备注
* @return remarkList
*/
public List<String> getRemarkList(){
return this.remarkList;
}
/**
* 设置 备注
* @param remarkList
*/
public void setRemarkList(List<String> remarkList){
this.remarkList = remarkList;
}
/**
* 获取 备注
* @return remarkNotList
*/
public List<String> getRemarkNotList(){
return this.remarkNotList;
}
/**
* 设置 备注
* @param remarkNotList
*/
public void setRemarkNotList(List<String> remarkNotList){
this.remarkNotList = remarkNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public WindowPerformSummaryQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public WindowPerformSummaryQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public WindowPerformSummaryQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public WindowPerformSummaryQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public WindowPerformSummaryQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public WindowPerformSummaryQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 考核年度
* @param year
*/
public WindowPerformSummaryQuery year(Integer year){
setYear(year);
return this;
}
/**
* 设置 开始 考核年度
* @param yearStart
*/
public WindowPerformSummaryQuery yearStart(Integer yearStart){
this.yearStart = yearStart;
return this;
}
/**
* 设置 结束 考核年度
* @param yearEnd
*/
public WindowPerformSummaryQuery yearEnd(Integer yearEnd){
this.yearEnd = yearEnd;
return this;
}
/**
* 设置 增加 考核年度
* @param yearIncrement
*/
public WindowPerformSummaryQuery yearIncrement(Integer yearIncrement){
this.yearIncrement = yearIncrement;
return this;
}
/**
* 设置 考核年度
* @param yearList
*/
public WindowPerformSummaryQuery yearList(List<Integer> yearList){
this.yearList = yearList;
return this;
}
/**
* 设置 考核年度
* @param yearNotList
*/
public WindowPerformSummaryQuery yearNotList(List<Integer> yearNotList){
this.yearNotList = yearNotList;
return this;
}
/**
* 设置 考核月份
* @param month
*/
public WindowPerformSummaryQuery month(Integer month){
setMonth(month);
return this;
}
/**
* 设置 开始 考核月份
* @param monthStart
*/
public WindowPerformSummaryQuery monthStart(Integer monthStart){
this.monthStart = monthStart;
return this;
}
/**
* 设置 结束 考核月份
* @param monthEnd
*/
public WindowPerformSummaryQuery monthEnd(Integer monthEnd){
this.monthEnd = monthEnd;
return this;
}
/**
* 设置 增加 考核月份
* @param monthIncrement
*/
public WindowPerformSummaryQuery monthIncrement(Integer monthIncrement){
this.monthIncrement = monthIncrement;
return this;
}
/**
* 设置 考核月份
* @param monthList
*/
public WindowPerformSummaryQuery monthList(List<Integer> monthList){
this.monthList = monthList;
return this;
}
/**
* 设置 考核月份
* @param monthNotList
*/
public WindowPerformSummaryQuery monthNotList(List<Integer> monthNotList){
this.monthNotList = monthNotList;
return this;
}
/**
* 设置 入驻部门id
* @param deptId
*/
public WindowPerformSummaryQuery deptId(Long deptId){
setDeptId(deptId);
return this;
}
/**
* 设置 开始 入驻部门id
* @param deptIdStart
*/
public WindowPerformSummaryQuery deptIdStart(Long deptIdStart){
this.deptIdStart = deptIdStart;
return this;
}
/**
* 设置 结束 入驻部门id
* @param deptIdEnd
*/
public WindowPerformSummaryQuery deptIdEnd(Long deptIdEnd){
this.deptIdEnd = deptIdEnd;
return this;
}
/**
* 设置 增加 入驻部门id
* @param deptIdIncrement
*/
public WindowPerformSummaryQuery deptIdIncrement(Long deptIdIncrement){
this.deptIdIncrement = deptIdIncrement;
return this;
}
/**
* 设置 入驻部门id
* @param deptIdList
*/
public WindowPerformSummaryQuery deptIdList(List<Long> deptIdList){
this.deptIdList = deptIdList;
return this;
}
/**
* 设置 入驻部门id
* @param deptIdNotList
*/
public WindowPerformSummaryQuery deptIdNotList(List<Long> deptIdNotList){
this.deptIdNotList = deptIdNotList;
return this;
}
/**
* 设置 入驻部门名称
* @param deptName
*/
public WindowPerformSummaryQuery deptName(String deptName){
setDeptName(deptName);
return this;
}
/**
* 设置 入驻部门名称
* @param deptNameList
*/
public WindowPerformSummaryQuery deptNameList(List<String> deptNameList){
this.deptNameList = deptNameList;
return this;
}
/**
* 设置 窗口建设得分
* @param ckjsdf
*/
public WindowPerformSummaryQuery ckjsdf(BigDecimal ckjsdf){
setCkjsdf(ckjsdf);
return this;
}
/**
* 设置 开始 窗口建设得分
* @param ckjsdfStart
*/
public WindowPerformSummaryQuery ckjsdfStart(BigDecimal ckjsdfStart){
this.ckjsdfStart = ckjsdfStart;
return this;
}
/**
* 设置 结束 窗口建设得分
* @param ckjsdfEnd
*/
public WindowPerformSummaryQuery ckjsdfEnd(BigDecimal ckjsdfEnd){
this.ckjsdfEnd = ckjsdfEnd;
return this;
}
/**
* 设置 增加 窗口建设得分
* @param ckjsdfIncrement
*/
public WindowPerformSummaryQuery ckjsdfIncrement(BigDecimal ckjsdfIncrement){
this.ckjsdfIncrement = ckjsdfIncrement;
return this;
}
/**
* 设置 窗口建设得分
* @param ckjsdfList
*/
public WindowPerformSummaryQuery ckjsdfList(List<BigDecimal> ckjsdfList){
this.ckjsdfList = ckjsdfList;
return this;
}
/**
* 设置 窗口建设得分
* @param ckjsdfNotList
*/
public WindowPerformSummaryQuery ckjsdfNotList(List<BigDecimal> ckjsdfNotList){
this.ckjsdfNotList = ckjsdfNotList;
return this;
}
/**
* 设置 重点任务推进得分
* @param zdrwdf
*/
public WindowPerformSummaryQuery zdrwdf(BigDecimal zdrwdf){
setZdrwdf(zdrwdf);
return this;
}
/**
* 设置 开始 重点任务推进得分
* @param zdrwdfStart
*/
public WindowPerformSummaryQuery zdrwdfStart(BigDecimal zdrwdfStart){
this.zdrwdfStart = zdrwdfStart;
return this;
}
/**
* 设置 结束 重点任务推进得分
* @param zdrwdfEnd
*/
public WindowPerformSummaryQuery zdrwdfEnd(BigDecimal zdrwdfEnd){
this.zdrwdfEnd = zdrwdfEnd;
return this;
}
/**
* 设置 增加 重点任务推进得分
* @param zdrwdfIncrement
*/
public WindowPerformSummaryQuery zdrwdfIncrement(BigDecimal zdrwdfIncrement){
this.zdrwdfIncrement = zdrwdfIncrement;
return this;
}
/**
* 设置 重点任务推进得分
* @param zdrwdfList
*/
public WindowPerformSummaryQuery zdrwdfList(List<BigDecimal> zdrwdfList){
this.zdrwdfList = zdrwdfList;
return this;
}
/**
* 设置 重点任务推进得分
* @param zdrwdfNotList
*/
public WindowPerformSummaryQuery zdrwdfNotList(List<BigDecimal> zdrwdfNotList){
this.zdrwdfNotList = zdrwdfNotList;
return this;
}
/**
* 设置 加分
* @param addTotalScore
*/
public WindowPerformSummaryQuery addTotalScore(BigDecimal addTotalScore){
setAddTotalScore(addTotalScore);
return this;
}
/**
* 设置 开始 加分
* @param addTotalScoreStart
*/
public WindowPerformSummaryQuery addTotalScoreStart(BigDecimal addTotalScoreStart){
this.addTotalScoreStart = addTotalScoreStart;
return this;
}
/**
* 设置 结束 加分
* @param addTotalScoreEnd
*/
public WindowPerformSummaryQuery addTotalScoreEnd(BigDecimal addTotalScoreEnd){
this.addTotalScoreEnd = addTotalScoreEnd;
return this;
}
/**
* 设置 增加 加分
* @param addTotalScoreIncrement
*/
public WindowPerformSummaryQuery addTotalScoreIncrement(BigDecimal addTotalScoreIncrement){
this.addTotalScoreIncrement = addTotalScoreIncrement;
return this;
}
/**
* 设置 加分
* @param addTotalScoreList
*/
public WindowPerformSummaryQuery addTotalScoreList(List<BigDecimal> addTotalScoreList){
this.addTotalScoreList = addTotalScoreList;
return this;
}
/**
* 设置 加分
* @param addTotalScoreNotList
*/
public WindowPerformSummaryQuery addTotalScoreNotList(List<BigDecimal> addTotalScoreNotList){
this.addTotalScoreNotList = addTotalScoreNotList;
return this;
}
/**
* 设置 合计得分
* @param sumScore
*/
public WindowPerformSummaryQuery sumScore(BigDecimal sumScore){
setSumScore(sumScore);
return this;
}
/**
* 设置 开始 合计得分
* @param sumScoreStart
*/
public WindowPerformSummaryQuery sumScoreStart(BigDecimal sumScoreStart){
this.sumScoreStart = sumScoreStart;
return this;
}
/**
* 设置 结束 合计得分
* @param sumScoreEnd
*/
public WindowPerformSummaryQuery sumScoreEnd(BigDecimal sumScoreEnd){
this.sumScoreEnd = sumScoreEnd;
return this;
}
/**
* 设置 增加 合计得分
* @param sumScoreIncrement
*/
public WindowPerformSummaryQuery sumScoreIncrement(BigDecimal sumScoreIncrement){
this.sumScoreIncrement = sumScoreIncrement;
return this;
}
/**
* 设置 合计得分
* @param sumScoreList
*/
public WindowPerformSummaryQuery sumScoreList(List<BigDecimal> sumScoreList){
this.sumScoreList = sumScoreList;
return this;
}
/**
* 设置 合计得分
* @param sumScoreNotList
*/
public WindowPerformSummaryQuery sumScoreNotList(List<BigDecimal> sumScoreNotList){
this.sumScoreNotList = sumScoreNotList;
return this;
}
/**
* 设置 评选建议
* @param suggestion
*/
public WindowPerformSummaryQuery suggestion(Integer suggestion){
setSuggestion(suggestion);
return this;
}
/**
* 设置 开始 评选建议
* @param suggestionStart
*/
public WindowPerformSummaryQuery suggestionStart(Integer suggestionStart){
this.suggestionStart = suggestionStart;
return this;
}
/**
* 设置 结束 评选建议
* @param suggestionEnd
*/
public WindowPerformSummaryQuery suggestionEnd(Integer suggestionEnd){
this.suggestionEnd = suggestionEnd;
return this;
}
/**
* 设置 增加 评选建议
* @param suggestionIncrement
*/
public WindowPerformSummaryQuery suggestionIncrement(Integer suggestionIncrement){
this.suggestionIncrement = suggestionIncrement;
return this;
}
/**
* 设置 评选建议
* @param suggestionList
*/
public WindowPerformSummaryQuery suggestionList(List<Integer> suggestionList){
this.suggestionList = suggestionList;
return this;
}
/**
* 设置 评选建议
* @param suggestionNotList
*/
public WindowPerformSummaryQuery suggestionNotList(List<Integer> suggestionNotList){
this.suggestionNotList = suggestionNotList;
return this;
}
/**
* 设置 备注
* @param remark
*/
public WindowPerformSummaryQuery remark(String remark){
setRemark(remark);
return this;
}
/**
* 设置 备注
* @param remarkList
*/
public WindowPerformSummaryQuery remarkList(List<String> remarkList){
this.remarkList = remarkList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public WindowPerformSummaryQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public WindowPerformSummaryQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public WindowPerformSummaryQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public WindowPerformSummaryQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public WindowPerformSummaryQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public WindowPerformSummaryQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public WindowPerformSummaryQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public WindowPerformSummaryQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public WindowPerformSummaryQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public WindowPerformSummaryQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public WindowPerformSummaryQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public WindowPerformSummaryQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<WindowPerformSummaryQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<WindowPerformSummaryQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<WindowPerformSummaryQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<WindowPerformSummaryQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 窗口绩效汇总登记视图对象
*
* @author zxfei
* @date 2025-03-10
*/
@Data
public class WindowPerformSummaryVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.window.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import com.mortals.xhx.module.window.dao.WindowPerformSummaryDao;
/**
* WindowPerformSummaryService
*
* 窗口绩效汇总登记 service接口
*
* @author zxfei
* @date 2025-03-10
*/
public interface WindowPerformSummaryService extends ICRUDService<WindowPerformSummaryEntity,Long>{
WindowPerformSummaryDao getDao();
/***
* 初始化绩效数据
* @param year
* @param month
*/
void initWindowPerformSummary(int year,int month);
}
\ No newline at end of file
package com.mortals.xhx.module.window.service.impl;
import com.mortals.xhx.module.window.model.WindowPerformSummaryQuery;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.function.Function;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.window.dao.WindowPerformSummaryDao;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import com.mortals.xhx.module.window.service.WindowPerformSummaryService;
import lombok.extern.slf4j.Slf4j;
/**
* WindowPerformSummaryService
* 窗口绩效汇总登记 service实现
*
* @author zxfei
* @date 2025-03-10
*/
@Service("windowPerformSummaryService")
@Slf4j
public class WindowPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<WindowPerformSummaryDao, WindowPerformSummaryEntity, Long> implements WindowPerformSummaryService {
@Override
public void initWindowPerformSummary(int year, int month) {
List<WindowPerformSummaryEntity> addList = new ArrayList<>();
String[] depts = {"市公安局出入境管理支队", "市医保局", "市人力资源社会保障局", "市住房公积金中心叙州区管理部", "市应急管理局", "市公安局交警支队", "市市场监管局", "市不动产登记中心", "市交通运输局", "市住房城乡建设局", "市自然资源规划局", "市水利局", "宜宾市税务局", "宜宾市消防救援支队", "叙州区住房保障和房地产事务中心", "市民政局", "市生态环境局", "市卫生健康委", "市司法局", "市公安局治安(户政)支队", "市国动办", "市发展改革委", "中行宜宾叙府支行", "邮政公司叙州区分公司", "市合力公证处", "宜宾市商业银行", "市气象局", "国网叙州供电分公司", "市文广旅游局", "市退役军人局", "市商务局", "市科技局", "市邮政管理局", "市烟草专卖局", "市教育体育局", "市地震监测中心", "市委统战部(市民宗局、市侨务办)", "市宣传部(市新闻出版局﹤市版权局﹥)", "市委办(市档案局)", "市委编办", "市经济和信息化局", "市竹业林业局", "市农业农村局", "市残联", "市财政局", "市中医药管理局", "宜宾华润燃气有限公司", "宜宾农村商业银行", "市金融工作局"};
for(String deptName:depts){
WindowPerformSummaryEntity entity = new WindowPerformSummaryEntity();
entity.initAttrValue();
entity.setYear(year);
entity.setMonth(month);
entity.setDeptName(deptName);
entity.setCreateTime(new Date());
entity.setCreateUserId(1L);
addList.add(entity);
}
this.save(addList);
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.window.model.WindowPerformSummaryEntity;
import com.mortals.xhx.module.window.service.WindowPerformSummaryService;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* 窗口绩效汇总登记
*
* @author zxfei
* @date 2025-03-10
*/
@RestController
@RequestMapping("window/perform/summary")
public class WindowPerformSummaryController extends BaseCRUDJsonBodyMappingController<WindowPerformSummaryService,WindowPerformSummaryEntity,Long> {
@Autowired
private ParamService paramService;
public WindowPerformSummaryController(){
super.setModuleDesc( "窗口绩效汇总登记");
}
@Override
protected void init(Map<String, Object> model, Context context) {
Map<String, String> suggestion = new HashMap<>();
suggestion.put("0","无");
suggestion.put("1","红旗窗口");
this.addDict(model, "suggestion", suggestion);
super.init(model, context);
}
// @Override
// protected void doListAfter(WindowPerformSummaryEntity query, List<WindowPerformSummaryEntity> list, Context context) throws AppException {
// super.doListAfter(query, list, context);
// if(CollectionUtils.isEmpty(list)) {
// if (query.getYear() != null && query.getMonth() != null) {
// this.service.initWindowPerformSummary(query.getYear(),query.getMonth());
// }
// }
// }
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.window.dao.ibatis.WindowPerformSummaryDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="WindowPerformSummaryEntity" id="WindowPerformSummaryEntity-Map">
<id property="id" column="id" />
<result property="year" column="year" />
<result property="month" column="month" />
<result property="deptId" column="deptId" />
<result property="deptName" column="deptName" />
<result property="ckjsdf" column="ckjsdf" />
<result property="zdrwdf" column="zdrwdf" />
<result property="addTotalScore" column="addTotalScore" />
<result property="sumScore" column="sumScore" />
<result property="suggestion" column="suggestion" />
<result property="remark" column="remark" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('year') or colPickMode == 1 and data.containsKey('year')))">
a.year,
</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('deptId') or colPickMode == 1 and data.containsKey('deptId')))">
a.deptId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptName') or colPickMode == 1 and data.containsKey('deptName')))">
a.deptName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('ckjsdf') or colPickMode == 1 and data.containsKey('ckjsdf')))">
a.ckjsdf,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('zdrwdf') or colPickMode == 1 and data.containsKey('zdrwdf')))">
a.zdrwdf,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('addTotalScore') or colPickMode == 1 and data.containsKey('addTotalScore')))">
a.addTotalScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sumScore') or colPickMode == 1 and data.containsKey('sumScore')))">
a.sumScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('suggestion') or colPickMode == 1 and data.containsKey('suggestion')))">
a.suggestion,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))">
a.remark,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="WindowPerformSummaryEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_window_perform_summary
(year,month,deptId,deptName,ckjsdf,zdrwdf,addTotalScore,sumScore,suggestion,remark,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{year},#{month},#{deptId},#{deptName},#{ckjsdf},#{zdrwdf},#{addTotalScore},#{sumScore},#{suggestion},#{remark},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_window_perform_summary
(year,month,deptId,deptName,ckjsdf,zdrwdf,addTotalScore,sumScore,suggestion,remark,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.year},#{item.month},#{item.deptId},#{item.deptName},#{item.ckjsdf},#{item.zdrwdf},#{item.addTotalScore},#{item.sumScore},#{item.suggestion},#{item.remark},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_window_perform_summary as a
set
<trim suffixOverrides="," suffix="">
<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('deptId')) or (colPickMode==1 and !data.containsKey('deptId'))">
a.deptId=#{data.deptId},
</if>
<if test="(colPickMode==0 and data.containsKey('deptIdIncrement')) or (colPickMode==1 and !data.containsKey('deptIdIncrement'))">
a.deptId=ifnull(a.deptId,0) + #{data.deptIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('deptName')) or (colPickMode==1 and !data.containsKey('deptName'))">
a.deptName=#{data.deptName},
</if>
<if test="(colPickMode==0 and data.containsKey('ckjsdf')) or (colPickMode==1 and !data.containsKey('ckjsdf'))">
a.ckjsdf=#{data.ckjsdf},
</if>
<if test="(colPickMode==0 and data.containsKey('ckjsdfIncrement')) or (colPickMode==1 and !data.containsKey('ckjsdfIncrement'))">
a.ckjsdf=ifnull(a.ckjsdf,0) + #{data.ckjsdfIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('zdrwdf')) or (colPickMode==1 and !data.containsKey('zdrwdf'))">
a.zdrwdf=#{data.zdrwdf},
</if>
<if test="(colPickMode==0 and data.containsKey('zdrwdfIncrement')) or (colPickMode==1 and !data.containsKey('zdrwdfIncrement'))">
a.zdrwdf=ifnull(a.zdrwdf,0) + #{data.zdrwdfIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('addTotalScore')) or (colPickMode==1 and !data.containsKey('addTotalScore'))">
a.addTotalScore=#{data.addTotalScore},
</if>
<if test="(colPickMode==0 and data.containsKey('addTotalScoreIncrement')) or (colPickMode==1 and !data.containsKey('addTotalScoreIncrement'))">
a.addTotalScore=ifnull(a.addTotalScore,0) + #{data.addTotalScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('sumScore')) or (colPickMode==1 and !data.containsKey('sumScore'))">
a.sumScore=#{data.sumScore},
</if>
<if test="(colPickMode==0 and data.containsKey('sumScoreIncrement')) or (colPickMode==1 and !data.containsKey('sumScoreIncrement'))">
a.sumScore=ifnull(a.sumScore,0) + #{data.sumScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('suggestion')) or (colPickMode==1 and !data.containsKey('suggestion'))">
a.suggestion=#{data.suggestion},
</if>
<if test="(colPickMode==0 and data.containsKey('suggestionIncrement')) or (colPickMode==1 and !data.containsKey('suggestionIncrement'))">
a.suggestion=ifnull(a.suggestion,0) + #{data.suggestionIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('remark')) or (colPickMode==1 and !data.containsKey('remark'))">
a.remark=#{data.remark},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_window_perform_summary as a
<trim prefix="set" suffixOverrides=",">
<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="deptId=(case" suffix="ELSE deptId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('deptId')) or (colPickMode==1 and !item.containsKey('deptId'))">
when a.id=#{item.id} then #{item.deptId}
</when>
<when test="(colPickMode==0 and item.containsKey('deptIdIncrement')) or (colPickMode==1 and !item.containsKey('deptIdIncrement'))">
when a.id=#{item.id} then ifnull(a.deptId,0) + #{item.deptIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="deptName=(case" suffix="ELSE deptName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deptName')) or (colPickMode==1 and !item.containsKey('deptName'))">
when a.id=#{item.id} then #{item.deptName}
</if>
</foreach>
</trim>
<trim prefix="ckjsdf=(case" suffix="ELSE ckjsdf end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('ckjsdf')) or (colPickMode==1 and !item.containsKey('ckjsdf'))">
when a.id=#{item.id} then #{item.ckjsdf}
</when>
<when test="(colPickMode==0 and item.containsKey('ckjsdfIncrement')) or (colPickMode==1 and !item.containsKey('ckjsdfIncrement'))">
when a.id=#{item.id} then ifnull(a.ckjsdf,0) + #{item.ckjsdfIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="zdrwdf=(case" suffix="ELSE zdrwdf end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('zdrwdf')) or (colPickMode==1 and !item.containsKey('zdrwdf'))">
when a.id=#{item.id} then #{item.zdrwdf}
</when>
<when test="(colPickMode==0 and item.containsKey('zdrwdfIncrement')) or (colPickMode==1 and !item.containsKey('zdrwdfIncrement'))">
when a.id=#{item.id} then ifnull(a.zdrwdf,0) + #{item.zdrwdfIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="addTotalScore=(case" suffix="ELSE addTotalScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('addTotalScore')) or (colPickMode==1 and !item.containsKey('addTotalScore'))">
when a.id=#{item.id} then #{item.addTotalScore}
</when>
<when test="(colPickMode==0 and item.containsKey('addTotalScoreIncrement')) or (colPickMode==1 and !item.containsKey('addTotalScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.addTotalScore,0) + #{item.addTotalScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="sumScore=(case" suffix="ELSE sumScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('sumScore')) or (colPickMode==1 and !item.containsKey('sumScore'))">
when a.id=#{item.id} then #{item.sumScore}
</when>
<when test="(colPickMode==0 and item.containsKey('sumScoreIncrement')) or (colPickMode==1 and !item.containsKey('sumScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.sumScore,0) + #{item.sumScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="suggestion=(case" suffix="ELSE suggestion end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('suggestion')) or (colPickMode==1 and !item.containsKey('suggestion'))">
when a.id=#{item.id} then #{item.suggestion}
</when>
<when test="(colPickMode==0 and item.containsKey('suggestionIncrement')) or (colPickMode==1 and !item.containsKey('suggestionIncrement'))">
when a.id=#{item.id} then ifnull(a.suggestion,0) + #{item.suggestionIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="remark=(case" suffix="ELSE remark end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))">
when a.id=#{item.id} then #{item.remark}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="WindowPerformSummaryEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_window_perform_summary as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_window_perform_summary as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_window_perform_summary where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_window_perform_summary where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_window_perform_summary where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_window_perform_summary as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="WindowPerformSummaryEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_window_perform_summary as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_window_perform_summary as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="permissionSql != null and permissionSql != ''">
${permissionSql}
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('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('deptId')">
<if test="conditionParamRef.deptId != null ">
${_conditionType_} a.deptId = #{${_conditionParam_}.deptId}
</if>
<if test="conditionParamRef.deptId == null">
${_conditionType_} a.deptId is null
</if>
</if>
<if test="conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0">
${_conditionType_} a.deptId in
<foreach collection="conditionParamRef.deptIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdNotList') and conditionParamRef.deptIdNotList.size() > 0">
${_conditionType_} a.deptId not in
<foreach collection="conditionParamRef.deptIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdStart') and conditionParamRef.deptIdStart != null">
${_conditionType_} a.deptId <![CDATA[ >= ]]> #{${_conditionParam_}.deptIdStart}
</if>
<if test="conditionParamRef.containsKey('deptIdEnd') and conditionParamRef.deptIdEnd != null">
${_conditionType_} a.deptId <![CDATA[ <= ]]> #{${_conditionParam_}.deptIdEnd}
</if>
<if test="conditionParamRef.containsKey('deptName')">
<if test="conditionParamRef.deptName != null and conditionParamRef.deptName != ''">
${_conditionType_} a.deptName like #{${_conditionParam_}.deptName}
</if>
<if test="conditionParamRef.deptName == null">
${_conditionType_} a.deptName is null
</if>
</if>
<if test="conditionParamRef.containsKey('deptNameList') and conditionParamRef.deptNameList.size() > 0">
${_conditionType_} a.deptName in
<foreach collection="conditionParamRef.deptNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptNameNotList') and conditionParamRef.deptNameNotList.size() > 0">
${_conditionType_} a.deptName not in
<foreach collection="conditionParamRef.deptNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('ckjsdf')">
<if test="conditionParamRef.ckjsdf != null ">
${_conditionType_} a.ckjsdf = #{${_conditionParam_}.ckjsdf}
</if>
<if test="conditionParamRef.ckjsdf == null">
${_conditionType_} a.ckjsdf is null
</if>
</if>
<if test="conditionParamRef.containsKey('ckjsdfList') and conditionParamRef.ckjsdfList.size() > 0">
${_conditionType_} a.ckjsdf in
<foreach collection="conditionParamRef.ckjsdfList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('ckjsdfNotList') and conditionParamRef.ckjsdfNotList.size() > 0">
${_conditionType_} a.ckjsdf not in
<foreach collection="conditionParamRef.ckjsdfNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('ckjsdfStart') and conditionParamRef.ckjsdfStart != null">
${_conditionType_} a.ckjsdf <![CDATA[ >= ]]> #{${_conditionParam_}.ckjsdfStart}
</if>
<if test="conditionParamRef.containsKey('ckjsdfEnd') and conditionParamRef.ckjsdfEnd != null">
${_conditionType_} a.ckjsdf <![CDATA[ <= ]]> #{${_conditionParam_}.ckjsdfEnd}
</if>
<if test="conditionParamRef.containsKey('zdrwdf')">
<if test="conditionParamRef.zdrwdf != null ">
${_conditionType_} a.zdrwdf = #{${_conditionParam_}.zdrwdf}
</if>
<if test="conditionParamRef.zdrwdf == null">
${_conditionType_} a.zdrwdf is null
</if>
</if>
<if test="conditionParamRef.containsKey('zdrwdfList') and conditionParamRef.zdrwdfList.size() > 0">
${_conditionType_} a.zdrwdf in
<foreach collection="conditionParamRef.zdrwdfList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('zdrwdfNotList') and conditionParamRef.zdrwdfNotList.size() > 0">
${_conditionType_} a.zdrwdf not in
<foreach collection="conditionParamRef.zdrwdfNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('zdrwdfStart') and conditionParamRef.zdrwdfStart != null">
${_conditionType_} a.zdrwdf <![CDATA[ >= ]]> #{${_conditionParam_}.zdrwdfStart}
</if>
<if test="conditionParamRef.containsKey('zdrwdfEnd') and conditionParamRef.zdrwdfEnd != null">
${_conditionType_} a.zdrwdf <![CDATA[ <= ]]> #{${_conditionParam_}.zdrwdfEnd}
</if>
<if test="conditionParamRef.containsKey('addTotalScore')">
<if test="conditionParamRef.addTotalScore != null ">
${_conditionType_} a.addTotalScore = #{${_conditionParam_}.addTotalScore}
</if>
<if test="conditionParamRef.addTotalScore == null">
${_conditionType_} a.addTotalScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('addTotalScoreList') and conditionParamRef.addTotalScoreList.size() > 0">
${_conditionType_} a.addTotalScore in
<foreach collection="conditionParamRef.addTotalScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('addTotalScoreNotList') and conditionParamRef.addTotalScoreNotList.size() > 0">
${_conditionType_} a.addTotalScore not in
<foreach collection="conditionParamRef.addTotalScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('addTotalScoreStart') and conditionParamRef.addTotalScoreStart != null">
${_conditionType_} a.addTotalScore <![CDATA[ >= ]]> #{${_conditionParam_}.addTotalScoreStart}
</if>
<if test="conditionParamRef.containsKey('addTotalScoreEnd') and conditionParamRef.addTotalScoreEnd != null">
${_conditionType_} a.addTotalScore <![CDATA[ <= ]]> #{${_conditionParam_}.addTotalScoreEnd}
</if>
<if test="conditionParamRef.containsKey('sumScore')">
<if test="conditionParamRef.sumScore != null ">
${_conditionType_} a.sumScore = #{${_conditionParam_}.sumScore}
</if>
<if test="conditionParamRef.sumScore == null">
${_conditionType_} a.sumScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('sumScoreList') and conditionParamRef.sumScoreList.size() > 0">
${_conditionType_} a.sumScore in
<foreach collection="conditionParamRef.sumScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sumScoreNotList') and conditionParamRef.sumScoreNotList.size() > 0">
${_conditionType_} a.sumScore not in
<foreach collection="conditionParamRef.sumScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sumScoreStart') and conditionParamRef.sumScoreStart != null">
${_conditionType_} a.sumScore <![CDATA[ >= ]]> #{${_conditionParam_}.sumScoreStart}
</if>
<if test="conditionParamRef.containsKey('sumScoreEnd') and conditionParamRef.sumScoreEnd != null">
${_conditionType_} a.sumScore <![CDATA[ <= ]]> #{${_conditionParam_}.sumScoreEnd}
</if>
<if test="conditionParamRef.containsKey('suggestion')">
<if test="conditionParamRef.suggestion != null ">
${_conditionType_} a.suggestion = #{${_conditionParam_}.suggestion}
</if>
<if test="conditionParamRef.suggestion == null">
${_conditionType_} a.suggestion is null
</if>
</if>
<if test="conditionParamRef.containsKey('suggestionList') and conditionParamRef.suggestionList.size() > 0">
${_conditionType_} a.suggestion in
<foreach collection="conditionParamRef.suggestionList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('suggestionNotList') and conditionParamRef.suggestionNotList.size() > 0">
${_conditionType_} a.suggestion not in
<foreach collection="conditionParamRef.suggestionNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('suggestionStart') and conditionParamRef.suggestionStart != null">
${_conditionType_} a.suggestion <![CDATA[ >= ]]> #{${_conditionParam_}.suggestionStart}
</if>
<if test="conditionParamRef.containsKey('suggestionEnd') and conditionParamRef.suggestionEnd != null">
${_conditionType_} a.suggestion <![CDATA[ <= ]]> #{${_conditionParam_}.suggestionEnd}
</if>
<if test="conditionParamRef.containsKey('remark')">
<if test="conditionParamRef.remark != null and conditionParamRef.remark != ''">
${_conditionType_} a.remark like #{${_conditionParam_}.remark}
</if>
<if test="conditionParamRef.remark == null">
${_conditionType_} a.remark is null
</if>
</if>
<if test="conditionParamRef.containsKey('remarkList') and conditionParamRef.remarkList.size() > 0">
${_conditionType_} a.remark in
<foreach collection="conditionParamRef.remarkList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('remarkNotList') and conditionParamRef.remarkNotList.size() > 0">
${_conditionType_} a.remark not in
<foreach collection="conditionParamRef.remarkNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
field(a.id,
<foreach collection="conditionParamRef.idList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('yearList') and conditionParamRef.yearList.size() > 0">
field(a.year,
<foreach collection="conditionParamRef.yearList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('monthList') and conditionParamRef.monthList.size() > 0">
field(a.month,
<foreach collection="conditionParamRef.monthList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0">
field(a.deptId,
<foreach collection="conditionParamRef.deptIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('ckjsdfList') and conditionParamRef.ckjsdfList.size() > 0">
field(a.ckjsdf,
<foreach collection="conditionParamRef.ckjsdfList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('zdrwdfList') and conditionParamRef.zdrwdfList.size() > 0">
field(a.zdrwdf,
<foreach collection="conditionParamRef.zdrwdfList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('addTotalScoreList') and conditionParamRef.addTotalScoreList.size() > 0">
field(a.addTotalScore,
<foreach collection="conditionParamRef.addTotalScoreList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('sumScoreList') and conditionParamRef.sumScoreList.size() > 0">
field(a.sumScore,
<foreach collection="conditionParamRef.sumScoreList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('suggestionList') and conditionParamRef.suggestionList.size() > 0">
field(a.suggestion,
<foreach collection="conditionParamRef.suggestionList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
field(a.createUserId,
<foreach collection="conditionParamRef.createUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
field(a.updateUserId,
<foreach collection="conditionParamRef.updateUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
a.${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
field(a.id,
<foreach collection="conditionParamRef.idList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('yearList') and conditionParamRef.yearList.size() > 0">
field(a.year,
<foreach collection="conditionParamRef.yearList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('monthList') and conditionParamRef.monthList.size() > 0">
field(a.month,
<foreach collection="conditionParamRef.monthList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0">
field(a.deptId,
<foreach collection="conditionParamRef.deptIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('ckjsdfList') and conditionParamRef.ckjsdfList.size() > 0">
field(a.ckjsdf,
<foreach collection="conditionParamRef.ckjsdfList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('zdrwdfList') and conditionParamRef.zdrwdfList.size() > 0">
field(a.zdrwdf,
<foreach collection="conditionParamRef.zdrwdfList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('addTotalScoreList') and conditionParamRef.addTotalScoreList.size() > 0">
field(a.addTotalScore,
<foreach collection="conditionParamRef.addTotalScoreList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('sumScoreList') and conditionParamRef.sumScoreList.size() > 0">
field(a.sumScore,
<foreach collection="conditionParamRef.sumScoreList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('suggestionList') and conditionParamRef.suggestionList.size() > 0">
field(a.suggestion,
<foreach collection="conditionParamRef.suggestionList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
field(a.createUserId,
<foreach collection="conditionParamRef.createUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
field(a.updateUserId,
<foreach collection="conditionParamRef.updateUserIdList" open="" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
,
</if>
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('year')">
a.year
<if test='orderCol.year != null and "DESC".equalsIgnoreCase(orderCol.year)'>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('deptId')">
a.deptId
<if test='orderCol.deptId != null and "DESC".equalsIgnoreCase(orderCol.deptId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deptName')">
a.deptName
<if test='orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('ckjsdf')">
a.ckjsdf
<if test='orderCol.ckjsdf != null and "DESC".equalsIgnoreCase(orderCol.ckjsdf)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('zdrwdf')">
a.zdrwdf
<if test='orderCol.zdrwdf != null and "DESC".equalsIgnoreCase(orderCol.zdrwdf)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('addTotalScore')">
a.addTotalScore
<if test='orderCol.addTotalScore != null and "DESC".equalsIgnoreCase(orderCol.addTotalScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('sumScore')">
a.sumScore
<if test='orderCol.sumScore != null and "DESC".equalsIgnoreCase(orderCol.sumScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('suggestion')">
a.suggestion
<if test='orderCol.suggestion != null and "DESC".equalsIgnoreCase(orderCol.suggestion)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('remark')">
a.remark
<if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
......@@ -1350,3 +1350,29 @@ ALTER TABLE `mortals_xhx_staff_perform_summary`
ALTER TABLE `mortals_xhx_staff_perform_summary`
ADD COLUMN `auditLevel` varchar(128) COMMENT '政务服务管理科审核等次' AFTER `sumScore`,
ADD COLUMN `recommend` varchar(128) COMMENT '服务明星推荐' AFTER `auditLevel`;
-- ----------------------------
-- 2025-03-10窗口绩效汇总登记表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_window_perform_summary`;
CREATE TABLE mortals_xhx_window_perform_summary(
`id` bigint(20) AUTO_INCREMENT COMMENT '序号,主键,自增长',
`year` int(8) COMMENT '考核年度',
`month` int(4) COMMENT '考核月份',
`deptId` bigint(20) COMMENT '入驻部门id',
`deptName` varchar(256) COMMENT '入驻部门名称',
`ckjsdf` decimal(10,2) COMMENT '窗口建设得分',
`zdrwdf` decimal(10,2) COMMENT '重点任务推进得分',
`addTotalScore` decimal(10,2) COMMENT '加分',
`sumScore` decimal(10,2) COMMENT '合计得分',
`suggestion` int(4) COMMENT '评选建议',
`remark` varchar(256) COMMENT '备注',
`createUserId` bigint(20) COMMENT '创建用户',
`createTime` datetime COMMENT '创建时间',
`updateUserId` bigint(20) COMMENT '更新用户',
`updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`)
,KEY `year` (`year`) USING BTREE
,KEY `deptName` (`deptName`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='窗口绩效汇总登记';
\ 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