|
|
@ -202,7 +202,7 @@ public class KpiRuleServiceImpl extends BaseServiceImpl<KpiRuleDao, KpiRuleEntit |
|
|
|
public Result add(KpiRuleSaveOrUpdateFormDTO dto) { |
|
|
|
|
|
|
|
this.checkKpiRuleSaveOrUpdateFormDTO(dto); |
|
|
|
//考核部门类别 截取两边[]
|
|
|
|
//考核部门类别 数组转字符串
|
|
|
|
String deptTypeKey = StringUtils.join(dto.getDeptTypeKeys(), ","); |
|
|
|
dto.setDeptTypeKey(deptTypeKey); |
|
|
|
KpiRuleEntity entity = ConvertUtils.sourceToTarget(dto, KpiRuleEntity.class); |
|
|
@ -230,7 +230,9 @@ public class KpiRuleServiceImpl extends BaseServiceImpl<KpiRuleDao, KpiRuleEntit |
|
|
|
public Result edit(KpiRuleSaveOrUpdateFormDTO dto) { |
|
|
|
|
|
|
|
this.checkKpiRuleSaveOrUpdateFormDTO(dto); |
|
|
|
|
|
|
|
//考核部门类别 数组转字符串
|
|
|
|
String deptTypeKey = StringUtils.join(dto.getDeptTypeKeys(), ","); |
|
|
|
dto.setDeptTypeKey(deptTypeKey); |
|
|
|
KpiRuleEntity entity = ConvertUtils.sourceToTarget(dto, KpiRuleEntity.class); |
|
|
|
updateById(entity); |
|
|
|
// 全部删除参数记录表
|
|
|
|