1、修改推送报告的相关参数

This commit is contained in:
2026-03-17 17:36:31 +08:00
parent 7933776f82
commit 9bb11ba4b3
2 changed files with 11 additions and 5 deletions

View File

@@ -13,8 +13,6 @@ public class LyricParamConstants {
public static final String SYSTEM_CODE = "spdm"; public static final String SYSTEM_CODE = "spdm";
// 表名称 // 表名称
public static final String TABLE_NAME = "oa_three_d_review"; public static final String TABLE_NAME = "oa_three_d_review";
// 字段名称
public static final String COLUMN_NAME = "simulation_table";
// 权限编码 // 权限编码
public static final String FILE_POWER = "2456236750149124114"; public static final String FILE_POWER = "2456236750149124114";
// 系统id // 系统id
@@ -23,10 +21,16 @@ public class LyricParamConstants {
public static final Long FORM_ID = 1847115435993071616L; public static final Long FORM_ID = 1847115435993071616L;
// 有限元控件id // 有限元控件id
public static final Long FINITE_ELEMENT_COMPONENT_INST_ID = 8000004142460000204L; public static final Long FINITE_ELEMENT_COMPONENT_INST_ID = 8000004142460000204L;
// 有限元字段名称
public static final String FINITE_ELEMENT_COLUMN_NAME = "simulation_table";
// 机器人控件id // 机器人控件id
public static final Long ROBOT_COMPONENT_INST_ID = 8000004142460000204L; public static final Long ROBOT_COMPONENT_INST_ID = 8000004142460000228L;
// 机器人字段名称
public static final String ROBOT_COLUMN_NAME = "robot_table";
// 公差控件id // 公差控件id
public static final Long TOLERANCE_COMPONENT_INST_ID = 8000004142460000204L; public static final Long TOLERANCE_COMPONENT_INST_ID = 8000004144780000369L;
// 公差字段名称
public static final String TOLERANCE_COLUMN_NAME = "checkproducts_enclosure";
} }

View File

@@ -1620,10 +1620,13 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
Integer pushType = req.getPushType(); Integer pushType = req.getPushType();
if (pushType == 1) { if (pushType == 1) {
uploadFileReq.setComponentInstId(LyricParamConstants.FINITE_ELEMENT_COMPONENT_INST_ID); uploadFileReq.setComponentInstId(LyricParamConstants.FINITE_ELEMENT_COMPONENT_INST_ID);
uploadFileReq.setColumnName(LyricParamConstants.FINITE_ELEMENT_COLUMN_NAME);
}else if (pushType == 2) { }else if (pushType == 2) {
uploadFileReq.setComponentInstId(LyricParamConstants.ROBOT_COMPONENT_INST_ID); uploadFileReq.setComponentInstId(LyricParamConstants.ROBOT_COMPONENT_INST_ID);
uploadFileReq.setColumnName(LyricParamConstants.ROBOT_COLUMN_NAME);
}else { }else {
uploadFileReq.setComponentInstId(LyricParamConstants.TOLERANCE_COMPONENT_INST_ID); uploadFileReq.setComponentInstId(LyricParamConstants.TOLERANCE_COMPONENT_INST_ID);
uploadFileReq.setColumnName(LyricParamConstants.TOLERANCE_COLUMN_NAME);
} }
uploadFileReq.setWaterMarkFlag(false); uploadFileReq.setWaterMarkFlag(false);
uploadFileReq.setWaterMarkContent(LyricParamConstants.SYSTEM_CODE); uploadFileReq.setWaterMarkContent(LyricParamConstants.SYSTEM_CODE);
@@ -1631,7 +1634,6 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
uploadFileReq.setSysId(LyricParamConstants.SYSTEM_ID); uploadFileReq.setSysId(LyricParamConstants.SYSTEM_ID);
uploadFileReq.setFormId(LyricParamConstants.FORM_ID); uploadFileReq.setFormId(LyricParamConstants.FORM_ID);
uploadFileReq.setTableName(LyricParamConstants.TABLE_NAME); uploadFileReq.setTableName(LyricParamConstants.TABLE_NAME);
uploadFileReq.setColumnName(LyricParamConstants.COLUMN_NAME);
uploadFileReq.setXmh(req.getProjectCode()); uploadFileReq.setXmh(req.getProjectCode());
uploadFileReq.setGwh(req.getWorkspaceCode()); uploadFileReq.setGwh(req.getWorkspaceCode());
uploadFileReq.setFiles(Collections.singletonList(zipFilePath)); uploadFileReq.setFiles(Collections.singletonList(zipFilePath));