|
|
|
@ -1228,10 +1228,11 @@ public class StoreEmployeeService {
|
|
|
|
|
int b = poiStoreDOMapper.insert(poiStore);
|
|
|
|
|
|
|
|
|
|
//查看是否有客户
|
|
|
|
|
PrivilageOrganizational p = new PrivilageOrganizational();
|
|
|
|
|
p.setName(poiStore.getCustomerName());
|
|
|
|
|
p.setLevel(3L);
|
|
|
|
|
PrivilageOrganizational parent = retailCompanyMapper.selectOne(new QueryWrapper<>(p));
|
|
|
|
|
QueryWrapper<PrivilageOrganizational> orgQw = new QueryWrapper<>();
|
|
|
|
|
orgQw.eq("name",poiStore.getCustomerName());
|
|
|
|
|
orgQw.eq("code",poiStore.getCustomerCode());
|
|
|
|
|
orgQw.eq("level",3L);
|
|
|
|
|
PrivilageOrganizational parent = retailCompanyMapper.selectOne(orgQw);
|
|
|
|
|
if (null == parent) {
|
|
|
|
|
throw new KiisooException(Constants.MSG_ORGANIZATIONAL_NO, Constants.CODE_ORGANIZATIONAL_NO);
|
|
|
|
|
}
|
|
|
|
|