Commit 4ddcd6a1 by “Kongxiangkun”

增加积分商城相关代码

parent ee328f71
...@@ -221,8 +221,8 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements ...@@ -221,8 +221,8 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements
return null; return null;
} }
if(type.equals(PointTypeEnum.EXAM.getKey())){ if(type.equals(PointTypeEnum.EXAM.getKey())){
int score = Integer.valueOf(sourceId.split("|")[1]) / 10; int score = Double.valueOf(sourceId.split("\\|")[1]).intValue()/ 10;
sourceId = sourceId.split("|")[0]; sourceId = sourceId.split("\\|")[0];
PointDetails pd = new PointDetails(); PointDetails pd = new PointDetails();
pd.setAccountId(accountId); pd.setAccountId(accountId);
pd.setLearnType(PointTypeEnum.EXAM.getKey()); pd.setLearnType(PointTypeEnum.EXAM.getKey());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment