设备管理
This commit is contained in:
parent
d7046c075e
commit
a7ce14cd5a
|
|
@ -87,7 +87,7 @@ public class PartTypeServiceImpl implements IPartTypeService
|
|||
}
|
||||
partType.setCreateTime(DateUtils.getNowDate());
|
||||
partType.setCreateBy(SecurityUtils.getUserId().toString());
|
||||
partType.setParentId(partType.getId() != null ? partType.getId() : 0L);
|
||||
partType.setParentId(partType.getId() != 0 ? partType.getId() : 0L);
|
||||
partType.setLevel(partType.getLevel() != null ? String.valueOf(Integer.valueOf(partType.getLevel()) + 1) : "1");
|
||||
int result = partTypeMapper.insertPartType(partType);
|
||||
if (result > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue