解决员工信息无法变更问题
This commit is contained in:
parent
5e2791dba6
commit
b51674581a
|
|
@ -222,11 +222,11 @@ public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesA
|
|||
QueryWrapper<NuEmployeesAdvisoryInfo> qw = new QueryWrapper<>();
|
||||
qw.eq("id", employeesAdvisoryInfoEntity.getId());
|
||||
NuEmployeesAdvisoryInfo dbRecord = baseMapper.selectOne(qw);
|
||||
if(StringUtils.isNotBlank(dbRecord.getHeight())){
|
||||
dbRecord.setHeight(dbRecord.getHeight().substring(0,dbRecord.getHeight().indexOf(".")));
|
||||
if (StringUtils.isNotBlank(dbRecord.getHeight()) && dbRecord.getHeight().indexOf(".") != -1) {
|
||||
dbRecord.setHeight(dbRecord.getHeight().substring(0, dbRecord.getHeight().indexOf(".")));
|
||||
}
|
||||
if(StringUtils.isNotBlank(dbRecord.getWeight())){
|
||||
dbRecord.setWeight(dbRecord.getWeight().substring(0,dbRecord.getWeight().indexOf(".")));
|
||||
if (StringUtils.isNotBlank(dbRecord.getWeight()) && dbRecord.getWeight().indexOf(".") != -1) {
|
||||
dbRecord.setWeight(dbRecord.getWeight().substring(0, dbRecord.getWeight().indexOf(".")));
|
||||
}
|
||||
|
||||
NuEmployeesAdvisoryInfo inputRecord = new NuEmployeesAdvisoryInfo();
|
||||
|
|
|
|||
Loading…
Reference in New Issue