change(mes):修改

- 修改默认半制品表名前缀常量引用
- 替换手动解析为专用方法parseProcessId
- 统一处理processId解析逻辑避免重复代码
master
zangch@mesnac.com 2 months ago
parent dccef1b8d1
commit c1dad33208

@ -89,7 +89,7 @@ public class ProdReportServiceImpl implements IProdReportService {
String tableName;
if (StringUtils.isNull(processId)) {
// 默认返回半制品表
tableName = DatabaseConstants.TABLE_NAME_PROD_PLAN_INFO_PREFIX + "_2";
tableName = DatabaseConstants.TABLE_NAME_PROD_PRODUCT_PLAN_DETAIL_PREFIX + "_2";
}else if (processId == 17L) {
tableName = DatabaseConstants.TABLE_NAME_PROD_PRODUCT_PLAN_DETAIL_PREFIX + "_3";
} else if (processId == 18L) {
@ -184,7 +184,7 @@ public class ProdReportServiceImpl implements IProdReportService {
@Override
public TableDataInfo<TeamWorkReportVo> teamWorkReportList(Map hashMap, PageQuery pageQuery) {
Long processId = Long.parseLong(String.valueOf(hashMap.get("processId")));
Long processId = parseProcessId(String.valueOf(hashMap.get("processId")));
String detailTable = getPlanDetailTableNameByProcessId(processId);
String planTable = getPlanInfoTableNameByProcessId(processId);
Page<TeamWorkReportVo> page = prodReportMapper.teamWorkReportList(hashMap, pageQuery.build(), detailTable, planTable);
@ -193,7 +193,7 @@ public class ProdReportServiceImpl implements IProdReportService {
@Override
public List<TeamWorkReportVo> teamWorkReportList(Map hashMap) {
Long processId = Long.parseLong(String.valueOf(hashMap.get("processId")));
Long processId = parseProcessId(String.valueOf(hashMap.get("processId")));
String detailTable = getPlanDetailTableNameByProcessId(processId);
String planTable = getPlanInfoTableNameByProcessId(processId);
return prodReportMapper.teamWorkReportList(hashMap, detailTable, planTable);

Loading…
Cancel
Save