Commit 55feb62b authored by hongguangwu's avatar hongguangwu

MVP1.7.9-离职日期按字典

parent c5698906
......@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.social.config;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.exception.CheckedException;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
......@@ -26,6 +27,8 @@ import java.util.Date;
import java.util.List;
import java.util.TreeMap;
import static com.alibaba.fastjson.serializer.SerializerFeature.*;
/**
* @Author: hgw
* @Date: 2024-12-6 17:01:23
......@@ -68,6 +71,10 @@ public class SocialFriendConfig {
private static final String X_REQ_NONCE = "xReqNonce";
private static final String VERSION = "version";
private static final SerializerFeature[] features = new SerializerFeature[] {
WriteMapNullValue, WriteNullNumberAsZero, WriteNullListAsEmpty,
WriteNullStringAsEmpty,WriteDateUseDateFormat
};
/**
* @param : listVo 同一类(户、增减)的前100个
* @param : vo 第一个,存账密等信息
......@@ -156,7 +163,7 @@ public class SocialFriendConfig {
TSocialFriendBackLog backLogPush = new TSocialFriendBackLog();
backLogPush.setSocialId(vo.getSocialId());
backLogPush.setType(5);
backLogPush.setLogInfo(json.toString());
backLogPush.setLogInfo(JSON.toJSONString(json, features));
backLogPush.setCreateTime(LocalDateTime.now());
backLogList.add(backLogPush);
String dataResultList = restTemplate.postForObject(appAddUrl, formEntity, String.class);
......
......@@ -325,7 +325,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
}
} else {
// 派减离职原因转化:
if (type == 2 && Common.isNotNull(vo.getTbyy())) {
if (type == 4 && Common.isNotNull(vo.getTbyy())) {
reduceSet = reduceMap.get(vo.getTbyy());
if (reduceSet != null) {
vo.setTbyy(reduceSet.getTbyy());
......
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