新增类型去除收尾空格
This commit is contained in:
parent
a4e2d157f0
commit
83f0d8f432
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue