fix(service): 修正电力参数默认相位设置
- 将新增记录时的默认相位从"M"改为"T" - 将更新记录时的默认相位从"M"改为"T" - 确保相位字段在空值情况下统一使用"T"作为默认值
This commit is contained in:
@@ -88,7 +88,7 @@ public class EleEpdPqdServiceImpl extends ServiceImpl<EleEpdPqdMapper, EleEpdPqd
|
||||
eleEpdPqd.setStatMethod(String.join(",", eleEpdPqdParam.getStatMethod()));
|
||||
}
|
||||
if (Objects.isNull(eleEpdPqdParam.getPhase())){
|
||||
eleEpdPqd.setPhase("M");
|
||||
eleEpdPqd.setPhase("T");
|
||||
}
|
||||
eleEpdPqd.setStatus(1);
|
||||
boolean result = this.save(eleEpdPqd);
|
||||
@@ -118,7 +118,7 @@ public class EleEpdPqdServiceImpl extends ServiceImpl<EleEpdPqdMapper, EleEpdPqd
|
||||
eleEpdPqd.setStatMethod(String.join(",", updateParam.getStatMethod()));
|
||||
}
|
||||
if (Objects.isNull(updateParam.getPhase())){
|
||||
eleEpdPqd.setPhase("M");
|
||||
eleEpdPqd.setPhase("T");
|
||||
}
|
||||
boolean result = this.updateById(eleEpdPqd);
|
||||
if (result) {
|
||||
|
||||
Reference in New Issue
Block a user