|
@ -380,12 +380,13 @@ public class GrowthLogService {
|
380
|
380
|
* @param professorId 用户ID
|
381
|
381
|
* @throws SQLException
|
382
|
382
|
*/
|
383
|
|
public void invite(@JdbcConn(true) Connection con,String professorId)throws SQLException{
|
|
383
|
public void invite(@JdbcConn(true) Connection con,String professorId,String invitePro)throws SQLException{
|
384
|
384
|
GrowthLog growthLog = new GrowthLog();
|
385
|
385
|
growthLog.setId(StringUtil.buildUUID());
|
386
|
386
|
growthLog.setProfessorId(professorId);
|
387
|
387
|
growthLog.setOperate("1");
|
388
|
388
|
growthLog.setScore(this.rule.getInviteProfessor());
|
|
389
|
growthLog.setInvitePro(invitePro);
|
389
|
390
|
this.growthLogDao.insert(con, growthLog);
|
390
|
391
|
this.professorDao.updateScoreValue(con, professorId, growthLog.getScore());
|
391
|
392
|
this.professorDao.updateGrowthValue(con, professorId, growthLog.getScore());
|