|
|
@@ -94,16 +94,19 @@ public class UserBasicFromServiceImpl implements UserBasicFromService { |
|
|
|
@Override |
|
|
|
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) |
|
|
|
public void saveForm(UserBasicFrom from) { |
|
|
|
Date now = new Date(); |
|
|
|
if(from.getId() == null){ |
|
|
|
return; |
|
|
|
} |
|
|
|
from.setCreateDate(now); |
|
|
|
if(from.getCreateDate() == null){ |
|
|
|
from.setCreateDate(new Date()); |
|
|
|
} |
|
|
|
Date now = from.getCreateDate(); |
|
|
|
|
|
|
|
try{ |
|
|
|
int insert = userBasicFromMapper.insert(from); |
|
|
|
if(insert == 1){ |
|
|
|
logger.info("邀请加积分{}"+from.getFromUserId()); |
|
|
|
//todo 邀请逻辑 |
|
|
|
|
|
|
|
userBasicPropertyService.updUserGlod(from.getFromUserId(),from.getFromProject(),EnumPropertyLogType.INVITE.getCode(), |
|
|
|
from.getId(),null,now); |
|
|
|
} |
|
|
|