feat: 流程中部分人员字段翻译
This commit is contained in:
+22
-7
@@ -260,6 +260,13 @@ public class ProcessEsInitChange implements Serializable {
|
||||
*/
|
||||
private String mainDraftingUser;
|
||||
|
||||
/**
|
||||
* 主起草人
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@JsonProperty("mainDraftingUser_dictText")
|
||||
private String mainDraftingUserDictText;
|
||||
|
||||
/**
|
||||
* 主起草单位
|
||||
*/
|
||||
@@ -277,6 +284,14 @@ public class ProcessEsInitChange implements Serializable {
|
||||
*/
|
||||
private String mainDraftingUnitResponsiblePerson;
|
||||
|
||||
/**
|
||||
* 主起草单位责任人
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@JsonProperty("mainDraftingUnitResponsiblePerson_dictText")
|
||||
private String mainDraftingUnitResponsiblePersonDictText;
|
||||
|
||||
|
||||
/**
|
||||
* 新主起草单位负责人
|
||||
*/
|
||||
@@ -287,6 +302,13 @@ public class ProcessEsInitChange implements Serializable {
|
||||
*/
|
||||
private String standardPromoter;
|
||||
|
||||
/**
|
||||
* 标准推进人
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@JsonProperty("standardPromoter_dictText")
|
||||
private String standardPromoterDictText;
|
||||
|
||||
/**
|
||||
* 草稿完成日期
|
||||
*/
|
||||
@@ -433,13 +455,6 @@ public class ProcessEsInitChange implements Serializable {
|
||||
@JsonProperty("mainDraftingUserLeaderLeader_dictText")
|
||||
private String mainDraftUserLeaderLeaderDictText;
|
||||
|
||||
/**
|
||||
* 主起草人
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@JsonProperty("mainDraftingUser_dictText")
|
||||
private String mainDraftUserDictText;
|
||||
|
||||
/**
|
||||
* 标准化审批人
|
||||
*/
|
||||
|
||||
+18
@@ -110,6 +110,9 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
||||
|
||||
// 制作需要的Id集合
|
||||
for (ProcessEsInitChange initChange : initChangeList) {
|
||||
userIdList.add(initChange.getMainDraftingUser());
|
||||
userIdList.add(initChange.getMainDraftingUnitResponsiblePerson());
|
||||
userIdList.add(initChange.getStandardPromoter());
|
||||
userIdList.add(initChange.getMainDraftUserLeader());
|
||||
userIdList.add(initChange.getMainDraftUserLeaderLeader());
|
||||
departIdList.add(initChange.getMainDraftingUnit());
|
||||
@@ -129,12 +132,27 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
||||
|
||||
// 翻译数据
|
||||
for (ProcessEsInitChange initChange : initChangeList) {
|
||||
// 主起草人
|
||||
if (userMap.get(initChange.getMainDraftingUser()) != null) {
|
||||
initChange.setMainDraftingUserDictText(userMap.get(initChange.getMainDraftingUser()).getUsername());
|
||||
}
|
||||
// 起草单位负责人
|
||||
if (userMap.get(initChange.getMainDraftingUnitResponsiblePerson()) != null) {
|
||||
initChange.setMainDraftingUnitResponsiblePersonDictText(userMap.get(initChange.getMainDraftingUnitResponsiblePerson()).getUsername());
|
||||
}
|
||||
// 标准推进人
|
||||
if (userMap.get(initChange.getStandardPromoter()) != null) {
|
||||
initChange.setStandardPromoterDictText(userMap.get(initChange.getStandardPromoter()).getUsername());
|
||||
}
|
||||
// 主起草人上级领导
|
||||
if (userMap.get(initChange.getMainDraftUserLeader()) != null) {
|
||||
initChange.setMainDraftUserLeaderDictText(userMap.get(initChange.getMainDraftUserLeader()).getUsername());
|
||||
}
|
||||
// 主起草用户领导的领导
|
||||
if (userMap.get(initChange.getMainDraftUserLeaderLeader()) != null) {
|
||||
initChange.setMainDraftUserLeaderLeaderDictText(userMap.get(initChange.getMainDraftUserLeaderLeader()).getUsername());
|
||||
}
|
||||
// 主起草单位
|
||||
if (departMap.get(initChange.getMainDraftingUnit()) != null) {
|
||||
initChange.setMainDraftingUnitDictText(departMap.get(initChange.getMainDraftingUnit()).getDepartName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user