修复子类型带houseId问题
This commit is contained in:
parent
e6ab7ce194
commit
4c9d5f7a4f
|
|
@ -257,12 +257,14 @@ public class TypeServiceImpl implements ITypeService {
|
||||||
type.setCreateTime(DateUtils.getNowDate());
|
type.setCreateTime(DateUtils.getNowDate());
|
||||||
type.setCreateBy(SecurityUtils.getUserId().toString());
|
type.setCreateBy(SecurityUtils.getUserId().toString());
|
||||||
int count = typeMapper.insertType(type);
|
int count = typeMapper.insertType(type);
|
||||||
long newTypeId = type.getTypeId();
|
if ((type.getParentId()).equals(0L)) {
|
||||||
// 插入wh_house_set,建立仓库和type的关系
|
// 插入wh_house_set,建立仓库和type的关系
|
||||||
|
long newTypeId = type.getTypeId();
|
||||||
WhHouseSet whHouseSet = new WhHouseSet();
|
WhHouseSet whHouseSet = new WhHouseSet();
|
||||||
whHouseSet.setHouseId(type.getHouseId());
|
whHouseSet.setHouseId(type.getHouseId());
|
||||||
whHouseSet.setTypeId(newTypeId);
|
whHouseSet.setTypeId(newTypeId);
|
||||||
houseSetService.insertWhHouseSet(whHouseSet);
|
houseSetService.insertWhHouseSet(whHouseSet);
|
||||||
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue