提交计分修改

master
whb
parent 7089f55ca9
commit 746b671dc0

@ -35,4 +35,7 @@ public interface StuPublicService {
List<StuSupplyScore> getScore(String userId);
void updateState(String userId);
}

@ -361,6 +361,23 @@ public class StuPublicServiceImpl implements StuPublicService {
return null;
}
//提交完成状态
@Override
public void updateState(String userId) {
StuSupplyScoreExample stuInvoiceScoreExample = new StuSupplyScoreExample();
stuInvoiceScoreExample.createCriteria().andUserIdEqualTo(userId).andNumbersEqualTo(3);
List<StuSupplyScore> stuInvoiceScores = stuSupplyScoreMapper.selectByExample(stuInvoiceScoreExample);
if (!stuInvoiceScores.isEmpty()){
stuInvoiceScores.get(0).setReplenishScore("1");
stuSupplyScoreMapper.updateByPrimaryKeySelective(stuInvoiceScores.get(0));
}
}
/**
*

Loading…
Cancel
Save