解决供应商和客户重名校验接口的bug
This commit is contained in:
@@ -272,6 +272,7 @@ public class SupplierService {
|
||||
}
|
||||
|
||||
public int checkIsNameAndTypeExist(Long id, String name, String type)throws Exception {
|
||||
name = name == null? "": name;
|
||||
SupplierExample example = new SupplierExample();
|
||||
example.createCriteria().andIdNotEqualTo(id).andSupplierEqualTo(name).andTypeEqualTo(type)
|
||||
.andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
|
||||
|
||||
Reference in New Issue
Block a user