单位回填
This commit is contained in:
@@ -799,7 +799,7 @@ public class TbProductServiceImpl implements TbProductService {
|
||||
if (item.getUnitId() != null) {
|
||||
if (!unitMap.containsKey(item.getUnitId())) {
|
||||
TbShopUnit tbShopUnit = tbShopUnitRepository.searchUnit(item.getUnitId());
|
||||
unitMap.put(item.getId(), tbShopUnit.getName());
|
||||
unitMap.put(tbShopUnit.getId(), tbShopUnit.getName());
|
||||
}
|
||||
item.setUnitName(unitMap.get(item.getUnitId()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user