Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
1211116c
Commit
1211116c
authored
May 26, 2020
by
tangzhaoqian
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效管理数据库设计、数据库生成,实体、dao、xml创建,API:基础设置api
parent
651ed546
Show whitespace changes
Inline
Side-by-side
Showing
61 changed files
with
2591 additions
and
2717 deletions
+2591
-2717
src/main/java/cn/timer/api/bean/jxgl/JxglAdminJcsz.java
+0
-91
src/main/java/cn/timer/api/bean/jxgl/JxglAdminKpzsz.java
+0
-115
src/main/java/cn/timer/api/bean/jxgl/JxglAdminZbk.java
+0
-95
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisal.java
+65
-0
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalAssessment.java
+70
-0
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalIndicators.java
+71
-0
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalIndicatorsAssessment.java
+67
-0
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalIndicatorsT.java
+71
-0
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalItem.java
+17
-15
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalItemT.java
+21
-17
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalLog.java
+67
-0
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalT.java
+27
-22
src/main/java/cn/timer/api/bean/jxgl/JxglAssoJxdj.java
+0
-61
src/main/java/cn/timer/api/bean/jxgl/JxglAssoMbsz.java
+0
-61
src/main/java/cn/timer/api/bean/jxgl/JxglBasicSetting.java
+24
-17
src/main/java/cn/timer/api/bean/jxgl/JxglPerformanceAppraisal.java
+76
-0
src/main/java/cn/timer/api/bean/jxgl/JxglPerformanceRating.java
+61
-0
src/main/java/cn/timer/api/bean/jxgl/JxglProcessNode.java
+76
-0
src/main/java/cn/timer/api/controller/jxgl/AchievementsController.java
+0
-598
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
+106
-0
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+5
-0
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalAssessmentMapper.java
+7
-11
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalIndicatorsAssessmentMapper.java
+7
-11
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalIndicatorsMapper.java
+17
-0
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalIndicatorsTMapper.java
+17
-0
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalItemMapper.java
+4
-4
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalItemTMapper.java
+17
-0
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalLogMapper.java
+4
-4
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalMapper.java
+5
-5
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalTMapper.java
+5
-5
src/main/java/cn/timer/api/dao/jxgl/JxglBasicSettingMapper.java
+7
-8
src/main/java/cn/timer/api/dao/jxgl/JxglPerformanceAppraisalMapper.java
+17
-0
src/main/java/cn/timer/api/dao/jxgl/JxglPerformanceRatingMapper.java
+4
-8
src/main/java/cn/timer/api/dao/jxgl/JxglProcessNodeMapper.java
+4
-8
src/main/java/cn/timer/api/dto/jxgl/AppraisalGroupSettingsDto.java
+0
-45
src/main/java/cn/timer/api/dto/jxgl/BasicSettingDto.java
+43
-0
src/main/java/cn/timer/api/dto/jxgl/FoundationSetupDto.java
+0
-25
src/main/java/cn/timer/api/dto/jxgl/IndexDatabaseDto.java
+0
-38
src/main/java/cn/timer/api/dto/jxgl/IndexDetailDto.java
+0
-23
src/main/resources/application-pro.yml
+2
-2
src/main/resources/mapping/jxgl/JxglAdminJcszMapper.xml
+0
-214
src/main/resources/mapping/jxgl/JxglAdminKpzszMapper.xml
+0
-309
src/main/resources/mapping/jxgl/JxglAdminZbkMapper.xml
+0
-239
src/main/resources/mapping/jxgl/JxglAppraisalAssessmentMapper.xml
+141
-0
src/main/resources/mapping/jxgl/JxglAppraisalIndicatorsAssessmentMapper.xml
+131
-0
src/main/resources/mapping/jxgl/JxglAppraisalIndicatorsMapper.xml
+141
-0
src/main/resources/mapping/jxgl/JxglAppraisalIndicatorsTMapper.xml
+141
-0
src/main/resources/mapping/jxgl/JxglAppraisalItemMapper.xml
+45
-35
src/main/resources/mapping/jxgl/JxglAppraisalItemTMapper.xml
+101
-0
src/main/resources/mapping/jxgl/JxglAppraisalLogMapper.xml
+131
-0
src/main/resources/mapping/jxgl/JxglAppraisalMapper.xml
+121
-0
src/main/resources/mapping/jxgl/JxglAppraisalTMapper.xml
+111
-0
src/main/resources/mapping/jxgl/JxglAssoFbzbkMapper.xml
+0
-113
src/main/resources/mapping/jxgl/JxglAssoJxdjMapper.xml
+0
-136
src/main/resources/mapping/jxgl/JxglAssoKpzryMapper.xml
+0
-126
src/main/resources/mapping/jxgl/JxglAssoMbszMapper.xml
+0
-131
src/main/resources/mapping/jxgl/JxglAssoZbzdszMapper.xml
+0
-125
src/main/resources/mapping/jxgl/JxglBasicSettingMapper.xml
+101
-0
src/main/resources/mapping/jxgl/JxglPerformanceAppraisalMapper.xml
+171
-0
src/main/resources/mapping/jxgl/JxglPerformanceRatingMapper.xml
+111
-0
src/main/resources/mapping/jxgl/JxglProcessNodeMapper.xml
+161
-0
No files found.
src/main/java/cn/timer/api/bean/jxgl/JxglAdminJcsz.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-01-02
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_admin_jcsz"
)
@ApiModel
(
"基础设置"
)
public
class
JxglAdminJcsz
extends
Model
<
JxglAdminJcsz
>
{
private
static
final
long
serialVersionUID
=
8687909529181749192L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"OKR开关 0:关;1:开(目标(Objectives)与关键成果法(Key Results))"
,
example
=
"101"
)
private
Integer
isOrk
;
@ApiModelProperty
(
value
=
"绩效考核开关 0:关;1:开(支持KPI、BSC、360互评等多种考核方式)"
,
example
=
"101"
)
private
Integer
isJxkh
;
@ApiModelProperty
(
value
=
"计算规则 0:量化指标和行为价值观指标合并计算;1:量化指标和行为价值观指标分开计算"
,
example
=
"101"
)
private
Integer
jsgz
;
@ApiModelProperty
(
value
=
"量化指标 0:数字型;1:文本型"
,
example
=
"101"
)
private
Integer
lhzb
;
@ApiModelProperty
(
value
=
"总分自动加和开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
lhzbZfzdjh
;
@ApiModelProperty
(
value
=
"录入方式 0:文本框输入;1:下拉选择"
,
example
=
"101"
)
private
Integer
lhzbLrfs
;
@ApiModelProperty
(
value
=
"行为价值观指标 0:数字型;1:文本型"
,
example
=
"101"
)
private
Integer
xwjzgzb
;
@ApiModelProperty
(
value
=
"总分自动加和开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
xwjzgzbZfzdjh
;
@ApiModelProperty
(
value
=
"录入方式 0:文本框输入;1:下拉选择"
,
example
=
"101"
)
private
Integer
xwjzgzbLrfs
;
@ApiModelProperty
(
value
=
"绩效等级开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
jxdjkg
;
@ApiModelProperty
(
value
=
"绩效等级类型 0:强制正态分布;1:分数区间对应"
,
example
=
"101"
)
private
Integer
jxdjtype
;
@ApiModelProperty
(
value
=
"对接人事管理开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
djrsgl
;
@ApiModelProperty
(
value
=
"待办自动提醒开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
dbzdtx
;
@ApiModelProperty
(
value
=
"分制名称 "
,
example
=
"分制名称"
)
private
String
fzmc
;
@ApiModelProperty
(
value
=
"满分 "
,
example
=
"满分"
)
private
String
manfen
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
@ApiModelProperty
(
value
=
"添加人员ID 添加人员ID"
,
example
=
"101"
)
private
Integer
tjryid
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAdminKpzsz.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-01-08
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_admin_kpzsz"
)
@ApiModel
(
"考评组设置"
)
public
class
JxglAdminKpzsz
extends
Model
<
JxglAdminKpzsz
>
{
private
static
final
long
serialVersionUID
=
3542750698820133341L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考评组名称 "
,
example
=
"考评组名称"
)
private
String
kpzmc
;
@ApiModelProperty
(
value
=
"周期类型 0:月度;1:季度;2:半年度;3:年度;4:试用期;5:日;6:自定义;"
,
example
=
"101"
)
private
Integer
zqtype
;
@ApiModelProperty
(
value
=
"评分说明必填开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
pfsmbt
;
@ApiModelProperty
(
value
=
"指标评分计算方式 1:指标评分加和计算;2:指标评分加权计算(指标评分加和计算:评分=指标1评分+指标2评分+... | 指标评分加权计算 :评分=指标1评分*指标1权重+指标2评分*指标2权重+...)"
,
example
=
"101"
)
private
Integer
zbpfjs
;
@ApiModelProperty
(
value
=
"流程设计类型 0:按评分人设置流程;1:按指标设置流程"
,
example
=
"101"
)
private
Integer
lcsjtype
;
@ApiModelProperty
(
value
=
"目标制定人类型 1:被考核人;2:主管;3:自定;4:系统【目标制定】"
,
example
=
"101"
)
private
Integer
mbzdrtype
;
@ApiModelProperty
(
value
=
"目标制定指定人id 【目标制定】"
,
example
=
"101"
)
private
String
mbzdrid
;
@ApiModelProperty
(
value
=
"目标确认人类型 0:关:1:被考核人;2:主管;3:指定成员【目标确认】"
,
example
=
"101"
)
private
Integer
mbqrr
;
@ApiModelProperty
(
value
=
"目标确认指定人id 【目标确认】"
,
example
=
"101"
)
private
String
mbqrzdr
;
@ApiModelProperty
(
value
=
"自评配置开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
zppz
;
@ApiModelProperty
(
value
=
"自评权重 "
,
example
=
"自评权重"
)
private
String
zpweight
;
@ApiModelProperty
(
value
=
"互评配置开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
hppz
;
@ApiModelProperty
(
value
=
"互评权重 "
,
example
=
"互评权重"
)
private
String
hpweight
;
@ApiModelProperty
(
value
=
"互评匿名开关 0:关;1:开【互评】"
,
example
=
"101"
)
private
Integer
hpnmkg
;
@ApiModelProperty
(
value
=
"互评多人时的处理方式 0:各自评分(计算时取平均值);1:任一评分(任一评分人评分即可)【互评】"
,
example
=
"101"
)
private
Integer
hpdrclfs
;
@ApiModelProperty
(
value
=
"评分人去重 0:关;1:开【评分全局配置】"
,
example
=
"101"
)
private
Integer
pfrqc
;
@ApiModelProperty
(
value
=
"评分人手动评级 0:关;1:开【评分全局配置】"
,
example
=
"101"
)
private
Integer
pfrsdpj
;
@ApiModelProperty
(
value
=
"上级评分配置开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
sjpfpz
;
@ApiModelProperty
(
value
=
"上级评分权重 "
,
example
=
"上级评分权重"
)
private
String
sjweight
;
@ApiModelProperty
(
value
=
"上级评分多人时的处理方式 0:各自评分(计算时取平均值);1:任一评分(任一评分人评分即可)【上级评分】"
,
example
=
"101"
)
private
Integer
spdrclfs
;
@ApiModelProperty
(
value
=
"代评分 若该级处理人空缺,由其在通讯录中的上级主管代评分 ===> 0:关;1:开【上级评分】"
,
example
=
"101"
)
private
Integer
dpf
;
@ApiModelProperty
(
value
=
"允许转交 0:关;1:开【上级评分】"
,
example
=
"101"
)
private
Integer
yxzj
;
@ApiModelProperty
(
value
=
"评分规则 0:评分人需要对每个指标进行评分;1:评分人不需要对每个指标进行评分,只需评一个总的得分"
,
example
=
"101"
)
private
Integer
pfgz
;
@ApiModelProperty
(
value
=
"参与人数"
,
example
=
"101"
)
private
Integer
cyrs
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAdminZbk.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-01-06
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_admin_zbk"
)
@ApiModel
(
"指标库"
)
public
class
JxglAdminZbk
extends
Model
<
JxglAdminZbk
>
{
private
static
final
long
serialVersionUID
=
2558055045569841060L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"指标名称 "
,
example
=
"指标名称"
)
private
String
zbmc
;
@ApiModelProperty
(
value
=
"指标类型 1:量化指标;2:行为价值指标;3:加分项;4:扣分项"
,
example
=
"101"
)
private
Integer
zbtype
;
@ApiModelProperty
(
value
=
"考核标准 "
,
example
=
"考核标准"
)
private
String
khbz
;
@ApiModelProperty
(
value
=
"权重 "
,
example
=
"权重"
)
private
String
quanz
;
@ApiModelProperty
(
value
=
"备注 "
,
example
=
"备注"
)
private
String
remarks
;
@ApiModelProperty
(
value
=
"评分方式 1:直接输入分数;2:评分公式计算"
,
example
=
"101"
)
private
Integer
pfsf
;
@ApiModelProperty
(
value
=
"评分公式 "
,
example
=
"评分公式"
)
private
String
pfgs
;
@ApiModelProperty
(
value
=
"结果值数据来源 1:被考核让人;2:指定成员"
,
example
=
"101"
)
private
Integer
jgzsjly
;
@ApiModelProperty
(
value
=
"指定成员ID 结果值数据来源为“2”时"
,
example
=
"101"
)
private
Integer
zdcyid
;
@ApiModelProperty
(
value
=
"必选标签开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
bxbqkg
;
@ApiModelProperty
(
value
=
"指定评分人开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
zdpfrkg
;
@ApiModelProperty
(
value
=
"设定评分人ID 指定评分人开关为“1”时"
,
example
=
"101"
)
private
Integer
sdpfrid
;
@ApiModelProperty
(
value
=
"标签 "
,
example
=
"标签"
)
private
String
label
;
@ApiModelProperty
(
value
=
"加分标准 "
,
example
=
"加分标准"
)
private
String
jfbz
;
@ApiModelProperty
(
value
=
"加分上限 "
,
example
=
"加分上限"
)
private
String
jfsx
;
@ApiModelProperty
(
value
=
"扣分标准 "
,
example
=
"扣分标准"
)
private
String
kfbz
;
@ApiModelProperty
(
value
=
"扣分上限 "
,
example
=
"扣分上限"
)
private
String
kfsx
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisal.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"考核"
)
public
class
JxglAppraisal
extends
Model
<
JxglAppraisal
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"员工id 员工id"
,
example
=
"10"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
"名称"
,
example
=
"名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"考核说明"
,
example
=
"考核说明"
)
private
String
appraisalExplain
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"状态 0目标填写 1目标确认 2自评 3上级评分 4 结果确认 5考核完成 6终止考核 7归档"
,
example
=
"10"
)
private
Integer
sts
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalAssessment.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"考核评定"
)
public
class
JxglAppraisalAssessment
extends
Model
<
JxglAppraisalAssessment
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考核id 考核id"
,
example
=
"10"
)
private
Integer
appraisalId
;
@ApiModelProperty
(
value
=
"评定人id 评定人id"
,
example
=
"10"
)
private
Integer
assessorId
;
@ApiModelProperty
(
value
=
"评定人名称"
,
example
=
"评定人名称"
)
private
String
assessorName
;
@ApiModelProperty
(
value
=
"综合评分"
,
example
=
"综合评分"
)
private
String
comprehensiveScore
;
@ApiModelProperty
(
value
=
"评语"
,
example
=
"评语"
)
private
String
remarks
;
@ApiModelProperty
(
value
=
"类型 0自评 1上级评价"
,
example
=
"10"
)
private
Integer
type
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"等级"
,
example
=
"等级"
)
private
String
level
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalIndicators.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"考核指标"
)
public
class
JxglAppraisalIndicators
extends
Model
<
JxglAppraisalIndicators
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考核id 考核id"
,
example
=
"10"
)
private
Integer
appraisalId
;
@ApiModelProperty
(
value
=
"标题"
,
example
=
"标题"
)
private
String
title
;
@ApiModelProperty
(
value
=
"权重 整数,单位%"
,
example
=
"10"
)
private
Integer
weight
;
@ApiModelProperty
(
value
=
"是否可编辑 限制员工的权限"
,
example
=
"10"
)
private
Integer
isEdit
;
@ApiModelProperty
(
value
=
"是否可设置权重 限制员工的权限"
,
example
=
"10"
)
private
Integer
isSetWeight
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"类型 0 非固定 1 固定"
,
example
=
"0"
)
private
Integer
type
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalIndicatorsAssessment.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"考核指标评定"
)
public
class
JxglAppraisalIndicatorsAssessment
extends
Model
<
JxglAppraisalIndicatorsAssessment
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考核指标id 考核指标id"
,
example
=
"10"
)
private
Integer
appraisalIndicatorsId
;
@ApiModelProperty
(
value
=
"评定人id 评定人id"
,
example
=
"10"
)
private
Integer
assessorId
;
@ApiModelProperty
(
value
=
"评定人名称"
,
example
=
"评定人名称"
)
private
String
assessorName
;
@ApiModelProperty
(
value
=
"评分"
,
example
=
"评分"
)
private
String
score
;
@ApiModelProperty
(
value
=
"评语"
,
example
=
"评语"
)
private
String
remarks
;
@ApiModelProperty
(
value
=
"类型 0自评 1上级评价"
,
example
=
"10"
)
private
Integer
type
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalIndicatorsT.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"考核指标模板"
)
public
class
JxglAppraisalIndicatorsT
extends
Model
<
JxglAppraisalIndicatorsT
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考核模板id 考核模板id"
,
example
=
"10"
)
private
Integer
appraisalTId
;
@ApiModelProperty
(
value
=
"标题"
,
example
=
"标题"
)
private
String
title
;
@ApiModelProperty
(
value
=
"权重 整数,单位%"
,
example
=
"10"
)
private
Integer
weight
;
@ApiModelProperty
(
value
=
"是否可编辑 限制员工的权限"
,
example
=
"10"
)
private
Integer
isEdit
;
@ApiModelProperty
(
value
=
"是否可设置权重 限制员工的权限"
,
example
=
"10"
)
private
Integer
isSetWeight
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"类型"
,
example
=
"0 非固定 1 固定"
)
private
String
type
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglA
ssoWdzbgl
.java
→
src/main/java/cn/timer/api/bean/jxgl/JxglA
ppraisalItem
.java
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
@@ -17,35 +15,38 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
/**
* @author
LAL 2020-01-08
* @author
Tang 2020-05-26
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_asso_wdzbgl"
)
@ApiModel
(
"维度指标关联"
)
public
class
JxglAssoWdzbgl
extends
Model
<
JxglAssoWdzbgl
>
{
@ApiModel
(
"考核项"
)
public
class
JxglAppraisalItem
extends
Model
<
JxglAppraisalItem
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
7635823382897700557
L
;
private
static
final
long
serialVersionUID
=
1
L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"模板设计ID 模板设计ID"
,
example
=
"101"
)
private
Integer
mbszid
;
@ApiModelProperty
(
value
=
"考核指标id 考核指标id"
,
example
=
"10"
)
private
Integer
appraisalIndicatorsId
;
@ApiModelProperty
(
value
=
"标题"
,
example
=
"标题"
)
private
String
title
;
@ApiModelProperty
(
value
=
"
指标库id 指标库id"
,
example
=
"101
"
)
private
Integer
zbkid
;
@ApiModelProperty
(
value
=
"
内容"
,
example
=
"内容
"
)
private
String
content
;
@ApiModelProperty
(
value
=
"
输入值 "
,
example
=
"输入值
"
)
private
String
wdsrz
;
@ApiModelProperty
(
value
=
"
排序 排序"
,
example
=
"10
"
)
private
Integer
ranks
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglA
ssoFbzbk
.java
→
src/main/java/cn/timer/api/bean/jxgl/JxglA
ppraisalItemT
.java
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
@@ -17,33 +15,38 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-01-0
6
*/
@Entity
* @author Tang 2020-05-2
6
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_asso_fbzbk"
)
@ApiModel
(
"指标库量化指标"
)
public
class
JxglAssoFbzbk
extends
Model
<
JxglAssoFbzbk
>
{
@ApiModel
(
"考核项模板"
)
public
class
JxglAppraisalItemT
extends
Model
<
JxglAppraisalItemT
>
{
private
static
final
long
serialVersionUID
=
2052434463054119049L
;
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"指标库id 指标库id"
,
example
=
"101
"
)
private
Integer
zbki
d
;
@ApiModelProperty
(
value
=
"考核指标id 考核指标id"
,
example
=
"10
"
)
private
Integer
appraisalIndicatorsTI
d
;
@ApiModelProperty
(
value
=
"指标字段设置id 指标字段设置id"
,
example
=
"101
"
)
private
Integer
zbzdszid
;
@ApiModelProperty
(
value
=
"标题"
,
example
=
"标题
"
)
private
String
title
;
@ApiModelProperty
(
value
=
"指标字段值 "
,
example
=
"指标字段值
"
)
private
String
value
;
@ApiModelProperty
(
value
=
"内容"
,
example
=
"内容
"
)
private
String
content
;
@ApiModelProperty
(
value
=
"排序 排序"
,
example
=
"10"
)
private
Integer
ranks
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAppraisalLog.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"考核记录"
)
public
class
JxglAppraisalLog
extends
Model
<
JxglAppraisalLog
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考核id 考核id"
,
example
=
"10"
)
private
Integer
appraisalId
;
@ApiModelProperty
(
value
=
"执行人id 执行人id"
,
example
=
"10"
)
private
Integer
executorId
;
@ApiModelProperty
(
value
=
"执行人名称"
,
example
=
"执行人名称"
)
private
String
executorName
;
@ApiModelProperty
(
value
=
"标题"
,
example
=
"标题"
)
private
String
title
;
@ApiModelProperty
(
value
=
"备注"
,
example
=
"驳回理由、改分理由"
)
private
String
remarks
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"类型 0发起考核 1目标填写 2目标确认 3目标驳回 4自评 5评分驳回 6上级评分 7结果确认 8修改评分 9 考核完成 10 终止考核 11归档"
,
example
=
"0"
)
private
Integer
type
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglA
ssoZbzdsz
.java
→
src/main/java/cn/timer/api/bean/jxgl/JxglA
ppraisalT
.java
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
...
@@ -17,41 +19,43 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
/**
* @author
LAL 2020-01-02
* @author
Tang 2020-05-26
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_asso_zbzdsz"
)
@ApiModel
(
"指标字段设置"
)
public
class
JxglAssoZbzdsz
extends
Model
<
JxglAssoZbzdsz
>
{
@ApiModel
(
"考核模板"
)
public
class
JxglAppraisalT
extends
Model
<
JxglAppraisalT
>
{
private
static
final
long
serialVersionUID
=
-
7704484193612123538L
;
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"
字段名称 "
,
example
=
"字段名称
"
)
private
String
name
;
@ApiModelProperty
(
value
=
"
编号 编号"
,
example
=
"10
"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"
字段类型 1:数字/文本(如果指标的公式计算使用此变量,则强制指标的此变量和录入结果值为数字类型)"
,
example
=
"101
"
)
private
Integer
typ
e
;
@ApiModelProperty
(
value
=
"
企业id 企业id"
,
example
=
"10
"
)
private
Integer
orgCod
e
;
@ApiModelProperty
(
value
=
"
是否启用 0:否;1:是"
,
example
=
"101
"
)
private
Integer
isSfqy
;
@ApiModelProperty
(
value
=
"
名称"
,
example
=
"名称
"
)
private
String
name
;
@ApiModelProperty
(
value
=
"
是否开启公式变量 0:否;1:是(开启后,可以作为变量用于指标的公式计算)"
,
example
=
"101
"
)
private
Integer
isGsbl
;
@ApiModelProperty
(
value
=
"
考核说明"
,
example
=
"考核说明
"
)
private
String
appraisalExplain
;
@ApiModelProperty
(
value
=
"设置id 设置id"
,
example
=
"101"
)
private
Integer
jcszid
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAssoJxdj.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-01-02
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_asso_jxdj"
)
@ApiModel
(
"绩效等级"
)
public
class
JxglAssoJxdj
extends
Model
<
JxglAssoJxdj
>
{
private
static
final
long
serialVersionUID
=
-
1705525475344521687L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"绩效等级类型 1:强制正态分布;2:分数区间对应;"
,
example
=
"101"
)
private
Integer
type
;
@ApiModelProperty
(
value
=
"等级名称 "
,
example
=
"等级名称"
)
private
String
djmc
;
@ApiModelProperty
(
value
=
"占比区间(%) "
,
example
=
"占比区间(%)"
)
private
String
zbqj
;
@ApiModelProperty
(
value
=
"分数区间范围开始 "
,
example
=
"2:分数区间对应"
)
private
String
fsqjks
;
@ApiModelProperty
(
value
=
"分数区间范围结束 "
,
example
=
"2:分数区间对应"
)
private
String
fzqjjs
;
@ApiModelProperty
(
value
=
"设置id 设置id"
,
example
=
"101"
)
private
Integer
jcszid
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglAssoMbsz.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-01-08
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_asso_mbsz"
)
@ApiModel
(
"模板设计"
)
public
class
JxglAssoMbsz
extends
Model
<
JxglAssoMbsz
>
{
private
static
final
long
serialVersionUID
=
3349081275918939640L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"维度名称 "
,
example
=
"维度名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"维度类型 1:量化指标;2:行为价值指标;3:加分项;4:扣分项"
,
example
=
"101"
)
private
Integer
type
;
@ApiModelProperty
(
value
=
"所含指标数量 -1:不限量;>-1:自定义"
,
example
=
"101"
)
private
Integer
shzbsl
;
@ApiModelProperty
(
value
=
"所含指标总权重 -1:不限量;>-1:自定义"
,
example
=
"101"
)
private
Integer
shzbzqz
;
@ApiModelProperty
(
value
=
"可在指定目标时增加指标开关 0:关;1:开"
,
example
=
"101"
)
private
Integer
kzzjzb
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
@ApiModelProperty
(
value
=
"考评组设置id 考评组设置id"
,
example
=
"101"
)
private
Integer
kpzsz
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/Jxgl
AssoKpzry
.java
→
src/main/java/cn/timer/api/bean/jxgl/Jxgl
BasicSetting
.java
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.Entity
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
...
@@ -17,36 +19,40 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
/**
* @author
LAL 2020-01-08
* @author
Tang 2020-05-26
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"jxgl_asso_kpzry"
)
@ApiModel
(
"考评组管理员/被考核人员"
)
public
class
JxglAssoKpzry
extends
Model
<
JxglAssoKpzry
>
{
@ApiModel
(
"基础设置"
)
public
class
JxglBasicSetting
extends
Model
<
JxglBasicSetting
>
{
private
static
final
long
serialVersionUID
=
-
7561458217477289939L
;
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"
id id
"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"
编号 编号
"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"
考评组设置ID 考评组设置ID
"
,
example
=
"101"
)
private
Integer
kpzszid
;
@ApiModelProperty
(
value
=
"
企业id 企业id
"
,
example
=
"101"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"
类型 1:考评组管理员;2:被考核人员
"
,
example
=
"101"
)
private
Integer
typ
e
;
@ApiModelProperty
(
value
=
"
最高分 最高分
"
,
example
=
"101"
)
private
Integer
maxScor
e
;
@ApiModelProperty
(
value
=
"员工编号 员工编号"
,
example
=
"101"
)
private
Integer
usernum
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间 "
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"101"
)
private
Integer
qyid
;
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@ApiModelProperty
(
value
=
"更新时间 "
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglPerformanceAppraisal.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"绩效考核"
)
public
class
JxglPerformanceAppraisal
extends
Model
<
JxglPerformanceAppraisal
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"企业id 企业id"
,
example
=
"10"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"名称"
,
example
=
"名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"周期 0月 1季 2年 3半年"
,
example
=
"10"
)
private
Integer
period
;
@ApiModelProperty
(
value
=
"开始时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
appraisalStartTime
;
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
appraisalEndTime
;
@ApiModelProperty
(
value
=
"是否可见 0是 1否。评分及评分结果能否被员工看见"
,
example
=
"10"
)
private
Integer
isVisible
;
@ApiModelProperty
(
value
=
"状态 0目标制定 1绩效评分 2结果确认 3绩效归档 4终止考核"
,
example
=
"10"
)
private
Integer
sts
;
@ApiModelProperty
(
value
=
"范围"
,
example
=
"部门名称、被考核人名称"
)
private
String
scope
;
@ApiModelProperty
(
value
=
"考核模板名称"
,
example
=
"考评组名称"
)
private
String
appraisalTName
;
@ApiModelProperty
(
value
=
"考核人数 考核人数"
,
example
=
"10"
)
private
Integer
appraisalPersonNum
;
@ApiModelProperty
(
value
=
"流程节点"
,
example
=
""
)
private
byte
[]
processNode
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglPerformanceRating.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"绩效等级"
)
public
class
JxglPerformanceRating
extends
Model
<
JxglPerformanceRating
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"绩效基础设置id 绩效基础设置id"
,
example
=
"10"
)
private
Integer
basicSettingId
;
@NotBlank
(
message
=
"等级名称不能为空"
)
@ApiModelProperty
(
value
=
"等级名称"
,
example
=
"等级名称"
)
private
String
name
;
@NotNull
(
message
=
"区间最小分数不能为空"
)
@ApiModelProperty
(
value
=
"区间最小分数 区间最小分数"
,
example
=
"10"
)
private
Integer
sectionMinScore
;
@NotNull
(
message
=
"区间最大分数不能为空"
)
@ApiModelProperty
(
value
=
"区间最大分数 区间最大分数"
,
example
=
"10"
)
private
Integer
sectionMaxScore
;
@ApiModelProperty
(
value
=
"排序 排序"
,
example
=
"10"
)
private
Integer
ranks
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/jxgl/JxglProcessNode.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
bean
.
jxgl
;
import
java.util.Date
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2020-05-26
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"流程节点"
)
public
class
JxglProcessNode
extends
Model
<
JxglProcessNode
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"考核id 考核id"
,
example
=
"10"
)
private
Integer
appraisalId
;
@ApiModelProperty
(
value
=
"执行人id(员工id) 执行人id(员工id)"
,
example
=
"10"
)
private
Integer
executorId
;
@ApiModelProperty
(
value
=
"执行人名称"
,
example
=
"执行人名称"
)
private
String
executorName
;
@ApiModelProperty
(
value
=
"执行人类型 0被考核人 1主管 2指定成员"
,
example
=
"10"
)
private
Integer
executeType
;
@ApiModelProperty
(
value
=
"类型 0目标填写 1目标确认 2自评 3上级评分 4 结果确认"
,
example
=
"10"
)
private
Integer
processType
;
@ApiModelProperty
(
value
=
"名称"
,
example
=
"目标填写 目标确认 自评 上级评分 结果确认"
)
private
String
name
;
@ApiModelProperty
(
value
=
"主管层级 0直属主管 1上上级主管"
,
example
=
"10"
)
private
Integer
leaderTier
;
@ApiModelProperty
(
value
=
"权重 权重"
,
example
=
"10"
)
private
Integer
weight
;
@ApiModelProperty
(
value
=
"状态 0未执行 1执行中 2 已执行"
,
example
=
"10"
)
private
Integer
sts
;
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/jxgl/AchievementsController.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
controller
.
jxgl
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
cn.hutool.core.util.StrUtil
;
import
cn.timer.api.bean.jxgl.JxglAdminJcsz
;
import
cn.timer.api.bean.jxgl.JxglAdminKpzsz
;
import
cn.timer.api.bean.jxgl.JxglAdminZbk
;
import
cn.timer.api.bean.jxgl.JxglAssoFbzbk
;
import
cn.timer.api.bean.jxgl.JxglAssoJxdj
;
import
cn.timer.api.bean.jxgl.JxglAssoKpzry
;
import
cn.timer.api.bean.jxgl.JxglAssoZbzdsz
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.dao.jxgl.JxglAdminJcszMapper
;
import
cn.timer.api.dao.jxgl.JxglAdminKpzszMapper
;
import
cn.timer.api.dao.jxgl.JxglAdminZbkMapper
;
import
cn.timer.api.dao.jxgl.JxglAssoFbzbkMapper
;
import
cn.timer.api.dao.jxgl.JxglAssoJxdjMapper
;
import
cn.timer.api.dao.jxgl.JxglAssoKpzryMapper
;
import
cn.timer.api.dao.jxgl.JxglAssoZbzdszMapper
;
import
cn.timer.api.dto.jxgl.AppraisalGroupSettingsDto
;
import
cn.timer.api.dto.jxgl.FoundationSetupDto
;
import
cn.timer.api.dto.jxgl.IndexDatabaseDto
;
import
cn.timer.api.dto.jxgl.IndexDetailDto
;
import
cn.timer.api.dto.sbgjj.SearchPlanDto
;
import
cn.timer.api.dto.xcgl.CustomDto
;
import
cn.timer.api.utils.ResponseResult
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
net.sf.json.JSONArray
;
import
net.sf.json.JSONObject
;
/**
* @author lalqq
* 绩效管理
*/
//@SuppressWarnings("all")
@Api
(
tags
=
"绩效管理API"
)
@RestController
@RequestMapping
(
value
=
"/jxgl"
,
produces
=
{
"application/json"
})
public
class
AchievementsController
{
//基础设置
@Autowired
private
JxglAdminJcszMapper
jxgladminjcszmapper
;
//绩效等级
@Autowired
private
JxglAssoJxdjMapper
jxglassojxdjmapper
;
//指标字段设置
@Autowired
private
JxglAssoZbzdszMapper
jxglassozbzdszmapper
;
//指标库
@Autowired
private
JxglAdminZbkMapper
jxgladminzbkmapper
;
//指标库量化指标
@Autowired
private
JxglAssoFbzbkMapper
jxglassofbzbkmapper
;
//考评组设置
@Autowired
private
JxglAdminKpzszMapper
jxgladminkpzszmapper
;
//考评组管理员/被考核人员
@Autowired
private
JxglAssoKpzryMapper
jxglassokpzrymapper
;
@GetMapping
(
value
=
"/indeldlist"
)
@ApiOperation
(
value
=
"获取指标字段"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
ResponseResult
IndexfieldList
(
@CurrentUser
UserBean
userBean
)
{
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
@SuppressWarnings
(
"unused"
)
int
userid
=
userBean
.
getEmpNum
();
//用户id
List
<
JxglAssoZbzdsz
>
zbzdsz
=
new
LambdaQueryChainWrapper
<
JxglAssoZbzdsz
>(
jxglassozbzdszmapper
).
eq
(
JxglAssoZbzdsz:
:
getQyid
,
qyid
).
eq
(
JxglAssoZbzdsz:
:
getIsSfqy
,
1
).
list
();
return
new
ResponseResult
().
success
(
"获取指标字段信息成功"
,
zbzdsz
);
}
/**
* 基础设置
*/
@GetMapping
(
value
=
"/fouetuplist"
)
@ApiOperation
(
value
=
"获取基础设置数据"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
FoundationSetupDto
>
foundationsetupList
(
@CurrentUser
UserBean
userBean
)
{
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
FoundationSetupDto
setupdto
=
new
FoundationSetupDto
();
//基础设置
JxglAdminJcsz
jcsz
=
new
LambdaQueryChainWrapper
<
JxglAdminJcsz
>(
jxgladminjcszmapper
).
eq
(
JxglAdminJcsz:
:
getQyid
,
qyid
).
one
();
List
<
JxglAssoJxdj
>
jxdjlist
=
null
;
List
<
JxglAssoZbzdsz
>
zbzdszlist
=
null
;
if
(
jcsz
!=
null
)
{
//绩效等级
jxdjlist
=
new
LambdaQueryChainWrapper
<
JxglAssoJxdj
>(
jxglassojxdjmapper
).
eq
(
JxglAssoJxdj:
:
getJcszid
,
jcsz
.
getId
()).
list
();
//指标字段设置
zbzdszlist
=
new
LambdaQueryChainWrapper
<
JxglAssoZbzdsz
>(
jxglassozbzdszmapper
).
eq
(
JxglAssoZbzdsz:
:
getJcszid
,
jcsz
.
getId
()).
list
();
}
setupdto
.
setJcsz
(
jcsz
);
setupdto
.
setJxdj
(
jxdjlist
);
setupdto
.
setZbzdsz
(
zbzdszlist
);
return
ResultUtil
.
data
(
setupdto
);
}
@PostMapping
(
value
=
"/fouset"
)
@ApiOperation
(
value
=
"基础设置"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
3
)
public
Result
<
JxglAdminJcsz
>
FoundationSetup
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Map
<
String
,
Object
>
basics
)
{
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
int
userid
=
userBean
.
getEmpNum
();
//用户id
@SuppressWarnings
(
"unused"
)
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
String
xgyh
=
basics
.
get
(
"a"
).
toString
();
@SuppressWarnings
(
"rawtypes"
)
HashMap
hashMap
=
JSON
.
parseObject
(
xgyh
,
HashMap
.
class
);
int
jcszid
=
0
;
JxglAdminJcsz
jcsz
=
JxglAdminJcsz
.
builder
().
build
();
jcsz
.
setIsOrk
(
Integer
.
valueOf
(
hashMap
.
get
(
"isOrk"
).
toString
()));;
//OKR开关 0:关;1:开(目标(Objectives)与关键成果法(Key Results))
jcsz
.
setIsJxkh
(
Integer
.
valueOf
(
hashMap
.
get
(
"isJxkh"
).
toString
()));;
//绩效考核开关 0:关;1:开(支持KPI、BSC、360互评等多种考核方式)
jcsz
.
setJsgz
(
Integer
.
valueOf
(
hashMap
.
get
(
"jsgz"
).
toString
()));;
//计算规则 0:量化指标和行为价值观指标合并计算;1:量化指标和行为价值观指标分开计算
jcsz
.
setLhzb
(
Integer
.
valueOf
(
hashMap
.
get
(
"lhzb"
).
toString
()));;
//量化指标 0:数字型;1:文本型
jcsz
.
setLhzbZfzdjh
(
Integer
.
valueOf
(
hashMap
.
get
(
"lhzbZfzdjh"
).
toString
()));;
//总分自动加和开关 0:关;1:开
jcsz
.
setLhzbLrfs
(
Integer
.
valueOf
(
hashMap
.
get
(
"lhzbLrfs"
).
toString
()));;
//录入方式 0:文本框输入;1:下拉选择
jcsz
.
setXwjzgzb
(
Integer
.
valueOf
(
hashMap
.
get
(
"xwjzgzb"
).
toString
()));;
//行为价值观指标 0:数字型;1:文本型
jcsz
.
setXwjzgzbZfzdjh
(
Integer
.
valueOf
(
hashMap
.
get
(
"xwjzgzbZfzdjh"
).
toString
()));;
//总分自动加和开关 0:关;1:开
jcsz
.
setXwjzgzbLrfs
(
Integer
.
valueOf
(
hashMap
.
get
(
"xwjzgzbLrfs"
).
toString
()));;
//录入方式 0:文本框输入;1:下拉选择
jcsz
.
setJxdjkg
(
Integer
.
valueOf
(
hashMap
.
get
(
"jxdjkg"
).
toString
()));;
//绩效等级开关 0:关;1:开
jcsz
.
setJxdjtype
(
Integer
.
valueOf
(
hashMap
.
get
(
"jxdjtype"
).
toString
()));;
//绩效等级类型 0:强制正态分布;1:分数区间对应
jcsz
.
setDjrsgl
(
Integer
.
valueOf
(
hashMap
.
get
(
"djrsgl"
).
toString
()));;
//对接人事管理开关 0:关;1:开
jcsz
.
setDbzdtx
(
Integer
.
valueOf
(
hashMap
.
get
(
"dbzdtx"
).
toString
()));;
//待办自动提醒开关 0:关;1:开
jcsz
.
setFzmc
(
hashMap
.
get
(
"fzmc"
).
toString
());;
//分制名称
jcsz
.
setManfen
(
hashMap
.
get
(
"manfen"
).
toString
());;
//满分
if
(
Integer
.
valueOf
(
hashMap
.
get
(
"id"
).
toString
())
>
0
)
{
//修改
jcszid
=
Integer
.
valueOf
(
hashMap
.
get
(
"id"
).
toString
());
jcsz
.
setId
(
jcszid
);
jxgladminjcszmapper
.
updateById
(
jcsz
);
}
else
{
//新增
jcsz
.
setQyid
(
qyid
);;
//企业id
jcsz
.
setTjryid
(
userid
);;
//添加人员ID
jxgladminjcszmapper
.
insertjxgladminjcsz
(
jcsz
);
jcszid
=
jcsz
.
getId
();
}
//绩效等级
String
jxdjStr
=
basics
.
get
(
"b"
).
toString
();
if
(!(
"{}"
).
equals
(
jxdjStr
))
{
jxglassojxdjmapper
.
deletejxdjByjcszid
(
jcszid
);
JSONArray
json
=
JSONArray
.
fromObject
(
jxdjStr
);
// 首先把字符串转成 JSONArray 对象
List
<
JxglAssoJxdj
>
jxdjlist
=
new
ArrayList
<
JxglAssoJxdj
>();
if
(
json
.
size
()
>
0
)
{
for
(
int
i
=
0
;
i
<
json
.
size
();
i
++)
{
JSONObject
job
=
json
.
getJSONObject
(
i
);
// 遍历 jsonarray 数组,把每一个对象转成 json 对象
JxglAssoJxdj
jxdj
=
JxglAssoJxdj
.
builder
().
build
();
jxdj
.
setType
(
Integer
.
valueOf
(
hashMap
.
get
(
"jxdjtype"
).
toString
()));;
//绩效等级类型 1:强制正态分布;2:分数区间对应;
if
(
Integer
.
valueOf
(
hashMap
.
get
(
"jxdjtype"
).
toString
())
==
0
)
{
//强制正态分布
jxdj
.
setDjmc
(
job
.
get
(
"djmc"
).
toString
());;
//等级名称
jxdj
.
setZbqj
(
job
.
get
(
"zbqj"
).
toString
());;
//占比区间(%)
jxdj
.
setFsqjks
(
""
);;
//分数区间范围开始
jxdj
.
setFzqjjs
(
""
);;
//分数区间范围结束
}
if
(
Integer
.
valueOf
(
hashMap
.
get
(
"jxdjtype"
).
toString
())
==
1
)
{
//分数区间对应
jxdj
.
setDjmc
(
job
.
get
(
"djmc"
).
toString
());;
//等级名称
jxdj
.
setZbqj
(
""
);;
//占比区间(%)
jxdj
.
setFsqjks
(
""
);;
//分数区间范围开始
jxdj
.
setFzqjjs
(
job
.
get
(
"fzqjjs"
).
toString
());;
//分数区间范围结束
}
jxdj
.
setJcszid
(
jcszid
);;
//设置id
jxdj
.
setQyid
(
qyid
);
jxdjlist
.
add
(
jxdj
);
}
}
if
(
jxdjlist
.
size
()
>
0
)
{
jxglassojxdjmapper
.
insertJxglAssoJxdjList
(
jxdjlist
);
}
}
//指标字段设置
String
zbzdszStr
=
basics
.
get
(
"c"
).
toString
();
if
(!(
"{}"
).
equals
(
zbzdszStr
))
{
jxglassozbzdszmapper
.
deletezbzdszByjcszid
(
jcszid
);
JSONArray
json
=
JSONArray
.
fromObject
(
zbzdszStr
);
// 首先把字符串转成 JSONArray 对象
List
<
JxglAssoZbzdsz
>
zbzdszlist
=
new
ArrayList
<
JxglAssoZbzdsz
>();
if
(
json
.
size
()
>
0
)
{
for
(
int
i
=
0
;
i
<
json
.
size
();
i
++)
{
JSONObject
job
=
json
.
getJSONObject
(
i
);
// 遍历 jsonarray 数组,把每一个对象转成 json 对象
JxglAssoZbzdsz
zbzdsz
=
JxglAssoZbzdsz
.
builder
().
build
();
if
(!(
"结果值"
).
equals
(
job
.
get
(
"name"
).
toString
()))
{
zbzdsz
.
setName
(
job
.
get
(
"name"
).
toString
());;
//字段名称
zbzdsz
.
setType
(
Integer
.
valueOf
(
job
.
get
(
"type"
).
toString
()));;
//字段类型 1:数字/文本(如果指标的公式计算使用此变量,则强制指标的此变量和录入结果值为数字类型)
zbzdsz
.
setIsSfqy
(
Integer
.
valueOf
(
job
.
get
(
"isSfqy"
).
toString
()));;
//是否启用 0:否;1:是
zbzdsz
.
setIsGsbl
(
Integer
.
valueOf
(
job
.
get
(
"isGsbl"
).
toString
()));;
//是否开启公式变量 0:否;1:是(开启后,可以作为变量用于指标的公式计算)
zbzdsz
.
setJcszid
(
jcszid
);;
//设置id
zbzdsz
.
setQyid
(
qyid
);
zbzdszlist
.
add
(
zbzdsz
);
}
}
}
if
(
zbzdszlist
.
size
()
>
0
)
{
jxglassozbzdszmapper
.
insertjxglassozbzdszList
(
zbzdszlist
);
}
}
return
ResultUtil
.
data
(
null
,
"成功"
);
}
@DeleteMapping
(
value
=
"/deleteindex/{id}"
)
@ApiOperation
(
value
=
"删除"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
public
ResponseResult
deleteindex
(
@PathVariable
Integer
id
)
{
JxglAdminZbk
.
builder
().
build
().
deleteById
(
id
);
//指标库量化指标
jxglassofbzbkmapper
.
deletejxglassofbzbkByzbkid
(
id
);
return
new
ResponseResult
().
success
(
"删除成功"
,
id
);
}
@PostMapping
(
value
=
"/indexabaselist"
)
@ApiOperation
(
value
=
"获取指标库搜索/分页"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
IndexDatabaseList
(
@CurrentUser
UserBean
userBean
,
@RequestBody
SearchPlanDto
searchp
)
{
String
c
=
searchp
.
getCityName
();
Page
<
JxglAdminZbk
>
page
=
new
Page
<
JxglAdminZbk
>(
searchp
.
getCurrentPage
()
==
null
?
1
:
searchp
.
getCurrentPage
(),
searchp
.
getTotalPage
()
==
null
?
10
:
searchp
.
getTotalPage
());
QueryWrapper
<
JxglAdminZbk
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"qyid"
,
userBean
.
getOrgCode
()).
and
(!
StrUtil
.
hasBlank
(
c
),
wq
->
wq
.
likeRight
(
"zbmc"
,
c
));
IPage
<
JxglAdminZbk
>
jxgladminzbkPage
=
JxglAdminZbk
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
List
<
JxglAdminZbk
>
zbks
=
jxgladminzbkPage
.
getRecords
();
jxgladminzbkPage
.
getCurrent
();
jxgladminzbkPage
.
getPages
();
jxgladminzbkPage
.
getTotal
();
jxgladminzbkPage
.
getSize
();
return
ResultUtil
.
data
(
jxgladminzbkPage
,
zbks
,
"方案搜索成功"
);
}
@PostMapping
(
value
=
"/indexdatabase"
)
@ApiOperation
(
value
=
"新增指标库"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
4
)
public
ResponseResult
IndexDatabase
(
@CurrentUser
UserBean
userBean
,
@RequestBody
IndexDatabaseDto
indexd
)
{
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
@SuppressWarnings
(
"unused"
)
int
userid
=
userBean
.
getEmpNum
();
//用户id
JxglAdminZbk
zbk
=
JxglAdminZbk
.
builder
().
build
();
zbk
.
setZbmc
(
indexd
.
getName
());;
//指标名称
zbk
.
setZbtype
(
indexd
.
getType
());;
//指标类型 0:量化指标;1:行为价值指标;2:加分项;3:扣分项
zbk
.
setKhbz
(
indexd
.
getKhbz
());;
//考核标准
zbk
.
setQuanz
(
indexd
.
getQz
());;
//权重
zbk
.
setRemarks
(
indexd
.
getBz
());;
//备注
zbk
.
setPfsf
(
indexd
.
getFs
());;
//评分方式 0:直接输入分数;1:评分公式计算
if
(
indexd
.
getFs
()
==
1
)
{
zbk
.
setPfgs
(
indexd
.
getFsgs
());;
//评分公式
}
else
{
zbk
.
setPfgs
(
""
);;
//评分公式
}
zbk
.
setJgzsjly
(
indexd
.
getLy
());;
//结果值数据来源 0:被考核让人;1:指定成员
if
(
indexd
.
getLy
()
==
1
)
{
zbk
.
setZdcyid
(
indexd
.
getZdcyid
());;
//指定成员ID 结果值数据来源为“1”时
}
else
{
zbk
.
setZdcyid
(
0
);;
//指定成员ID 结果值数据来源为“1”时
}
zbk
.
setBxbqkg
(
indexd
.
getBx
());;
//必选标签开关 0:关;1:开
zbk
.
setZdpfrkg
(
indexd
.
getPfr
());;
//指定评分人开关 0:关;1:开
if
(
indexd
.
getPfr
()
==
1
)
{
zbk
.
setSdpfrid
(
indexd
.
getZdpfrid
());;
//设定评分人ID 指定评分人开关为“1”时
}
else
{
zbk
.
setSdpfrid
(
0
);;
//设定评分人ID 指定评分人开关为“1”时
}
String
[]
bqs
=
indexd
.
getBq
();
String
sybc
=
String
.
join
(
","
,
bqs
);
zbk
.
setLabel
(
sybc
);
//标签
// zbk.setLabel(indexd.getBq());;//标签
zbk
.
setJfbz
(
indexd
.
getJfbz
());;
//加分标准
zbk
.
setJfsx
(
indexd
.
getJfsx
());;
//加分上限
zbk
.
setKfbz
(
indexd
.
getKfbz
());;
//扣分标准
zbk
.
setKfsx
(
indexd
.
getKfsx
());;
//扣分上限
zbk
.
setQyid
(
qyid
);;
//企业id
jxgladminzbkmapper
.
insertjxgladminzbk
(
zbk
);
int
zbkid
=
zbk
.
getId
();
List
<
JxglAssoFbzbk
>
fbzbklist
=
new
ArrayList
<
JxglAssoFbzbk
>();
CustomDto
[]
cus
=
indexd
.
getZbz
();
if
(
cus
.
length
>
0
){
for
(
int
p
=
0
;
p
<
cus
.
length
;
p
++){
JxglAssoFbzbk
fbzbk
=
new
JxglAssoFbzbk
();
fbzbk
.
setZbkid
(
zbkid
);
//指标库id
fbzbk
.
setZbzdszid
(
cus
[
p
].
getId
());
//指标字段设置id
fbzbk
.
setValue
(
cus
[
p
].
getVal
());
//指标字段值
fbzbklist
.
add
(
fbzbk
);
}
}
if
(
fbzbklist
.
size
()>
0
){
jxglassofbzbkmapper
.
insertjxglassofbzbkList
(
fbzbklist
);
}
return
new
ResponseResult
().
success
(
"成功"
,
zbk
);
}
@GetMapping
(
value
=
"/indedetailed/{id}"
)
@ApiOperation
(
value
=
"获取指标字段详细"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
ResponseResult
IndexFieldDetailed
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
@SuppressWarnings
(
"unused"
)
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
@SuppressWarnings
(
"unused"
)
int
userid
=
userBean
.
getEmpNum
();
//用户id
IndexDetailDto
detai
=
new
IndexDetailDto
();
JxglAdminZbk
zbzdsz
=
new
LambdaQueryChainWrapper
<
JxglAdminZbk
>(
jxgladminzbkmapper
).
eq
(
JxglAdminZbk:
:
getId
,
id
).
one
();
List
<
JxglAssoFbzbk
>
fbzbklist
=
new
LambdaQueryChainWrapper
<
JxglAssoFbzbk
>(
jxglassofbzbkmapper
).
eq
(
JxglAssoFbzbk:
:
getZbkid
,
id
).
list
();
detai
.
setZbzdsz
(
zbzdsz
);
detai
.
setFbzbklist
(
fbzbklist
);
return
new
ResponseResult
().
success
(
"获取指标字段信息成功"
,
detai
);
}
@PutMapping
(
value
=
"/upindexdatabase"
)
@ApiOperation
(
value
=
"修改指标库"
,
httpMethod
=
"PUT"
,
notes
=
"接口发布说明"
)
public
ResponseResult
updaIndexdatabase
(
@CurrentUser
UserBean
userBean
,
@RequestBody
IndexDatabaseDto
indexd
)
{
@SuppressWarnings
(
"unused"
)
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
@SuppressWarnings
(
"unused"
)
int
userid
=
userBean
.
getEmpNum
();
//用户id
JxglAdminZbk
zbk
=
JxglAdminZbk
.
builder
().
build
();
zbk
.
setZbmc
(
indexd
.
getName
());;
//指标名称
zbk
.
setZbtype
(
indexd
.
getType
());;
//指标类型 0:量化指标;1:行为价值指标;2:加分项;3:扣分项
zbk
.
setKhbz
(
indexd
.
getKhbz
());;
//考核标准
zbk
.
setQuanz
(
indexd
.
getQz
());;
//权重
zbk
.
setRemarks
(
indexd
.
getBz
());;
//备注
zbk
.
setPfsf
(
indexd
.
getFs
());;
//评分方式 0:直接输入分数;1:评分公式计算
if
(
indexd
.
getFs
()
==
1
)
{
zbk
.
setPfgs
(
indexd
.
getFsgs
());;
//评分公式
}
else
{
zbk
.
setPfgs
(
""
);;
//评分公式
}
zbk
.
setJgzsjly
(
indexd
.
getLy
());;
//结果值数据来源 0:被考核让人;1:指定成员
if
(
indexd
.
getLy
()
==
1
)
{
zbk
.
setZdcyid
(
indexd
.
getZdcyid
());;
//指定成员ID 结果值数据来源为“1”时
}
else
{
zbk
.
setZdcyid
(
0
);;
//指定成员ID 结果值数据来源为“1”时
}
zbk
.
setBxbqkg
(
indexd
.
getBx
());;
//必选标签开关 0:关;1:开
zbk
.
setZdpfrkg
(
indexd
.
getPfr
());;
//指定评分人开关 0:关;1:开
if
(
indexd
.
getPfr
()
==
1
)
{
zbk
.
setSdpfrid
(
indexd
.
getZdpfrid
());;
//设定评分人ID 指定评分人开关为“1”时
}
else
{
zbk
.
setSdpfrid
(
0
);;
//设定评分人ID 指定评分人开关为“1”时
}
String
[]
bqs
=
indexd
.
getBq
();
String
sybc
=
String
.
join
(
","
,
bqs
);
zbk
.
setLabel
(
sybc
);
//标签
zbk
.
setJfbz
(
indexd
.
getJfbz
());;
//加分标准
zbk
.
setJfsx
(
indexd
.
getJfsx
());;
//加分上限
zbk
.
setKfbz
(
indexd
.
getKfbz
());;
//扣分标准
zbk
.
setKfsx
(
indexd
.
getKfsx
());;
//扣分上限
// zbk.setQyid(qyid);;//企业id
zbk
.
setId
(
indexd
.
getId
());
zbk
.
updateById
();
int
zbkid
=
indexd
.
getId
();
//指标库量化指标
jxglassofbzbkmapper
.
deletejxglassofbzbkByzbkid
(
zbkid
);
List
<
JxglAssoFbzbk
>
fbzbklist
=
new
ArrayList
<
JxglAssoFbzbk
>();
CustomDto
[]
cus
=
indexd
.
getZbz
();
if
(
cus
.
length
>
0
){
for
(
int
p
=
0
;
p
<
cus
.
length
;
p
++){
JxglAssoFbzbk
fbzbk
=
new
JxglAssoFbzbk
();
fbzbk
.
setZbkid
(
zbkid
);
//指标库id
fbzbk
.
setZbzdszid
(
cus
[
p
].
getId
());
//指标字段设置id
fbzbk
.
setValue
(
cus
[
p
].
getVal
());
//指标字段值
fbzbklist
.
add
(
fbzbk
);
}
}
if
(
fbzbklist
.
size
()>
0
){
jxglassofbzbkmapper
.
insertjxglassofbzbkList
(
fbzbklist
);
}
return
new
ResponseResult
().
success
(
"成功"
,
zbk
);
}
/**************************考评组***********************************/
@PostMapping
(
value
=
"/evaseclist"
)
@ApiOperation
(
value
=
"获取考评组"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
EvaluationSectionList
(
@CurrentUser
UserBean
userBean
,
@RequestBody
SearchPlanDto
searchp
)
{
String
c
=
searchp
.
getCityName
();
Page
<
JxglAdminKpzsz
>
page
=
new
Page
<
JxglAdminKpzsz
>(
searchp
.
getCurrentPage
()
==
null
?
1
:
searchp
.
getCurrentPage
(),
searchp
.
getTotalPage
()
==
null
?
10
:
searchp
.
getTotalPage
());
QueryWrapper
<
JxglAdminKpzsz
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"qyid"
,
userBean
.
getOrgCode
()).
and
(!
StrUtil
.
hasBlank
(
c
),
wq
->
wq
.
likeRight
(
"kpzmc"
,
c
));
IPage
<
JxglAdminKpzsz
>
jxgladminkpzszPage
=
JxglAdminKpzsz
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
List
<
JxglAdminKpzsz
>
kpzsz
=
jxgladminkpzszPage
.
getRecords
();
jxgladminkpzszPage
.
getCurrent
();
jxgladminkpzszPage
.
getPages
();
jxgladminkpzszPage
.
getTotal
();
jxgladminkpzszPage
.
getSize
();
return
ResultUtil
.
data
(
jxgladminkpzszPage
,
kpzsz
,
"获取考评组信息成功"
);
}
@PostMapping
(
value
=
"/indsection"
)
@ApiOperation
(
value
=
"新增考评组"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
ResponseResult
IndexEvaluationSection
(
@CurrentUser
UserBean
userBean
,
@RequestBody
AppraisalGroupSettingsDto
appgroset
)
{
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
@SuppressWarnings
(
"unused"
)
int
userid
=
userBean
.
getEmpNum
();
//用户id
JxglAdminKpzsz
kpz
=
JxglAdminKpzsz
.
builder
().
build
();
kpz
.
setKpzmc
(
appgroset
.
getName
());;
//考评组名称
kpz
.
setZqtype
(
appgroset
.
getType
());;
//周期类型 0:月度;1:季度;2:半年度;3:年度;4:试用期;5:日;6:自定义;
kpz
.
setPfsmbt
(
appgroset
.
getPf
());;
//评分说明必填开关 0:关;1:开
kpz
.
setZbpfjs
(
appgroset
.
getPffs
());;
//指标评分计算方式 0:指标评分加和计算;1:指标评分加权计算(指标评分加和计算:评分=指标1评分+指标2评分+... | 指标评分加权计算 :评分=指标1评分*指标1权重+指标2评分*指标2权重+...)
kpz
.
setLcsjtype
(
appgroset
.
getLcsjtype
());;
//流程设计类型 0:按评分人设置流程;1:按指标设置流程
kpz
.
setMbzdrtype
(
appgroset
.
getMbzdr
());;
//目标制定人类型 0:被考核人;1:主管;2:指定成员;3:系统【目标制定】
// System.out.println(appgroset.getEnacusers());
String
[]
enac
=
appgroset
.
getEnacusers
();
String
mbzdr
=
String
.
join
(
","
,
enac
);
kpz
.
setMbzdrid
(
mbzdr
);;
//目标制定指定人id 【目标制定】--------[格式:101、102]
kpz
.
setMbqrr
(
appgroset
.
getMbqrr
());;
//目标确认人类型 0:主管;1:指定成员;2:被考核人【目标确认】;9:关
// System.out.println(appgroset.getConfusers());
String
[]
conf
=
appgroset
.
getConfusers
();
String
mbqrr
=
String
.
join
(
","
,
conf
);
kpz
.
setMbqrzdr
(
mbqrr
);;
//目标确认指定人id 【目标确认】--------[格式:101、102]
kpz
.
setZppz
(
appgroset
.
getZppz
());;
//自评配置开关 0:关;1:开
kpz
.
setZpweight
(
appgroset
.
getZpweight
());;
//自评权重
kpz
.
setHppz
(
appgroset
.
getHppz
());;
//互评配置开关 0:关;1:开
kpz
.
setHpweight
(
appgroset
.
getHpweight
());;
//互评权重
kpz
.
setHpnmkg
(
appgroset
.
getHpnmkg
());;
//互评匿名开关 0:关;1:开【互评】
kpz
.
setHpdrclfs
(
appgroset
.
getHpdrclfs
());;
//互评多人时的处理方式 0:各自评分(计算时取平均值);1:任一评分(任一评分人评分即可);9:关【互评】
kpz
.
setPfrqc
(
appgroset
.
getPrfqc
());;
//评分人去重 0:关;1:开【评分全局配置】
kpz
.
setPfrsdpj
(
appgroset
.
getPfrsdpj
());;
//评分人手动评级 0:关;1:开【评分全局配置】
kpz
.
setSjpfpz
(
appgroset
.
getSjpfpz
());;
//上级评分配置开关 0:关;1:开
kpz
.
setSjweight
(
appgroset
.
getSjqz
());;
//上级评分权重
kpz
.
setSpdrclfs
(
appgroset
.
getSjclstate
());;
//上级评分多人时的处理方式 0:各自评分(计算时取平均值);1:任一评分(任一评分人评分即可);9:关【上级评分】
kpz
.
setDpf
(
appgroset
.
getDpf
());;
//代评分 若该级处理人空缺,由其在通讯录中的上级主管代评分 ===> 0:关;1:开【上级评分】
kpz
.
setYxzj
(
appgroset
.
getYxzj
());;
//允许转交 0:关;1:开【上级评分】
kpz
.
setPfgz
(
appgroset
.
getSjpfrule
());;
//评分规则 0:评分人需要对每个指标进行评分;1:评分人不需要对每个指标进行评分,只需评一个总的得分;9:关【上级评分】
kpz
.
setCyrs
(
appgroset
.
getAssepers
().
length
);
//参与人数
kpz
.
setQyid
(
qyid
);;
//企业id
jxgladminkpzszmapper
.
insertjxgladminkpzsz
(
kpz
);
int
kpzid
=
kpz
.
getId
();
//考评组管理员
String
[]
evaladminid
=
appgroset
.
getEvaladminid
();
List
<
JxglAssoKpzry
>
kpzrylist
=
new
ArrayList
<
JxglAssoKpzry
>();
for
(
int
f
=
0
;
f
<
evaladminid
.
length
;
f
++)
{
JxglAssoKpzry
kpzry
=
JxglAssoKpzry
.
builder
().
build
();
kpzry
.
setKpzszid
(
kpzid
);;
//考评组设置ID
kpzry
.
setType
(
1
);;
//类型 1:考评组管理员;2:被考核人员
kpzry
.
setUsernum
(
Integer
.
valueOf
(
evaladminid
[
f
]));;
//员工编号
kpzry
.
setQyid
(
qyid
);;
//企业id
kpzrylist
.
add
(
kpzry
);
}
if
(
kpzrylist
.
size
()
>
0
)
{
jxglassokpzrymapper
.
insertjxglassokpzryList
(
kpzrylist
);
}
// 被考核人员
String
[]
assepers
=
appgroset
.
getAssepers
();
List
<
JxglAssoKpzry
>
asseperslist
=
new
ArrayList
<
JxglAssoKpzry
>();
for
(
int
a
=
0
;
a
<
assepers
.
length
;
a
++)
{
JxglAssoKpzry
kpzry
=
JxglAssoKpzry
.
builder
().
build
();
kpzry
.
setKpzszid
(
kpzid
);;
//考评组设置ID
kpzry
.
setType
(
2
);;
//类型 1:考评组管理员;2:被考核人员
kpzry
.
setUsernum
(
Integer
.
valueOf
(
assepers
[
a
]));;
//员工编号
kpzry
.
setQyid
(
qyid
);;
//企业id
asseperslist
.
add
(
kpzry
);
}
if
(
asseperslist
.
size
()
>
0
)
{
jxglassokpzrymapper
.
insertjxglassokpzryList
(
asseperslist
);
}
return
new
ResponseResult
().
success
(
"成功"
,
null
);
}
/**x
* 删除考评组
*/
@DeleteMapping
(
value
=
"/evaluationgroup/{id}"
)
@ApiOperation
(
value
=
"删除考评组"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
public
Result
<
Integer
>
EvaluationGroup
(
@PathVariable
(
"id"
)
Integer
id
)
{
JxglAdminKpzsz
.
builder
().
build
().
deleteById
(
id
);
jxglassokpzrymapper
.
deleteBykpzszid
(
id
);
return
ResultUtil
.
data
(
id
,
"删除成功"
);
}
@GetMapping
(
value
=
"/seleitem/{id}"
)
@ApiOperation
(
value
=
"选择指标项"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
ResponseResult
SelectIndexItem
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
int
qyid
=
userBean
.
getOrgCode
();
//坏小孩【企业id】
@SuppressWarnings
(
"unused"
)
int
userid
=
userBean
.
getEmpNum
();
//用户id
List
<
JxglAdminZbk
>
zbklist
=
new
LambdaQueryChainWrapper
<
JxglAdminZbk
>(
jxgladminzbkmapper
).
eq
(
JxglAdminZbk:
:
getQyid
,
qyid
)
.
eq
(
JxglAdminZbk:
:
getZbtype
,
id
).
list
();
return
new
ResponseResult
().
success
(
"选择指标项"
,
zbklist
);
}
}
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
controller
.
jxgl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.timer.api.bean.jxgl.JxglBasicSetting
;
import
cn.timer.api.bean.jxgl.JxglPerformanceRating
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.enums.CommonEnum
;
import
cn.timer.api.dao.jxgl.JxglBasicSettingMapper
;
import
cn.timer.api.dao.jxgl.JxglPerformanceRatingMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dto.jxgl.BasicSettingDto
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
@Api
(
tags
=
"3.1绩效管理"
)
@RestController
@Transactional
(
rollbackFor
=
Exception
.
class
)
@RequestMapping
(
value
=
"/jxgl"
,
produces
=
{
"application/json"
,
"multipart/form-data"
})
public
class
JxglController
{
@Autowired
private
QyzxEmpEntAssoMapper
qyzxEmpEntAssoMapper
;
@Autowired
private
JxglBasicSettingMapper
jxglBasicSettingMapper
;
@Autowired
private
JxglPerformanceRatingMapper
jxglPerformanceRatingMapper
;
//TODO 基础设置
/**
* 新增或编辑-基础设置
*/
@PostMapping
(
value
=
"/save_basic_setting"
)
@ApiOperation
(
value
=
"1.新增或编辑-基础设置"
,
httpMethod
=
"POST"
,
notes
=
"新增或编辑-审批模板组"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
saveAtg
(
@CurrentUser
UserBean
userBean
,
@Validated
@RequestBody
BasicSettingDto
basicSettingDto
)
throws
Exception
{
Integer
orgCode
=
userBean
.
getOrgCode
();
Integer
count
=
new
LambdaQueryChainWrapper
<
QyzxEmpEntAsso
>(
qyzxEmpEntAssoMapper
)
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
userBean
.
getEmpNum
())
.
in
(
QyzxEmpEntAsso:
:
getUserType
,
CommonEnum
.
U_TYPE_ADMIN
.
getType
(),
CommonEnum
.
U_TYPE_C_ADMIN
.
getType
())
.
count
();
if
(
count
<=
0
)
{
return
ResultUtil
.
error
(
"无权限编辑"
);
}
List
<
JxglPerformanceRating
>
listPr
=
basicSettingDto
.
getPerformanceRatings
();
if
(
listPr
!=
null
)
{
for
(
JxglPerformanceRating
pr
:
listPr
)
{
if
(
pr
.
getSectionMaxScore
()
>
basicSettingDto
.
getMaxScore
())
{
return
ResultUtil
.
error
(
"区间值不能超过 最高分"
);
}
else
if
(
pr
.
getSectionMinScore
()
>=
pr
.
getSectionMaxScore
())
{
return
ResultUtil
.
error
(
"区间值 设置不正确"
);
}
}
}
JxglBasicSetting
bS
=
jxglBasicSettingMapper
.
selectOne
(
new
QueryWrapper
<
JxglBasicSetting
>().
lambda
()
.
select
(
JxglBasicSetting:
:
getId
)
.
eq
(
JxglBasicSetting:
:
getOrgCode
,
orgCode
));
if
(
bS
!=
null
)
{
// 删除 绩效等级
jxglPerformanceRatingMapper
.
delete
(
new
QueryWrapper
<
JxglPerformanceRating
>().
lambda
()
.
eq
(
JxglPerformanceRating:
:
getBasicSettingId
,
bS
.
getId
()));
// 删除 基础设置
jxglBasicSettingMapper
.
delete
(
new
QueryWrapper
<
JxglBasicSetting
>().
lambda
()
.
eq
(
JxglBasicSetting:
:
getOrgCode
,
orgCode
));
}
JxglBasicSetting
bS2
=
JxglBasicSetting
.
builder
().
build
();
BeanUtil
.
copyProperties
(
basicSettingDto
,
bS2
,
"performanceRatings"
);
bS2
.
setOrgCode
(
orgCode
);
bS2
.
insert
();
if
(
listPr
!=
null
)
{
for
(
JxglPerformanceRating
pr
:
listPr
)
{
pr
.
setBasicSettingId
(
bS2
.
getId
());
jxglPerformanceRatingMapper
.
insert
(
pr
);
}
}
return
ResultUtil
.
success
();
}
}
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
1211116c
...
...
@@ -388,10 +388,15 @@ public class YgglController {
List
<
YgglMainEmp
>
listYmp
=
new
ArrayList
<
YgglMainEmp
>();
// 过滤掉 导入数据中, listPhone已存在 的 phone 的对象集合
List
<
AddygdaDto
>
list
=
listAddygdaDto
.
stream
()
.
filter
(
o
->
o
!=
null
&&
!
listPhone
.
contains
(
o
.
getPhone
())
&&
!
listzjNum
.
contains
(
o
.
getZjNum
())).
collect
(
Collectors
.
toList
());
// 过滤出 导入数据中, listPhone已存在 的 phone 的对象集合
List
<
AddygdaDto
>
phoneRepetitions
=
listAddygdaDto
.
stream
()
.
filter
(
o
->
o
!=
null
&&
listPhone
.
contains
(
o
.
getPhone
())).
collect
(
Collectors
.
toList
());
// 过滤出 导入数据中, listzjNum 已存在 的 ZjNum 的对象集合
List
<
AddygdaDto
>
idCardRepetitions
=
listAddygdaDto
.
stream
()
.
filter
(
o
->
o
!=
null
&&
listzjNum
.
contains
(
o
.
getZjNum
())).
collect
(
Collectors
.
toList
());
...
...
src/main/java/cn/timer/api/dao/jxgl/JxglA
ssoJxdj
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/JxglA
ppraisalAssessment
Mapper.java
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
java.util.List
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglA
ssoJxdj
;
import
cn.timer.api.bean.jxgl.JxglA
ppraisalAssessment
;
/**
* 绩效等级
*
* @author LAL 2020-01-02
*/
* 考核评定
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglAssoJxdjMapper
extends
BaseMapper
<
JxglAssoJxdj
>
{
int
insertJxglAssoJxdjList
(
List
<
JxglAssoJxdj
>
jxglassojxdj
);
public
interface
JxglAppraisalAssessmentMapper
extends
BaseMapper
<
JxglAppraisalAssessment
>
{
int
deletejxdjByjcszid
(
int
jcszid
);
}
src/main/java/cn/timer/api/dao/jxgl/JxglA
ssoZbzdsz
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/JxglA
ppraisalIndicatorsAssessment
Mapper.java
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
java.util.List
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglA
ssoZbzdsz
;
import
cn.timer.api.bean.jxgl.JxglA
ppraisalIndicatorsAssessment
;
/**
* 指标字段设置
*
* @author LAL 2020-01-02
*/
* 考核指标评定
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglAssoZbzdszMapper
extends
BaseMapper
<
JxglAssoZbzdsz
>
{
int
insertjxglassozbzdszList
(
List
<
JxglAssoZbzdsz
>
jxglassozbzdsz
);
public
interface
JxglAppraisalIndicatorsAssessmentMapper
extends
BaseMapper
<
JxglAppraisalIndicatorsAssessment
>
{
int
deletezbzdszByjcszid
(
int
jcszid
);
}
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalIndicatorsMapper.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglAppraisalIndicators
;
/**
* 考核指标
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglAppraisalIndicatorsMapper
extends
BaseMapper
<
JxglAppraisalIndicators
>
{
}
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalIndicatorsTMapper.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsT
;
/**
* 考核指标模板
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglAppraisalIndicatorsTMapper
extends
BaseMapper
<
JxglAppraisalIndicatorsT
>
{
}
src/main/java/cn/timer/api/dao/jxgl/JxglA
ssoMbsz
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/JxglA
ppraisalItem
Mapper.java
View file @
1211116c
...
...
@@ -3,14 +3,14 @@ import org.springframework.stereotype.Repository;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglA
ssoMbsz
;
import
cn.timer.api.bean.jxgl.JxglA
ppraisalItem
;
/**
*
模板设计
* @author
LAL 2020-01-08
*
考核项
* @author
Tang 2020-05-26
*/
@Repository
public
interface
JxglA
ssoMbszMapper
extends
BaseMapper
<
JxglAssoMbsz
>
{
public
interface
JxglA
ppraisalItemMapper
extends
BaseMapper
<
JxglAppraisalItem
>
{
...
...
src/main/java/cn/timer/api/dao/jxgl/JxglAppraisalItemTMapper.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglAppraisalItemT
;
/**
* 考核项模板
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglAppraisalItemTMapper
extends
BaseMapper
<
JxglAppraisalItemT
>
{
}
src/main/java/cn/timer/api/dao/jxgl/JxglA
ssoWdzbgl
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/JxglA
ppraisalLog
Mapper.java
View file @
1211116c
...
...
@@ -3,14 +3,14 @@ import org.springframework.stereotype.Repository;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglA
ssoWdzbgl
;
import
cn.timer.api.bean.jxgl.JxglA
ppraisalLog
;
/**
*
维度指标关联
* @author
LAL 2020-01-08
*
考核记录
* @author
Tang 2020-05-26
*/
@Repository
public
interface
JxglA
ssoWdzbglMapper
extends
BaseMapper
<
JxglAssoWdzbgl
>
{
public
interface
JxglA
ppraisalLogMapper
extends
BaseMapper
<
JxglAppraisalLog
>
{
...
...
src/main/java/cn/timer/api/dao/jxgl/JxglA
dminKpzsz
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/JxglA
ppraisal
Mapper.java
View file @
1211116c
...
...
@@ -3,15 +3,15 @@ import org.springframework.stereotype.Repository;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglA
dminKpzsz
;
import
cn.timer.api.bean.jxgl.JxglA
ppraisal
;
/**
* 考
评组设置
* @author
LAL 2020-01-08
* 考
核
* @author
Tang 2020-05-26
*/
@Repository
public
interface
JxglAdminKpzszMapper
extends
BaseMapper
<
JxglAdminKpzsz
>
{
public
interface
JxglAppraisalMapper
extends
BaseMapper
<
JxglAppraisal
>
{
int
insertjxgladminkpzsz
(
JxglAdminKpzsz
jxgladminkpzsz
);
}
src/main/java/cn/timer/api/dao/jxgl/JxglA
dminZbk
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/JxglA
ppraisalT
Mapper.java
View file @
1211116c
...
...
@@ -3,15 +3,15 @@ import org.springframework.stereotype.Repository;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglA
dminZbk
;
import
cn.timer.api.bean.jxgl.JxglA
ppraisalT
;
/**
*
指标库
* @author
LAL 2020-01-0
6
*
考核模板
* @author
Tang 2020-05-2
6
*/
@Repository
public
interface
JxglAdminZbkMapper
extends
BaseMapper
<
JxglAdminZbk
>
{
public
interface
JxglAppraisalTMapper
extends
BaseMapper
<
JxglAppraisalT
>
{
int
insertjxgladminzbk
(
JxglAdminZbk
jxgladminzbk
);
}
src/main/java/cn/timer/api/dao/jxgl/Jxgl
AdminJcsz
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/Jxgl
BasicSetting
Mapper.java
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.Jxgl
AdminJcsz
;
import
cn.timer.api.bean.jxgl.Jxgl
BasicSetting
;
/**
* 基础设置
*
* @author LAL 2020-01-02
*/
* 基础设置
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglAdminJcszMapper
extends
BaseMapper
<
JxglAdminJcsz
>
{
int
insertjxgladminjcsz
(
JxglAdminJcsz
jxgladminjcsz
);
public
interface
JxglBasicSettingMapper
extends
BaseMapper
<
JxglBasicSetting
>
{
}
src/main/java/cn/timer/api/dao/jxgl/JxglPerformanceAppraisalMapper.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.JxglPerformanceAppraisal
;
/**
* 绩效考核
* @author Tang 2020-05-26
*/
@Repository
public
interface
JxglPerformanceAppraisalMapper
extends
BaseMapper
<
JxglPerformanceAppraisal
>
{
}
src/main/java/cn/timer/api/dao/jxgl/Jxgl
AssoKpzry
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/Jxgl
PerformanceRating
Mapper.java
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
java.util.List
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.Jxgl
AssoKpzry
;
import
cn.timer.api.bean.jxgl.Jxgl
PerformanceRating
;
/**
*
考评组管理员/被考核人员
* @author
LAL 2020-01-08
*
绩效等级
* @author
Tang 2020-05-26
*/
@Repository
public
interface
Jxgl
AssoKpzryMapper
extends
BaseMapper
<
JxglAssoKpzry
>
{
public
interface
Jxgl
PerformanceRatingMapper
extends
BaseMapper
<
JxglPerformanceRating
>
{
int
insertjxglassokpzryList
(
List
<
JxglAssoKpzry
>
jxglassokpzry
);
int
deleteBykpzszid
(
int
kpzszid
);
}
src/main/java/cn/timer/api/dao/jxgl/Jxgl
AssoFbzbk
Mapper.java
→
src/main/java/cn/timer/api/dao/jxgl/Jxgl
ProcessNode
Mapper.java
View file @
1211116c
package
cn
.
timer
.
api
.
dao
.
jxgl
;
import
java.util.List
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.jxgl.Jxgl
AssoFbzbk
;
import
cn.timer.api.bean.jxgl.Jxgl
ProcessNode
;
/**
*
指标库量化指标
* @author
LAL 2020-01-0
6
*
流程节点
* @author
Tang 2020-05-2
6
*/
@Repository
public
interface
Jxgl
AssoFbzbkMapper
extends
BaseMapper
<
JxglAssoFbzbk
>
{
public
interface
Jxgl
ProcessNodeMapper
extends
BaseMapper
<
JxglProcessNode
>
{
int
insertjxglassofbzbkList
(
List
<
JxglAssoFbzbk
>
jxglassofbzbk
);
int
deletejxglassofbzbkByzbkid
(
int
zbkid
);
}
src/main/java/cn/timer/api/dto/jxgl/AppraisalGroupSettingsDto.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
dto
.
jxgl
;
import
java.io.Serializable
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
AppraisalGroupSettingsDto
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
2721179614486813779L
;
String
name
;
//
Integer
type
;
// 周期类型
String
[]
evaladminid
;
// 考评组管理员
String
[]
assepers
;
// 被考核人员
Integer
pffs
;
// 指标评分计算方式
Integer
pf
;
// 评分说明必填
Integer
mbzdr
;
//目标制定人类型
String
[]
enacusers
;
//目标制定人员集合
Integer
mbqrr
;
//目标确认人类型
String
[]
confusers
;
//目标确认人员集合
Integer
zppz
;
//自评配置开关 0:关;1:开
String
zpweight
;
//自评权重
Integer
prfqc
;
//评分人去重 0:关;1:开【评分全局配置】
Integer
pfrsdpj
;
//评分人手动评级 0:关;1:开【评分全局配置】
Integer
hppz
;
//互评配置开关 0:关;1:开
String
hpweight
;
//互评权重
Integer
hpnmkg
;
//互评匿名开关 0:关;1:开【互评】
Integer
hpdrclfs
;
//互评多人时的处理方式 0:各自评分(计算时取平均值);1:任一评分(任一评分人评分即可);9:关【互评】
Integer
sjpfpz
;
//上级评分配置开关 0:关;1:开
String
sjqz
;
//评分权重-【上级评分配置】
Integer
sjclstate
;
//当执行人为多人时的处理方式
Integer
dpf
;
//代评分 若该级处理人空缺,由其在通讯录中的上级主管代评分 ===> 0:关;1:开【上级评分】
Integer
yxzj
;
//允许转交 0:关;1:开【上级评分】
Integer
sjpfrule
;
//评分规则
Integer
lcsjtype
;
//流程设计类型 0:按评分人设置流程;1:按指标设置流程
}
src/main/java/cn/timer/api/dto/jxgl/BasicSettingDto.java
0 → 100644
View file @
1211116c
package
cn
.
timer
.
api
.
dto
.
jxgl
;
import
java.util.Date
;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotNull
;
import
cn.timer.api.bean.jxgl.JxglPerformanceRating
;
import
cn.timer.api.config.exception.ValidationMsg
;
import
cn.timer.api.config.validation.ValidList
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
BasicSettingDto
{
@ApiModelProperty
(
value
=
"编号"
,
example
=
"10"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"企业id"
,
example
=
"10"
)
private
Integer
orgCode
;
@NotNull
(
message
=
ValidationMsg
.
NOTNULL
)
@ApiModelProperty
(
value
=
"最高分"
,
example
=
"100"
)
private
Integer
maxScore
;
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2020-10-10 10:10:10"
)
private
Date
updateTime
;
@Valid
@ApiModelProperty
(
value
=
"绩效等级"
,
example
=
"1"
)
private
ValidList
<
JxglPerformanceRating
>
performanceRatings
;
}
src/main/java/cn/timer/api/dto/jxgl/FoundationSetupDto.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
dto
.
jxgl
;
import
java.io.Serializable
;
import
java.util.List
;
import
cn.timer.api.bean.jxgl.JxglAdminJcsz
;
import
cn.timer.api.bean.jxgl.JxglAssoJxdj
;
import
cn.timer.api.bean.jxgl.JxglAssoZbzdsz
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
FoundationSetupDto
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1169783229024995991L
;
JxglAdminJcsz
jcsz
;
List
<
JxglAssoJxdj
>
jxdj
;
List
<
JxglAssoZbzdsz
>
zbzdsz
;
}
src/main/java/cn/timer/api/dto/jxgl/IndexDatabaseDto.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
dto
.
jxgl
;
import
java.io.Serializable
;
import
cn.timer.api.dto.xcgl.CustomDto
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
IndexDatabaseDto
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
1615442826461619536L
;
Integer
id
;
String
name
;
Integer
type
;
// 指标类型
CustomDto
[]
zbz
;
// 自定义输入值,
String
khbz
;
// 考核标准
String
qz
;
// 权重
String
jfbz
;
// 加分标准
String
jfsx
;
// 加分上限
String
kfbz
;
// 扣分标准
String
kfsx
;
// 扣分上限
String
bz
;
// 备注
Integer
fs
;
// 评分方式
String
fsgs
;
// 评分方式为“1”时 输入公式
Integer
ly
;
// 结果值数据来源
Integer
zdcyid
;
// 结果值数据来源为“1”时的 指定成员id
Integer
bx
;
// 必选标签开关
Integer
pfr
;
// 指定评分人开关
Integer
zdpfrid
;
// 指定评分人打开时 评分人id
String
[]
bq
;
// 标签
}
src/main/java/cn/timer/api/dto/jxgl/IndexDetailDto.java
deleted
100644 → 0
View file @
651ed546
package
cn
.
timer
.
api
.
dto
.
jxgl
;
import
java.io.Serializable
;
import
java.util.List
;
import
cn.timer.api.bean.jxgl.JxglAdminZbk
;
import
cn.timer.api.bean.jxgl.JxglAssoFbzbk
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
IndexDetailDto
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
7971959886425432567L
;
JxglAdminZbk
zbzdsz
;
List
<
JxglAssoFbzbk
>
fbzbklist
;
}
src/main/resources/application-pro.yml
View file @
1211116c
...
...
@@ -31,7 +31,7 @@ spring:
# username: tang
# password: Tang123456!
# url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://test-8timer-
api
.youlingrc.com/8timer_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://test-8timer-
fk
.youlingrc.com/8timer_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
@@ -91,7 +91,7 @@ spring:
host
:
smtp.youlingrc.com
username
:
postmaster@youlingrc.com
password
:
YoulingRC2020
default-encoding
:
utf-8
default-encoding
:
utf-8
、
properties
:
mail
:
smtp
:
...
...
src/main/resources/mapping/jxgl/JxglAdminJcszMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAdminJcszMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAdminJcsz"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"is_ork"
property=
"isOrk"
/>
<result
column=
"is_jxkh"
property=
"isJxkh"
/>
<result
column=
"jsgz"
property=
"jsgz"
/>
<result
column=
"lhzb"
property=
"lhzb"
/>
<result
column=
"lhzb_zfzdjh"
property=
"lhzbZfzdjh"
/>
<result
column=
"lhzb_lrfs"
property=
"lhzbLrfs"
/>
<result
column=
"xwjzgzb"
property=
"xwjzgzb"
/>
<result
column=
"xwjzgzb_zfzdjh"
property=
"xwjzgzbZfzdjh"
/>
<result
column=
"xwjzgzb_lrfs"
property=
"xwjzgzbLrfs"
/>
<result
column=
"jxdjkg"
property=
"jxdjkg"
/>
<result
column=
"jxdjtype"
property=
"jxdjtype"
/>
<result
column=
"djrsgl"
property=
"djrsgl"
/>
<result
column=
"dbzdtx"
property=
"dbzdtx"
/>
<result
column=
"fzmc"
property=
"fzmc"
/>
<result
column=
"manfen"
property=
"manfen"
/>
<result
column=
"qyid"
property=
"qyid"
/>
<result
column=
"tjryid"
property=
"tjryid"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
is_ork,
is_jxkh,
jsgz,
lhzb,
lhzb_zfzdjh,
lhzb_lrfs,
xwjzgzb,
xwjzgzb_zfzdjh,
xwjzgzb_lrfs,
jxdjkg,
jxdjtype,
djrsgl,
dbzdtx,
fzmc,
manfen,
qyid,
tjryid
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAdminJcsz_id,
is_ork JxglAdminJcsz_is_ork,
is_jxkh JxglAdminJcsz_is_jxkh,
jsgz JxglAdminJcsz_jsgz,
lhzb JxglAdminJcsz_lhzb,
lhzb_zfzdjh JxglAdminJcsz_lhzb_zfzdjh,
lhzb_lrfs JxglAdminJcsz_lhzb_lrfs,
xwjzgzb JxglAdminJcsz_xwjzgzb,
xwjzgzb_zfzdjh JxglAdminJcsz_xwjzgzb_zfzdjh,
xwjzgzb_lrfs JxglAdminJcsz_xwjzgzb_lrfs,
jxdjkg JxglAdminJcsz_jxdjkg,
jxdjtype JxglAdminJcsz_jxdjtype,
djrsgl JxglAdminJcsz_djrsgl,
dbzdtx JxglAdminJcsz_dbzdtx,
fzmc JxglAdminJcsz_fzmc,
manfen JxglAdminJcsz_manfen,
qyid JxglAdminJcsz_qyid,
tjryid JxglAdminJcsz_tjryid
</sql>
<insert
id=
"insertjxgladminjcsz"
parameterType=
"cn.timer.api.bean.jxgl.JxglAdminJcsz"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
INSERT INTO jxgl_admin_jcsz
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
'null != isOrk'
>
is_ork,
</if>
<if
test=
'null != isJxkh'
>
is_jxkh,
</if>
<if
test=
'null != jsgz'
>
jsgz,
</if>
<if
test=
'null != lhzb'
>
lhzb,
</if>
<if
test=
'null != lhzbZfzdjh'
>
lhzb_zfzdjh,
</if>
<if
test=
'null != lhzbLrfs'
>
lhzb_lrfs,
</if>
<if
test=
'null != xwjzgzb'
>
xwjzgzb,
</if>
<if
test=
'null != xwjzgzbZfzdjh'
>
xwjzgzb_zfzdjh,
</if>
<if
test=
'null != xwjzgzbLrfs'
>
xwjzgzb_lrfs,
</if>
<if
test=
'null != jxdjkg'
>
jxdjkg,
</if>
<if
test=
'null != jxdjtype'
>
jxdjtype,
</if>
<if
test=
'null != djrsgl'
>
djrsgl,
</if>
<if
test=
'null != dbzdtx'
>
dbzdtx,
</if>
<if
test=
'null != fzmc'
>
fzmc,
</if>
<if
test=
'null != manfen'
>
manfen,
</if>
<if
test=
'null != qyid'
>
qyid,
</if>
<if
test=
'null != tjryid'
>
tjryid
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
'null != isOrk'
>
#{isOrk},
</if>
<if
test=
'null != isJxkh'
>
#{isJxkh},
</if>
<if
test=
'null != jsgz'
>
#{jsgz},
</if>
<if
test=
'null != lhzb'
>
#{lhzb},
</if>
<if
test=
'null != lhzbZfzdjh'
>
#{lhzbZfzdjh},
</if>
<if
test=
'null != lhzbLrfs'
>
#{lhzbLrfs},
</if>
<if
test=
'null != xwjzgzb'
>
#{xwjzgzb},
</if>
<if
test=
'null != xwjzgzbZfzdjh'
>
#{xwjzgzbZfzdjh},
</if>
<if
test=
'null != xwjzgzbLrfs'
>
#{xwjzgzbLrfs},
</if>
<if
test=
'null != jxdjkg'
>
#{jxdjkg},
</if>
<if
test=
'null != jxdjtype'
>
#{jxdjtype},
</if>
<if
test=
'null != djrsgl'
>
#{djrsgl},
</if>
<if
test=
'null != dbzdtx'
>
#{dbzdtx},
</if>
<if
test=
'null != fzmc'
>
#{fzmc},
</if>
<if
test=
'null != manfen'
>
#{manfen},
</if>
<if
test=
'null != qyid'
>
#{qyid},
</if>
<if
test=
'null != tjryid'
>
#{tjryid}
</if>
</trim>
</insert>
<!-- <delete id="delete">
DELETE FROM jxgl_admin_jcsz
WHERE id = #{id}
</delete>
<select id="load" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List" />
FROM jxgl_admin_jcsz
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List" />
FROM jxgl_admin_jcsz
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_admin_jcsz
</select> -->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAdminKpzszMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAdminKpzszMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAdminKpzsz"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"kpzmc"
property=
"kpzmc"
/>
<result
column=
"zqtype"
property=
"zqtype"
/>
<result
column=
"pfsmbt"
property=
"pfsmbt"
/>
<result
column=
"zbpfjs"
property=
"zbpfjs"
/>
<result
column=
"lcsjtype"
property=
"lcsjtype"
/>
<result
column=
"mbzdrtype"
property=
"mbzdrtype"
/>
<result
column=
"mbzdrid"
property=
"mbzdrid"
/>
<result
column=
"mbqrr"
property=
"mbqrr"
/>
<result
column=
"mbqrzdr"
property=
"mbqrzdr"
/>
<result
column=
"zppz"
property=
"zppz"
/>
<result
column=
"zpweight"
property=
"zpweight"
/>
<result
column=
"hppz"
property=
"hppz"
/>
<result
column=
"hpweight"
property=
"hpweight"
/>
<result
column=
"hpnmkg"
property=
"hpnmkg"
/>
<result
column=
"hpdrclfs"
property=
"hpdrclfs"
/>
<result
column=
"pfrqc"
property=
"pfrqc"
/>
<result
column=
"pfrsdpj"
property=
"pfrsdpj"
/>
<result
column=
"sjpfpz"
property=
"sjpfpz"
/>
<result
column=
"sjweight"
property=
"sjweight"
/>
<result
column=
"spdrclfs"
property=
"spdrclfs"
/>
<result
column=
"dpf"
property=
"dpf"
/>
<result
column=
"yxzj"
property=
"yxzj"
/>
<result
column=
"pfgz"
property=
"pfgz"
/>
<result
column=
"cyrs"
property=
"cyrs"
/>
<result
column=
"qyid"
property=
"qyid"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
kpzmc,
zqtype,
pfsmbt,
zbpfjs,
lcsjtype,
mbzdrtype,
mbzdrid,
mbqrr,
mbqrzdr,
zppz,
zpweight,
hppz,
hpweight,
hpnmkg,
hpdrclfs,
pfrqc,
pfrsdpj,
sjpfpz,
sjweight,
spdrclfs,
dpf,
yxzj,
pfgz,
cyrs,
qyid
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAdminKpzsz_id,
kpzmc JxglAdminKpzsz_kpzmc,
zqtype JxglAdminKpzsz_zqtype,
pfsmbt JxglAdminKpzsz_pfsmbt,
zbpfjs JxglAdminKpzsz_zbpfjs,
lcsjtype JxglAdminKpzsz_lcsjtype,
mbzdrtype JxglAdminKpzsz_mbzdrtype,
mbzdrid JxglAdminKpzsz_mbzdrid,
mbqrr JxglAdminKpzsz_mbqrr,
mbqrzdr JxglAdminKpzsz_mbqrzdr,
zppz JxglAdminKpzsz_zppz,
zpweight JxglAdminKpzsz_zpweight,
hppz JxglAdminKpzsz_hppz,
hpweight JxglAdminKpzsz_hpweight,
hpnmkg JxglAdminKpzsz_hpnmkg,
hpdrclfs JxglAdminKpzsz_hpdrclfs,
pfrqc JxglAdminKpzsz_pfrqc,
pfrsdpj JxglAdminKpzsz_pfrsdpj,
sjpfpz JxglAdminKpzsz_sjpfpz,
sjweight JxglAdminKpzsz_sjweight,
spdrclfs JxglAdminKpzsz_spdrclfs,
dpf JxglAdminKpzsz_dpf,
yxzj JxglAdminKpzsz_yxzj,
pfgz JxglAdminKpzsz_pfgz,
cyrs JxglAdminKpzsz_cyrs,
qyid JxglAdminKpzsz_qyid
</sql>
<insert
id=
"insertjxgladminkpzsz"
parameterType=
"cn.timer.api.bean.jxgl.JxglAdminKpzsz"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
INSERT INTO jxgl_admin_kpzsz
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test =
'null != kpzmc'
>
kpzmc,
</if>
<if
test =
'null != zqtype'
>
zqtype,
</if>
<if
test =
'null != pfsmbt'
>
pfsmbt,
</if>
<if
test =
'null != zbpfjs'
>
zbpfjs,
</if>
<if
test =
'null != lcsjtype'
>
lcsjtype,
</if>
<if
test =
'null != mbzdrtype'
>
mbzdrtype,
</if>
<if
test =
'null != mbzdrid'
>
mbzdrid,
</if>
<if
test =
'null != mbqrr'
>
mbqrr,
</if>
<if
test =
'null != mbqrzdr'
>
mbqrzdr,
</if>
<if
test =
'null != zppz'
>
zppz,
</if>
<if
test =
'null != zpweight'
>
zpweight,
</if>
<if
test =
'null != hppz'
>
hppz,
</if>
<if
test =
'null != hpweight'
>
hpweight,
</if>
<if
test =
'null != hpnmkg'
>
hpnmkg,
</if>
<if
test =
'null != hpdrclfs'
>
hpdrclfs,
</if>
<if
test =
'null != pfrqc'
>
pfrqc,
</if>
<if
test =
'null != pfrsdpj'
>
pfrsdpj,
</if>
<if
test =
'null != sjpfpz'
>
sjpfpz,
</if>
<if
test =
'null != sjweight'
>
sjweight,
</if>
<if
test =
'null != spdrclfs'
>
spdrclfs,
</if>
<if
test =
'null != dpf'
>
dpf,
</if>
<if
test =
'null != yxzj'
>
yxzj,
</if>
<if
test =
'null != pfgz'
>
pfgz,
</if>
<if
test =
'null != cyrs'
>
cyrs,
</if>
<if
test =
'null != qyid'
>
qyid
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test =
'null != kpzmc'
>
#{kpzmc},
</if>
<if
test =
'null != zqtype'
>
#{zqtype},
</if>
<if
test =
'null != pfsmbt'
>
#{pfsmbt},
</if>
<if
test =
'null != zbpfjs'
>
#{zbpfjs},
</if>
<if
test =
'null != lcsjtype'
>
#{lcsjtype},
</if>
<if
test =
'null != mbzdrtype'
>
#{mbzdrtype},
</if>
<if
test =
'null != mbzdrid'
>
#{mbzdrid},
</if>
<if
test =
'null != mbqrr'
>
#{mbqrr},
</if>
<if
test =
'null != mbqrzdr'
>
#{mbqrzdr},
</if>
<if
test =
'null != zppz'
>
#{zppz},
</if>
<if
test =
'null != zpweight'
>
#{zpweight},
</if>
<if
test =
'null != hppz'
>
#{hppz},
</if>
<if
test =
'null != hpweight'
>
#{hpweight},
</if>
<if
test =
'null != hpnmkg'
>
#{hpnmkg},
</if>
<if
test =
'null != hpdrclfs'
>
#{hpdrclfs},
</if>
<if
test =
'null != pfrqc'
>
#{pfrqc},
</if>
<if
test =
'null != pfrsdpj'
>
#{pfrsdpj},
</if>
<if
test =
'null != sjpfpz'
>
#{sjpfpz},
</if>
<if
test =
'null != sjweight'
>
#{sjweight},
</if>
<if
test =
'null != spdrclfs'
>
#{spdrclfs},
</if>
<if
test =
'null != dpf'
>
#{dpf},
</if>
<if
test =
'null != yxzj'
>
#{yxzj},
</if>
<if
test =
'null != pfgz'
>
#{pfgz},
</if>
<if
test =
'null != cyrs'
>
#{cyrs},
</if>
<if
test =
'null != qyid'
>
#{qyid}
</if>
</trim>
</insert>
<!-- <delete id="delete" >
DELETE FROM jxgl_admin_kpzsz
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAdminKpzsz">
UPDATE jxgl_admin_kpzsz
<set>
<if test ='null != kpzmc'>kpzmc = #{kpzmc},</if>
<if test ='null != zqtype'>zqtype = #{zqtype},</if>
<if test ='null != pfsmbt'>pfsmbt = #{pfsmbt},</if>
<if test ='null != zbpfjs'>zbpfjs = #{zbpfjs},</if>
<if test ='null != lcsjtype'>lcsjtype = #{lcsjtype},</if>
<if test ='null != mbzdrtype'>mbzdrtype = #{mbzdrtype},</if>
<if test ='null != mbzdrid'>mbzdrid = #{mbzdrid},</if>
<if test ='null != mbqrr'>mbqrr = #{mbqrr},</if>
<if test ='null != mbqrzdr'>mbqrzdr = #{mbqrzdr},</if>
<if test ='null != zppz'>zppz = #{zppz},</if>
<if test ='null != zpweight'>zpweight = #{zpweight},</if>
<if test ='null != hppz'>hppz = #{hppz},</if>
<if test ='null != hpweight'>hpweight = #{hpweight},</if>
<if test ='null != hpnmkg'>hpnmkg = #{hpnmkg},</if>
<if test ='null != hpdrclfs'>hpdrclfs = #{hpdrclfs},</if>
<if test ='null != pfrqc'>pfrqc = #{pfrqc},</if>
<if test ='null != pfrsdpj'>pfrsdpj = #{pfrsdpj},</if>
<if test ='null != sjpfpz'>sjpfpz = #{sjpfpz},</if>
<if test ='null != sjweight'>sjweight = #{sjweight},</if>
<if test ='null != spdrclfs'>spdrclfs = #{spdrclfs},</if>
<if test ='null != dpf'>dpf = #{dpf},</if>
<if test ='null != yxzj'>yxzj = #{yxzj},</if>
<if test ='null != pfgz'>pfgz = #{pfgz},</if>
<if test ='null != cyrs'>cyrs = #{cyrs},</if>
<if test ='null != qyid'>qyid = #{qyid}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_admin_kpzsz
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_admin_kpzsz
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_admin_kpzsz
</select> -->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAdminZbkMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAdminZbkMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAdminZbk"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"zbmc"
property=
"zbmc"
/>
<result
column=
"zbtype"
property=
"zbtype"
/>
<result
column=
"khbz"
property=
"khbz"
/>
<result
column=
"quanz"
property=
"quanz"
/>
<result
column=
"remarks"
property=
"remarks"
/>
<result
column=
"pfsf"
property=
"pfsf"
/>
<result
column=
"pfgs"
property=
"pfgs"
/>
<result
column=
"jgzsjly"
property=
"jgzsjly"
/>
<result
column=
"zdcyid"
property=
"zdcyid"
/>
<result
column=
"bxbqkg"
property=
"bxbqkg"
/>
<result
column=
"zdpfrkg"
property=
"zdpfrkg"
/>
<result
column=
"sdpfrid"
property=
"sdpfrid"
/>
<result
column=
"label"
property=
"label"
/>
<result
column=
"jfbz"
property=
"jfbz"
/>
<result
column=
"jfsx"
property=
"jfsx"
/>
<result
column=
"kfbz"
property=
"kfbz"
/>
<result
column=
"kfsx"
property=
"kfsx"
/>
<result
column=
"qyid"
property=
"qyid"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
zbmc,
zbtype,
khbz,
quanz,
remarks,
pfsf,
pfgs,
jgzsjly,
zdcyid,
bxbqkg,
zdpfrkg,
sdpfrid,
label,
jfbz,
jfsx,
kfbz,
kfsx,
qyid
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAdminZbk_id,
zbmc JxglAdminZbk_zbmc,
zbtype JxglAdminZbk_zbtype,
khbz JxglAdminZbk_khbz,
quanz JxglAdminZbk_quanz,
remarks JxglAdminZbk_remarks,
pfsf JxglAdminZbk_pfsf,
pfgs JxglAdminZbk_pfgs,
jgzsjly JxglAdminZbk_jgzsjly,
zdcyid JxglAdminZbk_zdcyid,
bxbqkg JxglAdminZbk_bxbqkg,
zdpfrkg JxglAdminZbk_zdpfrkg,
sdpfrid JxglAdminZbk_sdpfrid,
label JxglAdminZbk_label,
jfbz JxglAdminZbk_jfbz,
jfsx JxglAdminZbk_jfsx,
kfbz JxglAdminZbk_kfbz,
kfsx JxglAdminZbk_kfsx,
qyid JxglAdminZbk_qyid
</sql>
<insert
id=
"insertjxgladminzbk"
parameterType=
"cn.timer.api.bean.jxgl.JxglAdminZbk"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
INSERT INTO jxgl_admin_zbk
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test =
'null != zbmc'
>
zbmc,
</if>
<if
test =
'null != zbtype'
>
zbtype,
</if>
<if
test =
'null != khbz'
>
khbz,
</if>
<if
test =
'null != quanz'
>
quanz,
</if>
<if
test =
'null != remarks'
>
remarks,
</if>
<if
test =
'null != pfsf'
>
pfsf,
</if>
<if
test =
'null != pfgs'
>
pfgs,
</if>
<if
test =
'null != jgzsjly'
>
jgzsjly,
</if>
<if
test =
'null != zdcyid'
>
zdcyid,
</if>
<if
test =
'null != bxbqkg'
>
bxbqkg,
</if>
<if
test =
'null != zdpfrkg'
>
zdpfrkg,
</if>
<if
test =
'null != sdpfrid'
>
sdpfrid,
</if>
<if
test =
'null != label'
>
label,
</if>
<if
test =
'null != jfbz'
>
jfbz,
</if>
<if
test =
'null != jfsx'
>
jfsx,
</if>
<if
test =
'null != kfbz'
>
kfbz,
</if>
<if
test =
'null != kfsx'
>
kfsx,
</if>
<if
test =
'null != qyid'
>
qyid
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test =
'null != zbmc'
>
#{zbmc},
</if>
<if
test =
'null != zbtype'
>
#{zbtype},
</if>
<if
test =
'null != khbz'
>
#{khbz},
</if>
<if
test =
'null != quanz'
>
#{quanz},
</if>
<if
test =
'null != remarks'
>
#{remarks},
</if>
<if
test =
'null != pfsf'
>
#{pfsf},
</if>
<if
test =
'null != pfgs'
>
#{pfgs},
</if>
<if
test =
'null != jgzsjly'
>
#{jgzsjly},
</if>
<if
test =
'null != zdcyid'
>
#{zdcyid},
</if>
<if
test =
'null != bxbqkg'
>
#{bxbqkg},
</if>
<if
test =
'null != zdpfrkg'
>
#{zdpfrkg},
</if>
<if
test =
'null != sdpfrid'
>
#{sdpfrid},
</if>
<if
test =
'null != label'
>
#{label},
</if>
<if
test =
'null != jfbz'
>
#{jfbz},
</if>
<if
test =
'null != jfsx'
>
#{jfsx},
</if>
<if
test =
'null != kfbz'
>
#{kfbz},
</if>
<if
test =
'null != kfsx'
>
#{kfsx},
</if>
<if
test =
'null != qyid'
>
#{qyid}
</if>
</trim>
</insert>
<!-- <delete id="delete" >
DELETE FROM jxgl_admin_zbk
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAdminZbk">
UPDATE jxgl_admin_zbk
<set>
<if test ='null != zbmc'>zbmc = #{zbmc},</if>
<if test ='null != zbtype'>zbtype = #{zbtype},</if>
<if test ='null != khbz'>khbz = #{khbz},</if>
<if test ='null != quanz'>quanz = #{quanz},</if>
<if test ='null != remarks'>remarks = #{remarks},</if>
<if test ='null != pfsf'>pfsf = #{pfsf},</if>
<if test ='null != pfgs'>pfgs = #{pfgs},</if>
<if test ='null != jgzsjly'>jgzsjly = #{jgzsjly},</if>
<if test ='null != zdcyid'>zdcyid = #{zdcyid},</if>
<if test ='null != bxbqkg'>bxbqkg = #{bxbqkg},</if>
<if test ='null != zdpfrkg'>zdpfrkg = #{zdpfrkg},</if>
<if test ='null != sdpfrid'>sdpfrid = #{sdpfrid},</if>
<if test ='null != label'>label = #{label},</if>
<if test ='null != jfbz'>jfbz = #{jfbz},</if>
<if test ='null != jfsx'>jfsx = #{jfsx},</if>
<if test ='null != kfbz'>kfbz = #{kfbz},</if>
<if test ='null != kfsx'>kfsx = #{kfsx},</if>
<if test ='null != qyid'>qyid = #{qyid}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_admin_zbk
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_admin_zbk
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_admin_zbk
</select> -->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalAssessmentMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalAssessmentMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalAssessment"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_id"
property=
"appraisalId"
/>
<result
column=
"assessor_id"
property=
"assessorId"
/>
<result
column=
"assessor_name"
property=
"assessorName"
/>
<result
column=
"comprehensive_score"
property=
"comprehensiveScore"
/>
<result
column=
"remarks"
property=
"remarks"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"level"
property=
"level"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_id,
assessor_id,
assessor_name,
comprehensive_score,
remarks,
type,
create_time,
level
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalAssessment_id,
appraisal_id JxglAppraisalAssessment_appraisal_id,
assessor_id JxglAppraisalAssessment_assessor_id,
assessor_name JxglAppraisalAssessment_assessor_name,
comprehensive_score JxglAppraisalAssessment_comprehensive_score,
remarks JxglAppraisalAssessment_remarks,
type JxglAppraisalAssessment_type,
create_time JxglAppraisalAssessment_create_time,
level JxglAppraisalAssessment_level
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalAssessment">
INSERT INTO jxgl_appraisal_assessment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
appraisal_id,
</if>
<if test ='null != assessorId'>
assessor_id,
</if>
<if test ='null != assessorName'>
assessor_name,
</if>
<if test ='null != comprehensiveScore'>
comprehensive_score,
</if>
<if test ='null != remarks'>
remarks,
</if>
<if test ='null != type'>
type,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != level'>
level
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
#{appraisalId},
</if>
<if test ='null != assessorId'>
#{assessorId},
</if>
<if test ='null != assessorName'>
#{assessorName},
</if>
<if test ='null != comprehensiveScore'>
#{comprehensiveScore},
</if>
<if test ='null != remarks'>
#{remarks},
</if>
<if test ='null != type'>
#{type},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != level'>
#{level}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_assessment
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalAssessment">
UPDATE jxgl_appraisal_assessment
<set>
<if test ='null != appraisalId'>appraisal_id = #{appraisalId},</if>
<if test ='null != assessorId'>assessor_id = #{assessorId},</if>
<if test ='null != assessorName'>assessor_name = #{assessorName},</if>
<if test ='null != comprehensiveScore'>comprehensive_score = #{comprehensiveScore},</if>
<if test ='null != remarks'>remarks = #{remarks},</if>
<if test ='null != type'>type = #{type},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != level'>level = #{level}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_assessment
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_assessment
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_assessment
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalIndicatorsAssessmentMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalIndicatorsAssessmentMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsAssessment"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_indicators_id"
property=
"appraisalIndicatorsId"
/>
<result
column=
"assessor_id"
property=
"assessorId"
/>
<result
column=
"assessor_name"
property=
"assessorName"
/>
<result
column=
"score"
property=
"score"
/>
<result
column=
"remarks"
property=
"remarks"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"create_time"
property=
"createTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_indicators_id,
assessor_id,
assessor_name,
score,
remarks,
type,
create_time
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalIndicatorsAssessment_id,
appraisal_indicators_id JxglAppraisalIndicatorsAssessment_appraisal_indicators_id,
assessor_id JxglAppraisalIndicatorsAssessment_assessor_id,
assessor_name JxglAppraisalIndicatorsAssessment_assessor_name,
score JxglAppraisalIndicatorsAssessment_score,
remarks JxglAppraisalIndicatorsAssessment_remarks,
type JxglAppraisalIndicatorsAssessment_type,
create_time JxglAppraisalIndicatorsAssessment_create_time
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsAssessment">
INSERT INTO jxgl_appraisal_indicators_assessment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalIndicatorsId'>
appraisal_indicators_id,
</if>
<if test ='null != assessorId'>
assessor_id,
</if>
<if test ='null != assessorName'>
assessor_name,
</if>
<if test ='null != score'>
score,
</if>
<if test ='null != remarks'>
remarks,
</if>
<if test ='null != type'>
type,
</if>
<if test ='null != createTime'>
create_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalIndicatorsId'>
#{appraisalIndicatorsId},
</if>
<if test ='null != assessorId'>
#{assessorId},
</if>
<if test ='null != assessorName'>
#{assessorName},
</if>
<if test ='null != score'>
#{score},
</if>
<if test ='null != remarks'>
#{remarks},
</if>
<if test ='null != type'>
#{type},
</if>
<if test ='null != createTime'>
#{createTime}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_indicators_assessment
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsAssessment">
UPDATE jxgl_appraisal_indicators_assessment
<set>
<if test ='null != appraisalIndicatorsId'>appraisal_indicators_id = #{appraisalIndicatorsId},</if>
<if test ='null != assessorId'>assessor_id = #{assessorId},</if>
<if test ='null != assessorName'>assessor_name = #{assessorName},</if>
<if test ='null != score'>score = #{score},</if>
<if test ='null != remarks'>remarks = #{remarks},</if>
<if test ='null != type'>type = #{type},</if>
<if test ='null != createTime'>create_time = #{createTime}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_indicators_assessment
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_indicators_assessment
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_indicators_assessment
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalIndicatorsMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalIndicatorsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalIndicators"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_id"
property=
"appraisalId"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"weight"
property=
"weight"
/>
<result
column=
"is_edit"
property=
"isEdit"
/>
<result
column=
"is_set_weight"
property=
"isSetWeight"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"type"
property=
"type"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_id,
title,
weight,
is_edit,
is_set_weight,
create_time,
update_time,
type
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalIndicators_id,
appraisal_id JxglAppraisalIndicators_appraisal_id,
title JxglAppraisalIndicators_title,
weight JxglAppraisalIndicators_weight,
is_edit JxglAppraisalIndicators_is_edit,
is_set_weight JxglAppraisalIndicators_is_set_weight,
create_time JxglAppraisalIndicators_create_time,
update_time JxglAppraisalIndicators_update_time,
type JxglAppraisalIndicators_type
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalIndicators">
INSERT INTO jxgl_appraisal_indicators
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
appraisal_id,
</if>
<if test ='null != title'>
title,
</if>
<if test ='null != weight'>
weight,
</if>
<if test ='null != isEdit'>
is_edit,
</if>
<if test ='null != isSetWeight'>
is_set_weight,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != updateTime'>
update_time,
</if>
<if test ='null != type'>
type
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
#{appraisalId},
</if>
<if test ='null != title'>
#{title},
</if>
<if test ='null != weight'>
#{weight},
</if>
<if test ='null != isEdit'>
#{isEdit},
</if>
<if test ='null != isSetWeight'>
#{isSetWeight},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != updateTime'>
#{updateTime},
</if>
<if test ='null != type'>
#{type}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_indicators
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalIndicators">
UPDATE jxgl_appraisal_indicators
<set>
<if test ='null != appraisalId'>appraisal_id = #{appraisalId},</if>
<if test ='null != title'>title = #{title},</if>
<if test ='null != weight'>weight = #{weight},</if>
<if test ='null != isEdit'>is_edit = #{isEdit},</if>
<if test ='null != isSetWeight'>is_set_weight = #{isSetWeight},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != updateTime'>update_time = #{updateTime},</if>
<if test ='null != type'>type = #{type}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_indicators
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_indicators
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_indicators
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalIndicatorsTMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalIndicatorsTMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsT"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_t_id"
property=
"appraisalTId"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"weight"
property=
"weight"
/>
<result
column=
"is_edit"
property=
"isEdit"
/>
<result
column=
"is_set_weight"
property=
"isSetWeight"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"type"
property=
"type"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_t_id,
title,
weight,
is_edit,
is_set_weight,
create_time,
update_time,
type
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalIndicatorsT_id,
appraisal_t_id JxglAppraisalIndicatorsT_appraisal_t_id,
title JxglAppraisalIndicatorsT_title,
weight JxglAppraisalIndicatorsT_weight,
is_edit JxglAppraisalIndicatorsT_is_edit,
is_set_weight JxglAppraisalIndicatorsT_is_set_weight,
create_time JxglAppraisalIndicatorsT_create_time,
update_time JxglAppraisalIndicatorsT_update_time,
type JxglAppraisalIndicatorsT_type
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsT">
INSERT INTO jxgl_appraisal_indicators_t
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalTId'>
appraisal_t_id,
</if>
<if test ='null != title'>
title,
</if>
<if test ='null != weight'>
weight,
</if>
<if test ='null != isEdit'>
is_edit,
</if>
<if test ='null != isSetWeight'>
is_set_weight,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != updateTime'>
update_time,
</if>
<if test ='null != type'>
type
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalTId'>
#{appraisalTId},
</if>
<if test ='null != title'>
#{title},
</if>
<if test ='null != weight'>
#{weight},
</if>
<if test ='null != isEdit'>
#{isEdit},
</if>
<if test ='null != isSetWeight'>
#{isSetWeight},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != updateTime'>
#{updateTime},
</if>
<if test ='null != type'>
#{type}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_indicators_t
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalIndicatorsT">
UPDATE jxgl_appraisal_indicators_t
<set>
<if test ='null != appraisalTId'>appraisal_t_id = #{appraisalTId},</if>
<if test ='null != title'>title = #{title},</if>
<if test ='null != weight'>weight = #{weight},</if>
<if test ='null != isEdit'>is_edit = #{isEdit},</if>
<if test ='null != isSetWeight'>is_set_weight = #{isSetWeight},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != updateTime'>update_time = #{updateTime},</if>
<if test ='null != type'>type = #{type}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_indicators_t
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_indicators_t
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_indicators_t
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglA
ssoWdzbgl
Mapper.xml
→
src/main/resources/mapping/jxgl/JxglA
ppraisalItem
Mapper.xml
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglA
ssoWdzbgl
Mapper"
>
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglA
ppraisalItem
Mapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglA
ssoWdzbgl
"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglA
ppraisalItem
"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"mbszid"
property=
"mbszid"
/>
<result
column=
"zbkid"
property=
"zbkid"
/>
<result
column=
"wdsrz"
property=
"wdsrz"
/>
<result
column=
"appraisal_indicators_id"
property=
"appraisalIndicatorsId"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"content"
property=
"content"
/>
<result
column=
"ranks"
property=
"ranks"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
mbszid,
zbkid,
wdsrz
appraisal_indicators_id,
title,
content,
ranks
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAssoWdzbgl_id,
mbszid JxglAssoWdzbgl_mbszid,
zbkid JxglAssoWdzbgl_zbkid,
wdsrz JxglAssoWdzbgl_wdsrz
id JxglAppraisalItem_id,
appraisal_indicators_id JxglAppraisalItem_appraisal_indicators_id,
title JxglAppraisalItem_title,
content JxglAppraisalItem_content,
ranks JxglAppraisalItem_ranks
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglA
ssoWdzbgl
">
INSERT INTO jxgl_a
sso_wdzbgl
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglA
ppraisalItem
">
INSERT INTO jxgl_a
ppraisal_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null !=
mbszi
d'>
mbsz
id,
<if test ='null !=
appraisalIndicatorsI
d'>
appraisal_indicators_
id,
</if>
<if test ='null !=
zbkid
'>
zbkid
,
<if test ='null !=
title
'>
title
,
</if>
<if test ='null != wdsrz'>
wdsrz
<if test ='null != content'>
content,
</if>
<if test ='null != ranks'>
ranks
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != mbszid'>
#{mbszid},
<if test ='null != appraisalIndicatorsId'>
#{appraisalIndicatorsId},
</if>
<if test ='null != title'>
#{title},
</if>
<if test ='null !=
zbkid
'>
#{
zbkid
},
<if test ='null !=
content
'>
#{
content
},
</if>
<if test ='null !=
wdsrz
'>
#{
wdsrz
}
<if test ='null !=
ranks
'>
#{
ranks
}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_a
sso_wdzbgl
DELETE FROM jxgl_a
ppraisal_item
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglA
ssoWdzbgl
">
UPDATE jxgl_a
sso_wdzbgl
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglA
ppraisalItem
">
UPDATE jxgl_a
ppraisal_item
<set>
<if test ='null != mbszid'>mbszid = #{mbszid},</if>
<if test ='null != zbkid'>zbkid = #{zbkid},</if>
<if test ='null != wdsrz'>wdsrz = #{wdsrz}</if>
<if test ='null != appraisalIndicatorsId'>appraisal_indicators_id = #{appraisalIndicatorsId},</if>
<if test ='null != title'>title = #{title},</if>
<if test ='null != content'>content = #{content},</if>
<if test ='null != ranks'>ranks = #{ranks}</if>
</set>
WHERE id = #{id}
</update>
...
...
@@ -70,19 +80,19 @@
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_a
sso_wdzbgl
FROM jxgl_a
ppraisal_item
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_a
sso_wdzbgl
FROM jxgl_a
ppraisal_item
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_a
sso_wdzbgl
FROM jxgl_a
ppraisal_item
</select>
-->
...
...
src/main/resources/mapping/jxgl/JxglAppraisalItemTMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalItemTMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalItemT"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_indicators_t_id"
property=
"appraisalIndicatorsTId"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"content"
property=
"content"
/>
<result
column=
"ranks"
property=
"ranks"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_indicators_t_id,
title,
content,
ranks
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalItemT_id,
appraisal_indicators_t_id JxglAppraisalItemT_appraisal_indicators_t_id,
title JxglAppraisalItemT_title,
content JxglAppraisalItemT_content,
ranks JxglAppraisalItemT_ranks
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalItemT">
INSERT INTO jxgl_appraisal_item_t
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalIndicatorsTId'>
appraisal_indicators_t_id,
</if>
<if test ='null != title'>
title,
</if>
<if test ='null != content'>
content,
</if>
<if test ='null != ranks'>
ranks
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalIndicatorsTId'>
#{appraisalIndicatorsTId},
</if>
<if test ='null != title'>
#{title},
</if>
<if test ='null != content'>
#{content},
</if>
<if test ='null != ranks'>
#{ranks}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_item_t
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalItemT">
UPDATE jxgl_appraisal_item_t
<set>
<if test ='null != appraisalIndicatorsTId'>appraisal_indicators_t_id = #{appraisalIndicatorsTId},</if>
<if test ='null != title'>title = #{title},</if>
<if test ='null != content'>content = #{content},</if>
<if test ='null != ranks'>ranks = #{ranks}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_item_t
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_item_t
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_item_t
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalLogMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalLog"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_id"
property=
"appraisalId"
/>
<result
column=
"executor_id"
property=
"executorId"
/>
<result
column=
"executor_name"
property=
"executorName"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"remarks"
property=
"remarks"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"type"
property=
"type"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_id,
executor_id,
executor_name,
title,
remarks,
create_time,
type
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalLog_id,
appraisal_id JxglAppraisalLog_appraisal_id,
executor_id JxglAppraisalLog_executor_id,
executor_name JxglAppraisalLog_executor_name,
title JxglAppraisalLog_title,
remarks JxglAppraisalLog_remarks,
create_time JxglAppraisalLog_create_time,
type JxglAppraisalLog_type
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalLog">
INSERT INTO jxgl_appraisal_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
appraisal_id,
</if>
<if test ='null != executorId'>
executor_id,
</if>
<if test ='null != executorName'>
executor_name,
</if>
<if test ='null != title'>
title,
</if>
<if test ='null != remarks'>
remarks,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != type'>
type
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
#{appraisalId},
</if>
<if test ='null != executorId'>
#{executorId},
</if>
<if test ='null != executorName'>
#{executorName},
</if>
<if test ='null != title'>
#{title},
</if>
<if test ='null != remarks'>
#{remarks},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != type'>
#{type}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_log
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalLog">
UPDATE jxgl_appraisal_log
<set>
<if test ='null != appraisalId'>appraisal_id = #{appraisalId},</if>
<if test ='null != executorId'>executor_id = #{executorId},</if>
<if test ='null != executorName'>executor_name = #{executorName},</if>
<if test ='null != title'>title = #{title},</if>
<if test ='null != remarks'>remarks = #{remarks},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != type'>type = #{type}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_log
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_log
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_log
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisal"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"emp_num"
property=
"empNum"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"appraisal_explain"
property=
"appraisalExplain"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"sts"
property=
"sts"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
emp_num,
name,
appraisal_explain,
create_time,
update_time,
sts
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisal_id,
emp_num JxglAppraisal_emp_num,
name JxglAppraisal_name,
appraisal_explain JxglAppraisal_appraisal_explain,
create_time JxglAppraisal_create_time,
update_time JxglAppraisal_update_time,
sts JxglAppraisal_sts
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisal">
INSERT INTO jxgl_appraisal
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != empNum'>
emp_num,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != appraisalExplain'>
appraisal_explain,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != updateTime'>
update_time,
</if>
<if test ='null != sts'>
sts
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != empNum'>
#{empNum},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != appraisalExplain'>
#{appraisalExplain},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != updateTime'>
#{updateTime},
</if>
<if test ='null != sts'>
#{sts}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisal">
UPDATE jxgl_appraisal
<set>
<if test ='null != empNum'>emp_num = #{empNum},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != appraisalExplain'>appraisal_explain = #{appraisalExplain},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != updateTime'>update_time = #{updateTime},</if>
<if test ='null != sts'>sts = #{sts}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAppraisalTMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAppraisalTMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAppraisalT"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"appraisal_explain"
property=
"appraisalExplain"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
org_code,
name,
appraisal_explain,
create_time,
update_time
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAppraisalT_id,
org_code JxglAppraisalT_org_code,
name JxglAppraisalT_name,
appraisal_explain JxglAppraisalT_appraisal_explain,
create_time JxglAppraisalT_create_time,
update_time JxglAppraisalT_update_time
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalT">
INSERT INTO jxgl_appraisal_t
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != appraisalExplain'>
appraisal_explain,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != updateTime'>
update_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != appraisalExplain'>
#{appraisalExplain},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != updateTime'>
#{updateTime}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_appraisal_t
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAppraisalT">
UPDATE jxgl_appraisal_t
<set>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != appraisalExplain'>appraisal_explain = #{appraisalExplain},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != updateTime'>update_time = #{updateTime}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_t
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_appraisal_t
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_appraisal_t
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAssoFbzbkMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAssoFbzbkMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAssoFbzbk"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"zbkid"
property=
"zbkid"
/>
<result
column=
"zbzdszid"
property=
"zbzdszid"
/>
<result
column=
"value"
property=
"value"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
zbkid,
zbzdszid,
value
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAssoFbzbk_id,
zbkid JxglAssoFbzbk_zbkid,
zbzdszid JxglAssoFbzbk_zbzdszid,
value JxglAssoFbzbk_value
</sql>
<insert
id=
"insertjxglassofbzbkList"
parameterType=
"java.util.List"
>
insert into jxgl_asso_fbzbk (zbkid,zbzdszid,value)
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"values "
close=
""
separator=
","
>
(
<if
test =
'item.zbkid != null'
>
#{item.zbkid},
</if>
<if
test =
'item.zbzdszid != null'
>
#{item.zbzdszid},
</if>
<if
test =
'item.value != null'
>
#{item.value}
</if>
)
</foreach>
</insert>
<delete
id=
"deletejxglassofbzbkByzbkid"
>
DELETE FROM jxgl_asso_fbzbk
WHERE zbkid = #{zbkid}
</delete>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAssoFbzbk">
INSERT INTO jxgl_asso_fbzbk
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != zbkid'>
zbkid,
</if>
<if test ='null != zbzdszid'>
zbzdszid,
</if>
<if test ='null != value'>
value
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != zbkid'>
#{zbkid},
</if>
<if test ='null != zbzdszid'>
#{zbzdszid},
</if>
<if test ='null != value'>
#{value}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_asso_fbzbk
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAssoFbzbk">
UPDATE jxgl_asso_fbzbk
<set>
<if test ='null != zbkid'>zbkid = #{zbkid},</if>
<if test ='null != zbzdszid'>zbzdszid = #{zbzdszid},</if>
<if test ='null != value'>value = #{value}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_fbzbk
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_fbzbk
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_asso_fbzbk
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAssoJxdjMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAssoJxdjMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAssoJxdj"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"djmc"
property=
"djmc"
/>
<result
column=
"zbqj"
property=
"zbqj"
/>
<result
column=
"fsqjks"
property=
"fsqjks"
/>
<result
column=
"fzqjjs"
property=
"fzqjjs"
/>
<result
column=
"jcszid"
property=
"jcszid"
/>
<result
column=
"qyid"
property=
"qyid"
/>
</resultMap>
<insert
id=
"insertJxglAssoJxdjList"
parameterType=
"java.util.List"
>
insert into jxgl_asso_jxdj (type,djmc,zbqj,fsqjks,fzqjjs,jcszid,qyid)
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"values "
close=
""
separator=
","
>
(
<if
test =
'item.type != null'
>
#{item.type},
</if>
<if
test =
'item.djmc != null'
>
#{item.djmc},
</if>
<if
test =
'item.zbqj != null'
>
#{item.zbqj},
</if>
<if
test =
'item.fsqjks != null'
>
#{item.fsqjks},
</if>
<if
test =
'item.fzqjjs != null'
>
#{item.fzqjjs},
</if>
<if
test =
'item.jcszid != null'
>
#{item.jcszid},
</if>
<if
test =
'item.qyid != null'
>
#{item.qyid}
</if>
)
</foreach>
</insert>
<delete
id=
"deletejxdjByjcszid"
>
DELETE FROM jxgl_asso_jxdj
WHERE jcszid = #{jcszid}
</delete>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAssoJxdj">
INSERT INTO jxgl_asso_jxdj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != type'>
type,
</if>
<if test ='null != djmc'>
djmc,
</if>
<if test ='null != zbqj'>
zbqj,
</if>
<if test ='null != fsqjks'>
fsqjks,
</if>
<if test ='null != fzqjjs'>
fzqjjs,
</if>
<if test ='null != jcszid'>
jcszid
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != type'>
#{type},
</if>
<if test ='null != djmc'>
#{djmc},
</if>
<if test ='null != zbqj'>
#{zbqj},
</if>
<if test ='null != fsqjks'>
#{fsqjks},
</if>
<if test ='null != fzqjjs'>
#{fzqjjs},
</if>
<if test ='null != jcszid'>
#{jcszid}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_asso_jxdj
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAssoJxdj">
UPDATE jxgl_asso_jxdj
<set>
<if test ='null != type'>type = #{type},</if>
<if test ='null != djmc'>djmc = #{djmc},</if>
<if test ='null != zbqj'>zbqj = #{zbqj},</if>
<if test ='null != fsqjks'>fsqjks = #{fsqjks},</if>
<if test ='null != fzqjjs'>fzqjjs = #{fzqjjs},</if>
<if test ='null != jcszid'>jcszid = #{jcszid}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_jxdj
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_jxdj
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_asso_jxdj
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAssoKpzryMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAssoKpzryMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAssoKpzry"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"kpzszid"
property=
"kpzszid"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"usernum"
property=
"usernum"
/>
<result
column=
"qyid"
property=
"qyid"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
kpzszid,
type,
usernum,
qyid
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAssoKpzry_id,
kpzszid JxglAssoKpzry_kpzszid,
type JxglAssoKpzry_type,
usernum JxglAssoKpzry_usernum,
qyid JxglAssoKpzry_qyid
</sql>
<insert
id=
"insertjxglassokpzryList"
parameterType=
"java.util.List"
>
insert into jxgl_asso_kpzry (kpzszid,type,usernum,qyid)
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"values "
close=
""
separator=
","
>
(
<if
test =
'item.kpzszid != null'
>
#{item.kpzszid},
</if>
<if
test =
'item.type != null'
>
#{item.type},
</if>
<if
test =
'item.usernum != null'
>
#{item.usernum},
</if>
<if
test =
'item.qyid != null'
>
#{item.qyid}
</if>
)
</foreach>
</insert>
<delete
id=
"deleteBykpzszid"
>
DELETE FROM jxgl_asso_kpzry
WHERE kpzszid = #{kpzszid}
</delete>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAssoKpzry">
INSERT INTO jxgl_asso_kpzry
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != kpzszid'>
kpzszid,
</if>
<if test ='null != type'>
type,
</if>
<if test ='null != usernum'>
usernum,
</if>
<if test ='null != qyid'>
qyid
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != kpzszid'>
#{kpzszid},
</if>
<if test ='null != type'>
#{type},
</if>
<if test ='null != usernum'>
#{usernum},
</if>
<if test ='null != qyid'>
#{qyid}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_asso_kpzry
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAssoKpzry">
UPDATE jxgl_asso_kpzry
<set>
<if test ='null != kpzszid'>kpzszid = #{kpzszid},</if>
<if test ='null != type'>type = #{type},</if>
<if test ='null != usernum'>usernum = #{usernum},</if>
<if test ='null != qyid'>qyid = #{qyid}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_kpzry
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_kpzry
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_asso_kpzry
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAssoMbszMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAssoMbszMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAssoMbsz"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"shzbsl"
property=
"shzbsl"
/>
<result
column=
"shzbzqz"
property=
"shzbzqz"
/>
<result
column=
"kzzjzb"
property=
"kzzjzb"
/>
<result
column=
"qyid"
property=
"qyid"
/>
<result
column=
"kpzsz"
property=
"kpzsz"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
name,
type,
shzbsl,
shzbzqz,
kzzjzb,
qyid,
kpzsz
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglAssoMbsz_id,
name JxglAssoMbsz_name,
type JxglAssoMbsz_type,
shzbsl JxglAssoMbsz_shzbsl,
shzbzqz JxglAssoMbsz_shzbzqz,
kzzjzb JxglAssoMbsz_kzzjzb,
qyid JxglAssoMbsz_qyid,
kpzsz JxglAssoMbsz_kpzsz
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAssoMbsz">
INSERT INTO jxgl_asso_mbsz
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != name'>
name,
</if>
<if test ='null != type'>
type,
</if>
<if test ='null != shzbsl'>
shzbsl,
</if>
<if test ='null != shzbzqz'>
shzbzqz,
</if>
<if test ='null != kzzjzb'>
kzzjzb,
</if>
<if test ='null != qyid'>
qyid,
</if>
<if test ='null != kpzsz'>
kpzsz
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != name'>
#{name},
</if>
<if test ='null != type'>
#{type},
</if>
<if test ='null != shzbsl'>
#{shzbsl},
</if>
<if test ='null != shzbzqz'>
#{shzbzqz},
</if>
<if test ='null != kzzjzb'>
#{kzzjzb},
</if>
<if test ='null != qyid'>
#{qyid},
</if>
<if test ='null != kpzsz'>
#{kpzsz}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_asso_mbsz
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAssoMbsz">
UPDATE jxgl_asso_mbsz
<set>
<if test ='null != name'>name = #{name},</if>
<if test ='null != type'>type = #{type},</if>
<if test ='null != shzbsl'>shzbsl = #{shzbsl},</if>
<if test ='null != shzbzqz'>shzbzqz = #{shzbzqz},</if>
<if test ='null != kzzjzb'>kzzjzb = #{kzzjzb},</if>
<if test ='null != qyid'>qyid = #{qyid},</if>
<if test ='null != kpzsz'>kpzsz = #{kpzsz}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_mbsz
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_mbsz
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_asso_mbsz
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglAssoZbzdszMapper.xml
deleted
100644 → 0
View file @
651ed546
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglAssoZbzdszMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglAssoZbzdsz"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"is_sfqy"
property=
"isSfqy"
/>
<result
column=
"is_gsbl"
property=
"isGsbl"
/>
<result
column=
"jcszid"
property=
"jcszid"
/>
<result
column=
"qyid"
property=
"qyid"
/>
</resultMap>
<insert
id=
"insertjxglassozbzdszList"
parameterType=
"java.util.List"
>
insert into jxgl_asso_zbzdsz (name,type,is_sfqy,is_gsbl,jcszid,qyid)
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"values "
close=
""
separator=
","
>
(
<if
test =
'item.name != null'
>
#{item.name},
</if>
<if
test =
'item.type != null'
>
#{item.type},
</if>
<if
test =
'item.isSfqy != null'
>
#{item.isSfqy},
</if>
<if
test =
'item.isGsbl != null'
>
#{item.isGsbl},
</if>
<if
test =
'item.jcszid != null'
>
#{item.jcszid},
</if>
<if
test =
'item.qyid != null'
>
#{item.qyid}
</if>
)
</foreach>
</insert>
<delete
id=
"deletezbzdszByjcszid"
>
DELETE FROM jxgl_asso_zbzdsz
WHERE jcszid = #{jcszid}
</delete>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglAssoZbzdsz">
INSERT INTO jxgl_asso_zbzdsz
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != name'>
name,
</if>
<if test ='null != type'>
type,
</if>
<if test ='null != isSfqy'>
is_sfqy,
</if>
<if test ='null != isGsbl'>
is_gsbl,
</if>
<if test ='null != jcszid'>
jcszid
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != name'>
#{name},
</if>
<if test ='null != type'>
#{type},
</if>
<if test ='null != isSfqy'>
#{isSfqy},
</if>
<if test ='null != isGsbl'>
#{isGsbl},
</if>
<if test ='null != jcszid'>
#{jcszid}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_asso_zbzdsz
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAssoZbzdsz">
UPDATE jxgl_asso_zbzdsz
<set>
<if test ='null != name'>name = #{name},</if>
<if test ='null != type'>type = #{type},</if>
<if test ='null != isSfqy'>is_sfqy = #{isSfqy},</if>
<if test ='null != isGsbl'>is_gsbl = #{isGsbl},</if>
<if test ='null != jcszid'>jcszid = #{jcszid}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_zbzdsz
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_asso_zbzdsz
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_asso_zbzdsz
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglBasicSettingMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglBasicSettingMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglBasicSetting"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"max_score"
property=
"maxScore"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
org_code,
max_score,
create_time,
update_time
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglBasicSetting_id,
org_code JxglBasicSetting_org_code,
max_score JxglBasicSetting_max_score,
create_time JxglBasicSetting_create_time,
update_time JxglBasicSetting_update_time
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglBasicSetting">
INSERT INTO jxgl_basic_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != maxScore'>
max_score,
</if>
<if test ='null != createTime'>
create_time,
</if>
<if test ='null != updateTime'>
update_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != maxScore'>
#{maxScore},
</if>
<if test ='null != createTime'>
#{createTime},
</if>
<if test ='null != updateTime'>
#{updateTime}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_basic_setting
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglBasicSetting">
UPDATE jxgl_basic_setting
<set>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != maxScore'>max_score = #{maxScore},</if>
<if test ='null != createTime'>create_time = #{createTime},</if>
<if test ='null != updateTime'>update_time = #{updateTime}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_basic_setting
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_basic_setting
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_basic_setting
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglPerformanceAppraisalMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglPerformanceAppraisalMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglPerformanceAppraisal"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"period"
property=
"period"
/>
<result
column=
"appraisal_start_time"
property=
"appraisalStartTime"
/>
<result
column=
"appraisal_end_time"
property=
"appraisalEndTime"
/>
<result
column=
"is_visible"
property=
"isVisible"
/>
<result
column=
"sts"
property=
"sts"
/>
<result
column=
"scope"
property=
"scope"
/>
<result
column=
"appraisal_t_name"
property=
"appraisalTName"
/>
<result
column=
"appraisal_person_num"
property=
"appraisalPersonNum"
/>
<result
column=
"process_node"
property=
"processNode"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
org_code,
name,
period,
appraisal_start_time,
appraisal_end_time,
is_visible,
sts,
scope,
appraisal_t_name,
appraisal_person_num,
process_node
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglPerformanceAppraisal_id,
org_code JxglPerformanceAppraisal_org_code,
name JxglPerformanceAppraisal_name,
period JxglPerformanceAppraisal_period,
appraisal_start_time JxglPerformanceAppraisal_appraisal_start_time,
appraisal_end_time JxglPerformanceAppraisal_appraisal_end_time,
is_visible JxglPerformanceAppraisal_is_visible,
sts JxglPerformanceAppraisal_sts,
scope JxglPerformanceAppraisal_scope,
appraisal_t_name JxglPerformanceAppraisal_appraisal_t_name,
appraisal_person_num JxglPerformanceAppraisal_appraisal_person_num,
process_node JxglPerformanceAppraisal_process_node
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglPerformanceAppraisal">
INSERT INTO jxgl_performance_appraisal
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != period'>
period,
</if>
<if test ='null != appraisalStartTime'>
appraisal_start_time,
</if>
<if test ='null != appraisalEndTime'>
appraisal_end_time,
</if>
<if test ='null != isVisible'>
is_visible,
</if>
<if test ='null != sts'>
sts,
</if>
<if test ='null != scope'>
scope,
</if>
<if test ='null != appraisalTName'>
appraisal_t_name,
</if>
<if test ='null != appraisalPersonNum'>
appraisal_person_num,
</if>
<if test ='null != processNode'>
process_node
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != period'>
#{period},
</if>
<if test ='null != appraisalStartTime'>
#{appraisalStartTime},
</if>
<if test ='null != appraisalEndTime'>
#{appraisalEndTime},
</if>
<if test ='null != isVisible'>
#{isVisible},
</if>
<if test ='null != sts'>
#{sts},
</if>
<if test ='null != scope'>
#{scope},
</if>
<if test ='null != appraisalTName'>
#{appraisalTName},
</if>
<if test ='null != appraisalPersonNum'>
#{appraisalPersonNum},
</if>
<if test ='null != processNode'>
#{processNode}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_performance_appraisal
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglPerformanceAppraisal">
UPDATE jxgl_performance_appraisal
<set>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != period'>period = #{period},</if>
<if test ='null != appraisalStartTime'>appraisal_start_time = #{appraisalStartTime},</if>
<if test ='null != appraisalEndTime'>appraisal_end_time = #{appraisalEndTime},</if>
<if test ='null != isVisible'>is_visible = #{isVisible},</if>
<if test ='null != sts'>sts = #{sts},</if>
<if test ='null != scope'>scope = #{scope},</if>
<if test ='null != appraisalTName'>appraisal_t_name = #{appraisalTName},</if>
<if test ='null != appraisalPersonNum'>appraisal_person_num = #{appraisalPersonNum},</if>
<if test ='null != processNode'>process_node = #{processNode}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_performance_appraisal
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_performance_appraisal
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_performance_appraisal
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglPerformanceRatingMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglPerformanceRatingMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglPerformanceRating"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"basic_setting_id"
property=
"basicSettingId"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"section_min_score"
property=
"sectionMinScore"
/>
<result
column=
"section_max_score"
property=
"sectionMaxScore"
/>
<result
column=
"ranks"
property=
"ranks"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
basic_setting_id,
name,
section_min_score,
section_max_score,
ranks
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglPerformanceRating_id,
basic_setting_id JxglPerformanceRating_basic_setting_id,
name JxglPerformanceRating_name,
section_min_score JxglPerformanceRating_section_min_score,
section_max_score JxglPerformanceRating_section_max_score,
ranks JxglPerformanceRating_ranks
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglPerformanceRating">
INSERT INTO jxgl_performance_rating
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != basicSettingId'>
basic_setting_id,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != sectionMinScore'>
section_min_score,
</if>
<if test ='null != sectionMaxScore'>
section_max_score,
</if>
<if test ='null != ranks'>
ranks
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != basicSettingId'>
#{basicSettingId},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != sectionMinScore'>
#{sectionMinScore},
</if>
<if test ='null != sectionMaxScore'>
#{sectionMaxScore},
</if>
<if test ='null != ranks'>
#{ranks}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_performance_rating
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglPerformanceRating">
UPDATE jxgl_performance_rating
<set>
<if test ='null != basicSettingId'>basic_setting_id = #{basicSettingId},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != sectionMinScore'>section_min_score = #{sectionMinScore},</if>
<if test ='null != sectionMaxScore'>section_max_score = #{sectionMaxScore},</if>
<if test ='null != ranks'>ranks = #{ranks}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_performance_rating
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_performance_rating
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_performance_rating
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/jxgl/JxglProcessNodeMapper.xml
0 → 100644
View file @
1211116c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.jxgl.JxglProcessNodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.jxgl.JxglProcessNode"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"appraisal_id"
property=
"appraisalId"
/>
<result
column=
"executor_id"
property=
"executorId"
/>
<result
column=
"executor_name"
property=
"executorName"
/>
<result
column=
"execute_type"
property=
"executeType"
/>
<result
column=
"process_type"
property=
"processType"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"leader_tier"
property=
"leaderTier"
/>
<result
column=
"weight"
property=
"weight"
/>
<result
column=
"sts"
property=
"sts"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
appraisal_id,
executor_id,
executor_name,
execute_type,
process_type,
name,
leader_tier,
weight,
sts,
update_time
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id JxglProcessNode_id,
appraisal_id JxglProcessNode_appraisal_id,
executor_id JxglProcessNode_executor_id,
executor_name JxglProcessNode_executor_name,
execute_type JxglProcessNode_execute_type,
process_type JxglProcessNode_process_type,
name JxglProcessNode_name,
leader_tier JxglProcessNode_leader_tier,
weight JxglProcessNode_weight,
sts JxglProcessNode_sts,
update_time JxglProcessNode_update_time
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.jxgl.JxglProcessNode">
INSERT INTO jxgl_process_node
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
appraisal_id,
</if>
<if test ='null != executorId'>
executor_id,
</if>
<if test ='null != executorName'>
executor_name,
</if>
<if test ='null != executeType'>
execute_type,
</if>
<if test ='null != processType'>
process_type,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != leaderTier'>
leader_tier,
</if>
<if test ='null != weight'>
weight,
</if>
<if test ='null != sts'>
sts,
</if>
<if test ='null != updateTime'>
update_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != appraisalId'>
#{appraisalId},
</if>
<if test ='null != executorId'>
#{executorId},
</if>
<if test ='null != executorName'>
#{executorName},
</if>
<if test ='null != executeType'>
#{executeType},
</if>
<if test ='null != processType'>
#{processType},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != leaderTier'>
#{leaderTier},
</if>
<if test ='null != weight'>
#{weight},
</if>
<if test ='null != sts'>
#{sts},
</if>
<if test ='null != updateTime'>
#{updateTime}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM jxgl_process_node
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.jxgl.JxglProcessNode">
UPDATE jxgl_process_node
<set>
<if test ='null != appraisalId'>appraisal_id = #{appraisalId},</if>
<if test ='null != executorId'>executor_id = #{executorId},</if>
<if test ='null != executorName'>executor_name = #{executorName},</if>
<if test ='null != executeType'>execute_type = #{executeType},</if>
<if test ='null != processType'>process_type = #{processType},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != leaderTier'>leader_tier = #{leaderTier},</if>
<if test ='null != weight'>weight = #{weight},</if>
<if test ='null != sts'>sts = #{sts},</if>
<if test ='null != updateTime'>update_time = #{updateTime}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_process_node
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM jxgl_process_node
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM jxgl_process_node
</select>
-->
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment