新增类型去除收尾空格

This commit is contained in:
sxu 2024-12-24 11:23:50 +08:00
parent a4e2d157f0
commit 83f0d8f432
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public class MaTypeServiceImpl implements ITypeService {
maType.setCreateTime(DateUtils.getNowDate());
int i = maTypeMapper.insertType(maType);
//根据类型名称判重
maType.setTypeName(maType.getTypeName().trim());
if (maType.getTypeName() != null && maType.getParentId() != null) {
int num = maTypeMapper.getMaType(maType);
if (num > 1) {