Commit 5471582d authored by 王启林's avatar 王启林
parents a7b218b3 9c655777
...@@ -224,100 +224,24 @@ export default { ...@@ -224,100 +224,24 @@ export default {
type: [], type: [],
resource: "", resource: "",
}, },
config: { config: {},//部门绩效总分top10
data: [ personConfig: {},//个人绩效总分top10
{
name: "部门1",
value: 95,
},
{
name: "部门2",
value: 90,
},
{
name: "部门3",
value: 98,
},
{
name: "部门4",
value: 91,
},
{
name: "部门5",
value: 80,
},
{
name: "部门6",
value: 92,
},
{
name: "部门7",
value: 93,
},
{
name: "部门8",
value: 94,
},
{
name: "部门9",
value: 90,
},
{
name: "部门10",
value: 100,
},
],
},
personConfig: {
data: [
{
name: "个人1",
value: 95,
},
{
name: "个人2",
value: 90,
},
{
name: "个人3",
value: 98,
},
{
name: "个人4",
value: 91,
},
{
name: "个人5",
value: 80,
},
{
name: "个人6",
value: 92,
},
{
name: "个人7",
value: 93,
},
{
name: "个人8",
value: 94,
},
{
name: "个人9",
value: 90,
},
{
name: "个人10",
value: 100,
},
],
},
cricleData: [ cricleData: [
{ value: 756, name: "考勤绩效" }, { value: 756, name: "考勤绩效" },
{ value: 690, name: "评价绩效" }, { value: 690, name: "评价绩效" },
{ value: 559, name: "办件绩效" }, { value: 559, name: "办件绩效" },
{ value: 1278, name: "效能绩效" }, { value: 1278, name: "效能绩效" },
], ],
// 个人绩效总分排名
staffQuery:{
page:1,
size:10,
},
// 部门
depQuery:{
page:1,
size:10,
},
}; };
}, },
...@@ -326,9 +250,48 @@ export default { ...@@ -326,9 +250,48 @@ export default {
this.drawRulePie(); this.drawRulePie();
this.drawCorePie(); this.drawCorePie();
this.drawRecordPie(); this.drawRecordPie();
this.staffStatList()
this.depStatList()
}, },
methods: { methods: {
// 个人绩效总分排名
staffStatList(){
this.$post("/staff/perform/stat/list", this.staffQuery).then((res) => {
const {code,data} = res
if(code == 1){
const row = data.data || []
const depArr = []
row.forEach(element => {
depArr.push({
name:element.staffName,
value:element.totalScore
})
});
this.personConfig = {data:depArr}
console.log(row,"个人")
}
});
},
// 部门绩效总分排名
depStatList(){
this.$post("/dept/perform/stat/list", this.depQuery).then((res) => {
const {code,data} = res
if(code == 1){
const row = data.data || []
const depArr = []
row.forEach(element => {
depArr.push({
name:element.deptName,
value:element.totalScore
})
});
this.config = {data:depArr}
// console.log(row,depArr,"部门")
}
});
},
drawLeiDa() { drawLeiDa() {
// 基于dom,初始化echarts实例 // 基于dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById("leida")); let myChart = this.$echarts.init(document.getElementById("leida"));
......
...@@ -367,9 +367,9 @@ export default { ...@@ -367,9 +367,9 @@ export default {
width: 100, width: 100,
formatter: (row) => { formatter: (row) => {
if (row.check) { if (row.check) {
return <span>不选择</span>; return <span style="cursor:pointer;color:#ff0000">不选择</span>;
} else { } else {
return <span style="cursor:pointer">选择</span>; return <span style="cursor:pointer;color:#1890ff">选择</span>;
} }
}, },
}, },
......
...@@ -407,9 +407,9 @@ export default { ...@@ -407,9 +407,9 @@ export default {
width: 100, width: 100,
formatter: (row) => { formatter: (row) => {
if (row.check) { if (row.check) {
return <span>不选择</span>; return <span style="cursor:pointer;color:#ff0000">不选择</span>;
} else { } else {
return <span style="cursor:pointer">选择</span>; return <span style="cursor:pointer;color:#1890ff">选择</span>;
} }
}, },
}, },
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
+ {{ type == 1 ? "新增考核部门" : "新增考核个人" }}</el-button + {{ type == 1 ? "新增考核部门" : "新增考核个人" }}</el-button
> >
</div> </div>
<div class="mid_content"> <div class="mid_content" style="height: auto;">
<div class="goal_box" v-for="(val, i) in dataList" :key="i"> <div class="goal_box" v-for="(val, i) in dataList" :key="i">
<div class="goal_title"> <div class="goal_title">
<img src="../../../../assets/images/u17641.svg" alt="" /> <img src="../../../../assets/images/u17641.svg" alt="" />
...@@ -321,7 +321,7 @@ export default { ...@@ -321,7 +321,7 @@ export default {
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.117647058823529); box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.117647058823529);
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.117647058823529); -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.117647058823529);
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.117647058823529); -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.117647058823529);
margin: 0 20px 20px 0; margin: 10px 20px 10px 20px;
padding: 20px; padding: 20px;
.goal_title { .goal_title {
width: 100%; width: 100%;
......
...@@ -193,9 +193,9 @@ export default { ...@@ -193,9 +193,9 @@ export default {
width: 100, width: 100,
formatter: (row) => { formatter: (row) => {
if (row.check) { if (row.check) {
return <span>不选择</span>; return <span style="cursor:pointer;color:#ff0000">不选择</span>;
} else { } else {
return <span style="cursor:pointer">选择</span>; return <span style="cursor:pointer;color:#1890ff">选择</span>;
} }
}, },
}, },
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
const x = [] const x = []
const y = [] const y = []
row.forEach(element => { row.forEach(element => {
x.push(element.deptName) x.push(element.staffName)
y.push(element.totalScore) y.push(element.totalScore)
}); });
this.depStatObj.totalScore.x = x this.depStatObj.totalScore.x = x
...@@ -241,13 +241,30 @@ export default { ...@@ -241,13 +241,30 @@ export default {
const x = [] const x = []
const y = [] const y = []
row.forEach(element => { row.forEach(element => {
x.push(element.deptName) x.push(element.staffName)
y.push(element.attendScoreAdd) y.push(element.attendScoreAdd)
}); });
this.depStatObj.attendScoreAdd.x = x this.depStatObj.attendScoreAdd.x = x
this.depStatObj.attendScoreAdd.y = y this.depStatObj.attendScoreAdd.y = y
} }
}); });
// 减分
const top10Sub = {...this.boardQuery,size:10,orderColList:[{colName:'totalSubScore',sortKind:'desc'}]}
this.$post("/staff/perform/stat/list", top10Sub).then((res) => {
const {code,data,dict} = res
if(code == 1){
const row = data.data || []
// this.statArr = row
const x = []
const y = []
row.forEach(element => {
x.push(element.staffName)
y.push(element.totalSubScore)
});
this.depStatObj.totalSubScore.x = x
this.depStatObj.totalSubScore.y = y
}
});
}, },
// 部门绩效分数统计 // 部门绩效分数统计
statList(){ statList(){
...@@ -274,7 +291,7 @@ export default { ...@@ -274,7 +291,7 @@ export default {
}); });
// 加分top10 // 加分top10
const top10 = {...this.boardQuery,size:10,orderColList:[{colName:'totalAddScore',sortKind:'desc'}]} const top10 = {...this.boardQuery,size:10,orderColList:[{colName:'totalAddScore',sortKind:'desc'}]}
this.$post("/staff/perform/stat/list", top10).then((res) => { this.$post("/dept/perform/stat/list", top10).then((res) => {
const {code,data,dict} = res const {code,data,dict} = res
if(code == 1){ if(code == 1){
const row = data.data || [] const row = data.data || []
...@@ -292,7 +309,7 @@ export default { ...@@ -292,7 +309,7 @@ export default {
}); });
// 减分 // 减分
const top10Sub = {...this.boardQuery,size:10,orderColList:[{colName:'totalSubScore',sortKind:'desc'}]} const top10Sub = {...this.boardQuery,size:10,orderColList:[{colName:'totalSubScore',sortKind:'desc'}]}
this.$post("/staff/perform/stat/list", top10Sub).then((res) => { this.$post("/dept/perform/stat/list", top10Sub).then((res) => {
const {code,data,dict} = res const {code,data,dict} = res
if(code == 1){ if(code == 1){
const row = data.data || [] const row = data.data || []
...@@ -334,7 +351,7 @@ export default { ...@@ -334,7 +351,7 @@ export default {
const x = [] const x = []
const y = [] const y = []
row.forEach(element => { row.forEach(element => {
x.push(element.deptName) x.push(element.staffName)
y.push(element[this.value]) y.push(element[this.value])
}); });
this.depStatObj.alignment.x = x this.depStatObj.alignment.x = x
......
<template> <template>
<!-- 弹出框表单 --> <!-- 弹出框表单 -->
<el-dialog :title="title" :visible.sync="open" width="90%" append-to-body> <el-dialog :title="title" :visible.sync="open" width="50%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <div class="userName">
<div class="user-left">
<div class="user-name">
{{ form.staffName }}
</div>
<div class="user-info">
<span class="user-i">工号:{{ form.workNum }}</span>
<span class="user-i">所属部门:{{ form.deptName }}</span>
</div>
</div>
<div class="user-right">
<div class="n">{{form.totalScore}}</div>
<div class="m">{{ form.month }}月得分</div>
</div>
</div>
<div class="userName user-t-item " :class="{t2:item.subAddType == 1,t1:item.subAddType == 2}" v-for="(item) in list" :key="item.id">
<div class="user-left">
<div class="user-name">
{{dictVal('checkType',item.checkType)}}
</div>
<div class="user-info">
<span class="user-i">绩效规则:{{item.ruleName}}</span>
</div>
<div class="user-info">
<span class="user-i">核查时间:{{momentVal(item.checkTime)}}</span>
</div>
</div>
<div class="user-right">
<div class="n">{{item.subAddType==1?'+':'-'}}{{item.score}}</div>
</div>
</div>
<!-- <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row> <el-row>
<Field label="人员id" prop="staffId" v-model="form.staffId" placeholder="请输入人员id"/> <Field label="人员id" prop="staffId" v-model="form.staffId" placeholder="请输入人员id" />
<Field label="工号" prop="workNum" v-model="form.workNum" placeholder="请输入工号"/> <Field label="工号" prop="workNum" v-model="form.workNum" placeholder="请输入工号" />
<Field label="人员名称" prop="staffName" v-model="form.staffName" type="textarea" placeholder="请输入人员名称"/> <Field label="人员名称" prop="staffName" v-model="form.staffName" type="textarea" placeholder="请输入人员名称" />
<Field label="部门id号" prop="deptId" v-model="form.deptId" placeholder="请输入部门id号"/> <Field label="部门id号" prop="deptId" v-model="form.deptId" placeholder="请输入部门id号" />
<Field label="部门名称" prop="deptName" v-model="form.deptName" placeholder="请输入部门名称"/> <Field label="部门名称" prop="deptName" v-model="form.deptName" placeholder="请输入部门名称" />
<Field label="考勤绩效指标分数" prop="attendScore" v-model="form.attendScore" placeholder="请输入考勤绩效指标分数"/> <Field label="考勤绩效指标分数" prop="attendScore" v-model="form.attendScore" placeholder="请输入考勤绩效指标分数" />
<Field label="评价绩效指标分数" prop="assessScore" v-model="form.assessScore" placeholder="请输入评价绩效指标分数"/> <Field label="评价绩效指标分数" prop="assessScore" v-model="form.assessScore" placeholder="请输入评价绩效指标分数" />
<Field label="办件绩效分数" prop="workScore" v-model="form.workScore" placeholder="请输入办件绩效分数"/> <Field label="办件绩效分数" prop="workScore" v-model="form.workScore" placeholder="请输入办件绩效分数" />
<Field label="效能绩效分数" prop="effectScore" v-model="form.effectScore" placeholder="请输入效能绩效分数"/> <Field label="效能绩效分数" prop="effectScore" v-model="form.effectScore" placeholder="请输入效能绩效分数" />
<Field label="其它绩效分数" prop="otherScore" v-model="form.otherScore" placeholder="请输入其它绩效分数"/> <Field label="其它绩效分数" prop="otherScore" v-model="form.otherScore" placeholder="请输入其它绩效分数" />
<Field label="累计异常分数" prop="errorScore" v-model="form.errorScore" placeholder="请输入累计异常分数"/> <Field label="累计异常分数" prop="errorScore" v-model="form.errorScore" placeholder="请输入累计异常分数" />
<Field label="当月得分数" prop="totalScore" v-model="form.totalScore" placeholder="请输入当月得分数"/> <Field label="当月得分数" prop="totalScore" v-model="form.totalScore" placeholder="请输入当月得分数" />
<Field label="备注" prop="remark" v-model="form.remark" type="textarea" placeholder="请输入备注"/> <Field label="备注" prop="remark" v-model="form.remark" type="textarea" placeholder="请输入备注" />
<Field label="年" prop="year" v-model="form.year" placeholder="请输入年"/> <Field label="年" prop="year" v-model="form.year" placeholder="请输入年" />
<Field label="月" prop="month" v-model="form.month" type="select" :enumData="dict.month" placeholder="请选择月"/> <Field label="月" prop="month" v-model="form.month" type="select" :enumData="dict.month"
placeholder="请选择月" />
</el-row> </el-row>
</el-form> </el-form> -->
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" v-if="pageInfo.type !== 'view'" @click="submitForm">确 定</el-button> <el-button type="primary" v-if="pageInfo.type !== 'view'" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
...@@ -30,12 +62,13 @@ ...@@ -30,12 +62,13 @@
</template> </template>
<script> <script>
import form from "@/assets/mixins/formdialog"; import form from "@/assets/mixins/formdialog";
import dialogShow from "./dialogshow"; import dialogShow from "./dialogshow";
export default { import moment from "moment";
export default {
mixins: [form], mixins: [form],
components: { components: {
dialogShow , dialogShow,
}, },
data() { data() {
return { return {
...@@ -45,29 +78,52 @@ ...@@ -45,29 +78,52 @@
title: "员工绩效统计", title: "员工绩效统计",
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
toString:[ toString: [
"month", "month",
], ],
// 表单校验 // 表单校验
rules: { rules: {
year: [ year: [
{required: true,message: "请输入年", trigger: "blur" }, { required: true, message: "请输入年", trigger: "blur" },
], ],
month: [ month: [
{required: true,message: "请输入月", trigger: "blur" }, { required: true, message: "请输入月", trigger: "blur" },
], ],
} },
list:[],
dict:{}
}; };
}, },
methods: { methods: {
// 日期
momentVal(v){
return moment(v).format('YYYY-MM-DD HH:SS')
},
// 字典转换
dictVal(key,val){
return this.dict[key][val]
},
/** 查看汇总 */
checkAll(id) {
this.$post("/check/all/record/list", {checkStatus:2,staffId:id}).then((res) => {
const { code, data, dict } = res
if (code == 1) {
const row = data.data || []
//deductTime申诉时间 checkTime 核查时间 ruleName规则checkType字典 subAddType:1增加2减score
this.list = row
this.dict = dict
console.log(row,dict,"22222222222")
}
});
},
/** 编辑 */ /** 编辑 */
edit(row) { edit(row) {
this.reset() this.reset()
this.query = { id: row.id }; this.query = { id: row.id };
this.urls.currUrl ="staff/perform/summary/edit"; this.urls.currUrl = "staff/perform/summary/edit";
this.getData(); this.getData();
this.pageInfo.type="edit" this.pageInfo.type = "edit"
this.title = "修改员工绩效统计"; this.title = "修改员工绩效统计";
}, },
/** 新增 */ /** 新增 */
...@@ -75,17 +131,18 @@ ...@@ -75,17 +131,18 @@
this.reset() this.reset()
this.urls.currUrl = "staff/perform/summary/add"; this.urls.currUrl = "staff/perform/summary/add";
this.getData(); this.getData();
this.pageInfo.type="add" this.pageInfo.type = "add"
this.title = "新增员工绩效统计"; this.title = "新增员工绩效统计";
}, },
/** 查看*/ /** 查看*/
view(row) { view(row) {
this.reset() this.reset()
this.query = { id: row.id }; this.query = { id: row.id };
this.urls.currUrl ="staff/perform/summary/view"; this.urls.currUrl = "staff/perform/summary/view";
this.getData(); this.getData();
this.pageInfo.type="view" this.pageInfo.type = "view"
this.title = "员工绩效统计详细"; this.title = "员工绩效统计详细";
this.checkAll(row.staffId)
}, },
/**取消按钮 */ /**取消按钮 */
cancel() { cancel() {
...@@ -104,21 +161,21 @@ ...@@ -104,21 +161,21 @@
// 表单重置 // 表单重置
reset() { reset() {
this.form = { this.form = {
staffId : 0, staffId: 0,
workNum : "", workNum: "",
staffName : "", staffName: "",
deptId : 0, deptId: 0,
deptName : "", deptName: "",
attendScore : null, attendScore: null,
assessScore : null, assessScore: null,
workScore : null, workScore: null,
effectScore : null, effectScore: null,
otherScore : null, otherScore: null,
errorScore : null, errorScore: null,
totalScore : null, totalScore: null,
remark : "", remark: "",
year : null, year: null,
month : null, month: null,
}; };
this.resetForm("form"); this.resetForm("form");
}, },
...@@ -128,5 +185,67 @@ ...@@ -128,5 +185,67 @@
} }
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped>
.userName {
background: rgba(242, 246, 252, 1);
display: flex;
align-items: center;
padding: 15px;
.user-left {
flex: 1;
}
.user-name {
font-size: 18px;
font-weight: bold;
}
.user-info {
margin-top: 10px;
.user-i {
margin-right: 40px;
}
}
.user-right {
text-align: center;
.n {
font-size: 16px;
font-weight: bold;
}
.m {
font-size: 12px;
}
}
}
.user-t-item {
margin-top: 20px;
border-left: 4px solid #FF4242;
}
.t1 {
border-color: #FF4242;
background: rgba(255, 66, 66, 0.07);
.user-name,
.n {
color: #FF4242;
}
}
.t2 {
border-color: rgba(27, 198, 167, 1);
background: rgba(27, 198, 167, 0.07);
.user-name,
.n {
color: rgba(27, 198, 167, 1);
}
}
</style>
\ No newline at end of file
...@@ -21,8 +21,6 @@ public abstract class BaseReq implements Serializable { ...@@ -21,8 +21,6 @@ public abstract class BaseReq implements Serializable {
/** /**
* 工号 * 工号
*/ */
...@@ -42,6 +40,9 @@ public abstract class BaseReq implements Serializable { ...@@ -42,6 +40,9 @@ public abstract class BaseReq implements Serializable {
* 规则编码 * 规则编码
*/ */
private String ruleCode; private String ruleCode;
private Long ruleId;
private String phone; private String phone;
...@@ -51,4 +52,7 @@ public abstract class BaseReq implements Serializable { ...@@ -51,4 +52,7 @@ public abstract class BaseReq implements Serializable {
private String performType; private String performType;
private Long staffId;
} }
...@@ -13,6 +13,8 @@ import com.mortals.framework.exception.AppException; ...@@ -13,6 +13,8 @@ import com.mortals.framework.exception.AppException;
import com.mortals.xhx.busiz.dingtalk.config.TalkConfiguration; import com.mortals.xhx.busiz.dingtalk.config.TalkConfiguration;
import com.mortals.xhx.busiz.dingtalk.req.DingTalkBaseReq; import com.mortals.xhx.busiz.dingtalk.req.DingTalkBaseReq;
import com.mortals.xhx.busiz.dingtalk.req.UserPageReq; import com.mortals.xhx.busiz.dingtalk.req.UserPageReq;
import com.mortals.xhx.busiz.req.CodeReq;
import com.mortals.xhx.busiz.req.LinkMessageReq;
import com.mortals.xhx.busiz.req.MobileReq; import com.mortals.xhx.busiz.req.MobileReq;
import com.mortals.xhx.busiz.req.ReviewSaveReq; import com.mortals.xhx.busiz.req.ReviewSaveReq;
import com.mortals.xhx.common.code.YesNoEnum; import com.mortals.xhx.common.code.YesNoEnum;
...@@ -131,9 +133,9 @@ public class TalkApiController { ...@@ -131,9 +133,9 @@ public class TalkApiController {
if(dingToken == null){ if(dingToken == null){
dingToken = getToken().getData(); dingToken = getToken().getData();
} }
req.setDeptId(res.getDeptid()); req.setDeptId(res.getDeptid()); //部门id
req.setCursor(res.getCursor()); req.setCursor(res.getCursor()); //起始页游标
req.setSize(res.getSize()); req.setSize(res.getSize()); //分页条数
OapiV2UserListResponse rsp = client.execute(req, dingToken); OapiV2UserListResponse rsp = client.execute(req, dingToken);
if(rsp.getErrcode() == 0){ if(rsp.getErrcode() == 0){
apiRespPdu.setCode(0); apiRespPdu.setCode(0);
...@@ -173,11 +175,12 @@ public class TalkApiController { ...@@ -173,11 +175,12 @@ public class TalkApiController {
if(dingToken == null){ if(dingToken == null){
dingToken = getToken().getData(); dingToken = getToken().getData();
} }
req.setMobile(mobile.getMobile()); req.setMobile(mobile.getMobile()); //用户手机号
//先根据手机号去获取userid 再通过userid获取详情 钉钉没有直接根据电话获取用户详情的接口
OapiV2UserGetbymobileResponse rsp = client.execute(req, dingToken); OapiV2UserGetbymobileResponse rsp = client.execute(req, dingToken);
if(rsp.getErrcode() == 0){ if(rsp.getErrcode() == 0){
//根据获取到的userid去获取用户详情 //根据获取到的userid去获取用户详情
ApiRespPdu<OapiV2UserGetResponse.UserGetResponse> userRsp = getUserInfo(rsp.getResult().getUserid()); ApiRespPdu<OapiV2UserGetResponse.UserGetResponse> userRsp = getUserInfoByUserId(rsp.getResult().getUserid());
if(userRsp.getCode() == 0){ if(userRsp.getCode() == 0){
apiRespPdu.setCode(userRsp.getCode()); apiRespPdu.setCode(userRsp.getCode());
apiRespPdu.setData(userRsp.getData()); apiRespPdu.setData(userRsp.getData());
...@@ -211,17 +214,17 @@ public class TalkApiController { ...@@ -211,17 +214,17 @@ public class TalkApiController {
* 根据userid查询用户详情 * 根据userid查询用户详情
* @return * @return
*/ */
@GetMapping("/dingtalk/getUserInfo") @GetMapping("/dingtalk/getUserInfoByUserId")
@UnAuth @UnAuth
public ApiRespPdu<OapiV2UserGetResponse.UserGetResponse> getUserInfo(@RequestBody String userid){ public ApiRespPdu<OapiV2UserGetResponse.UserGetResponse> getUserInfoByUserId(@RequestBody String userid){
ApiRespPdu<OapiV2UserGetResponse.UserGetResponse> apiRespPdu = new ApiRespPdu<>(); ApiRespPdu<OapiV2UserGetResponse.UserGetResponse> apiRespPdu = new ApiRespPdu<>();
try { try {
DingTalkClient client = new DefaultDingTalkClient(talkConfiguration.getGetuserinfo()); DingTalkClient client = new DefaultDingTalkClient(talkConfiguration.getGetuserinfobyuserid());
OapiV2UserGetRequest req = new OapiV2UserGetRequest(); OapiV2UserGetRequest req = new OapiV2UserGetRequest();
if(dingToken == null){ if(dingToken == null){
dingToken = getToken().getData(); dingToken = getToken().getData();
} }
req.setUserid(userid); req.setUserid(userid); //用户id
OapiV2UserGetResponse rsp = client.execute(req, dingToken); OapiV2UserGetResponse rsp = client.execute(req, dingToken);
apiRespPdu.setCode(0); apiRespPdu.setCode(0);
...@@ -236,4 +239,85 @@ public class TalkApiController { ...@@ -236,4 +239,85 @@ public class TalkApiController {
return apiRespPdu; return apiRespPdu;
} }
/**
* 推送链接类钉钉工作消息
* @return
*/
@PostMapping("/dingtalk/sendLinkMessage")
@UnAuth
public ApiRespPdu<String> sendLinkMessage(@RequestBody LinkMessageReq linkMessageReq){
ApiRespPdu<String> apiRespPdu = new ApiRespPdu<>();
try {
DingTalkClient client = new DefaultDingTalkClient(talkConfiguration.getSendmessage());
if(dingToken == null){
dingToken = getToken().getData();
}
OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request();
req.setAgentId(Long.valueOf(talkConfiguration.getGetAgentId()));
req.setUseridList(linkMessageReq.getUserIdList());
OapiMessageCorpconversationAsyncsendV2Request.Msg obj1 = new OapiMessageCorpconversationAsyncsendV2Request.Msg();
obj1.setMsgtype("link"); //type为链接类消息
OapiMessageCorpconversationAsyncsendV2Request.Link obj2 = new OapiMessageCorpconversationAsyncsendV2Request.Link();
obj2.setPicUrl(linkMessageReq.getPicUrl()); //消息图片地址
obj2.setMessageUrl(linkMessageReq.getMessageUrl()); //跳转链接地址
obj2.setText(linkMessageReq.getText()); //消息描述
obj2.setTitle(linkMessageReq.getTitle()); //消息title
obj1.setLink(obj2);
req.setMsg(obj1);
OapiMessageCorpconversationAsyncsendV2Response rsp = client.execute(req, dingToken);
if(rsp.getErrcode() == 0){
apiRespPdu.setCode(0);
apiRespPdu.setData(rsp.getBody());
apiRespPdu.setMsg(rsp.getMsg());
}else {
apiRespPdu.setCode(-1);
apiRespPdu.setData(rsp.getBody());
apiRespPdu.setMsg(rsp.getMsg());
}
} catch (Exception e) {
e.printStackTrace();
apiRespPdu.setCode(-1);
apiRespPdu.setData("");
apiRespPdu.setMsg(e.toString());
}
return apiRespPdu;
}
/**
* 根据免登码查询用户详情
* @return
*/
@GetMapping("/dingtalk/getUserInfoByCode")
@UnAuth
public ApiRespPdu<OapiV2UserGetuserinfoResponse.UserGetByCodeResponse> getUserInfoByCode(@RequestBody CodeReq codeReq){
ApiRespPdu<OapiV2UserGetuserinfoResponse.UserGetByCodeResponse> apiRespPdu = new ApiRespPdu<>();
try {
DingTalkClient client = new DefaultDingTalkClient(talkConfiguration.getGetuserinfobycode());
OapiV2UserGetuserinfoRequest req = new OapiV2UserGetuserinfoRequest();
if(dingToken == null){
dingToken = getToken().getData();
}
req.setCode(codeReq.getCode()); //前端js获取到的免登码 用免登码获取用户信息
OapiV2UserGetuserinfoResponse rsp = client.execute(req, dingToken);
apiRespPdu.setCode(0);
apiRespPdu.setData(rsp.getResult());
apiRespPdu.setMsg(rsp.getMsg());
} catch (Exception e) {
e.printStackTrace();
apiRespPdu.setCode(-1);
apiRespPdu.setData(null);
apiRespPdu.setMsg(e.toString());
}
return apiRespPdu;
}
} }
...@@ -58,8 +58,21 @@ public class TalkConfiguration { ...@@ -58,8 +58,21 @@ public class TalkConfiguration {
/** /**
* 根据userid查询用户信息 * 根据userid查询用户信息
*/ */
@Value("${dingtalk.getuserinfo:https://oapi.dingtalk.com/topapi/v2/user/get}") @Value("${dingtalk.getuserinfobyuserid:https://oapi.dingtalk.com/topapi/v2/user/get}")
private String getuserinfo; private String getuserinfobyuserid;
/**
* 根据免登码查询用户信息
*/
@Value("${dingtalk.getuserinfobycode:https://oapi.dingtalk.com/topapi/v2/user/getuserinfo}")
private String getuserinfobycode;
/**
* 推送钉钉工作消息
*/
@Value("${dingtalk.sendmessage:https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2}")
private String sendmessage;
/** /**
* getDeptbyUser * getDeptbyUser
*/ */
......
package com.mortals.xhx.busiz.req;
/**
* @author ZYW
* @date 2023-07-13 20:11
*/
public class CodeReq {
String code;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}
...@@ -9,6 +9,7 @@ import java.util.Date; ...@@ -9,6 +9,7 @@ import java.util.Date;
@Data @Data
public class InspectSaveReq extends BaseReq { public class InspectSaveReq extends BaseReq {
//考勤
/** /**
* 所属考勤组ID * 所属考勤组ID
*/ */
...@@ -42,8 +43,116 @@ public class InspectSaveReq extends BaseReq { ...@@ -42,8 +43,116 @@ public class InspectSaveReq extends BaseReq {
*/ */
private String errorResult; private String errorResult;
//评价
/**
* 评价结果(1.非常不满意,2.差评)
*/
private Integer reviewResult;
/**
* 评价时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private Date reviewTime;
/**
* 评价来源(窗口评价系统,导视系统,自助服务系统,微官网,其它)
*/
private String reviewSource;
/**
* 评价设备
*/
private String reviewDevice;
//投诉
/**
* 投诉标题
*/
private String complainTitle;
/**
* 投诉内容
*/
private String complainContent;
/**
* 投诉人真实姓名
*/
private String complainRealName;
/**
* 联系电话
*/
private String contact;
/**
* 投诉时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private Date complainTime;
/**
* 投诉来源
*/
private String complainSource;
/**
* 投诉设备
*/
private String complainDevice;
//办件
/**
* 办件编码
*/
private String goworkCode;
/**
* 办件所属部门
*/
private String goworkDepts;
/**
* 事项名称
*/
private String matterlName;
/**
* 办理时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private Date goworkTime;
//效能
/**
* 违规类型(1.脱岗,2.离岗,3.玩手机,4.睡觉)
*/
private Integer irregularType;
/**
* 发生时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private Date happenTime;
/**
* 持续时间,秒
*/
private Integer duration;
/**
* 报警时间
*/
private Date alarmTime;
//其它
/**
* 违规类型(1.工作纪律)
*/
private Integer irregularOtherType;
// /**
// * 发生时间
// */
// @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
// private Date happenTime;
/**
* 评分标准
*/
private String ruleDesc;
private Long checkRecordId;
} }
package com.mortals.xhx.busiz.req;
/**
* @author ZYW
* @date 2023-07-13 19:30
* 连接类工作消息
*/
public class LinkMessageReq {
String userIdList; //接收者用户id列表 多个接收者用,隔开
String picUrl; //消息图片地址
String messageUrl; //链接地址
String title; //消息标题,建议100字符以内。
String text; //消息描述,建议500字符以内。
public String getUserIdList() {
return userIdList;
}
public void setUserIdList(String userIdList) {
this.userIdList = userIdList;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getMessageUrl() {
return messageUrl;
}
public void setMessageUrl(String messageUrl) {
this.messageUrl = messageUrl;
}
}
...@@ -19,5 +19,9 @@ public class PerformReq extends BaseReq { ...@@ -19,5 +19,9 @@ public class PerformReq extends BaseReq {
private Long id; private Long id;
private Integer processStatus;
private Integer scoreType;
} }
...@@ -18,7 +18,7 @@ public class ReviewSaveReq extends BaseReq { ...@@ -18,7 +18,7 @@ public class ReviewSaveReq extends BaseReq {
* 评价时间 * 评价时间
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private Date reviewTime; private String reviewTime;
/** /**
* 评价来源(窗口评价系统,导视系统,自助服务系统,微官网,其它) * 评价来源(窗口评价系统,导视系统,自助服务系统,微官网,其它)
*/ */
......
package com.mortals.xhx.busiz.rsp;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class InspectStatInfo {
/**
* 累计次数
*/
private Integer totalTimes;
/**
* 今日次数
*/
private Integer todayTimes;
}
...@@ -217,4 +217,8 @@ public class PerformDetailInfo { ...@@ -217,4 +217,8 @@ public class PerformDetailInfo {
private Integer irregularOtherType; private Integer irregularOtherType;
/**
* 申诉状态(0.未申诉,1.申诉中,2.申诉拒绝,3.申诉通过)
*/
private Integer appealStatus;
} }
...@@ -63,13 +63,11 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -63,13 +63,11 @@ public class ApiWebPerformController extends AbstractBaseControll
String busiDesc = "外部考勤新增"; String busiDesc = "外部考勤新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
StringBuilder message = new StringBuilder();
message.append(String.format("【外部请求】类型【%s】 内容:%s", PerformTypeEnum.getByValue(req.getPerformType()).getDesc(), JSONObject.toJSONString(req)));
try { try {
if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!"); if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!");
if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!"); if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!");
boolean bool = attend(req); boolean bool = attend(req);
if (!bool) throw new AppException(busiDesc + "失败!"); if (bool) throw new AppException(busiDesc + "失败!");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
return Rest.fail(e.getMessage()); return Rest.fail(e.getMessage());
...@@ -90,13 +88,11 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -90,13 +88,11 @@ public class ApiWebPerformController extends AbstractBaseControll
String busiDesc = "外部评价新增"; String busiDesc = "外部评价新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
StringBuilder message = new StringBuilder();
message.append(String.format("【外部请求】类型【%s】 内容:%s", PerformTypeEnum.getByValue(req.getPerformType()).getDesc(), JSONObject.toJSONString(req)));
try { try {
if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!"); if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!");
if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!"); if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!");
boolean bool = review(req); boolean bool = review(req);
if (!bool) throw new AppException(busiDesc + "失败!"); if (bool) throw new AppException(busiDesc + "失败!");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
return Rest.fail(e.getMessage()); return Rest.fail(e.getMessage());
...@@ -117,13 +113,11 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -117,13 +113,11 @@ public class ApiWebPerformController extends AbstractBaseControll
String busiDesc = "外部投诉新增"; String busiDesc = "外部投诉新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
StringBuilder message = new StringBuilder();
message.append(String.format("【外部请求】类型【%s】 内容:%s", PerformTypeEnum.getByValue(req.getPerformType()).getDesc(), JSONObject.toJSONString(req)));
try { try {
if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!"); if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!");
if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!"); if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!");
boolean bool = complain(req); boolean bool = complain(req);
if (!bool) throw new AppException(busiDesc + "失败!"); if (bool) throw new AppException(busiDesc + "失败!");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
return Rest.fail(e.getMessage()); return Rest.fail(e.getMessage());
...@@ -144,13 +138,11 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -144,13 +138,11 @@ public class ApiWebPerformController extends AbstractBaseControll
String busiDesc = "外部办件新增"; String busiDesc = "外部办件新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
StringBuilder message = new StringBuilder();
message.append(String.format("【外部请求】类型【%s】 内容:%s", PerformTypeEnum.getByValue(req.getPerformType()).getDesc(), JSONObject.toJSONString(req)));
try { try {
if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!"); if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!");
if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!"); if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!");
boolean bool = gowork(req); boolean bool = gowork(req);
if (!bool) throw new AppException(busiDesc + "失败!"); if (bool) throw new AppException(busiDesc + "失败!");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
return Rest.fail(e.getMessage()); return Rest.fail(e.getMessage());
...@@ -171,13 +163,11 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -171,13 +163,11 @@ public class ApiWebPerformController extends AbstractBaseControll
String busiDesc = "外部效能新增"; String busiDesc = "外部效能新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
StringBuilder message = new StringBuilder();
message.append(String.format("【外部请求】类型【%s】 内容:%s", PerformTypeEnum.getByValue(req.getPerformType()).getDesc(), JSONObject.toJSONString(req)));
try { try {
if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!"); if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!");
if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!"); if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!");
boolean bool = effect(req); boolean bool = effect(req);
if (!bool) throw new AppException(busiDesc + "失败!"); if (bool) throw new AppException(busiDesc + "失败!");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
return Rest.fail(e.getMessage()); return Rest.fail(e.getMessage());
...@@ -198,13 +188,11 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -198,13 +188,11 @@ public class ApiWebPerformController extends AbstractBaseControll
String busiDesc = "外部其它绩效新增"; String busiDesc = "外部其它绩效新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
StringBuilder message = new StringBuilder();
message.append(String.format("【外部请求】类型【%s】 内容:%s", PerformTypeEnum.getByValue(req.getPerformType()).getDesc(), JSONObject.toJSONString(req)));
try { try {
if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!"); if (ObjectUtils.isEmpty(req.getPhone())) throw new AppException("手机号码不能为空!");
if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!"); if (ObjectUtils.isEmpty(req.getRuleCode())) throw new AppException("绩效规则编码不能为空!");
boolean bool = other(req); boolean bool = other(req);
if (!bool) throw new AppException(busiDesc + "失败!"); if (bool) throw new AppException(busiDesc + "失败!");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
return Rest.fail(e.getMessage()); return Rest.fail(e.getMessage());
...@@ -225,7 +213,8 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -225,7 +213,8 @@ public class ApiWebPerformController extends AbstractBaseControll
BeanUtils.copyProperties(req, recordEntity); BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId()); recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName()); recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
...@@ -233,7 +222,8 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -233,7 +222,8 @@ public class ApiWebPerformController extends AbstractBaseControll
recordEntity.setRuleNme(rule.getName()); recordEntity.setRuleNme(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId()); recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName()); recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setDeductPerson("admin");
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(1L); recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date()); recordEntity.setCreateTime(new Date());
PerformAttendRecordEntity save = attendRecordService.save(recordEntity); PerformAttendRecordEntity save = attendRecordService.save(recordEntity);
...@@ -254,13 +244,16 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -254,13 +244,16 @@ public class ApiWebPerformController extends AbstractBaseControll
BeanUtils.copyProperties(req, recordEntity); BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId()); recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName()); recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId()); recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName()); recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId()); recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName()); recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setDeductPerson("admin");
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(1L); recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date()); recordEntity.setCreateTime(new Date());
PerformReviewRecordEntity save = reviewRecordService.save(recordEntity); PerformReviewRecordEntity save = reviewRecordService.save(recordEntity);
...@@ -279,12 +272,16 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -279,12 +272,16 @@ public class ApiWebPerformController extends AbstractBaseControll
BeanUtils.copyProperties(req, recordEntity); BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId()); recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName()); recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId()); recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName()); recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId()); recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName()); recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setDeductPerson("admin");
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(1L); recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date()); recordEntity.setCreateTime(new Date());
...@@ -304,12 +301,16 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -304,12 +301,16 @@ public class ApiWebPerformController extends AbstractBaseControll
BeanUtils.copyProperties(req, recordEntity); BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId()); recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName()); recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId()); recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName()); recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId()); recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName()); recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setDeductPerson("admin");
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(1L); recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date()); recordEntity.setCreateTime(new Date());
...@@ -329,12 +330,16 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -329,12 +330,16 @@ public class ApiWebPerformController extends AbstractBaseControll
BeanUtils.copyProperties(req, recordEntity); BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId()); recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName()); recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId()); recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName()); recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId()); recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName()); recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setDeductPerson("admin");
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(1L); recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date()); recordEntity.setCreateTime(new Date());
...@@ -354,6 +359,8 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -354,6 +359,8 @@ public class ApiWebPerformController extends AbstractBaseControll
BeanUtils.copyProperties(req, recordEntity); BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId()); recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName()); recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId()); recordEntity.setRuleId(rule.getId());
...@@ -361,6 +368,9 @@ public class ApiWebPerformController extends AbstractBaseControll ...@@ -361,6 +368,9 @@ public class ApiWebPerformController extends AbstractBaseControll
recordEntity.setCategoryId(rule.getCategoryId()); recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName()); recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setDeductPerson("admin");
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(1L); recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date()); recordEntity.setCreateTime(new Date());
PerformOtherRecordEntity save = otherRecordService.save(recordEntity); PerformOtherRecordEntity save = otherRecordService.save(recordEntity);
......
...@@ -176,6 +176,9 @@ public class AppealApiController extends AbstractBaseController<PerformReq> { ...@@ -176,6 +176,9 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
Rest<PerformAttendAppealEntity> rest = Rest.ok(busiDesc + " 【成功】"); Rest<PerformAttendAppealEntity> rest = Rest.ok(busiDesc + " 【成功】");
Context context = this.getContext(); Context context = this.getContext();
try { try {
if (ObjectUtils.isEmpty(context) || ObjectUtils.isEmpty(context.getUser())) {
throw new AppException(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT);
}
//根据状态 查询 当前是否已经存在正在进行的申诉 //根据状态 查询 当前是否已经存在正在进行的申诉
if (ObjectUtils.isEmpty(req.getId())) throw new AppException("核查记录Id不能为空!"); if (ObjectUtils.isEmpty(req.getId())) throw new AppException("核查记录Id不能为空!");
if (ObjectUtils.isEmpty(req.getPerformType())) throw new AppException("绩效类型不能为空!"); if (ObjectUtils.isEmpty(req.getPerformType())) throw new AppException("绩效类型不能为空!");
...@@ -218,6 +221,9 @@ public class AppealApiController extends AbstractBaseController<PerformReq> { ...@@ -218,6 +221,9 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
entity.setPerformAttendAppealFilesList(req.getPerformAttendAppealFilesList()); entity.setPerformAttendAppealFilesList(req.getPerformAttendAppealFilesList());
entity.setProcessStatus(1); entity.setProcessStatus(1);
entity.setAppealDesc(req.getAppealDesc()); entity.setAppealDesc(req.getAppealDesc());
entity.setStaffId(context.getUser().getCustomerId());
entity.setCreateUserId(context.getUser().getId());
PerformAttendAppealEntity saveEntity = appealService.save(entity, context); PerformAttendAppealEntity saveEntity = appealService.save(entity, context);
rest.setData(saveEntity); rest.setData(saveEntity);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
......
...@@ -105,6 +105,8 @@ public class FeedbackApiController extends AbstractBaseController<FeedbackReq> { ...@@ -105,6 +105,8 @@ public class FeedbackApiController extends AbstractBaseController<FeedbackReq> {
model.put(PAGEINFO_KEY, pageAllInfo); model.put(PAGEINFO_KEY, pageAllInfo);
parsePageInfo(model, pageAllInfo); parsePageInfo(model, pageAllInfo);
rest.setData(model);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
......
...@@ -7,17 +7,21 @@ import com.mortals.framework.exception.AppException; ...@@ -7,17 +7,21 @@ import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo; import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result; import com.mortals.framework.model.Result;
import com.mortals.xhx.busiz.req.AppealReq; import com.mortals.xhx.busiz.req.*;
import com.mortals.xhx.busiz.req.PerformReq; import com.mortals.xhx.busiz.rsp.*;
import com.mortals.xhx.busiz.rsp.AppealStatInfo;
import com.mortals.xhx.common.code.PerformTypeEnum; import com.mortals.xhx.common.code.PerformTypeEnum;
import com.mortals.xhx.common.code.ProcessStatusEnum; import com.mortals.xhx.common.code.ProcessStatusEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import com.mortals.xhx.common.utils.BeanUtil; import com.mortals.xhx.common.utils.BeanUtil;
import com.mortals.xhx.module.check.model.*; import com.mortals.xhx.module.check.model.*;
import com.mortals.xhx.module.check.model.vo.CheckAllRecordVo;
import com.mortals.xhx.module.check.service.*; import com.mortals.xhx.module.check.service.*;
import com.mortals.xhx.module.perform.model.PerformAttendAppealEntity; import com.mortals.xhx.module.perform.model.*;
import com.mortals.xhx.module.perform.model.PerformAttendAppealQuery; import com.mortals.xhx.module.perform.service.*;
import com.mortals.xhx.module.perform.service.PerformAttendAppealService; import com.mortals.xhx.module.staff.model.StaffEntity;
import com.mortals.xhx.module.staff.model.StaffQuery;
import com.mortals.xhx.module.staff.service.StaffService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -30,7 +34,9 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -30,7 +34,9 @@ import org.springframework.web.bind.annotation.RestController;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
import static com.mortals.xhx.common.key.ErrorCode.ERROR_TOKEN_EXPIRED; import static com.mortals.xhx.common.key.ErrorCode.ERROR_TOKEN_EXPIRED;
...@@ -47,6 +53,27 @@ import static com.mortals.xhx.common.key.ErrorCode.ERROR_TOKEN_EXPIRED_CONTENT; ...@@ -47,6 +53,27 @@ import static com.mortals.xhx.common.key.ErrorCode.ERROR_TOKEN_EXPIRED_CONTENT;
@RequestMapping("/api/v1/inspect") @RequestMapping("/api/v1/inspect")
public class InspectApiController extends AbstractBaseController<PerformReq> { public class InspectApiController extends AbstractBaseController<PerformReq> {
@Autowired
private PerformAttendRecordService attendRecordService;
@Autowired
private PerformReviewRecordService reviewRecordService;
@Autowired
private PerformComplainRecordService complainRecordService;
@Autowired
private PerformGoworkRecordService performGoworkRecordService;
@Autowired
private PerformEffectRecordService effectRecordService;
@Autowired
private PerformOtherRecordService otherRecordService;
@Autowired
private PerformRulesService rulesService;
@Autowired
private StaffService staffService;
@Autowired
private CheckAllRecordService checkAllRecordService;
@Autowired @Autowired
private CheckAttendRecordService checkAttendRecordService; private CheckAttendRecordService checkAttendRecordService;
@Autowired @Autowired
...@@ -61,30 +88,117 @@ public class InspectApiController extends AbstractBaseController<PerformReq> { ...@@ -61,30 +88,117 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
private CheckOtherRecordService checkOtherRecordService; private CheckOtherRecordService checkOtherRecordService;
@Autowired
private PerformAttendAppealService appealService;
/** /**
* 个人申诉绩效统计 * 个人巡查效统计
*/ */
@PostMapping(value = "stat") @PostMapping(value = "stat")
public Rest<AppealStatInfo> appealStat() { public Rest<InspectStatInfo> inspectStat() {
String busiDesc = "H5个人申诉绩效统计"; String busiDesc = "H5 个人巡查统计";
Rest<AppealStatInfo> rest = Rest.ok(busiDesc + " 【成功】"); Rest<InspectStatInfo> rest = Rest.ok(busiDesc + " 【成功】");
Context context = this.getContext(); Context context = this.getContext();
if (ObjectUtils.isEmpty(context) || ObjectUtils.isEmpty(context.getUser())) { if (ObjectUtils.isEmpty(context) || ObjectUtils.isEmpty(context.getUser())) {
throw new AppException(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT); throw new AppException(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT);
} }
log.info("【{}】【请求体】--> 用户:{}", busiDesc, context.getUser().getRealName()); log.info("【{}】【请求体】--> 用户:{}", busiDesc, context.getUser().getRealName());
try { try {
//todo 查询当前登录人的绩效分数 //todo
AppealStatInfo appealStatInfo = new AppealStatInfo(); InspectStatInfo performStatInfo = new InspectStatInfo();
appealStatInfo.setTotalScore(new BigDecimal("10.52")); performStatInfo.setTotalTimes(12);
appealStatInfo.setTotalTimes(12); performStatInfo.setTodayTimes(4);
appealStatInfo.setTodayScore(new BigDecimal("2.5")); rest.setData(performStatInfo);
appealStatInfo.setTodayTimes(3); recordSysLog(request, busiDesc + " 【成功】");
rest.setData(appealStatInfo); } catch (Exception e) {
log.error(busiDesc, e);
rest = Rest.fail(super.convertException(e));
}
return rest;
}
/**
* 个人巡查列表
*/
@PostMapping(value = "list")
public Rest<Object> performList(@RequestBody PerformReq performReq) {
String busiDesc = "个人巡查列表";
log.info("【{}】【请求体】--> {}", busiDesc, JSONObject.toJSONString(performReq));
Rest<Object> rest = Rest.ok();
Map<String, Object> model = new HashMap<>();
Context context = this.getContext();
if (ObjectUtils.isEmpty(context) || ObjectUtils.isEmpty(context.getUser())) {
throw new AppException(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT);
}
try {
if (ObjectUtils.isEmpty(performReq.getPerformStartDate())) {
//未设置时间的情况,默认为当月
performReq.setPerformStartDate(DateUtil.beginOfMonth(new Date()).toDateStr());
performReq.setPerformEndDate(DateUtil.today());
} else {
performReq.setPerformStartDate(DateUtil.beginOfMonth(DateUtil.parse(performReq.getPerformStartDate()).toJdkDate()).toDateStr());
performReq.setPerformEndDate(DateUtil.endOfMonth(DateUtil.parse(performReq.getPerformStartDate()).toJdkDate()).toDateStr());
}
CheckAllRecordQuery query = new CheckAllRecordQuery();
query.setCheckTimeStart(performReq.getPerformStartDate());
query.setCheckTimeEnd(performReq.getPerformEndDate());
query.setCreateUserId(context.getUser().getCustomerId());
if (PerformTypeEnum.全部.getValue().equals(performReq.getPerformType())) {
List<CheckAllRecordVo> allCheckRecord = checkAllRecordService.getAllCheckRecord(query);
List<PerformInfo> collect = allCheckRecord.stream().map(item -> {
PerformInfo performInfo = new PerformInfo();
BeanUtils.copyProperties(item, performInfo, BeanUtil.getNullPropertyNames(item));
return performInfo;
}).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect);
PageInfo pageAllInfo = new PageInfo();
pageAllInfo.setTotalResult(collect.size());
pageAllInfo.setCurrPage(1);
pageAllInfo.setPrePageResult(-1);
model.put(PAGEINFO_KEY, pageAllInfo);
parsePageInfo(model, pageAllInfo);
}
if(!ObjectUtils.isEmpty(performReq.getProcessStatus())){
query.setCheckStatus(performReq.getProcessStatus());
List<CheckAllRecordVo> allCheckRecord = checkAllRecordService.getAllCheckRecord(query);
List<PerformInfo> collect = allCheckRecord.stream().map(item -> {
PerformInfo performInfo = new PerformInfo();
BeanUtils.copyProperties(item, performInfo, BeanUtil.getNullPropertyNames(item));
return performInfo;
}).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect);
PageInfo pageAllInfo = new PageInfo();
pageAllInfo.setTotalResult(collect.size());
pageAllInfo.setCurrPage(1);
pageAllInfo.setPrePageResult(-1);
model.put(PAGEINFO_KEY, pageAllInfo);
parsePageInfo(model, pageAllInfo);
}
if(!ObjectUtils.isEmpty(performReq.getScoreType())){
query.setSubMethod(performReq.getScoreType());
List<CheckAllRecordVo> allCheckRecord = checkAllRecordService.getAllCheckRecord(query);
List<PerformInfo> collect = allCheckRecord.stream().map(item -> {
PerformInfo performInfo = new PerformInfo();
BeanUtils.copyProperties(item, performInfo, BeanUtil.getNullPropertyNames(item));
return performInfo;
}).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect);
PageInfo pageAllInfo = new PageInfo();
pageAllInfo.setTotalResult(collect.size());
pageAllInfo.setCurrPage(1);
pageAllInfo.setPrePageResult(-1);
model.put(PAGEINFO_KEY, pageAllInfo);
parsePageInfo(model, pageAllInfo);
}
// model.put(KEY_RESULT_DATA, result.getList());
// model.put(PAGEINFO_KEY, result.getPageInfo());
// parsePageInfo(model, result.getPageInfo());
rest.setData(model);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
...@@ -98,56 +212,40 @@ public class InspectApiController extends AbstractBaseController<PerformReq> { ...@@ -98,56 +212,40 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
* 巡查新增 * 巡查新增
*/ */
@PostMapping(value = "save") @PostMapping(value = "save")
public Rest<PerformAttendAppealEntity> appealSave(@RequestBody AppealReq req) { public Rest<PerformAttendAppealEntity> appealSave(@RequestBody InspectSaveReq req) {
String busiDesc = "个人申诉新增"; String busiDesc = "个人巡查记录新增";
log.info("【{}】【请求体】--> {}", busiDesc, JSONObject.toJSONString(req)); log.info("【{}】【请求体】--> {}", busiDesc, JSONObject.toJSONString(req));
Rest<PerformAttendAppealEntity> rest = Rest.ok(busiDesc + " 【成功】"); Rest<PerformAttendAppealEntity> rest = Rest.ok(busiDesc + " 【成功】");
Context context = this.getContext(); Context context = this.getContext();
// req.setStaffId(context.getUser().getCustomerId());
try { try {
//根据状态 查询 当前是否已经存在正在进行的申诉 //根据状态 查询 当前是否已经存在正在进行的申诉
if (ObjectUtils.isEmpty(req.getId())) throw new AppException("核查记录Id不能为空!"); if (ObjectUtils.isEmpty(context) || ObjectUtils.isEmpty(context.getUser())) {
if (ObjectUtils.isEmpty(req.getPerformType())) throw new AppException("绩效类型不能为空!"); throw new AppException(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT);
//查询当前核查是否已存在进行中的申诉记录
PerformAttendAppealEntity appealEntity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(req.getId()));
if (!ObjectUtils.isEmpty(appealEntity) && appealEntity.getProcessStatus() == ProcessStatusEnum.未处理.getValue()) {
throw new AppException("当前绩效核查已经存在正在进行中的申诉记录!");
} }
PerformAttendAppealEntity entity = new PerformAttendAppealEntity(); if (ObjectUtils.isEmpty(req.getPerformType())) throw new AppException("绩效类型不能为空!");
entity.initAttrValue();
if (PerformTypeEnum.考勤绩效.getValue().equals(req.getPerformType())) { if (PerformTypeEnum.考勤绩效.getValue().equals(req.getPerformType())) {
CheckAttendRecordEntity checkEntity = checkAttendRecordService.get(req.getId(), context); boolean bool = attend(req,context);
BeanUtils.copyProperties(checkEntity, entity, BeanUtil.getNullPropertyNames(checkEntity)); if (bool) throw new AppException(busiDesc + "失败!");
} else if (PerformTypeEnum.评价差评绩效.getValue().equals(req.getPerformType())) { } else if (PerformTypeEnum.评价差评绩效.getValue().equals(req.getPerformType())) {
CheckReviewRecordEntity checkEntity = checkReviewRecordService.get(req.getId(), context); boolean bool = review(req,context);
BeanUtils.copyProperties(checkEntity, entity, BeanUtil.getNullPropertyNames(checkEntity)); if (bool) throw new AppException(busiDesc + "失败!");
} else if (PerformTypeEnum.评价投诉绩效.getValue().equals(req.getPerformType())) { } else if (PerformTypeEnum.评价投诉绩效.getValue().equals(req.getPerformType())) {
CheckComplainRecordEntity checkEntity = checkComplainRecordService.get(req.getId(), context); boolean bool = complain(req,context);
BeanUtils.copyProperties(checkEntity, entity, BeanUtil.getNullPropertyNames(checkEntity)); if (bool) throw new AppException(busiDesc + "失败!");
} else if (PerformTypeEnum.办件绩效.getValue().equals(req.getPerformType())) { } else if (PerformTypeEnum.办件绩效.getValue().equals(req.getPerformType())) {
CheckGoworkRecordEntity checkEntity = checkGoworkRecordService.get(req.getId(), context); boolean bool = gowork(req,context);
BeanUtils.copyProperties(checkEntity, entity, BeanUtil.getNullPropertyNames(checkEntity)); if (bool) throw new AppException(busiDesc + "失败!");
} else if (PerformTypeEnum.效能绩效.getValue().equals(req.getPerformType())) { } else if (PerformTypeEnum.效能绩效.getValue().equals(req.getPerformType())) {
CheckEffectRecordEntity checkEntity = checkEffectRecordService.get(req.getId(), context); boolean bool = effect(req,context);
BeanUtils.copyProperties(checkEntity, entity, BeanUtil.getNullPropertyNames(checkEntity)); if (bool) throw new AppException(busiDesc + "失败!");
} else if (PerformTypeEnum.其它绩效.getValue().equals(req.getPerformType())) { } else if (PerformTypeEnum.其它绩效.getValue().equals(req.getPerformType())) {
CheckOtherRecordEntity checkEntity = checkOtherRecordService.get(req.getId(), context); boolean bool = other(req,context);
BeanUtils.copyProperties(checkEntity, entity, BeanUtil.getNullPropertyNames(checkEntity)); if (bool) throw new AppException(busiDesc + "失败!");
} else { } else {
throw new AppException("不支持当前绩效类型"); throw new AppException("不支持当前绩效类型");
} }
entity.setPerformType(req.getPerformType());
entity.setPerformAttendAppealFilesList(req.getPerformAttendAppealFilesList());
entity.setProcessStatus(1);
entity.setAppealDesc(req.getAppealDesc());
PerformAttendAppealEntity saveEntity = appealService.save(entity, context);
rest.setData(saveEntity);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
log.error(busiDesc, e); log.error(busiDesc, e);
...@@ -158,17 +256,242 @@ public class InspectApiController extends AbstractBaseController<PerformReq> { ...@@ -158,17 +256,242 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
} }
protected PageInfo buildPageInfo(AppealReq query) {
PageInfo pageInfo = new PageInfo();
if (!ObjectUtils.isEmpty(query) && !ObjectUtils.isEmpty(query.getPage())) {
pageInfo.setCurrPage(query.getPage()); private boolean attend(InspectSaveReq req,Context context) throws AppException {
//考勤保存
PerformRulesEntity rule = getRule(req.getRuleId().toString());
StaffEntity staffEntity = getStaff(req.getStaffId().toString());
PerformAttendRecordEntity recordEntity = new PerformAttendRecordEntity();
recordEntity.initAttrValue();
BeanUtils.copyProperties(req, recordEntity);
recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId());
recordEntity.setRuleNme(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setSubMethod(SubMethodEnum.大厅巡查.getValue());
recordEntity.setCreateUserId(context.getUser().getCustomerId());
recordEntity.setCreateTime(new Date());
PerformAttendRecordEntity save = attendRecordService.save(recordEntity);
return save.newEntity();
}
private boolean review(InspectSaveReq req,Context context) throws AppException {
//评价保存
StaffEntity staffEntity = getStaff(req.getStaffId().toString());
PerformRulesEntity rule = getRule(req.getRuleId().toString());
PerformReviewRecordEntity recordEntity = new PerformReviewRecordEntity();
recordEntity.initAttrValue();
BeanUtils.copyProperties(req, recordEntity);
// recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setSubMethod(SubMethodEnum.大厅巡查.getValue());
recordEntity.setCreateUserId(context.getUser().getCustomerId());
recordEntity.setCreateTime(new Date());
PerformReviewRecordEntity save = reviewRecordService.save(recordEntity);
return save.newEntity();
}
private boolean complain(InspectSaveReq req,Context context) throws AppException {
//投诉保存
StaffEntity staffEntity = getStaff(req.getStaffId().toString());
PerformRulesEntity rule = getRule(req.getRuleId().toString());
PerformComplainRecordEntity recordEntity = new PerformComplainRecordEntity();
recordEntity.initAttrValue();
BeanUtils.copyProperties(req, recordEntity);
// recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setSubMethod(SubMethodEnum.大厅巡查.getValue());
recordEntity.setDeductTime(new Date());
recordEntity.setCreateUserId(context.getUser().getCustomerId());
recordEntity.setCreateTime(new Date());
PerformComplainRecordEntity save = complainRecordService.save(recordEntity);
return save.newEntity();
}
private boolean gowork(InspectSaveReq req,Context context) throws AppException {
//办件保存
StaffEntity staffEntity = getStaff(req.getStaffId().toString());
PerformRulesEntity rule = getRule(req.getRuleId().toString());
PerformGoworkRecordEntity recordEntity = new PerformGoworkRecordEntity();
recordEntity.initAttrValue();
BeanUtils.copyProperties(req, recordEntity);
// recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setSubMethod(SubMethodEnum.大厅巡查.getValue());
recordEntity.setCreateUserId(1L);
recordEntity.setCreateTime(new Date());
PerformGoworkRecordEntity save = performGoworkRecordService.save(recordEntity);
return save.newEntity();
}
private boolean effect(InspectSaveReq req,Context context) throws AppException {
//效能保存
StaffEntity staffEntity = getStaff(req.getStaffId().toString());
PerformRulesEntity rule = getRule(req.getRuleId().toString());
PerformEffectRecordEntity recordEntity = new PerformEffectRecordEntity();
recordEntity.initAttrValue();
BeanUtils.copyProperties(req, recordEntity);
//recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setSubMethod(SubMethodEnum.大厅巡查.getValue());
recordEntity.setCreateUserId(context.getUser().getCustomerId());
recordEntity.setCreateTime(new Date());
PerformEffectRecordEntity save = effectRecordService.save(recordEntity);
return save.newEntity();
}
private boolean other(InspectSaveReq req,Context context) throws AppException {
//其它保存
StaffEntity staffEntity = getStaff(req.getStaffId().toString());
PerformRulesEntity rule = getRule(req.getRuleId().toString());
PerformOtherRecordEntity recordEntity = new PerformOtherRecordEntity();
recordEntity.initAttrValue();
BeanUtils.copyProperties(req, recordEntity);
//recordEntity.setStaffId(staffEntity.getId());
recordEntity.setStaffName(staffEntity.getName());
recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId());
recordEntity.setRuleName(rule.getName());
recordEntity.setCategoryId(rule.getCategoryId());
recordEntity.setCategoryName(rule.getCategoryName());
recordEntity.setSubMethod(SubMethodEnum.大厅巡查.getValue());
recordEntity.setCreateUserId(context.getUser().getCustomerId());
recordEntity.setCreateTime(new Date());
PerformOtherRecordEntity save = otherRecordService.save(recordEntity);
return save.newEntity();
}
/**
* 详细
*/
@PostMapping(value = "info")
public Rest<PerformDetailInfo> performInfo(@RequestBody PerformReq performReq) {
Context context = this.getContext();
String busiDesc = "个人巡查详细";
log.info("【{}】【请求体】--> {}", busiDesc, JSONObject.toJSONString(performReq));
Rest<PerformDetailInfo> rest = Rest.ok(busiDesc + " 【成功】");
try {
if (ObjectUtils.isEmpty(performReq.getId())) {
throw new AppException("详细查询id不能为空!");
}
PerformDetailInfo performDetailInfo = new PerformDetailInfo();
if (PerformTypeEnum.考勤绩效.getValue().equals(performReq.getPerformType())) {
CheckAttendRecordEntity checkEntity = checkAttendRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else if (PerformTypeEnum.评价差评绩效.getValue().equals(performReq.getPerformType())) {
CheckReviewRecordEntity checkEntity = checkReviewRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else if (PerformTypeEnum.评价投诉绩效.getValue().equals(performReq.getPerformType())) {
CheckComplainRecordEntity checkEntity = checkComplainRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else if (PerformTypeEnum.办件绩效.getValue().equals(performReq.getPerformType())) {
CheckGoworkRecordEntity checkEntity = checkGoworkRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else if (PerformTypeEnum.效能绩效.getValue().equals(performReq.getPerformType())) {
CheckEffectRecordEntity checkEntity = checkEffectRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else if (PerformTypeEnum.其它绩效.getValue().equals(performReq.getPerformType())) {
CheckOtherRecordEntity checkEntity = checkOtherRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else {
throw new AppException("不支持当前绩效类型");
}
rest.setData(performDetailInfo);
recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) {
log.error(busiDesc, e);
rest = Rest.fail(super.convertException(e));
}
return rest;
} }
if (!ObjectUtils.isEmpty(query) && !ObjectUtils.isEmpty(query.getSize())) { private PerformRulesEntity getRule(String ruleId) {
pageInfo.setPrePageResult(query.getSize()); PerformRulesEntity rule = rulesService.getCache(ruleId);
if (ObjectUtils.isEmpty(rule))
throw new AppException(String.format("当前手机号码未找到匹配的员工!rule:%s", ruleId));
return rule;
} }
return pageInfo;
private StaffEntity getStaff(String staffId) {
StaffEntity staffEntity = staffService.getCache(staffId);
if (ObjectUtils.isEmpty(staffEntity))
throw new AppException(String.format("当前id未找到匹配的员工!staffId:%s", staffId));
return staffEntity;
} }
......
...@@ -167,9 +167,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -167,9 +167,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo.setPerformType(PerformTypeEnum.考勤绩效.getValue()); performInfo.setPerformType(PerformTypeEnum.考勤绩效.getValue());
//判断是否存在申诉 //判断是否存在申诉
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId()));
if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult()); updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult());
} else {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}
return performInfo; return performInfo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
...@@ -190,9 +193,13 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -190,9 +193,13 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo.setPerformType(PerformTypeEnum.评价差评绩效.getValue()); performInfo.setPerformType(PerformTypeEnum.评价差评绩效.getValue());
//判断是否存在申诉 //判断是否存在申诉
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId()));
if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult()); updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult());
} else {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}
return performInfo; return performInfo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect); model.put(KEY_RESULT_DATA, collect);
...@@ -212,8 +219,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -212,8 +219,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
//判断是否存在申诉 //判断是否存在申诉
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId()));
if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult()); updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult());
} else {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}
return performInfo; return performInfo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect); model.put(KEY_RESULT_DATA, collect);
...@@ -232,8 +243,14 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -232,8 +243,14 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo.setPerformType(PerformTypeEnum.办件绩效.getValue()); performInfo.setPerformType(PerformTypeEnum.办件绩效.getValue());
//判断是否存在申诉 //判断是否存在申诉
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId()));
if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult()); updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult());
} else {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}
return performInfo; return performInfo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect); model.put(KEY_RESULT_DATA, collect);
...@@ -252,8 +269,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -252,8 +269,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo.setPerformType(PerformTypeEnum.效能绩效.getValue()); performInfo.setPerformType(PerformTypeEnum.效能绩效.getValue());
//判断是否存在申诉 //判断是否存在申诉
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId()));
if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult()); updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult());
} else {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}
return performInfo; return performInfo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect); model.put(KEY_RESULT_DATA, collect);
...@@ -272,8 +293,13 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -272,8 +293,13 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo.setPerformType(PerformTypeEnum.其它绩效.getValue()); performInfo.setPerformType(PerformTypeEnum.其它绩效.getValue());
//判断是否存在申诉 //判断是否存在申诉
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(item.getId()));
if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult()); updateAppealStatus(performInfo, bool, entity.getProcessStatus(), entity.getAppealResult());
} else {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}
return performInfo; return performInfo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
model.put(KEY_RESULT_DATA, collect); model.put(KEY_RESULT_DATA, collect);
...@@ -327,6 +353,7 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -327,6 +353,7 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
if (PerformTypeEnum.考勤绩效.getValue().equals(performReq.getPerformType())) { if (PerformTypeEnum.考勤绩效.getValue().equals(performReq.getPerformType())) {
CheckAttendRecordEntity checkEntity = checkAttendRecordService.get(performReq.getId(), context); CheckAttendRecordEntity checkEntity = checkAttendRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity)); BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
} else if (PerformTypeEnum.评价差评绩效.getValue().equals(performReq.getPerformType())) { } else if (PerformTypeEnum.评价差评绩效.getValue().equals(performReq.getPerformType())) {
CheckReviewRecordEntity checkEntity = checkReviewRecordService.get(performReq.getId(), context); CheckReviewRecordEntity checkEntity = checkReviewRecordService.get(performReq.getId(), context);
BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity)); BeanUtils.copyProperties(checkEntity, performDetailInfo, BeanUtil.getNullPropertyNames(checkEntity));
...@@ -346,6 +373,21 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -346,6 +373,21 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
throw new AppException("不支持当前绩效类型"); throw new AppException("不支持当前绩效类型");
} }
PerformAttendAppealEntity appealEntity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(performDetailInfo.getId()));
if (ObjectUtils.isEmpty(appealEntity)) {
performDetailInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
} else {
if (ProcessStatusEnum.未处理.getValue() == appealEntity.getProcessStatus()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉中.getValue());
} else {
if (AppealResultEnum.通过.getValue() == appealEntity.getProcessStatus()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉通过.getValue());
} else if (AppealResultEnum.不通过.getValue() == appealEntity.getProcessStatus()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉拒绝.getValue());
}
}
}
rest.setData(performDetailInfo); rest.setData(performDetailInfo);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
......
...@@ -23,21 +23,22 @@ public class TestController { ...@@ -23,21 +23,22 @@ public class TestController {
@Autowired @Autowired
private IdgeneratorService idgeneratorService; private IdgeneratorService idgeneratorService;
@GetMapping("webservice") // @GetMapping("webservice")@GetMapping("idGens")
// public String idGens() {
// log.info("测试id生成");
//
// String stringId = idgeneratorService.getLongId(IdgeneratorServiceImpl.IdGeneratorKey.EFFECT).toString();
//
//
// return stringId;
// }
public String webservice() { public String webservice() {
log.info("测试"); log.info("测试");
return "ok"; return "ok";
} }
@GetMapping("idGens") //
public String idGens() {
log.info("测试id生成");
String stringId = idgeneratorService.getLongId(IdgeneratorServiceImpl.IdGeneratorKey.EFFECT_KEY).toString();
return stringId;
}
......
...@@ -4,7 +4,7 @@ import java.util.LinkedHashMap; ...@@ -4,7 +4,7 @@ import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
/*** /***
* 核查类型枚举(1.考勤绩效,2.效能绩效,3.评价绩效,4.办件绩效,5.评价差评绩效,6.其它绩效) * 核查类型枚举(1.考勤绩效,2.评价绩效,3.办件绩效,4.效能绩效,5.其它绩效,6.投诉绩效)
*/ */
public enum CheckTypeEnum { public enum CheckTypeEnum {
考勤绩效(1, "考勤绩效"), 考勤绩效(1, "考勤绩效"),
...@@ -12,6 +12,7 @@ public enum CheckTypeEnum { ...@@ -12,6 +12,7 @@ public enum CheckTypeEnum {
办件绩效(3, "办件绩效"), 办件绩效(3, "办件绩效"),
效能绩效(4, "效能绩效"), 效能绩效(4, "效能绩效"),
其它绩效(5, "其它绩效"), 其它绩效(5, "其它绩效"),
投诉绩效(6, "投诉绩效"),
; ;
private Integer value; private Integer value;
private String desc; private String desc;
......
...@@ -69,4 +69,7 @@ public class CheckAllRecordVo extends BaseEntityLong { ...@@ -69,4 +69,7 @@ public class CheckAllRecordVo extends BaseEntityLong {
* 核查类型(1.考勤绩效,2.效能绩效,3.评价绩效,4.办件绩效,5.评价差评绩效,6.其它绩效) * 核查类型(1.考勤绩效,2.效能绩效,3.评价绩效,4.办件绩效,5.评价差评绩效,6.其它绩效)
*/ */
private Integer checkType; private Integer checkType;
private String performType;
} }
package com.mortals.xhx.module.check.web; package com.mortals.xhx.module.check.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.check.model.CheckAttendRecordEntity; import com.mortals.xhx.module.check.model.CheckAttendRecordEntity;
import com.mortals.xhx.module.check.service.CheckAttendRecordService; import com.mortals.xhx.module.check.service.CheckAttendRecordService;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils; import com.mortals.framework.util.StringUtils;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import java.util.Arrays; import java.util.Arrays;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
/** /**
* * 考勤绩效记录核查信息
* 考勤绩效记录核查信息 *
* * @author zxfei
* @author zxfei * @date 2023-07-10
* @date 2023-07-10 */
*/
@RestController @RestController
@RequestMapping("check/attend/record") @RequestMapping("check/attend/record")
public class CheckAttendRecordController extends BaseCRUDJsonBodyMappingController<CheckAttendRecordService,CheckAttendRecordEntity,Long> { public class CheckAttendRecordController extends BaseCRUDJsonBodyMappingController<CheckAttendRecordService, CheckAttendRecordEntity, Long> {
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
public CheckAttendRecordController(){ public CheckAttendRecordController() {
super.setModuleDesc( "考勤绩效记录核查信息"); super.setModuleDesc("考勤绩效记录核查信息");
} }
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("CheckAttendRecord","subAddType")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "checkStatus", paramService.getParamBySecondOrganize("CheckAttendRecord","checkStatus")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("CheckAttendRecord","subMethod")); this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(CheckAttendRecordEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
super.doListBefore(query, model, context);
}
/** /**
* 审核 * 审核
*
* @param entity * @param entity
* @return * @return
*/ */
......
package com.mortals.xhx.module.check.web; package com.mortals.xhx.module.check.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -42,12 +49,24 @@ public class CheckComplainRecordController extends BaseCRUDJsonBodyMappingContro ...@@ -42,12 +49,24 @@ public class CheckComplainRecordController extends BaseCRUDJsonBodyMappingContro
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("CheckComplainRecord","subMethod"));
this.addDict(model, "checkStatus", paramService.getParamBySecondOrganize("CheckComplainRecord","checkStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("CheckComplainRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(CheckComplainRecordEntity query, Map<String, Object> model, Context context) throws AppException {
super.doListBefore(query, model, context);
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
/** /**
* 审核 * 审核
* @param entity * @param entity
......
package com.mortals.xhx.module.check.web; package com.mortals.xhx.module.check.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -43,12 +50,25 @@ public class CheckEffectRecordController extends BaseCRUDJsonBodyMappingControll ...@@ -43,12 +50,25 @@ public class CheckEffectRecordController extends BaseCRUDJsonBodyMappingControll
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "irregularType", paramService.getParamBySecondOrganize("CheckEffectRecord","irregularType")); this.addDict(model, "irregularType", paramService.getParamBySecondOrganize("CheckEffectRecord","irregularType"));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("CheckEffectRecord","subMethod")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "checkStatus", paramService.getParamBySecondOrganize("CheckEffectRecord","checkStatus")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("CheckEffectRecord","subAddType")); this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(CheckEffectRecordEntity query, Map<String, Object> model, Context context) throws AppException {
super.doListBefore(query, model, context);
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
/** /**
* 审核 * 审核
* @param entity * @param entity
......
package com.mortals.xhx.module.check.web; package com.mortals.xhx.module.check.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -42,12 +49,24 @@ public class CheckGoworkRecordController extends BaseCRUDJsonBodyMappingControll ...@@ -42,12 +49,24 @@ public class CheckGoworkRecordController extends BaseCRUDJsonBodyMappingControll
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("CheckGoworkRecord","subMethod"));
this.addDict(model, "checkStatus", paramService.getParamBySecondOrganize("CheckGoworkRecord","checkStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("CheckGoworkRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(CheckGoworkRecordEntity query, Map<String, Object> model, Context context) throws AppException {
super.doListBefore(query, model, context);
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
/** /**
* 审核 * 审核
* @param entity * @param entity
......
package com.mortals.xhx.module.check.web; package com.mortals.xhx.module.check.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -43,12 +50,23 @@ public class CheckOtherRecordController extends BaseCRUDJsonBodyMappingControlle ...@@ -43,12 +50,23 @@ public class CheckOtherRecordController extends BaseCRUDJsonBodyMappingControlle
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "irregularOtherType", paramService.getParamBySecondOrganize("CheckOtherRecord","irregularOtherType")); this.addDict(model, "irregularOtherType", paramService.getParamBySecondOrganize("CheckOtherRecord","irregularOtherType"));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("CheckOtherRecord","subMethod")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "checkStatus", paramService.getParamBySecondOrganize("CheckOtherRecord","checkStatus")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("CheckOtherRecord","subAddType")); this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(CheckOtherRecordEntity query, Map<String, Object> model, Context context) throws AppException {
super.doListBefore(query, model, context);
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
/** /**
* 审核 * 审核
* @param entity * @param entity
......
package com.mortals.xhx.module.check.web; package com.mortals.xhx.module.check.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.SubAddTypeEnum;
import com.mortals.xhx.common.code.SubMethodEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -44,12 +51,25 @@ public class CheckReviewRecordController extends BaseCRUDJsonBodyMappingControll ...@@ -44,12 +51,25 @@ public class CheckReviewRecordController extends BaseCRUDJsonBodyMappingControll
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "reviewResult", paramService.getParamBySecondOrganize("CheckReviewRecord","reviewResult")); this.addDict(model, "reviewResult", paramService.getParamBySecondOrganize("CheckReviewRecord","reviewResult"));
this.addDict(model, "reviewSource", paramService.getParamBySecondOrganize("CheckReviewRecord","reviewSource")); this.addDict(model, "reviewSource", paramService.getParamBySecondOrganize("CheckReviewRecord","reviewSource"));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("CheckReviewRecord","subMethod"));
this.addDict(model, "checkStatus", paramService.getParamBySecondOrganize("CheckReviewRecord","checkStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("CheckReviewRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(CheckReviewRecordEntity query, Map<String, Object> model, Context context) throws AppException {
super.doListBefore(query, model, context);
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
/** /**
* 审核 * 审核
* @param entity * @param entity
......
...@@ -21,10 +21,10 @@ public interface FeedbackDao extends ICRUDDao<FeedbackEntity,Long>{ ...@@ -21,10 +21,10 @@ public interface FeedbackDao extends ICRUDDao<FeedbackEntity,Long>{
/*** /***
* 问卷反馈人员列表 * 问卷反馈人员列表
* @param feedbackId * @param query
* @return * @return
*/ */
List<FeedbackStaffInfoVo> getFeedbackStaffList(Long feedbackId); Result<FeedbackStaffInfoVo> getFeedbackStaffList(FeedbackEntity query,PageInfo pageInfo);
/** /**
* 问卷单选多选反馈统计 * 问卷单选多选反馈统计
......
...@@ -28,8 +28,29 @@ public class FeedbackDaoImpl extends BaseCRUDDaoMybatis<FeedbackEntity,Long> imp ...@@ -28,8 +28,29 @@ public class FeedbackDaoImpl extends BaseCRUDDaoMybatis<FeedbackEntity,Long> imp
@Override @Override
public List<FeedbackStaffInfoVo> getFeedbackStaffList(Long feedbackId) { public Result<FeedbackStaffInfoVo> getFeedbackStaffList(FeedbackEntity query,PageInfo pageInfo) {
return this.getSqlSession().selectList(this.getSqlId("getFeedbackStaffList"), feedbackId); String sqlId = "getFeedbackStaffList";
Result result = new Result();
List list = null;
int count = this.getFeedbackStaffListCount(query);
if (count == 0) {
list = new ArrayList();
} else if (pageInfo.getPrePageResult() == -1) {
list = this.getSqlSession().selectList(this.getSqlId(sqlId), query);
} else {
if (pageInfo.getBeginIndex() > count) {
pageInfo.setCurrPage(1);
}
RowBounds rowBounds = new RowBounds(pageInfo.getBeginIndex(), pageInfo.getPrePageResult());
list = this.getSqlSession().selectList(this.getSqlId(sqlId), query, rowBounds);
}
pageInfo.setTotalResult(count);
result.setPageInfo(pageInfo);
result.setList((List)list);
return result;
} }
@Override @Override
...@@ -66,4 +87,8 @@ public class FeedbackDaoImpl extends BaseCRUDDaoMybatis<FeedbackEntity,Long> imp ...@@ -66,4 +87,8 @@ public class FeedbackDaoImpl extends BaseCRUDDaoMybatis<FeedbackEntity,Long> imp
private int getQuestionAnswerListCount(Long questionId) { private int getQuestionAnswerListCount(Long questionId) {
return (Integer)this.getSqlSession().selectOne(this.getSqlId("getQuestionAnswerListCount"), questionId); return (Integer)this.getSqlSession().selectOne(this.getSqlId("getQuestionAnswerListCount"), questionId);
} }
private int getFeedbackStaffListCount(FeedbackEntity query) {
return (Integer)this.getSqlSession().selectOne(this.getSqlId("getFeedbackStaffListCount"), query);
}
} }
...@@ -15,5 +15,6 @@ import java.util.Date; ...@@ -15,5 +15,6 @@ import java.util.Date;
*/ */
@Data @Data
public class FeedbackAnswerVo extends BaseEntityLong { public class FeedbackAnswerVo extends BaseEntityLong {
/** 问题内容**/
private String questionContent;
} }
\ No newline at end of file
...@@ -17,6 +17,10 @@ import java.util.Date; ...@@ -17,6 +17,10 @@ import java.util.Date;
public class FeedbackVo extends BaseEntityLong { public class FeedbackVo extends BaseEntityLong {
private List<Long> staffList; private List<Long> staffList;
/** 问题Id */
private Long questionId; private Long questionId;
/** 反馈Id */
private Long feedbackId;
/** 反馈状态 */
private Integer backStatus;
} }
\ No newline at end of file
...@@ -2,6 +2,8 @@ package com.mortals.xhx.module.feedback.model.vo; ...@@ -2,6 +2,8 @@ package com.mortals.xhx.module.feedback.model.vo;
import lombok.Data; import lombok.Data;
import java.util.List;
/** /**
* 问卷单选多选反馈统计视图 * 问卷单选多选反馈统计视图
*/ */
...@@ -36,4 +38,6 @@ public class OptionSummaryVo { ...@@ -36,4 +38,6 @@ public class OptionSummaryVo {
* 选项统计 * 选项统计
*/ */
private Integer optionCount; private Integer optionCount;
List<OptionSummaryVo> optionList;
} }
...@@ -25,10 +25,10 @@ public interface FeedbackService extends ICRUDService<FeedbackEntity,Long>{ ...@@ -25,10 +25,10 @@ public interface FeedbackService extends ICRUDService<FeedbackEntity,Long>{
/*** /***
* 问卷反馈人员列表 * 问卷反馈人员列表
* @param feedbackId * @param query
* @return * @return
*/ */
List<FeedbackStaffInfoVo> getFeedbackStaffList(Long feedbackId) throws AppException; Result<FeedbackStaffInfoVo> getFeedbackStaffList(FeedbackEntity query,PageInfo pageInfo) throws AppException;
/** /**
* 问卷单选多选反馈统计 * 问卷单选多选反馈统计
......
package com.mortals.xhx.module.feedback.service.impl; package com.mortals.xhx.module.feedback.service.impl;
import com.mortals.framework.model.PageInfo;
import com.mortals.xhx.module.feedback.model.FeedbackQuestionEntity;
import com.mortals.xhx.module.feedback.service.FeedbackQuestionService;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -27,6 +31,8 @@ import lombok.extern.slf4j.Slf4j; ...@@ -27,6 +31,8 @@ import lombok.extern.slf4j.Slf4j;
public class FeedbackAnswerServiceImpl extends AbstractCRUDServiceImpl<FeedbackAnswerDao, FeedbackAnswerEntity, Long> implements FeedbackAnswerService { public class FeedbackAnswerServiceImpl extends AbstractCRUDServiceImpl<FeedbackAnswerDao, FeedbackAnswerEntity, Long> implements FeedbackAnswerService {
@Autowired @Autowired
private FeedbackAnswerOptionService feedbackAnswerOptionService; private FeedbackAnswerOptionService feedbackAnswerOptionService;
@Autowired
private FeedbackQuestionService feedbackQuestionService;
@Override @Override
protected void saveAfter(FeedbackAnswerEntity entity, Context context) throws AppException { protected void saveAfter(FeedbackAnswerEntity entity, Context context) throws AppException {
...@@ -64,4 +70,17 @@ public class FeedbackAnswerServiceImpl extends AbstractCRUDServiceImpl<FeedbackA ...@@ -64,4 +70,17 @@ public class FeedbackAnswerServiceImpl extends AbstractCRUDServiceImpl<FeedbackA
feedbackAnswerOptionService.removeList(feedbackAnswerOptionlist,context); feedbackAnswerOptionService.removeList(feedbackAnswerOptionlist,context);
super.removeAfter(ids, context, result); super.removeAfter(ids, context, result);
} }
@Override
protected void findAfter(FeedbackAnswerEntity params, PageInfo pageInfo, Context context, List<FeedbackAnswerEntity> list) throws AppException {
if(CollectionUtils.isNotEmpty(list)){
for(FeedbackAnswerEntity item:list){
FeedbackQuestionEntity questionEntity = feedbackQuestionService.get(item.getQuestionId());
if(questionEntity!=null){
item.setQuestionContent(questionEntity.getContent());
}
}
}
super.findAfter(params, pageInfo, context, list);
}
} }
\ No newline at end of file
...@@ -35,8 +35,8 @@ public class FeedbackQuestionServiceImpl extends AbstractCRUDServiceImpl<Feedbac ...@@ -35,8 +35,8 @@ public class FeedbackQuestionServiceImpl extends AbstractCRUDServiceImpl<Feedbac
item.setQuestionId(entity.getId()); item.setQuestionId(entity.getId());
item.setCreateUserId(this.getContextUserId(context)); item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date()); item.setCreateTime(new Date());
feedbackOptionService.save(item);
}).count(); }).count();
feedbackOptionService.save(entity.getFeedbackOptionList());
} }
super.saveAfter(entity, context); super.saveAfter(entity, context);
} }
......
...@@ -52,7 +52,9 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe ...@@ -52,7 +52,9 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe
item.setCreateUserId(this.getContextUserId(context)); item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date()); item.setCreateTime(new Date());
}).count(); }).count();
feedbackQuestionService.save(entity.getFeedbackQuestionList()); for(FeedbackQuestionEntity questionEntity:entity.getFeedbackQuestionList()) {
feedbackQuestionService.save(questionEntity);
}
} }
if(!ObjectUtils.isEmpty(entity.getStaffList())){ if(!ObjectUtils.isEmpty(entity.getStaffList())){
List<FeedbackStaffEntity> staffEntityList = new ArrayList<>(); List<FeedbackStaffEntity> staffEntityList = new ArrayList<>();
...@@ -81,7 +83,9 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe ...@@ -81,7 +83,9 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe
item.setUpdateUserId(this.getContextUserId(context)); item.setUpdateUserId(this.getContextUserId(context));
item.setUpdateTime(new Date()); item.setUpdateTime(new Date());
}).count(); }).count();
feedbackQuestionService.save(entity.getFeedbackQuestionList()); for(FeedbackQuestionEntity questionEntity:entity.getFeedbackQuestionList()) {
feedbackQuestionService.save(questionEntity);
}
} }
if(!ObjectUtils.isEmpty(entity.getStaffList())){ if(!ObjectUtils.isEmpty(entity.getStaffList())){
Long[] feedbackStaffIds = feedbackStaffService.find(new FeedbackStaffQuery().feedbackId(entity.getId())).stream().map(FeedbackStaffEntity::getId).toArray(Long[]::new); Long[] feedbackStaffIds = feedbackStaffService.find(new FeedbackStaffQuery().feedbackId(entity.getId())).stream().map(FeedbackStaffEntity::getId).toArray(Long[]::new);
...@@ -110,11 +114,14 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe ...@@ -110,11 +114,14 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe
} }
@Override @Override
public List<FeedbackStaffInfoVo> getFeedbackStaffList(Long feedbackId) throws AppException { public Result<FeedbackStaffInfoVo> getFeedbackStaffList(FeedbackEntity query,PageInfo pageInfo) throws AppException {
if(feedbackId==null){ if(query.getFeedbackId()==null){
throw new AppException("绩效反馈记录Id不能为空"); throw new AppException("绩效反馈记录Id不能为空");
} }
return dao.getFeedbackStaffList(feedbackId); if(pageInfo==null){
pageInfo = new PageInfo();
}
return dao.getFeedbackStaffList(query,pageInfo);
} }
@Override @Override
......
package com.mortals.xhx.module.feedback.web; package com.mortals.xhx.module.feedback.web;
import com.mortals.framework.annotation.UnAuth; import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.common.Rest; import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.PageInfo; import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result; import com.mortals.framework.model.Result;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.feedback.model.FeedbackAnswerEntity; import com.mortals.xhx.module.feedback.model.*;
import com.mortals.xhx.module.feedback.model.vo.FeedbackStaffInfoVo; import com.mortals.xhx.module.feedback.model.vo.FeedbackStaffInfoVo;
import com.mortals.xhx.module.feedback.model.vo.OptionSummaryVo; import com.mortals.xhx.module.feedback.model.vo.OptionSummaryVo;
import com.mortals.xhx.module.feedback.model.vo.QuestionAnswerVo; import com.mortals.xhx.module.feedback.model.vo.QuestionAnswerVo;
import com.mortals.xhx.module.feedback.service.FeedbackOptionService;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
...@@ -19,16 +21,13 @@ import com.mortals.framework.model.Context; ...@@ -19,16 +21,13 @@ import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.feedback.model.FeedbackEntity;
import com.mortals.xhx.module.feedback.service.FeedbackService; import com.mortals.xhx.module.feedback.service.FeedbackService;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils; import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List; import java.util.*;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
...@@ -46,6 +45,9 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -46,6 +45,9 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private FeedbackOptionService feedbackOptionService;
public FeedbackController(){ public FeedbackController(){
super.setModuleDesc( "绩效反馈记录信息"); super.setModuleDesc( "绩效反馈记录信息");
} }
...@@ -61,14 +63,25 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -61,14 +63,25 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
super.init(model, context); super.init(model, context);
} }
@Override
protected int infoAfter(Long id, Map<String, Object> model, FeedbackEntity entity, Context context) throws AppException {
if(CollectionUtils.isNotEmpty(entity.getFeedbackQuestionList())){
for(FeedbackQuestionEntity item:entity.getFeedbackQuestionList()){
List<FeedbackOptionEntity> optionEntities = feedbackOptionService.find(new FeedbackOptionQuery().questionId(item.getId()));
item.setFeedbackOptionList(optionEntities);
}
}
return super.infoAfter(id, model, entity, context);
}
/** /**
* 查询问卷反馈人员列表 * 查询问卷反馈人员列表
* @param feedbackId * @param query
* @return * @return
*/ */
@RequestMapping(value = {"getStaffList"},method = {RequestMethod.POST, RequestMethod.GET}) @PostMapping({"getStaffList"})
@UnAuth @UnAuth
public Rest<Object> getFeedbackStaffList(Long feedbackId) { public Rest<Object> getFeedbackStaffList(@RequestBody FeedbackEntity query) {
Rest<Object> ret = new Rest(); Rest<Object> ret = new Rest();
Map<String, Object> model = new HashMap(); Map<String, Object> model = new HashMap();
Context context = this.getContext(); Context context = this.getContext();
...@@ -76,9 +89,10 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -76,9 +89,10 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
int code=1; int code=1;
try { try {
List<FeedbackStaffInfoVo> result = this.getService().getFeedbackStaffList(feedbackId); PageInfo pageInfo = this.buildPageInfo(query);
if(CollectionUtils.isNotEmpty(result)) { Result<FeedbackStaffInfoVo> result = this.getService().getFeedbackStaffList(query,pageInfo);
Map<Integer, List<FeedbackStaffInfoVo>> groupMap = result.stream().collect(Collectors.groupingBy(FeedbackStaffInfoVo::getBackStatus)); if(CollectionUtils.isNotEmpty(result.getList())) {
Map<Integer, List<FeedbackStaffInfoVo>> groupMap = result.getList().stream().collect(Collectors.groupingBy(FeedbackStaffInfoVo::getBackStatus));
if(groupMap.containsKey(1)) { if(groupMap.containsKey(1)) {
model.put("feedBack", groupMap.get(1).size()); model.put("feedBack", groupMap.get(1).size());
}else { }else {
...@@ -93,8 +107,9 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -93,8 +107,9 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
model.put("feedBack", 0); model.put("feedBack", 0);
model.put("notBack", 0); model.put("notBack", 0);
} }
model.put("data", result); model.put("data", result.getList());
model.put("message_info", busiDesc + "成功"); model.put("pageInfo", result.getPageInfo());
this.parsePageInfo(model, result.getPageInfo());
if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) { if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) {
this.recordSysLog(this.request, busiDesc + " 【成功】"); this.recordSysLog(this.request, busiDesc + " 【成功】");
} }
...@@ -126,7 +141,21 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -126,7 +141,21 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
int code=1; int code=1;
try { try {
List<OptionSummaryVo> result = this.getService().getOptionSummaryList(feedbackId); List<OptionSummaryVo> result = this.getService().getOptionSummaryList(feedbackId);
model.put("data", result); List<OptionSummaryVo> list = new ArrayList<>();
if(CollectionUtils.isNotEmpty(result)) {
Map<Long, List<OptionSummaryVo>> groupMap = result.stream().collect(Collectors.groupingBy(OptionSummaryVo::getQuestionId));
for (Long key : groupMap.keySet()) {
OptionSummaryVo vo = new OptionSummaryVo();
OptionSummaryVo temp = groupMap.get(key).get(0);
vo.setQuestionId(key);
vo.setQuestion(temp.getQuestion());
vo.setFeedbackId(temp.getFeedbackId());
vo.setQuestionType(temp.getQuestionType());
vo.setOptionList(groupMap.get(key));
list.add(vo);
}
}
model.put("data", list);
model.put("message_info", busiDesc + "成功"); model.put("message_info", busiDesc + "成功");
if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) { if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) {
this.recordSysLog(this.request, busiDesc + " 【成功】"); this.recordSysLog(this.request, busiDesc + " 【成功】");
...@@ -156,14 +185,13 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -156,14 +185,13 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
Context context = this.getContext(); Context context = this.getContext();
String busiDesc = "查询问卷问题反馈详情"; String busiDesc = "查询问卷问题反馈详情";
int code=1; int code = 1;
try { try {
PageInfo pageInfo = this.buildPageInfo(query); PageInfo pageInfo = this.buildPageInfo(query);
Result<QuestionAnswerVo> result = this.getService().getQuestionAnswerList(query.getQuestionId(), pageInfo); Result<QuestionAnswerVo> result = this.getService().getQuestionAnswerList(query.getQuestionId(), pageInfo);
model.put("data", result.getList()); model.put("data", result.getList());
model.put("pageInfo", result.getPageInfo()); model.put("pageInfo", result.getPageInfo());
this.parsePageInfo(model, result.getPageInfo()); this.parsePageInfo(model, result.getPageInfo());
code = this.doListAfter(query, (Map)model, context);
model.put("message_info", busiDesc + "成功"); model.put("message_info", busiDesc + "成功");
if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) { if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) {
this.recordSysLog(this.request, busiDesc + " 【成功】"); this.recordSysLog(this.request, busiDesc + " 【成功】");
......
package com.mortals.xhx.module.perform.service.impl; package com.mortals.xhx.module.perform.service.impl;
import com.mortals.xhx.common.code.CheckStatusEnum; import com.mortals.xhx.common.code.CheckStatusEnum;
import com.mortals.xhx.common.code.SubMethodEnum; import com.mortals.xhx.common.code.SubMethodEnum;
import com.mortals.xhx.common.utils.BeanUtil; import com.mortals.xhx.common.utils.BeanUtil;
...@@ -18,12 +19,12 @@ import lombok.extern.slf4j.Slf4j; ...@@ -18,12 +19,12 @@ import lombok.extern.slf4j.Slf4j;
import java.util.Date; import java.util.Date;
/** /**
* PerformAttendRecordService * PerformAttendRecordService
* 考勤绩效记录信息 service实现 * 考勤绩效记录信息 service实现
* *
* @author zxfei * @author zxfei
* @date 2023-07-10 * @date 2023-07-10
*/ */
@Service("performAttendRecordService") @Service("performAttendRecordService")
@Slf4j @Slf4j
public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<PerformAttendRecordDao, PerformAttendRecordEntity, Long> implements PerformAttendRecordService { public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<PerformAttendRecordDao, PerformAttendRecordEntity, Long> implements PerformAttendRecordService {
...@@ -35,28 +36,29 @@ public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -35,28 +36,29 @@ public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
protected void saveAfter(PerformAttendRecordEntity entity, Context context) throws AppException { protected void saveAfter(PerformAttendRecordEntity entity, Context context) throws AppException {
CheckAttendRecordEntity checkAttendRecordEntity = new CheckAttendRecordEntity(); CheckAttendRecordEntity checkAttendRecordEntity = new CheckAttendRecordEntity();
checkAttendRecordEntity.initAttrValue(); checkAttendRecordEntity.initAttrValue();
BeanUtils.copyProperties(entity,checkAttendRecordEntity, BeanUtil.getNullPropertyNames(entity)); BeanUtils.copyProperties(entity, checkAttendRecordEntity, BeanUtil.getNullPropertyNames(entity));
checkAttendRecordEntity.setId(null); checkAttendRecordEntity.setId(null);
checkAttendRecordEntity.setRecordId(entity.getId()); checkAttendRecordEntity.setRecordId(entity.getId());
if(entity.getSubMethod()== SubMethodEnum.系统自动.getValue()){ if (entity.getSubMethod() == SubMethodEnum.系统自动.getValue()) {
checkAttendRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //自动扣分相设置为已处理 checkAttendRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //自动扣分相设置为已处理
}else { } else {
checkAttendRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理 checkAttendRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理
} }
checkAttendRecordService.save(checkAttendRecordEntity,context); checkAttendRecordEntity.setCheckTime(new Date());
checkAttendRecordService.save(checkAttendRecordEntity, context);
} }
@Override @Override
public void updateProcessStatus(Long id, Integer status) throws AppException { public void updateProcessStatus(Long id, Integer status) throws AppException {
if(id==null){ if (id == null) {
throw new AppException("考勤绩效记录Id不能为空"); throw new AppException("考勤绩效记录Id不能为空");
} }
PerformAttendRecordEntity entity = this.get(id); PerformAttendRecordEntity entity = this.get(id);
if(entity==null){ if (entity == null) {
throw new AppException("无效的考勤绩效记录Id"); throw new AppException("无效的考勤绩效记录Id");
} }
if(status==null){ if (status == null) {
status=1; //处理状态(1.未核查,2.已核查) status = 1; //处理状态(1.未核查,2.已核查)
} }
PerformAttendRecordEntity update = new PerformAttendRecordEntity(); PerformAttendRecordEntity update = new PerformAttendRecordEntity();
update.setId(id); update.setId(id);
......
...@@ -43,6 +43,7 @@ public class PerformComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Pe ...@@ -43,6 +43,7 @@ public class PerformComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Pe
}else { }else {
checkComplainRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理 checkComplainRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理
} }
checkComplainRecordEntity.setCheckTime(new Date());
checkComplainRecordService.save(checkComplainRecordEntity,context); checkComplainRecordService.save(checkComplainRecordEntity,context);
} }
......
...@@ -43,6 +43,7 @@ public class PerformEffectRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -43,6 +43,7 @@ public class PerformEffectRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
}else { }else {
checkEffectRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理 checkEffectRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理
} }
checkEffectRecordEntity.setCheckTime(new Date());
checkEffectRecordService.save(checkEffectRecordEntity,context); checkEffectRecordService.save(checkEffectRecordEntity,context);
} }
......
...@@ -43,6 +43,7 @@ public class PerformGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -43,6 +43,7 @@ public class PerformGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
}else { }else {
checkGoworkRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理 checkGoworkRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理
} }
checkGoworkRecordEntity.setCheckTime(new Date());
checkGoworkRecordService.save(checkGoworkRecordEntity,context); checkGoworkRecordService.save(checkGoworkRecordEntity,context);
} }
......
...@@ -43,6 +43,7 @@ public class PerformOtherRecordServiceImpl extends AbstractCRUDServiceImpl<Perfo ...@@ -43,6 +43,7 @@ public class PerformOtherRecordServiceImpl extends AbstractCRUDServiceImpl<Perfo
}else { }else {
checkOtherRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理 checkOtherRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理
} }
checkOtherRecordEntity.setCheckTime(new Date());
checkOtherRecordService.save(checkOtherRecordEntity,context); checkOtherRecordService.save(checkOtherRecordEntity,context);
} }
......
...@@ -42,6 +42,9 @@ public class PerformReviewRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -42,6 +42,9 @@ public class PerformReviewRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
}else { }else {
checkReviewRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理 checkReviewRecordEntity.setCheckStatus(CheckStatusEnum.未处理.getValue()); //非自动扣分相设置为未处理
} }
//checkReviewRecordEntity.s
checkReviewRecordService.save(checkReviewRecordEntity,context); checkReviewRecordService.save(checkReviewRecordEntity,context);
} }
......
...@@ -2,12 +2,14 @@ package com.mortals.xhx.module.perform.web; ...@@ -2,12 +2,14 @@ package com.mortals.xhx.module.perform.web;
import com.mortals.framework.common.Rest; import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.EnabledEnum; import com.mortals.xhx.common.code.EnabledEnum;
import com.mortals.xhx.common.code.YesNoEnum; import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.module.perform.model.vo.AppealInfo; import com.mortals.xhx.module.perform.model.vo.AppealInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -66,6 +68,16 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro ...@@ -66,6 +68,16 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformAttendAppealEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
/** /**
* 申诉统计 * 申诉统计
*/ */
......
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -42,11 +46,22 @@ public class PerformAttendRecordController extends BaseCRUDJsonBodyMappingContro ...@@ -42,11 +46,22 @@ public class PerformAttendRecordController extends BaseCRUDJsonBodyMappingContro
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformAttendRecord","subMethod")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformAttendRecord","subAddType")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformAttendRecord","processStatus")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformAttendRecordEntity query, Map<String, Object> model, Context context) throws AppException {
super.doListBefore(query, model, context);
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.*;
import org.apache.tomcat.jni.Proc;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -42,9 +44,12 @@ public class PerformComplainRecordController extends BaseCRUDJsonBodyMappingCont ...@@ -42,9 +44,12 @@ public class PerformComplainRecordController extends BaseCRUDJsonBodyMappingCont
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformComplainRecord","subMethod")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformComplainRecord","processStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformComplainRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
......
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -43,11 +47,21 @@ public class PerformEffectRecordController extends BaseCRUDJsonBodyMappingContro ...@@ -43,11 +47,21 @@ public class PerformEffectRecordController extends BaseCRUDJsonBodyMappingContro
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "irregularType", paramService.getParamBySecondOrganize("PerformEffectRecord","irregularType")); this.addDict(model, "irregularType", paramService.getParamBySecondOrganize("PerformEffectRecord","irregularType"));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformEffectRecord","subMethod")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformEffectRecord","processStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformEffectRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformEffectRecordEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -42,11 +46,22 @@ public class PerformGoworkRecordController extends BaseCRUDJsonBodyMappingContro ...@@ -42,11 +46,22 @@ public class PerformGoworkRecordController extends BaseCRUDJsonBodyMappingContro
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformGoworkRecord","subMethod")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformGoworkRecord","processStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformGoworkRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformGoworkRecordEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -43,11 +47,22 @@ public class PerformOtherRecordController extends BaseCRUDJsonBodyMappingControl ...@@ -43,11 +47,22 @@ public class PerformOtherRecordController extends BaseCRUDJsonBodyMappingControl
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "irregularOtherType", paramService.getParamBySecondOrganize("PerformOtherRecord","irregularOtherType")); this.addDict(model, "irregularOtherType", paramService.getParamBySecondOrganize("PerformOtherRecord","irregularOtherType"));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformOtherRecord","subMethod")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformOtherRecord","processStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformOtherRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformOtherRecordEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.code.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -44,11 +48,21 @@ public class PerformReviewRecordController extends BaseCRUDJsonBodyMappingContro ...@@ -44,11 +48,21 @@ public class PerformReviewRecordController extends BaseCRUDJsonBodyMappingContro
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "reviewResult", paramService.getParamBySecondOrganize("PerformReviewRecord","reviewResult")); this.addDict(model, "reviewResult", paramService.getParamBySecondOrganize("PerformReviewRecord","reviewResult"));
this.addDict(model, "reviewSource", paramService.getParamBySecondOrganize("PerformReviewRecord","reviewSource")); this.addDict(model, "reviewSource", paramService.getParamBySecondOrganize("PerformReviewRecord","reviewSource"));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformReviewRecord","subMethod")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformReviewRecord","processStatus")); this.addDict(model, "checkStatus", CheckStatusEnum.getEnumMap());
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformReviewRecord","subAddType")); this.addDict(model, "subMethod", SubMethodEnum.getEnumMap());
this.addDict(model, "subAddType", SubAddTypeEnum.getEnumMap());
this.addDict(model, "checkType", CheckTypeEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformReviewRecordEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.staff.model; package com.mortals.xhx.module.staff.model;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.staff.model.vo.StaffPerformStatVo; import com.mortals.xhx.module.staff.model.vo.StaffPerformStatVo;
import lombok.Data; import lombok.Data;
/** /**
* 员工绩效统计实体对象 * 员工绩效统计实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-11 * @date 2023-07-13
*/ */
@Data @Data
public class StaffPerformStatEntity extends StaffPerformStatVo { public class StaffPerformStatEntity extends StaffPerformStatVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -20,28 +25,26 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -20,28 +25,26 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
/** /**
* 部门id号 * 部门id号
*/ */
private Long deptId; private Long staffId;
/** /**
* 部门名称 * 部门名称
*/ */
private String deptName; private String staffName;
/** /**
* 员工绩效总分数 * 员工绩效总分数
*/ */
@Excel(name = "员工绩效总分数") @Excel(name = "员工绩效总分数")
private BigDecimal totalScore; private BigDecimal totalScore;
/** /**
* 备注 * 员工绩效加分总分数汇总
*/
private String remark;
/**
* 年
*/ */
private Integer year; @Excel(name = "员工绩效加分总分数汇总")
private BigDecimal totalAddScore;
/** /**
* 月 * 员工绩效减分总分数汇总
*/ */
private Integer month; @Excel(name = "员工绩效减分总分数汇总")
private BigDecimal totalSubScore;
/** /**
* 考勤绩效指标增加分数 * 考勤绩效指标增加分数
*/ */
...@@ -58,6 +61,14 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -58,6 +61,14 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
* 评价绩效指标扣减分数 * 评价绩效指标扣减分数
*/ */
private BigDecimal assessScoreSub; private BigDecimal assessScoreSub;
/**
* 投诉绩效指标增加分数
*/
private BigDecimal complainScoreAdd;
/**
* 投诉绩效指标扣减分数
*/
private BigDecimal complainScoreSub;
/** /**
* 办件绩效指标增加分数 * 办件绩效指标增加分数
*/ */
...@@ -83,31 +94,27 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -83,31 +94,27 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
*/ */
private BigDecimal otherScoreSub; private BigDecimal otherScoreSub;
/** /**
* 日 * 备注
*/
private Integer day;
/**
* 员工绩效加分总分数汇总
*/ */
@Excel(name = "员工绩效加分总分数汇总") private String remark;
private BigDecimal totalAddScore;
/** /**
* 员工绩效减分总分数汇总 * 年
*/ */
@Excel(name = "员工绩效减分总分数汇总") private Integer year;
private BigDecimal totalSubScore;
/** /**
* 投诉绩效指标增加分数 * 月
*/ */
private BigDecimal complainScoreAdd; private Integer month;
/** /**
* 投诉绩效指标扣减分数 * 日
*/ */
private BigDecimal complainScoreSub; private Integer day;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
} }
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == null) return false; if (obj == null) return false;
...@@ -120,19 +127,17 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -120,19 +127,17 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
return false; return false;
} }
public void initAttrValue(){ public void initAttrValue() {
this.deptId = 0L; this.staffId = 0L;
this.deptName = ""; this.staffName = "";
this.totalScore = new BigDecimal(0); this.totalScore = new BigDecimal(0);
this.remark = ""; this.totalAddScore = new BigDecimal(0);
this.year = -1;
this.month = -1; this.totalSubScore = new BigDecimal(0);
this.attendScoreAdd = new BigDecimal(0); this.attendScoreAdd = new BigDecimal(0);
...@@ -142,6 +147,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -142,6 +147,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
this.assessScoreSub = new BigDecimal(0); this.assessScoreSub = new BigDecimal(0);
this.complainScoreAdd = new BigDecimal(0);
this.complainScoreSub = new BigDecimal(0);
this.workScoreAdd = new BigDecimal(0); this.workScoreAdd = new BigDecimal(0);
this.workScoreSub = new BigDecimal(0); this.workScoreSub = new BigDecimal(0);
...@@ -154,14 +163,12 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -154,14 +163,12 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
this.otherScoreSub = new BigDecimal(0); this.otherScoreSub = new BigDecimal(0);
this.day = -1; this.remark = "";
this.totalAddScore = new BigDecimal(0);
this.totalSubScore = new BigDecimal(0); this.year = DateUtil.year(new Date());
this.complainScoreAdd = new BigDecimal(0); this.month = DateUtil.month(new Date()) + 1;
this.complainScoreSub = new BigDecimal(0); this.day = DateUtil.dayOfMonth(new Date());
} }
} }
\ No newline at end of file
...@@ -4,11 +4,11 @@ import java.math.BigDecimal; ...@@ -4,11 +4,11 @@ import java.math.BigDecimal;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity; import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
/** /**
* 员工绩效统计查询对象 * 员工绩效统计查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-11 * @date 2023-07-13
*/ */
public class StaffPerformStatQuery extends StaffPerformStatEntity { public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** 开始 主键ID,主键,自增长 */ /** 开始 主键ID,主键,自增长 */
private Long idStart; private Long idStart;
...@@ -26,25 +26,25 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -26,25 +26,25 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
private List <Long> idNotList; private List <Long> idNotList;
/** 开始 部门id号 */ /** 开始 部门id号 */
private Long deptIdStart; private Long staffIdStart;
/** 结束 部门id号 */ /** 结束 部门id号 */
private Long deptIdEnd; private Long staffIdEnd;
/** 增加 部门id号 */ /** 增加 部门id号 */
private Long deptIdIncrement; private Long staffIdIncrement;
/** 部门id号列表 */ /** 部门id号列表 */
private List <Long> deptIdList; private List <Long> staffIdList;
/** 部门id号排除列表 */ /** 部门id号排除列表 */
private List <Long> deptIdNotList; private List <Long> staffIdNotList;
/** 部门名称 */ /** 部门名称 */
private List<String> deptNameList; private List<String> staffNameList;
/** 部门名称排除列表 */ /** 部门名称排除列表 */
private List <String> deptNameNotList; private List <String> staffNameNotList;
/** 开始 员工绩效总分数 */ /** 开始 员工绩效总分数 */
private BigDecimal totalScoreStart; private BigDecimal totalScoreStart;
...@@ -60,82 +60,35 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -60,82 +60,35 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** 员工绩效总分数排除列表 */ /** 员工绩效总分数排除列表 */
private List <BigDecimal> totalScoreNotList; private List <BigDecimal> totalScoreNotList;
/** 备注 */ /** 开始 员工绩效加分总分数汇总 */
private List<String> remarkList; private BigDecimal totalAddScoreStart;
/** 备注排除列表 */
private List <String> remarkNotList;
/** 开始 年 */
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;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 创建人id */
private Long createUserIdStart;
/** 结束 创建人id */
private Long createUserIdEnd;
/** 增加 创建人id */
private Long createUserIdIncrement;
/** 创建人id列表 */ /** 结束 员工绩效加分总分数汇总 */
private List <Long> createUserIdList; private BigDecimal totalAddScoreEnd;
/** 创建人id排除列表 */ /** 增加 员工绩效加分总分数汇总 */
private List <Long> createUserIdNotList; private BigDecimal totalAddScoreIncrement;
/** 开始 更新时间 */ /** 员工绩效加分总分数汇总列表 */
private String updateTimeStart; private List <BigDecimal> totalAddScoreList;
/** 结束 更新时间 */ /** 员工绩效加分总分数汇总排除列表 */
private String updateTimeEnd; private List <BigDecimal> totalAddScoreNotList;
/** 开始 更新人id */ /** 开始 员工绩效减分总分数汇总 */
private Long updateUserIdStart; private BigDecimal totalSubScoreStart;
/** 结束 更新人id */ /** 结束 员工绩效减分总分数汇总 */
private Long updateUserIdEnd; private BigDecimal totalSubScoreEnd;
/** 增加 更新人id */ /** 增加 员工绩效减分总分数汇总 */
private Long updateUserIdIncrement; private BigDecimal totalSubScoreIncrement;
/** 更新人id列表 */ /** 员工绩效减分总分数汇总列表 */
private List <Long> updateUserIdList; private List <BigDecimal> totalSubScoreList;
/** 更新人id排除列表 */ /** 员工绩效减分总分数汇总排除列表 */
private List <Long> updateUserIdNotList; private List <BigDecimal> totalSubScoreNotList;
/** 开始 考勤绩效指标增加分数 */ /** 开始 考勤绩效指标增加分数 */
private BigDecimal attendScoreAddStart; private BigDecimal attendScoreAddStart;
...@@ -197,6 +150,36 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -197,6 +150,36 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** 评价绩效指标扣减分数排除列表 */ /** 评价绩效指标扣减分数排除列表 */
private List <BigDecimal> assessScoreSubNotList; private List <BigDecimal> assessScoreSubNotList;
/** 开始 投诉绩效指标增加分数 */
private BigDecimal complainScoreAddStart;
/** 结束 投诉绩效指标增加分数 */
private BigDecimal complainScoreAddEnd;
/** 增加 投诉绩效指标增加分数 */
private BigDecimal complainScoreAddIncrement;
/** 投诉绩效指标增加分数列表 */
private List <BigDecimal> complainScoreAddList;
/** 投诉绩效指标增加分数排除列表 */
private List <BigDecimal> complainScoreAddNotList;
/** 开始 投诉绩效指标扣减分数 */
private BigDecimal complainScoreSubStart;
/** 结束 投诉绩效指标扣减分数 */
private BigDecimal complainScoreSubEnd;
/** 增加 投诉绩效指标扣减分数 */
private BigDecimal complainScoreSubIncrement;
/** 投诉绩效指标扣减分数列表 */
private List <BigDecimal> complainScoreSubList;
/** 投诉绩效指标扣减分数排除列表 */
private List <BigDecimal> complainScoreSubNotList;
/** 开始 办件绩效指标增加分数 */ /** 开始 办件绩效指标增加分数 */
private BigDecimal workScoreAddStart; private BigDecimal workScoreAddStart;
...@@ -287,6 +270,41 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -287,6 +270,41 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** 其它绩效指标扣减分数排除列表 */ /** 其它绩效指标扣减分数排除列表 */
private List <BigDecimal> otherScoreSubNotList; private List <BigDecimal> otherScoreSubNotList;
/** 备注 */
private List<String> remarkList;
/** 备注排除列表 */
private List <String> remarkNotList;
/** 开始 年 */
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;
/** 开始 日 */ /** 开始 日 */
private Integer dayStart; private Integer dayStart;
...@@ -302,65 +320,47 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -302,65 +320,47 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** 日排除列表 */ /** 日排除列表 */
private List <Integer> dayNotList; private List <Integer> dayNotList;
/** 开始 员工绩效加分总分数汇总 */ /** 开始 创建时间 */
private BigDecimal totalAddScoreStart; private String createTimeStart;
/** 结束 员工绩效加分总分数汇总 */
private BigDecimal totalAddScoreEnd;
/** 增加 员工绩效加分总分数汇总 */
private BigDecimal totalAddScoreIncrement;
/** 员工绩效加分总分数汇总列表 */
private List <BigDecimal> totalAddScoreList;
/** 员工绩效加分总分数汇总排除列表 */
private List <BigDecimal> totalAddScoreNotList;
/** 开始 员工绩效减分总分数汇总 */
private BigDecimal totalSubScoreStart;
/** 结束 员工绩效减分总分数汇总 */
private BigDecimal totalSubScoreEnd;
/** 增加 员工绩效减分总分数汇总 */ /** 结束 创建时间 */
private BigDecimal totalSubScoreIncrement; private String createTimeEnd;
/** 员工绩效减分总分数汇总列表 */ /** 开始 创建人id */
private List <BigDecimal> totalSubScoreList; private Long createUserIdStart;
/** 员工绩效减分总分数汇总排除列表 */ /** 结束 创建人id */
private List <BigDecimal> totalSubScoreNotList; private Long createUserIdEnd;
/** 开始 投诉绩效指标增加分数 */ /** 增加 创建人id */
private BigDecimal complainScoreAddStart; private Long createUserIdIncrement;
/** 结束 投诉绩效指标增加分数 */ /** 创建人id列表 */
private BigDecimal complainScoreAddEnd; private List <Long> createUserIdList;
/** 增加 投诉绩效指标增加分数 */ /** 创建人id排除列表 */
private BigDecimal complainScoreAddIncrement; private List <Long> createUserIdNotList;
/** 投诉绩效指标增加分数列表 */ /** 开始 更新时间 */
private List <BigDecimal> complainScoreAddList; private String updateTimeStart;
/** 投诉绩效指标增加分数排除列表 */ /** 结束 更新时间 */
private List <BigDecimal> complainScoreAddNotList; private String updateTimeEnd;
/** 开始 投诉绩效指标扣减分数 */ /** 开始 更新人id */
private BigDecimal complainScoreSubStart; private Long updateUserIdStart;
/** 结束 投诉绩效指标扣减分数 */ /** 结束 更新人id */
private BigDecimal complainScoreSubEnd; private Long updateUserIdEnd;
/** 增加 投诉绩效指标扣减分数 */ /** 增加 更新人id */
private BigDecimal complainScoreSubIncrement; private Long updateUserIdIncrement;
/** 投诉绩效指标扣减分数列表 */ /** 更新人id列表 */
private List <BigDecimal> complainScoreSubList; private List <Long> updateUserIdList;
/** 投诉绩效指标扣减分数排除列表 */ /** 更新人id排除列表 */
private List <BigDecimal> complainScoreSubNotList; private List <Long> updateUserIdNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */ /** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<StaffPerformStatQuery> orConditionList; private List<StaffPerformStatQuery> orConditionList;
...@@ -453,115 +453,115 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -453,115 +453,115 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 获取 开始 部门id号 * 获取 开始 部门id号
* @return deptIdStart * @return staffIdStart
*/ */
public Long getDeptIdStart(){ public Long getStaffIdStart(){
return this.deptIdStart; return this.staffIdStart;
} }
/** /**
* 设置 开始 部门id号 * 设置 开始 部门id号
* @param deptIdStart * @param staffIdStart
*/ */
public void setDeptIdStart(Long deptIdStart){ public void setStaffIdStart(Long staffIdStart){
this.deptIdStart = deptIdStart; this.staffIdStart = staffIdStart;
} }
/** /**
* 获取 结束 部门id号 * 获取 结束 部门id号
* @return $deptIdEnd * @return $staffIdEnd
*/ */
public Long getDeptIdEnd(){ public Long getStaffIdEnd(){
return this.deptIdEnd; return this.staffIdEnd;
} }
/** /**
* 设置 结束 部门id号 * 设置 结束 部门id号
* @param deptIdEnd * @param staffIdEnd
*/ */
public void setDeptIdEnd(Long deptIdEnd){ public void setStaffIdEnd(Long staffIdEnd){
this.deptIdEnd = deptIdEnd; this.staffIdEnd = staffIdEnd;
} }
/** /**
* 获取 增加 部门id号 * 获取 增加 部门id号
* @return deptIdIncrement * @return staffIdIncrement
*/ */
public Long getDeptIdIncrement(){ public Long getStaffIdIncrement(){
return this.deptIdIncrement; return this.staffIdIncrement;
} }
/** /**
* 设置 增加 部门id号 * 设置 增加 部门id号
* @param deptIdIncrement * @param staffIdIncrement
*/ */
public void setDeptIdIncrement(Long deptIdIncrement){ public void setStaffIdIncrement(Long staffIdIncrement){
this.deptIdIncrement = deptIdIncrement; this.staffIdIncrement = staffIdIncrement;
} }
/** /**
* 获取 部门id号 * 获取 部门id号
* @return deptIdList * @return staffIdList
*/ */
public List<Long> getDeptIdList(){ public List<Long> getStaffIdList(){
return this.deptIdList; return this.staffIdList;
} }
/** /**
* 设置 部门id号 * 设置 部门id号
* @param deptIdList * @param staffIdList
*/ */
public void setDeptIdList(List<Long> deptIdList){ public void setStaffIdList(List<Long> staffIdList){
this.deptIdList = deptIdList; this.staffIdList = staffIdList;
} }
/** /**
* 获取 部门id号 * 获取 部门id号
* @return deptIdNotList * @return staffIdNotList
*/ */
public List<Long> getDeptIdNotList(){ public List<Long> getStaffIdNotList(){
return this.deptIdNotList; return this.staffIdNotList;
} }
/** /**
* 设置 部门id号 * 设置 部门id号
* @param deptIdNotList * @param staffIdNotList
*/ */
public void setDeptIdNotList(List<Long> deptIdNotList){ public void setStaffIdNotList(List<Long> staffIdNotList){
this.deptIdNotList = deptIdNotList; this.staffIdNotList = staffIdNotList;
} }
/** /**
* 获取 部门名称 * 获取 部门名称
* @return deptNameList * @return staffNameList
*/ */
public List<String> getDeptNameList(){ public List<String> getStaffNameList(){
return this.deptNameList; return this.staffNameList;
} }
/** /**
* 设置 部门名称 * 设置 部门名称
* @param deptNameList * @param staffNameList
*/ */
public void setDeptNameList(List<String> deptNameList){ public void setStaffNameList(List<String> staffNameList){
this.deptNameList = deptNameList; this.staffNameList = staffNameList;
} }
/** /**
* 获取 部门名称 * 获取 部门名称
* @return deptNameNotList * @return staffNameNotList
*/ */
public List<String> getDeptNameNotList(){ public List<String> getStaffNameNotList(){
return this.deptNameNotList; return this.staffNameNotList;
} }
/** /**
* 设置 部门名称 * 设置 部门名称
* @param deptNameNotList * @param staffNameNotList
*/ */
public void setDeptNameNotList(List<String> deptNameNotList){ public void setStaffNameNotList(List<String> staffNameNotList){
this.deptNameNotList = deptNameNotList; this.staffNameNotList = staffNameNotList;
} }
/** /**
...@@ -646,422 +646,164 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -646,422 +646,164 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 获取 备注 * 获取 开始 员工绩效加分总分数汇总
* @return remarkList * @return totalAddScoreStart
*/ */
public List<String> getRemarkList(){ public BigDecimal getTotalAddScoreStart(){
return this.remarkList; return this.totalAddScoreStart;
} }
/** /**
* 设置 备注 * 设置 开始 员工绩效加分总分数汇总
* @param remarkList * @param totalAddScoreStart
*/ */
public void setRemarkList(List<String> remarkList){ public void setTotalAddScoreStart(BigDecimal totalAddScoreStart){
this.remarkList = remarkList; this.totalAddScoreStart = totalAddScoreStart;
} }
/** /**
* 获取 备注 * 获取 结束 员工绩效加分总分数汇总
* @return remarkNotList * @return $totalAddScoreEnd
*/ */
public List<String> getRemarkNotList(){ public BigDecimal getTotalAddScoreEnd(){
return this.remarkNotList; return this.totalAddScoreEnd;
} }
/** /**
* 设置 备注 * 设置 结束 员工绩效加分总分数汇总
* @param remarkNotList * @param totalAddScoreEnd
*/ */
public void setRemarkNotList(List<String> remarkNotList){ public void setTotalAddScoreEnd(BigDecimal totalAddScoreEnd){
this.remarkNotList = remarkNotList; this.totalAddScoreEnd = totalAddScoreEnd;
}
/**
* 获取 开始 年
* @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;
}
/**
* 获取 开始 创建时间
* @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;
}
/**
* 获取 开始 创建人id
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建人id
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建人id
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建人id
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建人id
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建人id
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建人id
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建人id
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
} }
/** /**
* 获取 创建人id * 获取 增加 员工绩效加分总分数汇总
* @return createUserIdNotList * @return totalAddScoreIncrement
*/ */
public List<Long> getCreateUserIdNotList(){ public BigDecimal getTotalAddScoreIncrement(){
return this.createUserIdNotList; return this.totalAddScoreIncrement;
} }
/** /**
* 设置 创建人id * 设置 增加 员工绩效加分总分数汇总
* @param createUserIdNotList * @param totalAddScoreIncrement
*/ */
public void setCreateUserIdNotList(List<Long> createUserIdNotList){ public void setTotalAddScoreIncrement(BigDecimal totalAddScoreIncrement){
this.createUserIdNotList = createUserIdNotList; this.totalAddScoreIncrement = totalAddScoreIncrement;
} }
/** /**
* 获取 开始 更新时间 * 获取 员工绩效加分总分数汇总
* @return updateTimeStart * @return totalAddScoreList
*/ */
public String getUpdateTimeStart(){ public List<BigDecimal> getTotalAddScoreList(){
return this.updateTimeStart; return this.totalAddScoreList;
} }
/** /**
* 设置 开始 更新时间 * 设置 员工绩效加分总分数汇总
* @param updateTimeStart * @param totalAddScoreList
*/ */
public void setUpdateTimeStart(String updateTimeStart){ public void setTotalAddScoreList(List<BigDecimal> totalAddScoreList){
this.updateTimeStart = updateTimeStart; this.totalAddScoreList = totalAddScoreList;
} }
/** /**
* 获取 结束 更新时间 * 获取 员工绩效加分总分数汇总
* @return updateTimeEnd * @return totalAddScoreNotList
*/ */
public String getUpdateTimeEnd(){ public List<BigDecimal> getTotalAddScoreNotList(){
return this.updateTimeEnd; return this.totalAddScoreNotList;
} }
/** /**
* 设置 结束 更新时间 * 设置 员工绩效加分总分数汇总
* @param updateTimeEnd * @param totalAddScoreNotList
*/ */
public void setUpdateTimeEnd(String updateTimeEnd){ public void setTotalAddScoreNotList(List<BigDecimal> totalAddScoreNotList){
this.updateTimeEnd = updateTimeEnd; this.totalAddScoreNotList = totalAddScoreNotList;
} }
/** /**
* 获取 开始 更新人id * 获取 开始 员工绩效减分总分数汇总
* @return updateUserIdStart * @return totalSubScoreStart
*/ */
public Long getUpdateUserIdStart(){ public BigDecimal getTotalSubScoreStart(){
return this.updateUserIdStart; return this.totalSubScoreStart;
} }
/** /**
* 设置 开始 更新人id * 设置 开始 员工绩效减分总分数汇总
* @param updateUserIdStart * @param totalSubScoreStart
*/ */
public void setUpdateUserIdStart(Long updateUserIdStart){ public void setTotalSubScoreStart(BigDecimal totalSubScoreStart){
this.updateUserIdStart = updateUserIdStart; this.totalSubScoreStart = totalSubScoreStart;
} }
/** /**
* 获取 结束 更新人id * 获取 结束 员工绩效减分总分数汇总
* @return $updateUserIdEnd * @return $totalSubScoreEnd
*/ */
public Long getUpdateUserIdEnd(){ public BigDecimal getTotalSubScoreEnd(){
return this.updateUserIdEnd; return this.totalSubScoreEnd;
} }
/** /**
* 设置 结束 更新人id * 设置 结束 员工绩效减分总分数汇总
* @param updateUserIdEnd * @param totalSubScoreEnd
*/ */
public void setUpdateUserIdEnd(Long updateUserIdEnd){ public void setTotalSubScoreEnd(BigDecimal totalSubScoreEnd){
this.updateUserIdEnd = updateUserIdEnd; this.totalSubScoreEnd = totalSubScoreEnd;
} }
/** /**
* 获取 增加 更新人id * 获取 增加 员工绩效减分总分数汇总
* @return updateUserIdIncrement * @return totalSubScoreIncrement
*/ */
public Long getUpdateUserIdIncrement(){ public BigDecimal getTotalSubScoreIncrement(){
return this.updateUserIdIncrement; return this.totalSubScoreIncrement;
} }
/** /**
* 设置 增加 更新人id * 设置 增加 员工绩效减分总分数汇总
* @param updateUserIdIncrement * @param totalSubScoreIncrement
*/ */
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){ public void setTotalSubScoreIncrement(BigDecimal totalSubScoreIncrement){
this.updateUserIdIncrement = updateUserIdIncrement; this.totalSubScoreIncrement = totalSubScoreIncrement;
} }
/** /**
* 获取 更新人id * 获取 员工绩效减分总分数汇总
* @return updateUserIdList * @return totalSubScoreList
*/ */
public List<Long> getUpdateUserIdList(){ public List<BigDecimal> getTotalSubScoreList(){
return this.updateUserIdList; return this.totalSubScoreList;
} }
/** /**
* 设置 更新人id * 设置 员工绩效减分总分数汇总
* @param updateUserIdList * @param totalSubScoreList
*/ */
public void setUpdateUserIdList(List<Long> updateUserIdList){ public void setTotalSubScoreList(List<BigDecimal> totalSubScoreList){
this.updateUserIdList = updateUserIdList; this.totalSubScoreList = totalSubScoreList;
} }
/** /**
* 获取 更新人id * 获取 员工绩效减分总分数汇总
* @return updateUserIdNotList * @return totalSubScoreNotList
*/ */
public List<Long> getUpdateUserIdNotList(){ public List<BigDecimal> getTotalSubScoreNotList(){
return this.updateUserIdNotList; return this.totalSubScoreNotList;
} }
/** /**
* 设置 更新人id * 设置 员工绩效减分总分数汇总
* @param updateUserIdNotList * @param totalSubScoreNotList
*/ */
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){ public void setTotalSubScoreNotList(List<BigDecimal> totalSubScoreNotList){
this.updateUserIdNotList = updateUserIdNotList; this.totalSubScoreNotList = totalSubScoreNotList;
} }
...@@ -1325,67 +1067,229 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -1325,67 +1067,229 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
} }
/** /**
* 获取 结束 评价绩效指标扣减分数 * 获取 结束 评价绩效指标扣减分数
* @return $assessScoreSubEnd * @return $assessScoreSubEnd
*/
public BigDecimal getAssessScoreSubEnd(){
return this.assessScoreSubEnd;
}
/**
* 设置 结束 评价绩效指标扣减分数
* @param assessScoreSubEnd
*/
public void setAssessScoreSubEnd(BigDecimal assessScoreSubEnd){
this.assessScoreSubEnd = assessScoreSubEnd;
}
/**
* 获取 增加 评价绩效指标扣减分数
* @return assessScoreSubIncrement
*/
public BigDecimal getAssessScoreSubIncrement(){
return this.assessScoreSubIncrement;
}
/**
* 设置 增加 评价绩效指标扣减分数
* @param assessScoreSubIncrement
*/
public void setAssessScoreSubIncrement(BigDecimal assessScoreSubIncrement){
this.assessScoreSubIncrement = assessScoreSubIncrement;
}
/**
* 获取 评价绩效指标扣减分数
* @return assessScoreSubList
*/
public List<BigDecimal> getAssessScoreSubList(){
return this.assessScoreSubList;
}
/**
* 设置 评价绩效指标扣减分数
* @param assessScoreSubList
*/
public void setAssessScoreSubList(List<BigDecimal> assessScoreSubList){
this.assessScoreSubList = assessScoreSubList;
}
/**
* 获取 评价绩效指标扣减分数
* @return assessScoreSubNotList
*/
public List<BigDecimal> getAssessScoreSubNotList(){
return this.assessScoreSubNotList;
}
/**
* 设置 评价绩效指标扣减分数
* @param assessScoreSubNotList
*/
public void setAssessScoreSubNotList(List<BigDecimal> assessScoreSubNotList){
this.assessScoreSubNotList = assessScoreSubNotList;
}
/**
* 获取 开始 投诉绩效指标增加分数
* @return complainScoreAddStart
*/
public BigDecimal getComplainScoreAddStart(){
return this.complainScoreAddStart;
}
/**
* 设置 开始 投诉绩效指标增加分数
* @param complainScoreAddStart
*/
public void setComplainScoreAddStart(BigDecimal complainScoreAddStart){
this.complainScoreAddStart = complainScoreAddStart;
}
/**
* 获取 结束 投诉绩效指标增加分数
* @return $complainScoreAddEnd
*/
public BigDecimal getComplainScoreAddEnd(){
return this.complainScoreAddEnd;
}
/**
* 设置 结束 投诉绩效指标增加分数
* @param complainScoreAddEnd
*/
public void setComplainScoreAddEnd(BigDecimal complainScoreAddEnd){
this.complainScoreAddEnd = complainScoreAddEnd;
}
/**
* 获取 增加 投诉绩效指标增加分数
* @return complainScoreAddIncrement
*/
public BigDecimal getComplainScoreAddIncrement(){
return this.complainScoreAddIncrement;
}
/**
* 设置 增加 投诉绩效指标增加分数
* @param complainScoreAddIncrement
*/
public void setComplainScoreAddIncrement(BigDecimal complainScoreAddIncrement){
this.complainScoreAddIncrement = complainScoreAddIncrement;
}
/**
* 获取 投诉绩效指标增加分数
* @return complainScoreAddList
*/
public List<BigDecimal> getComplainScoreAddList(){
return this.complainScoreAddList;
}
/**
* 设置 投诉绩效指标增加分数
* @param complainScoreAddList
*/
public void setComplainScoreAddList(List<BigDecimal> complainScoreAddList){
this.complainScoreAddList = complainScoreAddList;
}
/**
* 获取 投诉绩效指标增加分数
* @return complainScoreAddNotList
*/
public List<BigDecimal> getComplainScoreAddNotList(){
return this.complainScoreAddNotList;
}
/**
* 设置 投诉绩效指标增加分数
* @param complainScoreAddNotList
*/
public void setComplainScoreAddNotList(List<BigDecimal> complainScoreAddNotList){
this.complainScoreAddNotList = complainScoreAddNotList;
}
/**
* 获取 开始 投诉绩效指标扣减分数
* @return complainScoreSubStart
*/
public BigDecimal getComplainScoreSubStart(){
return this.complainScoreSubStart;
}
/**
* 设置 开始 投诉绩效指标扣减分数
* @param complainScoreSubStart
*/
public void setComplainScoreSubStart(BigDecimal complainScoreSubStart){
this.complainScoreSubStart = complainScoreSubStart;
}
/**
* 获取 结束 投诉绩效指标扣减分数
* @return $complainScoreSubEnd
*/ */
public BigDecimal getAssessScoreSubEnd(){ public BigDecimal getComplainScoreSubEnd(){
return this.assessScoreSubEnd; return this.complainScoreSubEnd;
} }
/** /**
* 设置 结束 评价绩效指标扣减分数 * 设置 结束 投诉绩效指标扣减分数
* @param assessScoreSubEnd * @param complainScoreSubEnd
*/ */
public void setAssessScoreSubEnd(BigDecimal assessScoreSubEnd){ public void setComplainScoreSubEnd(BigDecimal complainScoreSubEnd){
this.assessScoreSubEnd = assessScoreSubEnd; this.complainScoreSubEnd = complainScoreSubEnd;
} }
/** /**
* 获取 增加 评价绩效指标扣减分数 * 获取 增加 投诉绩效指标扣减分数
* @return assessScoreSubIncrement * @return complainScoreSubIncrement
*/ */
public BigDecimal getAssessScoreSubIncrement(){ public BigDecimal getComplainScoreSubIncrement(){
return this.assessScoreSubIncrement; return this.complainScoreSubIncrement;
} }
/** /**
* 设置 增加 评价绩效指标扣减分数 * 设置 增加 投诉绩效指标扣减分数
* @param assessScoreSubIncrement * @param complainScoreSubIncrement
*/ */
public void setAssessScoreSubIncrement(BigDecimal assessScoreSubIncrement){ public void setComplainScoreSubIncrement(BigDecimal complainScoreSubIncrement){
this.assessScoreSubIncrement = assessScoreSubIncrement; this.complainScoreSubIncrement = complainScoreSubIncrement;
} }
/** /**
* 获取 评价绩效指标扣减分数 * 获取 投诉绩效指标扣减分数
* @return assessScoreSubList * @return complainScoreSubList
*/ */
public List<BigDecimal> getAssessScoreSubList(){ public List<BigDecimal> getComplainScoreSubList(){
return this.assessScoreSubList; return this.complainScoreSubList;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 投诉绩效指标扣减分数
* @param assessScoreSubList * @param complainScoreSubList
*/ */
public void setAssessScoreSubList(List<BigDecimal> assessScoreSubList){ public void setComplainScoreSubList(List<BigDecimal> complainScoreSubList){
this.assessScoreSubList = assessScoreSubList; this.complainScoreSubList = complainScoreSubList;
} }
/** /**
* 获取 评价绩效指标扣减分数 * 获取 投诉绩效指标扣减分数
* @return assessScoreSubNotList * @return complainScoreSubNotList
*/ */
public List<BigDecimal> getAssessScoreSubNotList(){ public List<BigDecimal> getComplainScoreSubNotList(){
return this.assessScoreSubNotList; return this.complainScoreSubNotList;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 投诉绩效指标扣减分数
* @param assessScoreSubNotList * @param complainScoreSubNotList
*/ */
public void setAssessScoreSubNotList(List<BigDecimal> assessScoreSubNotList){ public void setComplainScoreSubNotList(List<BigDecimal> complainScoreSubNotList){
this.assessScoreSubNotList = assessScoreSubNotList; this.complainScoreSubNotList = complainScoreSubNotList;
} }
...@@ -1822,56 +1726,250 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -1822,56 +1726,250 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
* 设置 结束 其它绩效指标扣减分数 * 设置 结束 其它绩效指标扣减分数
* @param otherScoreSubEnd * @param otherScoreSubEnd
*/ */
public void setOtherScoreSubEnd(BigDecimal otherScoreSubEnd){ public void setOtherScoreSubEnd(BigDecimal otherScoreSubEnd){
this.otherScoreSubEnd = otherScoreSubEnd; this.otherScoreSubEnd = otherScoreSubEnd;
}
/**
* 获取 增加 其它绩效指标扣减分数
* @return otherScoreSubIncrement
*/
public BigDecimal getOtherScoreSubIncrement(){
return this.otherScoreSubIncrement;
}
/**
* 设置 增加 其它绩效指标扣减分数
* @param otherScoreSubIncrement
*/
public void setOtherScoreSubIncrement(BigDecimal otherScoreSubIncrement){
this.otherScoreSubIncrement = otherScoreSubIncrement;
}
/**
* 获取 其它绩效指标扣减分数
* @return otherScoreSubList
*/
public List<BigDecimal> getOtherScoreSubList(){
return this.otherScoreSubList;
}
/**
* 设置 其它绩效指标扣减分数
* @param otherScoreSubList
*/
public void setOtherScoreSubList(List<BigDecimal> otherScoreSubList){
this.otherScoreSubList = otherScoreSubList;
}
/**
* 获取 其它绩效指标扣减分数
* @return otherScoreSubNotList
*/
public List<BigDecimal> getOtherScoreSubNotList(){
return this.otherScoreSubNotList;
}
/**
* 设置 其它绩效指标扣减分数
* @param otherScoreSubNotList
*/
public void setOtherScoreSubNotList(List<BigDecimal> otherScoreSubNotList){
this.otherScoreSubNotList = otherScoreSubNotList;
}
/**
* 获取 备注
* @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 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 otherScoreSubIncrement * @return monthIncrement
*/ */
public BigDecimal getOtherScoreSubIncrement(){ public Integer getMonthIncrement(){
return this.otherScoreSubIncrement; return this.monthIncrement;
} }
/** /**
* 设置 增加 其它绩效指标扣减分数 * 设置 增加 月
* @param otherScoreSubIncrement * @param monthIncrement
*/ */
public void setOtherScoreSubIncrement(BigDecimal otherScoreSubIncrement){ public void setMonthIncrement(Integer monthIncrement){
this.otherScoreSubIncrement = otherScoreSubIncrement; this.monthIncrement = monthIncrement;
} }
/** /**
* 获取 其它绩效指标扣减分数 * 获取 月
* @return otherScoreSubList * @return monthList
*/ */
public List<BigDecimal> getOtherScoreSubList(){ public List<Integer> getMonthList(){
return this.otherScoreSubList; return this.monthList;
} }
/** /**
* 设置 其它绩效指标扣减分数 * 设置 月
* @param otherScoreSubList * @param monthList
*/ */
public void setOtherScoreSubList(List<BigDecimal> otherScoreSubList){ public void setMonthList(List<Integer> monthList){
this.otherScoreSubList = otherScoreSubList; this.monthList = monthList;
} }
/** /**
* 获取 其它绩效指标扣减分数 * 获取 月
* @return otherScoreSubNotList * @return monthNotList
*/ */
public List<BigDecimal> getOtherScoreSubNotList(){ public List<Integer> getMonthNotList(){
return this.otherScoreSubNotList; return this.monthNotList;
} }
/** /**
* 设置 其它绩效指标扣减分数 * 设置 月
* @param otherScoreSubNotList * @param monthNotList
*/ */
public void setOtherScoreSubNotList(List<BigDecimal> otherScoreSubNotList){ public void setMonthNotList(List<Integer> monthNotList){
this.otherScoreSubNotList = otherScoreSubNotList; this.monthNotList = monthNotList;
} }
...@@ -1957,326 +2055,228 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -1957,326 +2055,228 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 获取 开始 员工绩效加分总分数汇总 * 获取 开始 创建时间
* @return totalAddScoreStart * @return createTimeStart
*/
public BigDecimal getTotalAddScoreStart(){
return this.totalAddScoreStart;
}
/**
* 设置 开始 员工绩效加分总分数汇总
* @param totalAddScoreStart
*/
public void setTotalAddScoreStart(BigDecimal totalAddScoreStart){
this.totalAddScoreStart = totalAddScoreStart;
}
/**
* 获取 结束 员工绩效加分总分数汇总
* @return $totalAddScoreEnd
*/
public BigDecimal getTotalAddScoreEnd(){
return this.totalAddScoreEnd;
}
/**
* 设置 结束 员工绩效加分总分数汇总
* @param totalAddScoreEnd
*/
public void setTotalAddScoreEnd(BigDecimal totalAddScoreEnd){
this.totalAddScoreEnd = totalAddScoreEnd;
}
/**
* 获取 增加 员工绩效加分总分数汇总
* @return totalAddScoreIncrement
*/
public BigDecimal getTotalAddScoreIncrement(){
return this.totalAddScoreIncrement;
}
/**
* 设置 增加 员工绩效加分总分数汇总
* @param totalAddScoreIncrement
*/
public void setTotalAddScoreIncrement(BigDecimal totalAddScoreIncrement){
this.totalAddScoreIncrement = totalAddScoreIncrement;
}
/**
* 获取 员工绩效加分总分数汇总
* @return totalAddScoreList
*/
public List<BigDecimal> getTotalAddScoreList(){
return this.totalAddScoreList;
}
/**
* 设置 员工绩效加分总分数汇总
* @param totalAddScoreList
*/
public void setTotalAddScoreList(List<BigDecimal> totalAddScoreList){
this.totalAddScoreList = totalAddScoreList;
}
/**
* 获取 员工绩效加分总分数汇总
* @return totalAddScoreNotList
*/
public List<BigDecimal> getTotalAddScoreNotList(){
return this.totalAddScoreNotList;
}
/**
* 设置 员工绩效加分总分数汇总
* @param totalAddScoreNotList
*/
public void setTotalAddScoreNotList(List<BigDecimal> totalAddScoreNotList){
this.totalAddScoreNotList = totalAddScoreNotList;
}
/**
* 获取 开始 员工绩效减分总分数汇总
* @return totalSubScoreStart
*/
public BigDecimal getTotalSubScoreStart(){
return this.totalSubScoreStart;
}
/**
* 设置 开始 员工绩效减分总分数汇总
* @param totalSubScoreStart
*/
public void setTotalSubScoreStart(BigDecimal totalSubScoreStart){
this.totalSubScoreStart = totalSubScoreStart;
}
/**
* 获取 结束 员工绩效减分总分数汇总
* @return $totalSubScoreEnd
*/
public BigDecimal getTotalSubScoreEnd(){
return this.totalSubScoreEnd;
}
/**
* 设置 结束 员工绩效减分总分数汇总
* @param totalSubScoreEnd
*/ */
public void setTotalSubScoreEnd(BigDecimal totalSubScoreEnd){ public String getCreateTimeStart(){
this.totalSubScoreEnd = totalSubScoreEnd; return this.createTimeStart;
} }
/** /**
* 获取 增加 员工绩效减分总分数汇总 * 设置 开始 创建时间
* @return totalSubScoreIncrement * @param createTimeStart
*/ */
public BigDecimal getTotalSubScoreIncrement(){ public void setCreateTimeStart(String createTimeStart){
return this.totalSubScoreIncrement; this.createTimeStart = createTimeStart;
} }
/** /**
* 设置 增加 员工绩效减分总分数汇总 * 获取 结束 创建时间
* @param totalSubScoreIncrement * @return createTimeEnd
*/ */
public void setTotalSubScoreIncrement(BigDecimal totalSubScoreIncrement){ public String getCreateTimeEnd(){
this.totalSubScoreIncrement = totalSubScoreIncrement; return this.createTimeEnd;
} }
/** /**
* 获取 员工绩效减分总分数汇总 * 设置 结束 创建时间
* @return totalSubScoreList * @param createTimeEnd
*/ */
public List<BigDecimal> getTotalSubScoreList(){ public void setCreateTimeEnd(String createTimeEnd){
return this.totalSubScoreList; this.createTimeEnd = createTimeEnd;
} }
/** /**
* 设置 员工绩效减分总分数汇总 * 获取 开始 创建人id
* @param totalSubScoreList * @return createUserIdStart
*/ */
public void setTotalSubScoreList(List<BigDecimal> totalSubScoreList){ public Long getCreateUserIdStart(){
this.totalSubScoreList = totalSubScoreList; return this.createUserIdStart;
} }
/** /**
* 获取 员工绩效减分总分数汇总 * 设置 开始 创建人id
* @return totalSubScoreNotList * @param createUserIdStart
*/ */
public List<BigDecimal> getTotalSubScoreNotList(){ public void setCreateUserIdStart(Long createUserIdStart){
return this.totalSubScoreNotList; this.createUserIdStart = createUserIdStart;
} }
/** /**
* 设置 员工绩效减分总分数汇总 * 获取 结束 创建人id
* @param totalSubScoreNotList * @return $createUserIdEnd
*/ */
public void setTotalSubScoreNotList(List<BigDecimal> totalSubScoreNotList){ public Long getCreateUserIdEnd(){
this.totalSubScoreNotList = totalSubScoreNotList; return this.createUserIdEnd;
} }
/** /**
* 获取 开始 投诉绩效指标增加分数 * 设置 结束 创建人id
* @return complainScoreAddStart * @param createUserIdEnd
*/ */
public BigDecimal getComplainScoreAddStart(){ public void setCreateUserIdEnd(Long createUserIdEnd){
return this.complainScoreAddStart; this.createUserIdEnd = createUserIdEnd;
} }
/** /**
* 设置 开始 投诉绩效指标增加分数 * 获取 增加 创建人id
* @param complainScoreAddStart * @return createUserIdIncrement
*/ */
public void setComplainScoreAddStart(BigDecimal complainScoreAddStart){ public Long getCreateUserIdIncrement(){
this.complainScoreAddStart = complainScoreAddStart; return this.createUserIdIncrement;
} }
/** /**
* 获取 结束 投诉绩效指标增加分数 * 设置 增加 创建人id
* @return $complainScoreAddEnd * @param createUserIdIncrement
*/ */
public BigDecimal getComplainScoreAddEnd(){ public void setCreateUserIdIncrement(Long createUserIdIncrement){
return this.complainScoreAddEnd; this.createUserIdIncrement = createUserIdIncrement;
} }
/** /**
* 设置 结束 投诉绩效指标增加分数 * 获取 创建人id
* @param complainScoreAddEnd * @return createUserIdList
*/ */
public void setComplainScoreAddEnd(BigDecimal complainScoreAddEnd){ public List<Long> getCreateUserIdList(){
this.complainScoreAddEnd = complainScoreAddEnd; return this.createUserIdList;
} }
/** /**
* 获取 增加 投诉绩效指标增加分数 * 设置 创建人id
* @return complainScoreAddIncrement * @param createUserIdList
*/ */
public BigDecimal getComplainScoreAddIncrement(){ public void setCreateUserIdList(List<Long> createUserIdList){
return this.complainScoreAddIncrement; this.createUserIdList = createUserIdList;
} }
/** /**
* 设置 增加 投诉绩效指标增加分数 * 获取 创建人id
* @param complainScoreAddIncrement * @return createUserIdNotList
*/ */
public void setComplainScoreAddIncrement(BigDecimal complainScoreAddIncrement){ public List<Long> getCreateUserIdNotList(){
this.complainScoreAddIncrement = complainScoreAddIncrement; return this.createUserIdNotList;
} }
/** /**
* 获取 投诉绩效指标增加分数 * 设置 创建人id
* @return complainScoreAddList * @param createUserIdNotList
*/ */
public List<BigDecimal> getComplainScoreAddList(){ public void setCreateUserIdNotList(List<Long> createUserIdNotList){
return this.complainScoreAddList; this.createUserIdNotList = createUserIdNotList;
} }
/** /**
* 设置 投诉绩效指标增加分数 * 获取 开始 更新时间
* @param complainScoreAddList * @return updateTimeStart
*/ */
public void setComplainScoreAddList(List<BigDecimal> complainScoreAddList){ public String getUpdateTimeStart(){
this.complainScoreAddList = complainScoreAddList; return this.updateTimeStart;
} }
/** /**
* 获取 投诉绩效指标增加分数 * 设置 开始 更新时间
* @return complainScoreAddNotList * @param updateTimeStart
*/ */
public List<BigDecimal> getComplainScoreAddNotList(){ public void setUpdateTimeStart(String updateTimeStart){
return this.complainScoreAddNotList; this.updateTimeStart = updateTimeStart;
} }
/** /**
* 设置 投诉绩效指标增加分数 * 获取 结束 更新时间
* @param complainScoreAddNotList * @return updateTimeEnd
*/ */
public void setComplainScoreAddNotList(List<BigDecimal> complainScoreAddNotList){ public String getUpdateTimeEnd(){
this.complainScoreAddNotList = complainScoreAddNotList; return this.updateTimeEnd;
} }
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/** /**
* 获取 开始 投诉绩效指标扣减分数 * 获取 开始 更新人id
* @return complainScoreSubStart * @return updateUserIdStart
*/ */
public BigDecimal getComplainScoreSubStart(){ public Long getUpdateUserIdStart(){
return this.complainScoreSubStart; return this.updateUserIdStart;
} }
/** /**
* 设置 开始 投诉绩效指标扣减分数 * 设置 开始 更新人id
* @param complainScoreSubStart * @param updateUserIdStart
*/ */
public void setComplainScoreSubStart(BigDecimal complainScoreSubStart){ public void setUpdateUserIdStart(Long updateUserIdStart){
this.complainScoreSubStart = complainScoreSubStart; this.updateUserIdStart = updateUserIdStart;
} }
/** /**
* 获取 结束 投诉绩效指标扣减分数 * 获取 结束 更新人id
* @return $complainScoreSubEnd * @return $updateUserIdEnd
*/ */
public BigDecimal getComplainScoreSubEnd(){ public Long getUpdateUserIdEnd(){
return this.complainScoreSubEnd; return this.updateUserIdEnd;
} }
/** /**
* 设置 结束 投诉绩效指标扣减分数 * 设置 结束 更新人id
* @param complainScoreSubEnd * @param updateUserIdEnd
*/ */
public void setComplainScoreSubEnd(BigDecimal complainScoreSubEnd){ public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.complainScoreSubEnd = complainScoreSubEnd; this.updateUserIdEnd = updateUserIdEnd;
} }
/** /**
* 获取 增加 投诉绩效指标扣减分数 * 获取 增加 更新人id
* @return complainScoreSubIncrement * @return updateUserIdIncrement
*/ */
public BigDecimal getComplainScoreSubIncrement(){ public Long getUpdateUserIdIncrement(){
return this.complainScoreSubIncrement; return this.updateUserIdIncrement;
} }
/** /**
* 设置 增加 投诉绩效指标扣减分数 * 设置 增加 更新人id
* @param complainScoreSubIncrement * @param updateUserIdIncrement
*/ */
public void setComplainScoreSubIncrement(BigDecimal complainScoreSubIncrement){ public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.complainScoreSubIncrement = complainScoreSubIncrement; this.updateUserIdIncrement = updateUserIdIncrement;
} }
/** /**
* 获取 投诉绩效指标扣减分数 * 获取 更新人id
* @return complainScoreSubList * @return updateUserIdList
*/ */
public List<BigDecimal> getComplainScoreSubList(){ public List<Long> getUpdateUserIdList(){
return this.complainScoreSubList; return this.updateUserIdList;
} }
/** /**
* 设置 投诉绩效指标扣减分数 * 设置 更新人id
* @param complainScoreSubList * @param updateUserIdList
*/ */
public void setComplainScoreSubList(List<BigDecimal> complainScoreSubList){ public void setUpdateUserIdList(List<Long> updateUserIdList){
this.complainScoreSubList = complainScoreSubList; this.updateUserIdList = updateUserIdList;
} }
/** /**
* 获取 投诉绩效指标扣减分数 * 获取 更新人id
* @return complainScoreSubNotList * @return updateUserIdNotList
*/ */
public List<BigDecimal> getComplainScoreSubNotList(){ public List<Long> getUpdateUserIdNotList(){
return this.complainScoreSubNotList; return this.updateUserIdNotList;
} }
/** /**
* 设置 投诉绩效指标扣减分数 * 设置 更新人id
* @param complainScoreSubNotList * @param updateUserIdNotList
*/ */
public void setComplainScoreSubNotList(List<BigDecimal> complainScoreSubNotList){ public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.complainScoreSubNotList = complainScoreSubNotList; this.updateUserIdNotList = updateUserIdNotList;
} }
...@@ -2336,74 +2336,74 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -2336,74 +2336,74 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 设置 部门id号 * 设置 部门id号
* @param deptId * @param staffId
*/ */
public StaffPerformStatQuery deptId(Long deptId){ public StaffPerformStatQuery staffId(Long staffId){
setDeptId(deptId); setStaffId(staffId);
return this; return this;
} }
/** /**
* 设置 开始 部门id号 * 设置 开始 部门id号
* @param deptIdStart * @param staffIdStart
*/ */
public StaffPerformStatQuery deptIdStart(Long deptIdStart){ public StaffPerformStatQuery staffIdStart(Long staffIdStart){
this.deptIdStart = deptIdStart; this.staffIdStart = staffIdStart;
return this; return this;
} }
/** /**
* 设置 结束 部门id号 * 设置 结束 部门id号
* @param deptIdEnd * @param staffIdEnd
*/ */
public StaffPerformStatQuery deptIdEnd(Long deptIdEnd){ public StaffPerformStatQuery staffIdEnd(Long staffIdEnd){
this.deptIdEnd = deptIdEnd; this.staffIdEnd = staffIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 部门id号 * 设置 增加 部门id号
* @param deptIdIncrement * @param staffIdIncrement
*/ */
public StaffPerformStatQuery deptIdIncrement(Long deptIdIncrement){ public StaffPerformStatQuery staffIdIncrement(Long staffIdIncrement){
this.deptIdIncrement = deptIdIncrement; this.staffIdIncrement = staffIdIncrement;
return this; return this;
} }
/** /**
* 设置 部门id号 * 设置 部门id号
* @param deptIdList * @param staffIdList
*/ */
public StaffPerformStatQuery deptIdList(List<Long> deptIdList){ public StaffPerformStatQuery staffIdList(List<Long> staffIdList){
this.deptIdList = deptIdList; this.staffIdList = staffIdList;
return this; return this;
} }
/** /**
* 设置 部门id号 * 设置 部门id号
* @param deptIdNotList * @param staffIdNotList
*/ */
public StaffPerformStatQuery deptIdNotList(List<Long> deptIdNotList){ public StaffPerformStatQuery staffIdNotList(List<Long> staffIdNotList){
this.deptIdNotList = deptIdNotList; this.staffIdNotList = staffIdNotList;
return this; return this;
} }
/** /**
* 设置 部门名称 * 设置 部门名称
* @param deptName * @param staffName
*/ */
public StaffPerformStatQuery deptName(String deptName){ public StaffPerformStatQuery staffName(String staffName){
setDeptName(deptName); setStaffName(staffName);
return this; return this;
} }
/** /**
* 设置 部门名称 * 设置 部门名称
* @param deptNameList * @param staffNameList
*/ */
public StaffPerformStatQuery deptNameList(List<String> deptNameList){ public StaffPerformStatQuery staffNameList(List<String> staffNameList){
this.deptNameList = deptNameList; this.staffNameList = staffNameList;
return this; return this;
} }
...@@ -2421,280 +2421,151 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -2421,280 +2421,151 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
* @param totalScoreStart * @param totalScoreStart
*/ */
public StaffPerformStatQuery totalScoreStart(BigDecimal totalScoreStart){ public StaffPerformStatQuery totalScoreStart(BigDecimal totalScoreStart){
this.totalScoreStart = totalScoreStart; this.totalScoreStart = totalScoreStart;
return this;
}
/**
* 设置 结束 员工绩效总分数
* @param totalScoreEnd
*/
public StaffPerformStatQuery totalScoreEnd(BigDecimal totalScoreEnd){
this.totalScoreEnd = totalScoreEnd;
return this;
}
/**
* 设置 增加 员工绩效总分数
* @param totalScoreIncrement
*/
public StaffPerformStatQuery totalScoreIncrement(BigDecimal totalScoreIncrement){
this.totalScoreIncrement = totalScoreIncrement;
return this;
}
/**
* 设置 员工绩效总分数
* @param totalScoreList
*/
public StaffPerformStatQuery totalScoreList(List<BigDecimal> totalScoreList){
this.totalScoreList = totalScoreList;
return this;
}
/**
* 设置 员工绩效总分数
* @param totalScoreNotList
*/
public StaffPerformStatQuery totalScoreNotList(List<BigDecimal> totalScoreNotList){
this.totalScoreNotList = totalScoreNotList;
return this;
}
/**
* 设置 备注
* @param remark
*/
public StaffPerformStatQuery remark(String remark){
setRemark(remark);
return this;
}
/**
* 设置 备注
* @param remarkList
*/
public StaffPerformStatQuery remarkList(List<String> remarkList){
this.remarkList = remarkList;
return this;
}
/**
* 设置 年
* @param year
*/
public StaffPerformStatQuery year(Integer year){
setYear(year);
return this;
}
/**
* 设置 开始 年
* @param yearStart
*/
public StaffPerformStatQuery yearStart(Integer yearStart){
this.yearStart = yearStart;
return this;
}
/**
* 设置 结束 年
* @param yearEnd
*/
public StaffPerformStatQuery yearEnd(Integer yearEnd){
this.yearEnd = yearEnd;
return this;
}
/**
* 设置 增加 年
* @param yearIncrement
*/
public StaffPerformStatQuery yearIncrement(Integer yearIncrement){
this.yearIncrement = yearIncrement;
return this;
}
/**
* 设置 年
* @param yearList
*/
public StaffPerformStatQuery yearList(List<Integer> yearList){
this.yearList = yearList;
return this;
}
/**
* 设置 年
* @param yearNotList
*/
public StaffPerformStatQuery yearNotList(List<Integer> yearNotList){
this.yearNotList = yearNotList;
return this;
}
/**
* 设置 月
* @param month
*/
public StaffPerformStatQuery month(Integer month){
setMonth(month);
return this;
}
/**
* 设置 开始 月
* @param monthStart
*/
public StaffPerformStatQuery monthStart(Integer monthStart){
this.monthStart = monthStart;
return this; return this;
} }
/** /**
* 设置 结束 月 * 设置 结束 员工绩效总分数
* @param monthEnd * @param totalScoreEnd
*/ */
public StaffPerformStatQuery monthEnd(Integer monthEnd){ public StaffPerformStatQuery totalScoreEnd(BigDecimal totalScoreEnd){
this.monthEnd = monthEnd; this.totalScoreEnd = totalScoreEnd;
return this; return this;
} }
/** /**
* 设置 增加 月 * 设置 增加 员工绩效总分数
* @param monthIncrement * @param totalScoreIncrement
*/ */
public StaffPerformStatQuery monthIncrement(Integer monthIncrement){ public StaffPerformStatQuery totalScoreIncrement(BigDecimal totalScoreIncrement){
this.monthIncrement = monthIncrement; this.totalScoreIncrement = totalScoreIncrement;
return this; return this;
} }
/** /**
* 设置 月 * 设置 员工绩效总分数
* @param monthList * @param totalScoreList
*/ */
public StaffPerformStatQuery monthList(List<Integer> monthList){ public StaffPerformStatQuery totalScoreList(List<BigDecimal> totalScoreList){
this.monthList = monthList; this.totalScoreList = totalScoreList;
return this; return this;
} }
/** /**
* 设置 月 * 设置 员工绩效总分数
* @param monthNotList * @param totalScoreNotList
*/ */
public StaffPerformStatQuery monthNotList(List<Integer> monthNotList){ public StaffPerformStatQuery totalScoreNotList(List<BigDecimal> totalScoreNotList){
this.monthNotList = monthNotList; this.totalScoreNotList = totalScoreNotList;
return this; return this;
} }
/** /**
* 设置 创建人id * 设置 员工绩效加分总分数汇总
* @param createUserId * @param totalAddScore
*/ */
public StaffPerformStatQuery createUserId(Long createUserId){ public StaffPerformStatQuery totalAddScore(BigDecimal totalAddScore){
setCreateUserId(createUserId); setTotalAddScore(totalAddScore);
return this; return this;
} }
/** /**
* 设置 开始 创建人id * 设置 开始 员工绩效加分总分数汇总
* @param createUserIdStart * @param totalAddScoreStart
*/ */
public StaffPerformStatQuery createUserIdStart(Long createUserIdStart){ public StaffPerformStatQuery totalAddScoreStart(BigDecimal totalAddScoreStart){
this.createUserIdStart = createUserIdStart; this.totalAddScoreStart = totalAddScoreStart;
return this; return this;
} }
/** /**
* 设置 结束 创建人id * 设置 结束 员工绩效加分总分数汇总
* @param createUserIdEnd * @param totalAddScoreEnd
*/ */
public StaffPerformStatQuery createUserIdEnd(Long createUserIdEnd){ public StaffPerformStatQuery totalAddScoreEnd(BigDecimal totalAddScoreEnd){
this.createUserIdEnd = createUserIdEnd; this.totalAddScoreEnd = totalAddScoreEnd;
return this; return this;
} }
/** /**
* 设置 增加 创建人id * 设置 增加 员工绩效加分总分数汇总
* @param createUserIdIncrement * @param totalAddScoreIncrement
*/ */
public StaffPerformStatQuery createUserIdIncrement(Long createUserIdIncrement){ public StaffPerformStatQuery totalAddScoreIncrement(BigDecimal totalAddScoreIncrement){
this.createUserIdIncrement = createUserIdIncrement; this.totalAddScoreIncrement = totalAddScoreIncrement;
return this; return this;
} }
/** /**
* 设置 创建人id * 设置 员工绩效加分总分数汇总
* @param createUserIdList * @param totalAddScoreList
*/ */
public StaffPerformStatQuery createUserIdList(List<Long> createUserIdList){ public StaffPerformStatQuery totalAddScoreList(List<BigDecimal> totalAddScoreList){
this.createUserIdList = createUserIdList; this.totalAddScoreList = totalAddScoreList;
return this; return this;
} }
/** /**
* 设置 创建人id * 设置 员工绩效加分总分数汇总
* @param createUserIdNotList * @param totalAddScoreNotList
*/ */
public StaffPerformStatQuery createUserIdNotList(List<Long> createUserIdNotList){ public StaffPerformStatQuery totalAddScoreNotList(List<BigDecimal> totalAddScoreNotList){
this.createUserIdNotList = createUserIdNotList; this.totalAddScoreNotList = totalAddScoreNotList;
return this; return this;
} }
/** /**
* 设置 更新人id * 设置 员工绩效减分总分数汇总
* @param updateUserId * @param totalSubScore
*/ */
public StaffPerformStatQuery updateUserId(Long updateUserId){ public StaffPerformStatQuery totalSubScore(BigDecimal totalSubScore){
setUpdateUserId(updateUserId); setTotalSubScore(totalSubScore);
return this; return this;
} }
/** /**
* 设置 开始 更新人id * 设置 开始 员工绩效减分总分数汇总
* @param updateUserIdStart * @param totalSubScoreStart
*/ */
public StaffPerformStatQuery updateUserIdStart(Long updateUserIdStart){ public StaffPerformStatQuery totalSubScoreStart(BigDecimal totalSubScoreStart){
this.updateUserIdStart = updateUserIdStart; this.totalSubScoreStart = totalSubScoreStart;
return this; return this;
} }
/** /**
* 设置 结束 更新人id * 设置 结束 员工绩效减分总分数汇总
* @param updateUserIdEnd * @param totalSubScoreEnd
*/ */
public StaffPerformStatQuery updateUserIdEnd(Long updateUserIdEnd){ public StaffPerformStatQuery totalSubScoreEnd(BigDecimal totalSubScoreEnd){
this.updateUserIdEnd = updateUserIdEnd; this.totalSubScoreEnd = totalSubScoreEnd;
return this; return this;
} }
/** /**
* 设置 增加 更新人id * 设置 增加 员工绩效减分总分数汇总
* @param updateUserIdIncrement * @param totalSubScoreIncrement
*/ */
public StaffPerformStatQuery updateUserIdIncrement(Long updateUserIdIncrement){ public StaffPerformStatQuery totalSubScoreIncrement(BigDecimal totalSubScoreIncrement){
this.updateUserIdIncrement = updateUserIdIncrement; this.totalSubScoreIncrement = totalSubScoreIncrement;
return this; return this;
} }
/** /**
* 设置 更新人id * 设置 员工绩效减分总分数汇总
* @param updateUserIdList * @param totalSubScoreList
*/ */
public StaffPerformStatQuery updateUserIdList(List<Long> updateUserIdList){ public StaffPerformStatQuery totalSubScoreList(List<BigDecimal> totalSubScoreList){
this.updateUserIdList = updateUserIdList; this.totalSubScoreList = totalSubScoreList;
return this; return this;
} }
/** /**
* 设置 更新人id * 设置 员工绩效减分总分数汇总
* @param updateUserIdNotList * @param totalSubScoreNotList
*/ */
public StaffPerformStatQuery updateUserIdNotList(List<Long> updateUserIdNotList){ public StaffPerformStatQuery totalSubScoreNotList(List<BigDecimal> totalSubScoreNotList){
this.updateUserIdNotList = updateUserIdNotList; this.totalSubScoreNotList = totalSubScoreNotList;
return this; return this;
} }
...@@ -2914,6 +2785,114 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -2914,6 +2785,114 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
return this; return this;
} }
/**
* 设置 投诉绩效指标增加分数
* @param complainScoreAdd
*/
public StaffPerformStatQuery complainScoreAdd(BigDecimal complainScoreAdd){
setComplainScoreAdd(complainScoreAdd);
return this;
}
/**
* 设置 开始 投诉绩效指标增加分数
* @param complainScoreAddStart
*/
public StaffPerformStatQuery complainScoreAddStart(BigDecimal complainScoreAddStart){
this.complainScoreAddStart = complainScoreAddStart;
return this;
}
/**
* 设置 结束 投诉绩效指标增加分数
* @param complainScoreAddEnd
*/
public StaffPerformStatQuery complainScoreAddEnd(BigDecimal complainScoreAddEnd){
this.complainScoreAddEnd = complainScoreAddEnd;
return this;
}
/**
* 设置 增加 投诉绩效指标增加分数
* @param complainScoreAddIncrement
*/
public StaffPerformStatQuery complainScoreAddIncrement(BigDecimal complainScoreAddIncrement){
this.complainScoreAddIncrement = complainScoreAddIncrement;
return this;
}
/**
* 设置 投诉绩效指标增加分数
* @param complainScoreAddList
*/
public StaffPerformStatQuery complainScoreAddList(List<BigDecimal> complainScoreAddList){
this.complainScoreAddList = complainScoreAddList;
return this;
}
/**
* 设置 投诉绩效指标增加分数
* @param complainScoreAddNotList
*/
public StaffPerformStatQuery complainScoreAddNotList(List<BigDecimal> complainScoreAddNotList){
this.complainScoreAddNotList = complainScoreAddNotList;
return this;
}
/**
* 设置 投诉绩效指标扣减分数
* @param complainScoreSub
*/
public StaffPerformStatQuery complainScoreSub(BigDecimal complainScoreSub){
setComplainScoreSub(complainScoreSub);
return this;
}
/**
* 设置 开始 投诉绩效指标扣减分数
* @param complainScoreSubStart
*/
public StaffPerformStatQuery complainScoreSubStart(BigDecimal complainScoreSubStart){
this.complainScoreSubStart = complainScoreSubStart;
return this;
}
/**
* 设置 结束 投诉绩效指标扣减分数
* @param complainScoreSubEnd
*/
public StaffPerformStatQuery complainScoreSubEnd(BigDecimal complainScoreSubEnd){
this.complainScoreSubEnd = complainScoreSubEnd;
return this;
}
/**
* 设置 增加 投诉绩效指标扣减分数
* @param complainScoreSubIncrement
*/
public StaffPerformStatQuery complainScoreSubIncrement(BigDecimal complainScoreSubIncrement){
this.complainScoreSubIncrement = complainScoreSubIncrement;
return this;
}
/**
* 设置 投诉绩效指标扣减分数
* @param complainScoreSubList
*/
public StaffPerformStatQuery complainScoreSubList(List<BigDecimal> complainScoreSubList){
this.complainScoreSubList = complainScoreSubList;
return this;
}
/**
* 设置 投诉绩效指标扣减分数
* @param complainScoreSubNotList
*/
public StaffPerformStatQuery complainScoreSubNotList(List<BigDecimal> complainScoreSubNotList){
this.complainScoreSubNotList = complainScoreSubNotList;
return this;
}
/** /**
* 设置 办件绩效指标增加分数 * 设置 办件绩效指标增加分数
* @param workScoreAdd * @param workScoreAdd
...@@ -3224,287 +3203,308 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -3224,287 +3203,308 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
* 设置 其它绩效指标扣减分数 * 设置 其它绩效指标扣减分数
* @param otherScoreSubList * @param otherScoreSubList
*/ */
public StaffPerformStatQuery otherScoreSubList(List<BigDecimal> otherScoreSubList){ public StaffPerformStatQuery otherScoreSubList(List<BigDecimal> otherScoreSubList){
this.otherScoreSubList = otherScoreSubList; this.otherScoreSubList = otherScoreSubList;
return this;
}
/**
* 设置 其它绩效指标扣减分数
* @param otherScoreSubNotList
*/
public StaffPerformStatQuery otherScoreSubNotList(List<BigDecimal> otherScoreSubNotList){
this.otherScoreSubNotList = otherScoreSubNotList;
return this;
}
/**
* 设置 备注
* @param remark
*/
public StaffPerformStatQuery remark(String remark){
setRemark(remark);
return this; return this;
} }
/** /**
* 设置 其它绩效指标扣减分数 * 设置 备注
* @param otherScoreSubNotList * @param remarkList
*/ */
public StaffPerformStatQuery otherScoreSubNotList(List<BigDecimal> otherScoreSubNotList){ public StaffPerformStatQuery remarkList(List<String> remarkList){
this.otherScoreSubNotList = otherScoreSubNotList; this.remarkList = remarkList;
return this; return this;
} }
/** /**
* 设置 日 * 设置 年
* @param day * @param year
*/ */
public StaffPerformStatQuery day(Integer day){ public StaffPerformStatQuery year(Integer year){
setDay(day); setYear(year);
return this; return this;
} }
/** /**
* 设置 开始 日 * 设置 开始 年
* @param dayStart * @param yearStart
*/ */
public StaffPerformStatQuery dayStart(Integer dayStart){ public StaffPerformStatQuery yearStart(Integer yearStart){
this.dayStart = dayStart; this.yearStart = yearStart;
return this; return this;
} }
/** /**
* 设置 结束 日 * 设置 结束 年
* @param dayEnd * @param yearEnd
*/ */
public StaffPerformStatQuery dayEnd(Integer dayEnd){ public StaffPerformStatQuery yearEnd(Integer yearEnd){
this.dayEnd = dayEnd; this.yearEnd = yearEnd;
return this; return this;
} }
/** /**
* 设置 增加 日 * 设置 增加 年
* @param dayIncrement * @param yearIncrement
*/ */
public StaffPerformStatQuery dayIncrement(Integer dayIncrement){ public StaffPerformStatQuery yearIncrement(Integer yearIncrement){
this.dayIncrement = dayIncrement; this.yearIncrement = yearIncrement;
return this; return this;
} }
/** /**
* 设置 日 * 设置 年
* @param dayList * @param yearList
*/ */
public StaffPerformStatQuery dayList(List<Integer> dayList){ public StaffPerformStatQuery yearList(List<Integer> yearList){
this.dayList = dayList; this.yearList = yearList;
return this; return this;
} }
/** /**
* 设置 日 * 设置 年
* @param dayNotList * @param yearNotList
*/ */
public StaffPerformStatQuery dayNotList(List<Integer> dayNotList){ public StaffPerformStatQuery yearNotList(List<Integer> yearNotList){
this.dayNotList = dayNotList; this.yearNotList = yearNotList;
return this; return this;
} }
/** /**
* 设置 员工绩效加分总分数汇总 * 设置 月
* @param totalAddScore * @param month
*/ */
public StaffPerformStatQuery totalAddScore(BigDecimal totalAddScore){ public StaffPerformStatQuery month(Integer month){
setTotalAddScore(totalAddScore); setMonth(month);
return this; return this;
} }
/** /**
* 设置 开始 员工绩效加分总分数汇总 * 设置 开始 月
* @param totalAddScoreStart * @param monthStart
*/ */
public StaffPerformStatQuery totalAddScoreStart(BigDecimal totalAddScoreStart){ public StaffPerformStatQuery monthStart(Integer monthStart){
this.totalAddScoreStart = totalAddScoreStart; this.monthStart = monthStart;
return this; return this;
} }
/** /**
* 设置 结束 员工绩效加分总分数汇总 * 设置 结束 月
* @param totalAddScoreEnd * @param monthEnd
*/ */
public StaffPerformStatQuery totalAddScoreEnd(BigDecimal totalAddScoreEnd){ public StaffPerformStatQuery monthEnd(Integer monthEnd){
this.totalAddScoreEnd = totalAddScoreEnd; this.monthEnd = monthEnd;
return this; return this;
} }
/** /**
* 设置 增加 员工绩效加分总分数汇总 * 设置 增加 月
* @param totalAddScoreIncrement * @param monthIncrement
*/ */
public StaffPerformStatQuery totalAddScoreIncrement(BigDecimal totalAddScoreIncrement){ public StaffPerformStatQuery monthIncrement(Integer monthIncrement){
this.totalAddScoreIncrement = totalAddScoreIncrement; this.monthIncrement = monthIncrement;
return this; return this;
} }
/** /**
* 设置 员工绩效加分总分数汇总 * 设置 月
* @param totalAddScoreList * @param monthList
*/ */
public StaffPerformStatQuery totalAddScoreList(List<BigDecimal> totalAddScoreList){ public StaffPerformStatQuery monthList(List<Integer> monthList){
this.totalAddScoreList = totalAddScoreList; this.monthList = monthList;
return this; return this;
} }
/** /**
* 设置 员工绩效加分总分数汇总 * 设置 月
* @param totalAddScoreNotList * @param monthNotList
*/ */
public StaffPerformStatQuery totalAddScoreNotList(List<BigDecimal> totalAddScoreNotList){ public StaffPerformStatQuery monthNotList(List<Integer> monthNotList){
this.totalAddScoreNotList = totalAddScoreNotList; this.monthNotList = monthNotList;
return this; return this;
} }
/** /**
* 设置 员工绩效减分总分数汇总 * 设置 日
* @param totalSubScore * @param day
*/ */
public StaffPerformStatQuery totalSubScore(BigDecimal totalSubScore){ public StaffPerformStatQuery day(Integer day){
setTotalSubScore(totalSubScore); setDay(day);
return this; return this;
} }
/** /**
* 设置 开始 员工绩效减分总分数汇总 * 设置 开始 日
* @param totalSubScoreStart * @param dayStart
*/ */
public StaffPerformStatQuery totalSubScoreStart(BigDecimal totalSubScoreStart){ public StaffPerformStatQuery dayStart(Integer dayStart){
this.totalSubScoreStart = totalSubScoreStart; this.dayStart = dayStart;
return this; return this;
} }
/** /**
* 设置 结束 员工绩效减分总分数汇总 * 设置 结束 日
* @param totalSubScoreEnd * @param dayEnd
*/ */
public StaffPerformStatQuery totalSubScoreEnd(BigDecimal totalSubScoreEnd){ public StaffPerformStatQuery dayEnd(Integer dayEnd){
this.totalSubScoreEnd = totalSubScoreEnd; this.dayEnd = dayEnd;
return this; return this;
} }
/** /**
* 设置 增加 员工绩效减分总分数汇总 * 设置 增加 日
* @param totalSubScoreIncrement * @param dayIncrement
*/ */
public StaffPerformStatQuery totalSubScoreIncrement(BigDecimal totalSubScoreIncrement){ public StaffPerformStatQuery dayIncrement(Integer dayIncrement){
this.totalSubScoreIncrement = totalSubScoreIncrement; this.dayIncrement = dayIncrement;
return this; return this;
} }
/** /**
* 设置 员工绩效减分总分数汇总 * 设置 日
* @param totalSubScoreList * @param dayList
*/ */
public StaffPerformStatQuery totalSubScoreList(List<BigDecimal> totalSubScoreList){ public StaffPerformStatQuery dayList(List<Integer> dayList){
this.totalSubScoreList = totalSubScoreList; this.dayList = dayList;
return this; return this;
} }
/** /**
* 设置 员工绩效减分总分数汇总 * 设置 日
* @param totalSubScoreNotList * @param dayNotList
*/ */
public StaffPerformStatQuery totalSubScoreNotList(List<BigDecimal> totalSubScoreNotList){ public StaffPerformStatQuery dayNotList(List<Integer> dayNotList){
this.totalSubScoreNotList = totalSubScoreNotList; this.dayNotList = dayNotList;
return this; return this;
} }
/** /**
* 设置 投诉绩效指标增加分数 * 设置 创建人id
* @param complainScoreAdd * @param createUserId
*/ */
public StaffPerformStatQuery complainScoreAdd(BigDecimal complainScoreAdd){ public StaffPerformStatQuery createUserId(Long createUserId){
setComplainScoreAdd(complainScoreAdd); setCreateUserId(createUserId);
return this; return this;
} }
/** /**
* 设置 开始 投诉绩效指标增加分数 * 设置 开始 创建人id
* @param complainScoreAddStart * @param createUserIdStart
*/ */
public StaffPerformStatQuery complainScoreAddStart(BigDecimal complainScoreAddStart){ public StaffPerformStatQuery createUserIdStart(Long createUserIdStart){
this.complainScoreAddStart = complainScoreAddStart; this.createUserIdStart = createUserIdStart;
return this; return this;
} }
/** /**
* 设置 结束 投诉绩效指标增加分数 * 设置 结束 创建人id
* @param complainScoreAddEnd * @param createUserIdEnd
*/ */
public StaffPerformStatQuery complainScoreAddEnd(BigDecimal complainScoreAddEnd){ public StaffPerformStatQuery createUserIdEnd(Long createUserIdEnd){
this.complainScoreAddEnd = complainScoreAddEnd; this.createUserIdEnd = createUserIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 投诉绩效指标增加分数 * 设置 增加 创建人id
* @param complainScoreAddIncrement * @param createUserIdIncrement
*/ */
public StaffPerformStatQuery complainScoreAddIncrement(BigDecimal complainScoreAddIncrement){ public StaffPerformStatQuery createUserIdIncrement(Long createUserIdIncrement){
this.complainScoreAddIncrement = complainScoreAddIncrement; this.createUserIdIncrement = createUserIdIncrement;
return this; return this;
} }
/** /**
* 设置 投诉绩效指标增加分数 * 设置 创建人id
* @param complainScoreAddList * @param createUserIdList
*/ */
public StaffPerformStatQuery complainScoreAddList(List<BigDecimal> complainScoreAddList){ public StaffPerformStatQuery createUserIdList(List<Long> createUserIdList){
this.complainScoreAddList = complainScoreAddList; this.createUserIdList = createUserIdList;
return this; return this;
} }
/** /**
* 设置 投诉绩效指标增加分数 * 设置 创建人id
* @param complainScoreAddNotList * @param createUserIdNotList
*/ */
public StaffPerformStatQuery complainScoreAddNotList(List<BigDecimal> complainScoreAddNotList){ public StaffPerformStatQuery createUserIdNotList(List<Long> createUserIdNotList){
this.complainScoreAddNotList = complainScoreAddNotList; this.createUserIdNotList = createUserIdNotList;
return this; return this;
} }
/** /**
* 设置 投诉绩效指标扣减分数 * 设置 更新人id
* @param complainScoreSub * @param updateUserId
*/ */
public StaffPerformStatQuery complainScoreSub(BigDecimal complainScoreSub){ public StaffPerformStatQuery updateUserId(Long updateUserId){
setComplainScoreSub(complainScoreSub); setUpdateUserId(updateUserId);
return this; return this;
} }
/** /**
* 设置 开始 投诉绩效指标扣减分数 * 设置 开始 更新人id
* @param complainScoreSubStart * @param updateUserIdStart
*/ */
public StaffPerformStatQuery complainScoreSubStart(BigDecimal complainScoreSubStart){ public StaffPerformStatQuery updateUserIdStart(Long updateUserIdStart){
this.complainScoreSubStart = complainScoreSubStart; this.updateUserIdStart = updateUserIdStart;
return this; return this;
} }
/** /**
* 设置 结束 投诉绩效指标扣减分数 * 设置 结束 更新人id
* @param complainScoreSubEnd * @param updateUserIdEnd
*/ */
public StaffPerformStatQuery complainScoreSubEnd(BigDecimal complainScoreSubEnd){ public StaffPerformStatQuery updateUserIdEnd(Long updateUserIdEnd){
this.complainScoreSubEnd = complainScoreSubEnd; this.updateUserIdEnd = updateUserIdEnd;
return this; return this;
} }
/** /**
* 设置 增加 投诉绩效指标扣减分数 * 设置 增加 更新人id
* @param complainScoreSubIncrement * @param updateUserIdIncrement
*/ */
public StaffPerformStatQuery complainScoreSubIncrement(BigDecimal complainScoreSubIncrement){ public StaffPerformStatQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.complainScoreSubIncrement = complainScoreSubIncrement; this.updateUserIdIncrement = updateUserIdIncrement;
return this; return this;
} }
/** /**
* 设置 投诉绩效指标扣减分数 * 设置 更新人id
* @param complainScoreSubList * @param updateUserIdList
*/ */
public StaffPerformStatQuery complainScoreSubList(List<BigDecimal> complainScoreSubList){ public StaffPerformStatQuery updateUserIdList(List<Long> updateUserIdList){
this.complainScoreSubList = complainScoreSubList; this.updateUserIdList = updateUserIdList;
return this; return this;
} }
/** /**
* 设置 投诉绩效指标扣减分数 * 设置 更新人id
* @param complainScoreSubNotList * @param updateUserIdNotList
*/ */
public StaffPerformStatQuery complainScoreSubNotList(List<BigDecimal> complainScoreSubNotList){ public StaffPerformStatQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.complainScoreSubNotList = complainScoreSubNotList; this.updateUserIdNotList = updateUserIdNotList;
return this; return this;
} }
......
...@@ -62,4 +62,7 @@ hik: ...@@ -62,4 +62,7 @@ hik:
protocol: @profiles.hik.protocol@ protocol: @profiles.hik.protocol@
appSecret: @profiles.hik.appSecret@ appSecret: @profiles.hik.appSecret@
dingtalk: dingtalk:
agentId: 123123 agentId: 2652674890
AppKey: dingpqzradgfr4efdi2j
AppSecret: bF2WALmo5_Wuj3hg5gXeWqezrYnZChUJ88HjzNWpkA9ivdOxfBDGOGYcfVRfB3vd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<mapper namespace="com.mortals.xhx.module.check.dao.ibatis.CheckAllRecordDaoImpl"> <mapper namespace="com.mortals.xhx.module.check.dao.ibatis.CheckAllRecordDaoImpl">
<select id="getList" parameterType="com.mortals.xhx.module.check.model.CheckAllRecordQuery" resultType="com.mortals.xhx.module.check.model.vo.CheckAllRecordVo"> <select id="getList" parameterType="com.mortals.xhx.module.check.model.CheckAllRecordQuery" resultType="com.mortals.xhx.module.check.model.vo.CheckAllRecordVo">
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime,createTime AS deductTime,1 AS checkType FROM mortals_xhx_check_attend_record WHERE 1=1 SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime,createTime AS deductTime,1 AS checkType ,'attend' AS performType FROM mortals_xhx_check_attend_record WHERE 1=1
<if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if> <if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<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> <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>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,2 AS checkType FROM mortals_xhx_check_effect_record WHERE 1=1 SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,4 AS checkType ,'effect' AS performType FROM mortals_xhx_check_effect_record WHERE 1=1
<if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if> <if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<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> <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>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,3 AS checkType FROM mortals_xhx_check_complain_record WHERE 1=1 SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,6 AS checkType ,'complain' AS performType FROM mortals_xhx_check_complain_record WHERE 1=1
<if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if> <if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<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> <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>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,4 AS checkType FROM mortals_xhx_check_gowork_record WHERE 1=1 SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,3 AS checkType ,'gowork' AS performType FROM mortals_xhx_check_gowork_record WHERE 1=1
<if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if> <if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<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> <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>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,5 AS checkType FROM mortals_xhx_check_review_record WHERE 1=1 SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,2 AS checkType ,'review' AS performType FROM mortals_xhx_check_review_record WHERE 1=1
<if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if> <if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<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> <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>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,6 AS checkType FROM mortals_xhx_check_other_record WHERE 1=1 SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS deductTime,5 AS checkType ,'other' AS performType FROM mortals_xhx_check_other_record WHERE 1=1
<if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if> <if test="staffId != null and staffId!=''"> AND staffId = #{staffId} </if>
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<mapper namespace="com.mortals.xhx.module.feedback.dao.ibatis.FeedbackDaoImpl"> <mapper namespace="com.mortals.xhx.module.feedback.dao.ibatis.FeedbackDaoImpl">
<!-- 问卷反馈人员列表 --> <!-- 问卷反馈人员列表 -->
<select id="getFeedbackStaffList" parameterType="long" resultType="com.mortals.xhx.module.feedback.model.vo.FeedbackStaffInfoVo"> <select id="getFeedbackStaffList" parameterType="com.mortals.xhx.module.feedback.model.FeedbackEntity" resultType="com.mortals.xhx.module.feedback.model.vo.FeedbackStaffInfoVo">
SELECT * FROM (
SELECT SELECT
s.feedbackId, s.feedbackId,
s.staffId, s.staffId,
...@@ -21,7 +22,38 @@ ...@@ -21,7 +22,38 @@
WHERE WHERE
s.feedbackId = #{feedbackId} s.feedbackId = #{feedbackId}
GROUP BY GROUP BY
s.staffId; s.staffId
) AS t WHERE 1=1
<if test="backStatus != null">
AND t.backStatus = #{backStatus}
</if>
</select>
<select id="getFeedbackStaffListCount" parameterType="com.mortals.xhx.module.feedback.model.FeedbackEntity" resultType="int">
select count(1) from (
SELECT * FROM (
SELECT
s.feedbackId,
s.staffId,
s1.`name`,
s1.deptId,
s1.deptName,
s1.positionName,
CASE IFNULL(a.id, 0) WHEN 0 THEN 0 ELSE 1 END AS backStatus,
MAX(a.createTime) AS backTime
FROM
mortals_xhx_feedback_staff s
LEFT JOIN mortals_xhx_feedback_answer a ON s.staffId = a.staffId AND s.feedbackId = a.feedbackId
LEFT JOIN mortals_xhx_staff s1 ON s.staffId = s1.id
WHERE
s.feedbackId = #{feedbackId}
GROUP BY
s.staffId
) AS t WHERE 1=1
<if test="backStatus != null">
AND t.backStatus = #{backStatus}
</if>
) as tt
</select> </select>
<!-- 问卷单选多选反馈统计 --> <!-- 问卷单选多选反馈统计 -->
......
...@@ -503,3 +503,40 @@ CREATE TABLE mortals_xhx_window_owner_detail( ...@@ -503,3 +503,40 @@ CREATE TABLE mortals_xhx_window_owner_detail(
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='窗口负责人详细'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='窗口负责人详细';
-- ----------------------------
-- 员工绩效统计表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_staff_perform_stat`;
CREATE TABLE mortals_xhx_staff_perform_stat(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`staffId` bigint(20) DEFAULT '0' COMMENT '部门id号',
`staffName` varchar(64) COMMENT '部门名称',
`totalScore` decimal(10,2) NOT NULL COMMENT '员工绩效总分数',
`totalAddScore` decimal(10,2) NOT NULL COMMENT '员工绩效加分总分数汇总',
`totalSubScore` decimal(10,2) NOT NULL COMMENT '员工绩效减分总分数汇总',
`attendScoreAdd` decimal(10,2) COMMENT '考勤绩效指标增加分数',
`attendScoreSub` decimal(10,2) COMMENT '考勤绩效指标扣减分数',
`assessScoreAdd` decimal(10,2) COMMENT '评价绩效指标增加分数',
`assessScoreSub` decimal(10,2) COMMENT '评价绩效指标扣减分数',
`complainScoreAdd` decimal(10,2) COMMENT '投诉绩效指标增加分数',
`complainScoreSub` decimal(10,2) COMMENT '投诉绩效指标扣减分数',
`workScoreAdd` decimal(10,2) COMMENT '办件绩效指标增加分数',
`workScoreSub` decimal(10,2) COMMENT '办件绩效指标扣减分数',
`effectScoreAdd` decimal(10,2) COMMENT '效能绩效指标增加分数',
`effectScoreSub` decimal(10,2) COMMENT '效能绩效指标扣减分数',
`otherScoreAdd` decimal(10,2) COMMENT '其它绩效指标增加分数',
`otherScoreSub` decimal(10,2) COMMENT '其它绩效指标扣减分数',
`remark` varchar(255) COMMENT '备注',
`year` int(9) NOT NULL COMMENT '年',
`month` tinyint(2) NOT NULL COMMENT '月',
`day` tinyint(2) NOT NULL COMMENT '日',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人id',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='员工绩效统计';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment