mirror of https://github.com/elunez/eladmin
firstTag为空的时候空指针
parent
09ea9f1a84
commit
3dc36c5cb4
|
@ -47,6 +47,13 @@
|
|||
<artifactId>quartz</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.8.6</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -86,7 +86,7 @@ public class CustomerInfoServiceImpl implements CustomerInfoService {
|
|||
List<CustomerContact> customerContactList = new Gson().fromJson(customerContactJsonStr,new TypeToken<ArrayList<CustomerContact>>() {}.getType());
|
||||
if(!CollectionUtils.isEmpty(customerContactList)){
|
||||
for(CustomerContact customerContact : customerContactList){
|
||||
if(customerContact.getFirstTag() == 1){
|
||||
if(!StringUtils.isEmpty(customerContact.getFirstTag()) && customerContact.getFirstTag() == 1){
|
||||
customerInfoDTO.setFirstContactMobile(customerContact.getMobile());
|
||||
customerInfoDTO.setFirstContactName(customerContact.getName());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue