|
|
@ -354,12 +354,6 @@ public class BaseManufacturerService extends MybatisBaseService<BaseManufacturer |
|
|
|
if (baseManufacturer == null) { |
|
|
|
return rb.setMsg("该厂商不存在"); |
|
|
|
} |
|
|
|
String name = baseManufacturerDto.getManufacturerName(); |
|
|
|
//查询厂商名称是否存在
|
|
|
|
int count = selectCountByNameAndSid(name, sid); |
|
|
|
if (count > 0) { |
|
|
|
return rb.setMsg("该厂商名称已存在"); |
|
|
|
} |
|
|
|
int i = updateBySid(dto.toMap(), sid); |
|
|
|
if (i == 0) { |
|
|
|
return ResultBean.fireFail().setMsg("供应厂商信息修改失败"); |
|
|
|