推广管理零售公司

master
Caps 6 years ago
parent c0404e84b8
commit 90d77acff0

@ -246,7 +246,7 @@ public class CustomerService {
opVip1.setPhone(turnBackDTO.getVipData().getPhone()); opVip1.setPhone(turnBackDTO.getVipData().getPhone());
opVip1.setName(turnBackDTO.getVipData().getName()); opVip1.setName(turnBackDTO.getVipData().getName());
opVip1.setBirthday(turnBackDTO.getVipData().getBirthday()); opVip1.setBirthday(turnBackDTO.getVipData().getBirthday());
opVip1.setRegisterTime(simpleDateFormat.parse(turnBackDTO.getVipData().getRegisterTime())); opVip1.setRegisterTime(turnBackDTO.getVipData().getRegisterTime().equals("") ? new Date() : simpleDateFormat.parse(turnBackDTO.getVipData().getRegisterTime()));
if(opVip == null){ if(opVip == null){
//数据库没有这个数据--新建数据 //数据库没有这个数据--新建数据
opVip1.setCreateBy(Constants.SYS_OPERATION); opVip1.setCreateBy(Constants.SYS_OPERATION);
@ -316,6 +316,7 @@ public class CustomerService {
insertRelation.setUpdateTime(new Date()); insertRelation.setUpdateTime(new Date());
insertRelation.setCustomerId(opCustomer.getId()); insertRelation.setCustomerId(opCustomer.getId());
insertRelation.setStoreId(shopId); insertRelation.setStoreId(shopId);
insertRelation.setUserId(0L);
insertRelation.setCreateBy(Constants.SYS_OPERATION); insertRelation.setCreateBy(Constants.SYS_OPERATION);
insertRelation.setUpdateBy(Constants.SYS_OPERATION); insertRelation.setUpdateBy(Constants.SYS_OPERATION);
@ -330,7 +331,11 @@ public class CustomerService {
//无效 //无效
insertRelation.setType(2); insertRelation.setType(2);
} }
try {
opSellerCustomerRelationDOMapper.insert(insertRelation); opSellerCustomerRelationDOMapper.insert(insertRelation);
}catch (Exception e){
log.error("",e);
}
} }
} }

Loading…
Cancel
Save