mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-02-28 17:33:25 +08:00
代码修改
This commit is contained in:
parent
a55d4304c5
commit
39741a57e8
4 changed files with 2 additions and 91 deletions
|
@ -1,17 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
package com.skyeye.common.constans;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ClassName: DsFormConstants
|
|
||||||
* @Description: 动态表单常量类
|
|
||||||
* @author: skyeye云系列--卫志强
|
|
||||||
* @date: 2022/1/8 17:17
|
|
||||||
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
|
|
||||||
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
|
|
||||||
*/
|
|
||||||
public class DsFormConstants {
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,55 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
package com.skyeye.common.constans;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ClassName: OrganizationConstants
|
|
||||||
* @Description: 组织管理常量类
|
|
||||||
* @author: skyeye云系列--卫志强
|
|
||||||
* @date: 2021/8/30 20:01
|
|
||||||
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
|
|
||||||
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
|
|
||||||
*/
|
|
||||||
public class OrganizationConstants {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 企业部门-加班结算类型
|
|
||||||
*/
|
|
||||||
public static enum OvertimeSettlementType {
|
|
||||||
SINGLE_SALARY_SETTLEMENT("单倍薪资结算", 1),
|
|
||||||
ONE_POINT_FIVE_SALARY_SETTLEMENT("1.5倍薪资结算", 2),
|
|
||||||
DOUBLE_SALARY_SETTLEMENT("双倍薪资结算", 3),
|
|
||||||
COMPENSATORY_LEAVE_SETTLEMENT("补休结算", 6);
|
|
||||||
|
|
||||||
private String title;
|
|
||||||
private Integer type;
|
|
||||||
|
|
||||||
OvertimeSettlementType(String title, Integer type) {
|
|
||||||
this.title = title;
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String getTitleByType(int type) {
|
|
||||||
OvertimeSettlementType overtimeSettlementType = Arrays.stream(OvertimeSettlementType.values())
|
|
||||||
.filter(bean -> bean.getType() == type).findFirst().orElse(null);
|
|
||||||
if (overtimeSettlementType == null) {
|
|
||||||
return "";
|
|
||||||
} else {
|
|
||||||
return overtimeSettlementType.getTitle();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTitle() {
|
|
||||||
return title;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
package com.skyeye.common.constans;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ClassName: SystemFoundationSettingsConstants
|
|
||||||
* @Description: 系统基础设置常量类
|
|
||||||
* @author: skyeye云系列--卫志强
|
|
||||||
* @date: 2021/11/13 14:43
|
|
||||||
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
|
|
||||||
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
|
|
||||||
*/
|
|
||||||
public class SystemFoundationSettingsConstants {
|
|
||||||
|
|
||||||
}
|
|
|
@ -8,8 +8,8 @@ import cn.hutool.core.collection.CollectionUtil;
|
||||||
import com.github.pagehelper.Page;
|
import com.github.pagehelper.Page;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl;
|
import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl;
|
||||||
import com.skyeye.common.constans.OrganizationConstants;
|
|
||||||
import com.skyeye.common.entity.search.CommonPageInfo;
|
import com.skyeye.common.entity.search.CommonPageInfo;
|
||||||
|
import com.skyeye.common.enumeration.OvertimeSettlementType;
|
||||||
import com.skyeye.common.object.InputObject;
|
import com.skyeye.common.object.InputObject;
|
||||||
import com.skyeye.common.object.OutputObject;
|
import com.skyeye.common.object.OutputObject;
|
||||||
import com.skyeye.common.util.ToolUtil;
|
import com.skyeye.common.util.ToolUtil;
|
||||||
|
@ -56,7 +56,7 @@ public class CompanyDepartmentServiceImpl extends SkyeyeBusinessServiceImpl<Comp
|
||||||
iCompanyService.setNameForMap(beans, "companyId", "companyName");
|
iCompanyService.setNameForMap(beans, "companyId", "companyName");
|
||||||
beans.forEach(bean -> {
|
beans.forEach(bean -> {
|
||||||
Integer overtimeSettlementType = Integer.parseInt(bean.get("overtimeSettlementType").toString());
|
Integer overtimeSettlementType = Integer.parseInt(bean.get("overtimeSettlementType").toString());
|
||||||
bean.put("overtimeSettlementTypeName", OrganizationConstants.OvertimeSettlementType.getTitleByType(overtimeSettlementType));
|
bean.put("overtimeSettlementTypeName", OvertimeSettlementType.getTitleByType(overtimeSettlementType));
|
||||||
});
|
});
|
||||||
return beans;
|
return beans;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue