新增统计维度展示
This commit is contained in:
parent
d2ac1aec23
commit
e677207eac
|
|
@ -0,0 +1,3 @@
|
|||
alter table hrsa_salary_stats_report add time_type int;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
alter table hrsa_salary_stats_report add time_type int;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
alter table hrsa_salary_stats_report add time_type int;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
alter table hrsa_salary_stats_report add time_type int
|
||||
;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
alter table hrsa_salary_stats_report add time_type int
|
||||
/
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
alter table hrsa_salary_stats_report add time_type int;
|
||||
/
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
alter table hrsa_salary_stats_report add time_type int
|
||||
GO
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
alter table hrsa_salary_stats_report add time_type int;
|
||||
/
|
||||
|
||||
|
|
@ -28,6 +28,21 @@ public class SalaryStatisticsSearchConditionSaveParam {
|
|||
//统计维度
|
||||
private Long dimension;
|
||||
|
||||
/**
|
||||
* 1、上月
|
||||
* 2、本月
|
||||
* 3、一季度
|
||||
* 4、二季度
|
||||
* 5、三季度
|
||||
* 6、四季度
|
||||
* 7、上半年
|
||||
* 8、下半年
|
||||
* 9、本年
|
||||
* 10、自定义
|
||||
*/
|
||||
//事件类型
|
||||
private Integer timeType;
|
||||
|
||||
//薪资所属月-开始月
|
||||
private Date salaryStartMonth;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,15 +21,15 @@ import java.util.Date;
|
|||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
//hrsa_salary_stats_report")
|
||||
//hrsa_salary_stats_report
|
||||
public class SalaryStatisticsReportPO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 6526480959578343197L;
|
||||
|
||||
//主键id")
|
||||
//主键id
|
||||
private Long id;
|
||||
|
||||
//报表名称")
|
||||
//报表名称
|
||||
private String reportName;
|
||||
|
||||
private String remark;
|
||||
|
|
@ -38,58 +38,61 @@ public class SalaryStatisticsReportPO implements Serializable {
|
|||
private String sortIndex;
|
||||
private String sortType;
|
||||
|
||||
//统计维度")
|
||||
//时间类型
|
||||
private Integer timeType;
|
||||
|
||||
//统计维度
|
||||
private String dimension;
|
||||
|
||||
//薪资所属月-起始")
|
||||
//薪资所属月-起始
|
||||
private Date salaryStartMonth;
|
||||
|
||||
//薪资所属月-截止")
|
||||
//薪资所属月-截止
|
||||
private Date salaryEndMonth;
|
||||
|
||||
//个税扣缴义务人配置")
|
||||
//个税扣缴义务人配置
|
||||
private String taxAgentSetting;
|
||||
|
||||
//收入所得项目配置")
|
||||
//收入所得项目配置
|
||||
private String incomeCategorySetting;
|
||||
|
||||
//分部配置")
|
||||
//分部配置
|
||||
private String subCompanySetting;
|
||||
|
||||
//部门配置")
|
||||
//部门配置
|
||||
private String departSetting;
|
||||
|
||||
//职级配置")
|
||||
//职级配置
|
||||
private String gradeSetting;
|
||||
|
||||
//岗位配置")
|
||||
//岗位配置
|
||||
private String positionSetting;
|
||||
|
||||
//人员状态配置")
|
||||
//人员状态配置
|
||||
private String statusSetting;
|
||||
|
||||
//人员配置")
|
||||
//人员配置
|
||||
private String employeeSetting;
|
||||
|
||||
//入职日期配置")
|
||||
//入职日期配置
|
||||
private String hiredateSetting;
|
||||
|
||||
//离职日期配置")
|
||||
//离职日期配置
|
||||
private String leavedateSetting;
|
||||
|
||||
//租户key", ignore = true)
|
||||
//租户key
|
||||
private String tenantKey;
|
||||
|
||||
//创建人id", ignore = true)
|
||||
//创建人id
|
||||
private Long creator;
|
||||
|
||||
//是否删除", ignore = true)
|
||||
//是否删除
|
||||
private Integer deleteType;
|
||||
|
||||
//创建时间", ignore = true)
|
||||
//创建时间
|
||||
private Date createTime;
|
||||
|
||||
//更新时间", ignore = true)
|
||||
//更新时间
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -272,6 +272,8 @@ public class SalaryStatisticsReportServiceImpl extends Service implements Salary
|
|||
po.setLeavedateSetting(JSON.toJSONString(param.getLeavedate()));
|
||||
}
|
||||
|
||||
po.setTimeType(param.getTimeType());
|
||||
|
||||
getSalaryStatisticsReportMapper().updateIgnoreNull(po);
|
||||
|
||||
// 获取自定义统计项目
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
Map<String, Object> temp = new HashMap<>();
|
||||
temp.put("id", po.getId().toString());
|
||||
temp.put("reportName", po.getReportName());
|
||||
|
||||
temp.put("timeType", po.getTimeType() == null ? "10" : po.getTimeType().toString());
|
||||
List<String> dimNames = Arrays.stream(po.getDimension().split(",")).map(dim -> Optional.ofNullable(salaryStatisticsDimensionMap.get(dim)).orElse("")).collect(Collectors.toList());
|
||||
temp.put("dimension", StringUtils.join(dimNames, ","));
|
||||
temp.put("dimensionId", po.getDimension());
|
||||
|
|
@ -238,6 +238,7 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
SalaryAssert.notNull(po, SalaryI18nUtil.getI18nLabel(152563, "报表不存在"));
|
||||
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("timeType", po.getTimeType() == null ? 10 : po.getTimeType().toString());
|
||||
data.put("salaryStartMonth", SalaryDateUtil.getFormatYearMonth(po.getSalaryStartMonth()));
|
||||
data.put("salaryEndMonth", SalaryDateUtil.getFormatYearMonth(po.getSalaryEndMonth()));
|
||||
data.put("taxAgent", JSONArray.parseArray(po.getTaxAgentSetting()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue