This commit is contained in:
钱涛 2022-04-22 17:26:17 +08:00
parent df5fa147e1
commit 3e9d02e78b
3 changed files with 18 additions and 17 deletions

View File

@ -1,4 +1,4 @@
--
# 缴税人表主键自
alter table hrsa_tax_agent modify id bigint auto_increment;
alter table hrsa_tax_rate_base modify id bigint auto_increment;
alter table hrsa_tax_rate_detail modify id bigint auto_increment;
@ -7,7 +7,7 @@ alter table hrsa_add_up_situation modify id bigint auto_increment;
alter table hrsa_other_deduction modify id bigint auto_increment;
alter table hrsa_attend_quote_field modify id bigint auto_increment;
alter table hrsa_attend_quote_sync_set modify id bigint auto_increment;
alter table hrsa_attend_quote_data modify id bigint auto_increment;
# alter table hrsa_attend_quote_data modify id bigint auto_increment;
alter table hrsa_attend_quote_data_value modify id bigint auto_increment;
alter table hrsa_salary_item modify id bigint auto_increment;
@ -29,19 +29,19 @@ alter table hrsa_formula_var modify id bigint auto_increment;
alter table hrsa_salary_acct_result modify id bigint auto_increment;
--
# 福利方案主键自增增
alter table hrsa_social_security_scheme modify id bigint auto_increment;
alter table hrsa_scheme_detail modify id bigint auto_increment;
alter table hrsa_insurance_category modify id bigint auto_increment;
--
# 福利档
alter table hrsa_social_archives modify id bigint auto_increment;
alter table hrsa_fund_archives modify id bigint auto_increment;
alter table hrsa_other_archives modify id bigint auto_increment;
--
# 福利台
alter table hrsa_bill_batch modify id bigint auto_increment;
alter table hrsa_bill_detail modify id bigint auto_increment;
alter table hrsa_bill_detail_temp modify id bigint auto_increment;
@ -60,12 +60,12 @@ ADD COLUMN sob_default_item_group_id bigint(0) NOT NULL COMMENT '薪资账套默
ADD COLUMN sorted_index int(0) NOT NULL COMMENT '显示顺序' AFTER sob_default_item_group_id;
-- 工资单发放
# 工资单发放
alter table hrsa_salary_template modify id bigint auto_increment;
ALTER TABLE hrsa_salary_template MODIFY background varchar (2000);
-- 公式
# 公式
CREATE TABLE hrsa_formula
(
id bigint NOT NULL AUTO_INCREMENT,

View File

@ -6,12 +6,13 @@ import com.engine.salary.enums.BaseEnum;
import java.util.Objects;
/**
* @description: 人员范围的对象类型
* @author: xiajun
* @modified By: xiajun
* @date: Created in 11/22/21 11:32 AM
* @version:v1.0
*/
* 人员范围的对象类型
* <p>Copyright: Copyright (c) 2022</p>
* <p>Company: 泛微软件</p>
*
* @author qiantao
* @version 1.0
**/
public enum TargetTypeEnum implements BaseEnum<Integer> {
EMPLOYEE(1, "人员", 100133),
DEPT(2, "部门", 86185),

View File

@ -360,9 +360,9 @@ public class AttendQuoteDataServiceImpl extends Service implements AttendQuoteDa
LocalDateRange salaryCycleRange = salarySobCycle.getSalaryCycle();
LocalDateRange attendCycleRange = salarySobCycle.getAttendCycle();
// 考勤周期
attendQuote.setAttendCycle(attendCycleRange.getFromDate() + " ~ " + attendCycleRange.getEndDate());
attendQuote.setAttendCycle(SalaryDateUtil.getFormatLocalDate(attendCycleRange.getFromDate()) + " ~ " + SalaryDateUtil.getFormatLocalDate(attendCycleRange.getEndDate()));
// 薪资周期
attendQuote.setSalaryCycle(salaryCycleRange.getFromDate() + " ~ " + salaryCycleRange.getEndDate());
attendQuote.setSalaryCycle(SalaryDateUtil.getFormatLocalDate(salaryCycleRange.getFromDate()) + " ~ " + SalaryDateUtil.getFormatLocalDate(salaryCycleRange.getEndDate()));
attendQuote.setSalaryYearMonth(salaryYearMonthDayDate);
// 来源导入
attendQuote.setSourceType(sourceType.getValue());
@ -547,7 +547,7 @@ public class AttendQuoteDataServiceImpl extends Service implements AttendQuoteDa
List<DataCollectionEmployee> employees = employeeBiz.listEmployee();
// 获取已设置的可同步的考勤字段
List<AttendQuoteFieldPO> attendQuoteFields = getAttendQuoteSetFields(AttendQuoteSourceTypeEnum.IMPORT);
// 获取考勤引用
// 生成获取考勤引用
AttendQuotePO attendQuote = getAttendQuote(AttendQuoteSourceTypeEnum.IMPORT, salarySobId, year, month, StringUtils.EMPTY);
int total = 0;
@ -643,7 +643,7 @@ public class AttendQuoteDataServiceImpl extends Service implements AttendQuoteDa
errorSum += StringUtils.isEmpty(bigDecimalValue) ? 1 : 0;
if (StringUtils.isNotEmpty(bigDecimalValue)) {
values.add(AttendQuoteDataValuePO.builder()
.id(IdGenerator.generate())
// .id(IdGenerator.generate())
.createTime(now)
.updateTime(now)
.creator((long) user.getUID())