Commit df0b70a7 authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/MVP1.5' into MVP1.5

parents 316cbe1d 3d44ef36
...@@ -9,6 +9,7 @@ spring: ...@@ -9,6 +9,7 @@ spring:
host: 192.168.1.65 host: 192.168.1.65
port: 22379 port: 22379
password: '@yf_2017' password: '@yf_2017'
connect-timeout: 0
datasource: datasource:
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
......
...@@ -133,6 +133,9 @@ public interface CommonConstants { ...@@ -133,6 +133,9 @@ public interface CommonConstants {
String FIVE_STRING = "5"; String FIVE_STRING = "5";
String TWELVE_STRING = "12"; String TWELVE_STRING = "12";
String ELEVEN_STRING = "11";
int TWELVE_INT = 12; int TWELVE_INT = 12;
String THIRTEEN_STRING = "13"; String THIRTEEN_STRING = "13";
......
...@@ -143,7 +143,7 @@ public class ExcelUtil <T> implements Serializable { ...@@ -143,7 +143,7 @@ public class ExcelUtil <T> implements Serializable {
} }
field.set(vo, Common.isNotNull(value)?value:field.get(vo)); field.set(vo, Common.isNotNull(value)?value:field.get(vo));
}catch (Exception e){ }catch (Exception e){
log.error("字典数据解析异常"); log.error("字典数据解析异常",e);
} }
} }
} }
...@@ -1120,7 +1120,7 @@ public class ExcelUtil <T> implements Serializable { ...@@ -1120,7 +1120,7 @@ public class ExcelUtil <T> implements Serializable {
} }
field.set(vo, Common.isNotNull(value)?value:field.get(vo)); field.set(vo, Common.isNotNull(value)?value:field.get(vo));
}catch (Exception e){ }catch (Exception e){
log.error("字典数据解析异常"); log.error("字典数据解析异常",e);
} }
} }
} }
......
...@@ -396,6 +396,19 @@ public class TDispatchInfo extends BaseEntity { ...@@ -396,6 +396,19 @@ public class TDispatchInfo extends BaseEntity {
/** /**
* 社保办理状态 0 未办理 1 全部办理成功(原-已办理) 2 全部办理失败(原-办理失败) 3 部分办理成功 4 办理中 * 社保办理状态 0 未办理 1 全部办理成功(原-已办理) 2 全部办理失败(原-办理失败) 3 部分办理成功 4 办理中
*
* 20230131 MVP1.5.0版本新增拆分派减逻辑:
* 1、派减状态:增加:办理中(派减存在未处理完的事项时,状态为“办理中”)、部分办理失败状态(派减全部事项处理完毕,存在办理失败的事项)——同派增状态保持一致
* 2、预估数据逻辑:仅当派减办理成功状态时,才会不生成次月预估费用;未办理、办理中、部分办理失败都是全额生成社保预估费用;
* 3、档案查询中的状态沿用派增的处理中和部分购买;
* 4、新增三种无需审核的合同需测试验证;
* 5、派减全部减掉之后,在社保公积金查询处,将“停缴日期”调整为“最迟停缴日期”,取最后一次的办理成功时客服导表中填写的停缴日期,精确到日;
* 6、社保公积金查询、派单查询、档案查询-社保详情中,针对派减的在下方明细处增加“停缴日期”列,显示到“年月日”;
* 7、流程进展明细中,将分项减员的操作记录按照操作人、操作时间、派减项进行记录;
* 8、社保公积金查询处,查询条件:社保状态-增加“派减-办理中”、”派减-部分办理失败“,支持查询、列表正常显示、及导出;
* 9、批量办理界面呈现效果按照芳利拍照的效果呈现;
* 10、针对派单-部分派减的,需判断是否有流程中的数据,如果有,不允许再次发起;仅当派单项全部为完结状态,并且有未派减项,才允许发起派减;
* 11、增加查询项-”派单项“下拉多选——养老、工伤、失业、医保、生育、大病;搜索项只要有重叠的都可以被检索到;
*/ */
@Length(max = 1, message = "社保办理状态 不能超过1个字符" ) @Length(max = 1, message = "社保办理状态 不能超过1个字符" )
@ExcelAttribute(name = "社保办理状态", maxLength = 1) @ExcelAttribute(name = "社保办理状态", maxLength = 1)
......
...@@ -292,10 +292,10 @@ public class TSocialFundInfo extends BaseEntity { ...@@ -292,10 +292,10 @@ public class TSocialFundInfo extends BaseEntity {
@ExcelProperty("公积金派增状态" ) @ExcelProperty("公积金派增状态" )
private String fundAddStatus; private String fundAddStatus;
/** /**
* 社保派减状态:0待审核、1待办理、2办理成功、3办理失败 4审核不通过 * 社保派增状态:0待审核、1待办理、2办理成功、3办理失败 4 审核不通过 5 办理中 6部分办理失败 202230231 派减分项办理逻辑 fxj
*/ */
@ExcelAttribute(name = "社保派减状态", maxLength = 1) @ExcelAttribute(name = "社保派减状态", maxLength = 1)
@Schema(description = "社保派减状态:0待审核、1待办理、2办理成功、3办理失败 4审核不通过" ) @Schema(description = "社保派减状态:0待审核、1待办理、2办理成功、3办理失败 4 审核不通过 5 办理中 6 部分办理失败 " )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("社保派减状态" ) @ExcelProperty("社保派减状态" )
private String socialReduceStatus; private String socialReduceStatus;
...@@ -792,64 +792,113 @@ public class TSocialFundInfo extends BaseEntity { ...@@ -792,64 +792,113 @@ public class TSocialFundInfo extends BaseEntity {
@ExcelProperty("大病起缴日期" ) @ExcelProperty("大病起缴日期" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private Date bigailmentStart; private Date bigailmentStart;
/**
* 养老停缴日期
*/
@ExcelAttribute(name = "养老停缴日期", isDate = true)
@Schema(description = "养老停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("养老停缴日期" )
private Date pensionReduceStart;
/**
* 医疗停缴日期
*/
@ExcelAttribute(name = "医疗停缴日期", isDate = true)
@Schema(description = "医疗停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("医疗停缴日期" )
private Date medicalReduceStart;
/**
* 失业停缴日期
*/
@ExcelAttribute(name = "失业停缴日期", isDate = true)
@Schema(description = "失业停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("失业停缴日期" )
private Date unemployReduceStart;
/**
* 工伤停缴日期
*/
@ExcelAttribute(name = "工伤停缴日期", isDate = true)
@Schema(description = "工伤停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("工伤停缴日期" )
private Date workInjuryReduceStart;
/**
* 生育停缴日期
*/
@ExcelAttribute(name = "生育停缴日期", isDate = true)
@Schema(description = "生育停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("生育停缴日期" )
private Date birthReduceStart;
/**
* 大病停缴日期
*/
@ExcelAttribute(name = "大病停缴日期", isDate = true)
@Schema(description = "大病停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大病停缴日期" )
private Date bigailmentReduceStart;
/** /**
* 养老办理状态:0待办理1办理成功2办理失败3已派减 * 养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "养老办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "养老办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "养老办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("养老办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private String pensionHandle; private String pensionHandle;
/** /**
* 医疗办理状态:0待办理1办理成功2办理失败3已派减 * 医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "医疗办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "医疗办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "医疗办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("医疗办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private String medicalHandle; private String medicalHandle;
/** /**
* 失业办理状态:0待办理1办理成功2办理失败3已派减 * 失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "失业办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "失业办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "失业办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("失业办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private String unemployHandle; private String unemployHandle;
/** /**
* 工伤办理状态:0待办理1办理成功2办理失败3已派减 * 工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "工伤办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "工伤办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "工伤办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("工伤办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private String workInjuryHandle; private String workInjuryHandle;
/** /**
* 生育办理状态:0待办理1办理成功2办理失败3已派减 * 生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "生育办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "生育办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "生育办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("生育办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private String birthHandle; private String birthHandle;
/** /**
* 大病办理状态:0待办理1办理成功2办理失败3已派减 * 大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "大病办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "大病办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "大病办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大病办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
private String bigailmentHandle; private String bigailmentHandle;
/** /**
...@@ -1140,10 +1189,10 @@ public class TSocialFundInfo extends BaseEntity { ...@@ -1140,10 +1189,10 @@ public class TSocialFundInfo extends BaseEntity {
private BigDecimal personalFundSum; private BigDecimal personalFundSum;
/** /**
* 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败 10 审核不通过)、派减(6待审核 7待办理 8办理成功 9 办理失败 ) * 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败 10 审核不通过)、派减(6待审核 7待办理 8办理成功 9 办理失败 11派减办理中 12 派减部分办理失败
*/ */
@ExcelAttribute(name = "社保状态", maxLength = 1) @ExcelAttribute(name = "社保状态", maxLength = 1)
@Schema(description = "社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败 10 审核不通过)、派减(6待审核 7待办理 8办理成功 9 办理失败)" ) @Schema(description = "社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败 10 审核不通过)、派减(6待审核 7待办理 8办理成功 9 办理失败 11 派减办理中 12 派减部分办理失败)" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("社保派增状态" ) @ExcelProperty("社保派增状态" )
private String socialStatus; private String socialStatus;
......
...@@ -269,12 +269,12 @@ public class TSocialInfo extends BaseEntity { ...@@ -269,12 +269,12 @@ public class TSocialInfo extends BaseEntity {
@ExcelProperty("审核状态" ) @ExcelProperty("审核状态" )
private String auditStatus; private String auditStatus;
/** /**
* 办理状态:0待办理/1已办理2办理失败3已派减 4 办理中 5 部分办理失败 * 办理状态:0待办理/1已办理2办理失败3已派减 4 办理中 5 部分办理失败 6 派减办理中 7 派减部分办理失败
*/ */
@NotBlank(message = "办理状态不能为空" ) @NotBlank(message = "办理状态不能为空" )
@Length(max = 32, message = "办理状态 不能超过32个字符" ) @Length(max = 32, message = "办理状态 不能超过32个字符" )
@ExcelAttribute(name = "办理状态", isNotEmpty = true, errorInfo = "办理状态不能为空", maxLength = 32) @ExcelAttribute(name = "办理状态", isNotEmpty = true, errorInfo = "办理状态不能为空", maxLength = 32)
@Schema(description = "办理状态:0待办理/1已办理2办理失败3已派减4 办理中 5 部分办理失败" ) @Schema(description = "办理状态:0待办理/1已办理2办理失败3已派减4 办理中 5 部分办理失败 6 派减办理中 7 派减部分办理失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("办理状态" ) @ExcelProperty("办理状态" )
private String handleStatus; private String handleStatus;
...@@ -787,59 +787,109 @@ public class TSocialInfo extends BaseEntity { ...@@ -787,59 +787,109 @@ public class TSocialInfo extends BaseEntity {
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大病起缴日期" ) @ExcelProperty("大病起缴日期" )
private Date bigailmentStart; private Date bigailmentStart;
/**
* 养老停缴日期
*/
@ExcelAttribute(name = "养老停缴日期", isDate = true)
@Schema(description = "养老停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("养老停缴日期" )
private Date pensionReduceStart;
/**
* 医疗停缴日期
*/
@ExcelAttribute(name = "医疗停缴日期", isDate = true)
@Schema(description = "医疗停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("医疗停缴日期" )
private Date medicalReduceStart;
/**
* 失业停缴日期
*/
@ExcelAttribute(name = "失业停缴日期", isDate = true)
@Schema(description = "失业停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("失业停缴日期" )
private Date unemployReduceStart;
/**
* 工伤停缴日期
*/
@ExcelAttribute(name = "工伤停缴日期", isDate = true)
@Schema(description = "工伤停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("工伤停缴日期" )
private Date workInjuryReduceStart;
/**
* 生育停缴日期
*/
@ExcelAttribute(name = "生育停缴日期", isDate = true)
@Schema(description = "生育停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("生育停缴日期" )
private Date birthReduceStart;
/**
* 大病停缴日期
*/
@ExcelAttribute(name = "大病停缴日期", isDate = true)
@Schema(description = "大病停缴日期" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大病停缴日期" )
private Date bigailmentReduceStart;
/** /**
* 养老办理状态:0待办理1办理成功2办理失败3已派减 * 养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "养老办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "养老办理状态:0待办理1办理成功2办理失败3已派减 4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "养老办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "养老办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("养老办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("养老办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
private String pensionHandle; private String pensionHandle;
/** /**
* 医疗办理状态:0待办理1办理成功2办理失败3已派减 * 医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "医疗办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "医疗办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "医疗办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("医疗办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("医疗办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
private String medicalHandle; private String medicalHandle;
/** /**
* 失业办理状态:0待办理1办理成功2办理失败3已派减 * 失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "失业办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "失业办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "失业办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("失业办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("失业办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
private String unemployHandle; private String unemployHandle;
/** /**
* 工伤办理状态:0待办理1办理成功2办理失败3已派减 * 工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "工伤办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "工伤办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "工伤办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("工伤办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("工伤办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
private String workInjuryHandle; private String workInjuryHandle;
/** /**
* 生育办理状态:0待办理1办理成功2办理失败3已派减 * 生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "生育办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "生育办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "生育办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("生育办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("生育办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
private String birthHandle; private String birthHandle;
/** /**
* 大病办理状态:0待办理1办理成功2办理失败3已派减 * 大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败
*/ */
@Length(max = 1, message = "大病办理状态:0待办理1办理成功2办理失败3已派减 不能超过1个字符" ) @Length(max = 1, message = "大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败 不能超过1个字符" )
@ExcelAttribute(name = "大病办理状态:0待办理1办理成功2办理失败3已派减", maxLength = 1) @ExcelAttribute(name = "大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败", maxLength = 1)
@Schema(description = "大病办理状态:0待办理1办理成功2办理失败3已派减" ) @Schema(description = "大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大病办理状态:0待办理1办理成功2办理失败3已派减" ) @ExcelProperty("大病办理状态:0待办理1办理成功2办理失败3已派减4派减失败" )
private String bigailmentHandle; private String bigailmentHandle;
/** /**
* 基数上限(社保或公积金) * 基数上限(社保或公积金)
......
...@@ -26,7 +26,6 @@ import io.swagger.v3.oas.annotations.media.Schema; ...@@ -26,7 +26,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
...@@ -110,4 +109,10 @@ public class TDispatchInfoSearchVo extends TDispatchInfo { ...@@ -110,4 +109,10 @@ public class TDispatchInfoSearchVo extends TDispatchInfo {
@ExcelIgnore @ExcelIgnore
private String auditTimeEnd; private String auditTimeEnd;
/**
* 派单项:如 养老、公积金
*/
@ExcelAttribute(name = "派单项查询")
@Schema(description = "派单项查询" )
private List<String> dispatchItems;
} }
...@@ -3296,6 +3296,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3296,6 +3296,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
* @Author fxj * @Author fxj
* @Date 2022-07-26 * @Date 2022-07-26
**/ **/
@Transactional(rollbackFor = Exception.class)
public List<ErrorMessage> addBatchApplyHandle(List<String> idsList, String typeSub, YifuUser user public List<ErrorMessage> addBatchApplyHandle(List<String> idsList, String typeSub, YifuUser user
, int flag, String handleStatus, String handleRemark, String socialType, String remark) { , int flag, String handleStatus, String handleRemark, String socialType, String remark) {
List<ErrorMessage> errorList = new ArrayList<>(); List<ErrorMessage> errorList = new ArrayList<>();
...@@ -3358,12 +3359,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3358,12 +3359,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 无更新直接跳过 // 无更新直接跳过
if (Common.isEmpty(socialTypeRemark) if (Common.isEmpty(socialTypeRemark)
&& CommonConstants.ZERO_STRING.equals(typeSub) && CommonConstants.ZERO_STRING.equals(typeSub)
&& CommonConstants.ZERO_STRING.equals(dis.getType())
&& Common.isEmpty(socialType)) { && Common.isEmpty(socialType)) {
continue; continue;
} }
socialInfo = socialMapper.selectById(dis.getSocialId()); socialInfo = socialMapper.selectById(dis.getSocialId());
socialTypeRemark = getHandleRemark(socialType, socialInfo); socialTypeRemark = getHandleRemark(socialType, socialInfo,dis.getType());
} else { } else {
socialInfo = null; socialInfo = null;
} }
...@@ -3664,7 +3664,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3664,7 +3664,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
vo.setDepartNo(dis.getSettleDomainCode()); vo.setDepartNo(dis.getSettleDomainCode());
R<Boolean> resUp = archivesDaprUtil.updateProjectSocialFund(vo); R<Boolean> resUp = archivesDaprUtil.updateProjectSocialFund(vo);
if (Common.isEmpty(resUp) || !(CommonConstants.SUCCESS.intValue() == resUp.getCode()) || !resUp.getData().booleanValue()){ if (Common.isEmpty(resUp) || !(CommonConstants.SUCCESS.intValue() == resUp.getCode()) || !resUp.getData().booleanValue()){
ServiceUtil.runTimeExceptionDiy(DispatchConstants.DISPATCH_SYN_DOC_EXE); errorList.add(new ErrorMessage(-1, DispatchConstants.DISPATCH_SYN_DOC_EXE,CommonConstants.RED,dis.getEmpName()));
continue;
} }
} }
} else { } else {
...@@ -3777,38 +3778,77 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3777,38 +3778,77 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
} }
} }
/**
private StringBuilder getHandleRemark(String socialType, TSocialInfo socialInfo) { * @Author fxj
* @Description
* @Date 14:34 2023/1/31
* @Param socialType 派单项(1养老 2医疗 3失业 4工伤 5生育 6大病),socialInfo 社保信息 type 0 派增 1 派减
* @return
**/
private StringBuilder getHandleRemark(String socialType, TSocialInfo socialInfo, String type) {
StringBuilder socialTypeRemark; StringBuilder socialTypeRemark;
socialTypeRemark = new StringBuilder(); socialTypeRemark = new StringBuilder();
if (Common.isNotNull(socialType)) { if (Common.isNotNull(socialType)) {
String[] stArr = socialType.split(","); String[] stArr = socialType.split(",");
for (String st : stArr) { // 派增派单项处理
// socialType (1养老 2医疗 3失业 4工伤 5生育 6大病) if (CommonConstants.ZERO_STRING.equals(type)){
if (Integer.parseInt(st) == CommonConstants.ONE_INT for (String st : stArr) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getPensionHandle())){ // socialType (1养老 2医疗 3失业 4工伤 5生育 6大病)
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、"); if (Integer.parseInt(st) == CommonConstants.ONE_INT
} && CommonConstants.ZERO_STRING.equals(socialInfo.getPensionHandle())){
if (Integer.parseInt(st) == CommonConstants.TWO_INT socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
&& CommonConstants.ZERO_STRING.equals(socialInfo.getMedicalHandle())){ }
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、"); if (Integer.parseInt(st) == CommonConstants.TWO_INT
} && CommonConstants.ZERO_STRING.equals(socialInfo.getMedicalHandle())){
if (Integer.parseInt(st) == CommonConstants.THREE_INT socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
&& CommonConstants.ZERO_STRING.equals(socialInfo.getUnemployHandle())){ }
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、"); if (Integer.parseInt(st) == CommonConstants.THREE_INT
} && CommonConstants.ZERO_STRING.equals(socialInfo.getUnemployHandle())){
if (Integer.parseInt(st) == CommonConstants.FOUR_INT socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
&& CommonConstants.ZERO_STRING.equals(socialInfo.getWorkInjuryHandle())){ }
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、"); if (Integer.parseInt(st) == CommonConstants.FOUR_INT
} && CommonConstants.ZERO_STRING.equals(socialInfo.getWorkInjuryHandle())){
if (Integer.parseInt(st) == CommonConstants.FIVE_INT socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
&& CommonConstants.ZERO_STRING.equals(socialInfo.getBirthHandle())){ }
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、"); if (Integer.parseInt(st) == CommonConstants.FIVE_INT
&& CommonConstants.ZERO_STRING.equals(socialInfo.getBirthHandle())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
if (Integer.parseInt(st) == CommonConstants.SIX_INT
&& CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
} }
if (Integer.parseInt(st) == CommonConstants.SIX_INT // 派减派单项处理
&& CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle()) } else if (CommonConstants.ZERO_STRING.equals(type)){
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())){ for (String st : stArr) {
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、"); // socialType (1养老 2医疗 3失业 4工伤 5生育 6大病)
if (Integer.parseInt(st) == CommonConstants.ONE_INT
&& CommonConstants.ONE_STRING.equals(socialInfo.getPensionHandle())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
if (Integer.parseInt(st) == CommonConstants.TWO_INT
&& CommonConstants.ONE_STRING.equals(socialInfo.getMedicalHandle())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
if (Integer.parseInt(st) == CommonConstants.THREE_INT
&& CommonConstants.ONE_STRING.equals(socialInfo.getUnemployHandle())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
if (Integer.parseInt(st) == CommonConstants.FOUR_INT
&& CommonConstants.ONE_STRING.equals(socialInfo.getWorkInjuryHandle())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
if (Integer.parseInt(st) == CommonConstants.FIVE_INT
&& CommonConstants.ONE_STRING.equals(socialInfo.getBirthHandle())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
if (Integer.parseInt(st) == CommonConstants.SIX_INT
&& CommonConstants.ONE_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())){
socialTypeRemark.append(CommonConstants.SOCIAL_HANDLE_TYPE[Integer.parseInt(st)]).append("、");
}
} }
} }
if (Common.isNotNull(socialTypeRemark.toString())){ if (Common.isNotNull(socialTypeRemark.toString())){
...@@ -3831,54 +3871,51 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3831,54 +3871,51 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
, TDispatchInfo dis, TSocialFundInfo sf) { , TDispatchInfo dis, TSocialFundInfo sf) {
// 办理成功 处理社保相关数据 (直接排除五险) // 办理成功 处理社保相关数据 (直接排除五险)
updateSocialByHandle(flag, socialInfo, dis, sf); updateSocialByHandle(flag, socialInfo, dis, sf);
// 批量办理,或者办理选择对应的类型,修改对应的办理状态 // 批量办理,或者办理选择对应的类型,修改对应的办理状态 (派增派减都改)
this.setSocialSixStatus(handleStatus, socialType, socialInfo,sf); this.setSocialSixStatus(handleStatus, socialType, socialInfo,sf, dis);
boolean handleing = CommonConstants.FOUR_STRING.equals(socialInfo.getHandleStatus()); boolean handing = CommonConstants.FOUR_STRING.equals(socialInfo.getHandleStatus());
// HandleStatus办理状态 0 未办理 1 全部办理成功(原-已办理) 2 全部办理失败(原-办理失败) 3已派减 4办理中 5部分办理失败 // HandleStatus办理状态 0 未办理 1 全部办理成功(原-已办理) 2 全部办理失败(原-办理失败) 3已派减 4办理中 5部分办理失败
// 派减,审核不通过,社保状态不变更 // 派减,审核不通过,社保状态不变更
// 1.派减处理 // 1.派减处理
if (CommonConstants.ONE_STRING.equals(dis.getType())){ if (CommonConstants.ONE_STRING.equals(dis.getType())){
//办理成功 (办理失败不做处理,预估在另外的地方处理) // 单个办理的时候处理派单和社保的办理状态 有办理成功也有办理失败的 为办理中
if (CommonConstants.ZERO_INT == flag){
// 同步社保分项办理状态 // 位置不可变更,处理 全部派减成功 全部派减失败 部分派减成功的状态
socialInfo.setPensionHandle(CommonConstants.THREE_STRING); initReduceStatus(socialInfo, sf,dis);
socialInfo.setMedicalHandle(CommonConstants.THREE_STRING); //位置不可变更 上面是状态初始化
socialInfo.setUnemployHandle(CommonConstants.THREE_STRING); if (CommonConstants.SIX_STRING.equals(socialInfo.getHandleStatus())){
socialInfo.setWorkInjuryHandle(CommonConstants.THREE_STRING); dis.setSocialHandleStatus(CommonConstants.FOUR_STRING);
socialInfo.setBirthHandle(CommonConstants.THREE_STRING); dis.setStatus(CommonConstants.TWO_STRING);
socialInfo.setHandleStatus(CommonConstants.THREE_STRING); socialInfo.setHandleStatus(CommonConstants.SIX_STRING);
socialInfo.setReduceCan(CommonConstants.dingleDigitStrArray[1]);//改成不可派减状态 socialInfo.setReduceCan(CommonConstants.dingleDigitStrArray[1]);//改成不可派减状态
sf.setSocialReduceStatus(CommonConstants.TWO_STRING); sf.setSocialStatus(CommonConstants.ELEVEN_STRING);
sf.setSocialStatus(CommonConstants.EIGHT_STRING); sf.setSocialReduceStatus(CommonConstants.FIVE_STRING);
sf.setPensionHandle(CommonConstants.THREE_STRING);
sf.setMedicalHandle(CommonConstants.THREE_STRING);
sf.setUnemployHandle(CommonConstants.THREE_STRING);
sf.setWorkInjuryHandle(CommonConstants.THREE_STRING);
sf.setBirthHandle(CommonConstants.THREE_STRING);
sf.setHandleStatus(CommonConstants.THREE_STRING);
if (CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())){
sf.setBigailmentHandle(CommonConstants.THREE_STRING);
socialInfo.setBigailmentHandle(CommonConstants.THREE_STRING);
}
}
//办理失败不做处理,只更新社保公积金查询状态
if (CommonConstants.ONE_INT == flag){
sf.setSocialReduceStatus(CommonConstants.THREE_STRING);
sf.setSocialStatus(CommonConstants.NINE_STRING);
} }
} }
// 2.派增处理 socialType 社保拆分的每一项(1养老 2医疗 3失业 4工伤 5生育 6大病) // 2.派增处理 socialType 社保拆分的每一项(1养老 2医疗 3失业 4工伤 5生育 6大病)
if (CommonConstants.ZERO_STRING.equals(dis.getType()) && Common.isNotNull(dis.getSocialId())){ if (CommonConstants.ZERO_STRING.equals(dis.getType()) && Common.isNotNull(dis.getSocialId())){
//办理成功 flag=0 办理失败 flag=1 //办理成功 flag=0 办理失败 flag=1
// 派增: // 派增: 2023-02-01 派减办理失败为新增状态 等同已办理成功
if ((Common.isEmpty(sf.getPensionHandle()) || CommonConstants.ONE_STRING.equals(sf.getPensionHandle())) if ((Common.isEmpty(sf.getPensionHandle())
&& (Common.isEmpty(sf.getMedicalHandle()) || CommonConstants.ONE_STRING.equals(sf.getMedicalHandle())) || CommonConstants.ONE_STRING.equals(sf.getPensionHandle())
&& (Common.isEmpty(sf.getUnemployHandle()) || CommonConstants.ONE_STRING.equals(sf.getUnemployHandle())) || CommonConstants.FOUR_STRING.equals(sf.getPensionHandle()))
&& (Common.isEmpty(sf.getWorkInjuryHandle()) || CommonConstants.ONE_STRING.equals(sf.getWorkInjuryHandle())) && (Common.isEmpty(sf.getMedicalHandle())
&& (Common.isEmpty(sf.getBirthHandle()) || CommonConstants.ONE_STRING.equals(sf.getBirthHandle())) || CommonConstants.ONE_STRING.equals(sf.getMedicalHandle())
|| CommonConstants.FOUR_STRING.equals(sf.getMedicalHandle()))
&& (Common.isEmpty(sf.getUnemployHandle())
|| CommonConstants.ONE_STRING.equals(sf.getUnemployHandle())
|| CommonConstants.FOUR_STRING.equals(sf.getUnemployHandle()))
&& (Common.isEmpty(sf.getWorkInjuryHandle())
|| CommonConstants.ONE_STRING.equals(sf.getWorkInjuryHandle())
|| CommonConstants.FOUR_STRING.equals(sf.getWorkInjuryHandle()))
&& (Common.isEmpty(sf.getBirthHandle())
|| CommonConstants.ONE_STRING.equals(sf.getBirthHandle())
|| CommonConstants.FOUR_STRING.equals(sf.getBirthHandle()))
&& (Common.isEmpty(sf.getBigailmentHandle()) && (Common.isEmpty(sf.getBigailmentHandle())
|| CommonConstants.ONE_STRING.equals(sf.getBigailmentHandle()) || CommonConstants.ONE_STRING.equals(sf.getBigailmentHandle())
|| CommonConstants.THREE_STRING.equals(sf.getBigailmentHandle()))) { || (CommonConstants.THREE_STRING.equals(sf.getBigailmentHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getIsIllness())))
) {
// 全部成功(或者为空--兼容历史数据问题):全部成功 // 全部成功(或者为空--兼容历史数据问题):全部成功
socialInfo.setHandleStatus(CommonConstants.ONE_STRING); socialInfo.setHandleStatus(CommonConstants.ONE_STRING);
socialInfo.setReduceCan(CommonConstants.dingleDigitStrArray[0]);//改成可派减状态 socialInfo.setReduceCan(CommonConstants.dingleDigitStrArray[0]);//改成可派减状态
...@@ -3894,7 +3931,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3894,7 +3931,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
&& (Common.isEmpty(sf.getBirthHandle()) || CommonConstants.TWO_STRING.equals(sf.getBirthHandle())) && (Common.isEmpty(sf.getBirthHandle()) || CommonConstants.TWO_STRING.equals(sf.getBirthHandle()))
&& (Common.isEmpty(sf.getBigailmentHandle()) && (Common.isEmpty(sf.getBigailmentHandle())
|| CommonConstants.TWO_STRING.equals(sf.getBigailmentHandle()) || CommonConstants.TWO_STRING.equals(sf.getBigailmentHandle())
|| CommonConstants.THREE_STRING.equals(sf.getBigailmentHandle())) || (CommonConstants.THREE_STRING.equals(sf.getBigailmentHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getIsIllness())))
) { ) {
// 全部失败(或者为空):全部失败 // 全部失败(或者为空):全部失败
socialInfo.setHandleStatus(CommonConstants.TWO_STRING); socialInfo.setHandleStatus(CommonConstants.TWO_STRING);
...@@ -3925,7 +3963,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3925,7 +3963,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf.setSocialAddStatus(CommonConstants.THREE_STRING); sf.setSocialAddStatus(CommonConstants.THREE_STRING);
dis.setSocialHandleStatus(CommonConstants.THREE_STRING); dis.setSocialHandleStatus(CommonConstants.THREE_STRING);
} }
if (handleing){ if (handing){
dis.setSocialHandleStatus(CommonConstants.FOUR_STRING); dis.setSocialHandleStatus(CommonConstants.FOUR_STRING);
dis.setStatus(CommonConstants.TWO_STRING); dis.setStatus(CommonConstants.TWO_STRING);
socialInfo.setHandleStatus(CommonConstants.FOUR_STRING); socialInfo.setHandleStatus(CommonConstants.FOUR_STRING);
...@@ -3936,10 +3974,75 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3936,10 +3974,75 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
} }
private void initReduceStatus(TSocialInfo socialInfo, TSocialFundInfo sf, TDispatchInfo dis) {
// 全部成功
if ((CommonConstants.THREE_STRING.equals(socialInfo.getPensionHandle())
|| Common.isEmpty(socialInfo.getPensionHandle()))
&& (CommonConstants.THREE_STRING.equals(socialInfo.getMedicalHandle())
|| Common.isEmpty(socialInfo.getMedicalHandle()))
&& ( CommonConstants.THREE_STRING.equals(socialInfo.getWorkInjuryHandle())
|| Common.isEmpty(socialInfo.getWorkInjuryHandle()))
&& ( CommonConstants.THREE_STRING.equals(socialInfo.getBirthHandle())
|| Common.isEmpty(socialInfo.getBirthHandle()))
&& ( CommonConstants.THREE_STRING.equals(socialInfo.getUnemployHandle())
|| Common.isEmpty(socialInfo.getUnemployHandle()))
&& ( (CommonConstants.THREE_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness()))
|| Common.isEmpty(socialInfo.getBigailmentHandle()))){
socialInfo.setHandleStatus(CommonConstants.THREE_STRING);
sf.setSocialStatus(CommonConstants.EIGHT_STRING);
sf.setSocialReduceStatus(CommonConstants.TWO_STRING);
socialInfo.setSocialReduceDate(dis.getSocialReduceDate());
sf.setSocialReduceDate(dis.getSocialReduceDate());
return;
}
// 全部失败
if ((CommonConstants.FOUR_STRING.equals(socialInfo.getPensionHandle())
|| Common.isEmpty(socialInfo.getPensionHandle()))
&& (CommonConstants.FOUR_STRING.equals(socialInfo.getMedicalHandle())
|| Common.isEmpty(socialInfo.getMedicalHandle()))
&& ( CommonConstants.FOUR_STRING.equals(socialInfo.getWorkInjuryHandle())
|| Common.isEmpty(socialInfo.getWorkInjuryHandle()))
&& ( CommonConstants.FOUR_STRING.equals(socialInfo.getBirthHandle())
|| Common.isEmpty(socialInfo.getBirthHandle()))
&& ( CommonConstants.FOUR_STRING.equals(socialInfo.getUnemployHandle())
|| Common.isEmpty(socialInfo.getUnemployHandle()))
&& ( (CommonConstants.FOUR_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness()))
|| Common.isEmpty(socialInfo.getBigailmentHandle()))){
socialInfo.setHandleStatus(CommonConstants.ONE_STRING);
sf.setSocialStatus(CommonConstants.NINE_STRING);
sf.setSocialReduceStatus(CommonConstants.THREE_STRING);
socialInfo.setReduceCan(CommonConstants.ZERO_STRING);
return;
}
if ((Common.isEmpty(sf.getPensionHandle()) || CommonConstants.ONE_STRING.equals(sf.getPensionHandle()))
|| (Common.isEmpty(sf.getMedicalHandle()) || CommonConstants.ONE_STRING.equals(sf.getMedicalHandle()))
|| (Common.isEmpty(sf.getUnemployHandle()) || CommonConstants.ONE_STRING.equals(sf.getUnemployHandle()))
|| (Common.isEmpty(sf.getWorkInjuryHandle()) || CommonConstants.ONE_STRING.equals(sf.getWorkInjuryHandle()))
|| (Common.isEmpty(sf.getBirthHandle()) || CommonConstants.ONE_STRING.equals(sf.getBirthHandle()))
|| (Common.isNotNull(sf.getBigailmentHandle()) && CommonConstants.ONE_STRING.equals(sf.getBigailmentHandle())
)) {
//办理中
socialInfo.setHandleStatus(CommonConstants.SIX_STRING);
sf.setSocialStatus(CommonConstants.ELEVEN_STRING);
sf.setSocialReduceStatus(CommonConstants.FIVE_STRING);
socialInfo.setReduceCan(CommonConstants.ONE_STRING);
return;
}
// 派减部分办理失败
socialInfo.setHandleStatus(CommonConstants.SEVEN_STRING);
sf.setSocialStatus(CommonConstants.TWELVE_STRING);
sf.setSocialReduceStatus(CommonConstants.SIX_STRING);
socialInfo.setReduceCan(CommonConstants.ZERO_STRING);
}
private void updateSocialByHandle(int flag, TSocialInfo socialInfo, TDispatchInfo dis, TSocialFundInfo sf) { private void updateSocialByHandle(int flag, TSocialInfo socialInfo, TDispatchInfo dis, TSocialFundInfo sf) {
if (CommonConstants.ZERO_INT== flag if (CommonConstants.ZERO_INT== flag
&& CommonConstants.ZERO_STRING.equals(dis.getType()) && Common.isNotNull(dis.getSocialId())
&& Common.isNotNull(dis.getSocialId())){ && CommonConstants.ZERO_STRING.equals(dis.getType())){
// 派增处理
if (CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle()) if (CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())){ && CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())){
sf.setUnitBigailmentMoney(socialInfo.getUnitBigailmentMoney()); sf.setUnitBigailmentMoney(socialInfo.getUnitBigailmentMoney());
...@@ -4018,80 +4121,159 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4018,80 +4121,159 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
* @param socialType * @param socialType
* @param socialInfo * @param socialInfo
* @param sf * @param sf
* @param dis
* @Description: 填充社保的新的六个状态字段 * @Description: 填充社保的新的六个状态字段
* @Author: hgw * @Author: hgw
* @Date: 2021/6/9 17:12 * @Date: 2021/6/9 17:12
* @return: void * @return: void
**/ **/
private void setSocialSixStatus(String handleStatus, String socialType, TSocialInfo socialInfo, TSocialFundInfo sf) { private void setSocialSixStatus(String handleStatus, String socialType, TSocialInfo socialInfo,
if ((Common.isEmpty(socialType) || socialType.contains(CommonConstants.ONE_STRING)) TSocialFundInfo sf,
&& Common.isNotNull(socialInfo.getPensionHandle()) TDispatchInfo dis) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getPensionHandle()) if (Common.isNotNull(socialType)){
&& !CommonConstants.ONE_STRING.equals(sf.getPensionHandle())) { //派增处理
socialInfo.setPensionHandle(handleStatus); if (CommonConstants.ZERO_STRING.equals(dis.getType())){
sf.setPensionHandle(handleStatus); if (socialType.contains(CommonConstants.ONE_STRING)
} && Common.isNotNull(socialInfo.getPensionHandle())
if ((Common.isEmpty(socialType) || socialType.contains(CommonConstants.TWO_STRING)) && CommonConstants.ZERO_STRING.equals(socialInfo.getPensionHandle())
&& Common.isNotNull(socialInfo.getMedicalHandle()) && !CommonConstants.ONE_STRING.equals(sf.getPensionHandle())) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getMedicalHandle()) socialInfo.setPensionHandle(handleStatus);
&& !CommonConstants.ONE_STRING.equals(sf.getMedicalHandle())) { sf.setPensionHandle(handleStatus);
socialInfo.setMedicalHandle(handleStatus); }
sf.setMedicalHandle(handleStatus); if (socialType.contains(CommonConstants.TWO_STRING)
} && Common.isNotNull(socialInfo.getMedicalHandle())
if ((Common.isEmpty(socialType) || socialType.contains(CommonConstants.THREE_STRING)) && CommonConstants.ZERO_STRING.equals(socialInfo.getMedicalHandle())
&& Common.isNotNull(socialInfo.getUnemployHandle()) && !CommonConstants.ONE_STRING.equals(sf.getMedicalHandle())) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getUnemployHandle()) socialInfo.setMedicalHandle(handleStatus);
&& !CommonConstants.ONE_STRING.equals(sf.getUnemployHandle())) { sf.setMedicalHandle(handleStatus);
socialInfo.setUnemployHandle(handleStatus); }
sf.setUnemployHandle(handleStatus); if (socialType.contains(CommonConstants.THREE_STRING)
} && Common.isNotNull(socialInfo.getUnemployHandle())
if ((Common.isEmpty(socialType) || socialType.contains(CommonConstants.FOUR_STRING)) && CommonConstants.ZERO_STRING.equals(socialInfo.getUnemployHandle())
&& Common.isNotNull(socialInfo.getWorkInjuryHandle()) && !CommonConstants.ONE_STRING.equals(sf.getUnemployHandle())) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getWorkInjuryHandle()) socialInfo.setUnemployHandle(handleStatus);
&& !CommonConstants.ONE_STRING.equals(sf.getWorkInjuryHandle())) { sf.setUnemployHandle(handleStatus);
socialInfo.setWorkInjuryHandle(handleStatus); }
sf.setWorkInjuryHandle(handleStatus); if (socialType.contains(CommonConstants.FOUR_STRING)
} && Common.isNotNull(socialInfo.getWorkInjuryHandle())
if ((Common.isEmpty(socialType) || socialType.contains(CommonConstants.FIVE_STRING)) && CommonConstants.ZERO_STRING.equals(socialInfo.getWorkInjuryHandle())
&& Common.isNotNull(socialInfo.getBirthHandle()) && !CommonConstants.ONE_STRING.equals(sf.getWorkInjuryHandle())) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getBirthHandle()) socialInfo.setWorkInjuryHandle(handleStatus);
&& !CommonConstants.ONE_STRING.equals(sf.getBirthHandle())) { sf.setWorkInjuryHandle(handleStatus);
socialInfo.setBirthHandle(handleStatus); }
sf.setBirthHandle(handleStatus); if (socialType.contains(CommonConstants.FIVE_STRING)
} && Common.isNotNull(socialInfo.getBirthHandle())
if ((Common.isEmpty(socialType) || socialType.contains(CommonConstants.SIX_STRING)) && CommonConstants.ZERO_STRING.equals(socialInfo.getBirthHandle())
&& Common.isNotNull(socialInfo.getBigailmentHandle()) && !CommonConstants.ONE_STRING.equals(sf.getBirthHandle())) {
&& CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle()) socialInfo.setBirthHandle(handleStatus);
&& !CommonConstants.ONE_STRING.equals(sf.getBigailmentHandle()) sf.setBirthHandle(handleStatus);
&& CommonConstants.ZERO_STRING.equals(sf.getIsIllness())) { }
socialInfo.setBigailmentHandle(handleStatus); if (socialType.contains(CommonConstants.SIX_STRING)
sf.setBigailmentHandle(handleStatus); && Common.isNotNull(socialInfo.getBigailmentHandle())
} && CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle())
// 单个办理的时候处理派单和社保的办理状态 有办理成功也有办理失败的 为办理中 && !CommonConstants.ONE_STRING.equals(sf.getBigailmentHandle())
if ((CommonConstants.ONE_STRING.equals(socialInfo.getPensionHandle()) && CommonConstants.ZERO_STRING.equals(sf.getIsIllness())) {
|| CommonConstants.TWO_STRING.equals(socialInfo.getPensionHandle()) socialInfo.setBigailmentHandle(handleStatus);
|| CommonConstants.ONE_STRING.equals(socialInfo.getMedicalHandle()) sf.setBigailmentHandle(handleStatus);
|| CommonConstants.ONE_STRING.equals(socialInfo.getWorkInjuryHandle()) }
|| CommonConstants.ONE_STRING.equals(socialInfo.getBirthHandle()) // 单个办理的时候处理派单和社保的办理状态 有办理成功也有办理失败的 为办理中
|| CommonConstants.ONE_STRING.equals(socialInfo.getUnemployHandle()) if ((CommonConstants.ONE_STRING.equals(socialInfo.getPensionHandle())
|| (CommonConstants.ONE_STRING.equals(socialInfo.getBigailmentHandle()) || CommonConstants.TWO_STRING.equals(socialInfo.getPensionHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())) || CommonConstants.ONE_STRING.equals(socialInfo.getMedicalHandle())
|| CommonConstants.TWO_STRING.equals(socialInfo.getMedicalHandle()) || CommonConstants.ONE_STRING.equals(socialInfo.getWorkInjuryHandle())
|| CommonConstants.TWO_STRING.equals(socialInfo.getWorkInjuryHandle()) || CommonConstants.ONE_STRING.equals(socialInfo.getBirthHandle())
|| CommonConstants.TWO_STRING.equals(socialInfo.getBirthHandle()) || CommonConstants.ONE_STRING.equals(socialInfo.getUnemployHandle())
|| CommonConstants.TWO_STRING.equals(socialInfo.getUnemployHandle()) || (CommonConstants.ONE_STRING.equals(socialInfo.getBigailmentHandle())
|| (CommonConstants.TWO_STRING.equals(socialInfo.getBigailmentHandle()) && CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness()))
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness()))) || CommonConstants.TWO_STRING.equals(socialInfo.getMedicalHandle())
&& (CommonConstants.ZERO_STRING.equals(socialInfo.getPensionHandle()) || CommonConstants.TWO_STRING.equals(socialInfo.getWorkInjuryHandle())
|| CommonConstants.ZERO_STRING.equals(socialInfo.getMedicalHandle()) || CommonConstants.TWO_STRING.equals(socialInfo.getBirthHandle())
|| CommonConstants.ZERO_STRING.equals(socialInfo.getWorkInjuryHandle()) || CommonConstants.TWO_STRING.equals(socialInfo.getUnemployHandle())
|| CommonConstants.ZERO_STRING.equals(socialInfo.getBirthHandle()) || (CommonConstants.TWO_STRING.equals(socialInfo.getBigailmentHandle())
|| CommonConstants.ZERO_STRING.equals(socialInfo.getUnemployHandle()) && CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())))
|| (CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle()) && (CommonConstants.ZERO_STRING.equals(socialInfo.getPensionHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness()))) || CommonConstants.ZERO_STRING.equals(socialInfo.getMedicalHandle())
){ || CommonConstants.ZERO_STRING.equals(socialInfo.getWorkInjuryHandle())
socialInfo.setHandleStatus(CommonConstants.FOUR_STRING); || CommonConstants.ZERO_STRING.equals(socialInfo.getBirthHandle())
|| CommonConstants.ZERO_STRING.equals(socialInfo.getUnemployHandle())
|| (CommonConstants.ZERO_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialInfo.getIsIllness())))
){
socialInfo.setHandleStatus(CommonConstants.FOUR_STRING);
}
}
// 派减处理 办理成功才变更为已派减 3 ,办理失败 为4
if (CommonConstants.ONE_STRING.equals(dis.getType())){
String handleStatusTemp;
if (CommonConstants.ZERO_STRING.equals(handleStatus)){
handleStatusTemp = CommonConstants.THREE_STRING;
}else {
handleStatusTemp = CommonConstants.FOUR_STRING;
}
boolean flag = CommonConstants.THREE_STRING.equals(handleStatusTemp);
if (socialType.contains(CommonConstants.ONE_STRING)
&& CommonConstants.ONE_STRING.equals(socialInfo.getPensionHandle())) {
socialInfo.setPensionHandle(handleStatusTemp);
sf.setPensionHandle(handleStatusTemp);
if (flag){
socialInfo.setPensionReduceStart(dis.getSocialReduceDate());
sf.setPensionReduceStart(dis.getSocialReduceDate());
}
}
if (socialType.contains(CommonConstants.TWO_STRING)
&& Common.isNotNull(socialInfo.getMedicalHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getMedicalHandle())) {
socialInfo.setMedicalHandle(handleStatusTemp);
sf.setMedicalHandle(handleStatusTemp);
if (flag){
socialInfo.setMedicalReduceStart(dis.getSocialReduceDate());
sf.setMedicalReduceStart(dis.getSocialReduceDate());
}
}
if (socialType.contains(CommonConstants.THREE_STRING)
&& Common.isNotNull(socialInfo.getUnemployHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getUnemployHandle())) {
socialInfo.setUnemployHandle(handleStatusTemp);
sf.setUnemployHandle(handleStatusTemp);
if (flag){
socialInfo.setUnemployReduceStart(dis.getSocialReduceDate());
sf.setUnemployReduceStart(dis.getSocialReduceDate());
}
}
if (socialType.contains(CommonConstants.FOUR_STRING)
&& Common.isNotNull(socialInfo.getWorkInjuryHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getWorkInjuryHandle())) {
socialInfo.setWorkInjuryHandle(handleStatusTemp);
sf.setWorkInjuryHandle(handleStatusTemp);
if (flag){
socialInfo.setWorkInjuryReduceStart(dis.getSocialReduceDate());
sf.setWorkInjuryReduceStart(dis.getSocialReduceDate());
}
}
if (socialType.contains(CommonConstants.FIVE_STRING)
&& Common.isNotNull(socialInfo.getBirthHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getBirthHandle())) {
socialInfo.setBirthHandle(handleStatusTemp);
sf.setBirthHandle(handleStatusTemp);
if (flag){
socialInfo.setBirthReduceStart(dis.getSocialReduceDate());
sf.setBirthReduceStart(dis.getSocialReduceDate());
}
}
if (socialType.contains(CommonConstants.SIX_STRING)
&& Common.isNotNull(socialInfo.getBigailmentHandle())
&& CommonConstants.ONE_STRING.equals(socialInfo.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(sf.getIsIllness())) {
socialInfo.setBigailmentHandle(handleStatusTemp);
sf.setBigailmentHandle(handleStatusTemp);
if (flag){
socialInfo.setBigailmentReduceStart(dis.getSocialReduceDate());
sf.setBigailmentReduceStart(dis.getSocialReduceDate());
}
}
}
} }
} }
/** /**
* @Author fxj * @Author fxj
......
...@@ -291,6 +291,12 @@ ...@@ -291,6 +291,12 @@
</sql> </sql>
<sql id="tDispatchInfo_where"> <sql id="tDispatchInfo_where">
<if test="tDispatchInfo != null"> <if test="tDispatchInfo != null">
<if test="tDispatchInfo.dispatchItems != null and tDispatchInfo.dispatchItems.size >0">
AND
<foreach item="item" index="index" collection="tDispatchInfo.dispatchItems" open="(" separator="or" close=")">
a.dispatchItem contains(#{item})
</foreach>
</if>
<if test="tDispatchInfo.idList != null and tDispatchInfo.idList.size >0"> <if test="tDispatchInfo.idList != null and tDispatchInfo.idList.size >0">
AND a.ID in AND a.ID in
<foreach item="idStr" index="index" collection="tDispatchInfo.idList" open="(" separator="," close=")"> <foreach item="idStr" index="index" collection="tDispatchInfo.idList" open="(" separator="," close=")">
......
...@@ -113,6 +113,14 @@ ...@@ -113,6 +113,14 @@
<result property="workInjuryStart" column="WORK_INJURY_START"/> <result property="workInjuryStart" column="WORK_INJURY_START"/>
<result property="birthStart" column="BIRTH_START"/> <result property="birthStart" column="BIRTH_START"/>
<result property="bigailmentStart" column="BIGAILMENT_START"/> <result property="bigailmentStart" column="BIGAILMENT_START"/>
<result property="pensionReduceStart" column="PENSION_REDUCE_START"/>
<result property="medicalReduceStart" column="MEDICAL_REDUCE_START"/>
<result property="unemployReduceStart" column="UNEMPLOY_REDUCE_START"/>
<result property="workInjuryReduceStart" column="WORK_INJURY_REDUCE_START"/>
<result property="birthReduceStart" column="BIRTH_REDUCE_START"/>
<result property="bigailmentReduceStart" column="BIGAILMENT_REDUCE_START"/>
<result property="pensionHandle" column="PENSION_HANDLE"/> <result property="pensionHandle" column="PENSION_HANDLE"/>
<result property="medicalHandle" column="MEDICAL_HANDLE"/> <result property="medicalHandle" column="MEDICAL_HANDLE"/>
<result property="unemployHandle" column="UNEMPLOY_HANDLE"/> <result property="unemployHandle" column="UNEMPLOY_HANDLE"/>
......
...@@ -110,6 +110,12 @@ ...@@ -110,6 +110,12 @@
<result property="workInjuryStart" column="WORK_INJURY_START"/> <result property="workInjuryStart" column="WORK_INJURY_START"/>
<result property="birthStart" column="BIRTH_START"/> <result property="birthStart" column="BIRTH_START"/>
<result property="bigailmentStart" column="BIGAILMENT_START"/> <result property="bigailmentStart" column="BIGAILMENT_START"/>
<result property="pensionReduceStart" column="PENSION_REDUCE_START"/>
<result property="medicalReduceStart" column="MEDICAL_REDUCE_START"/>
<result property="unemployReduceStart" column="UNEMPLOY_REDUCE_START"/>
<result property="workInjuryReduceStart" column="WORK_INJURY_REDUCE_START"/>
<result property="birthReduceStart" column="BIRTH_REDUCE_START"/>
<result property="bigailmentReduceStart" column="BIGAILMENT_REDUCE_START"/>
<result property="pensionHandle" column="PENSION_HANDLE"/> <result property="pensionHandle" column="PENSION_HANDLE"/>
<result property="medicalHandle" column="MEDICAL_HANDLE"/> <result property="medicalHandle" column="MEDICAL_HANDLE"/>
<result property="unemployHandle" column="UNEMPLOY_HANDLE"/> <result property="unemployHandle" column="UNEMPLOY_HANDLE"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment