|
@@ -43,14 +43,14 @@ public class TCorpsServiceImpl implements ITCorpsService {
|
|
|
public Map<String, Object> selectTCorpsById(Long fId) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
TCorps tCorps = tCorpsMapper.selectTCorpsById(fId);
|
|
|
- if (StringUtils.isNull(tCorps)) {
|
|
|
+ if (StringUtils.isNotNull(tCorps)) {
|
|
|
map.put("corp", tCorps);
|
|
|
}
|
|
|
// List<TCustomerContact> customerContactList = tCustomerContactMapper.selectList(new EntityWrapper<TCustomerContact>().eq("f_pid", fId));
|
|
|
TCustomerContact tCustomerContact= new TCustomerContact();
|
|
|
tCustomerContact.setfPid(fId);
|
|
|
List<TCustomerContact> customerContactList =tCustomerContactMapper.selectTCustomerContactList(tCustomerContact);
|
|
|
- if (StringUtils.isEmpty(customerContactList)) {
|
|
|
+ if (StringUtils.isNotEmpty(customerContactList)) {
|
|
|
map.put("customerContact", customerContactList);
|
|
|
}
|
|
|
return map;
|