删除客户导购关系

dev_0531
yechenhao 5 years ago
parent bef2989d07
commit 43faffe565

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

Loading…
Cancel
Save