Commit 290e36ed authored by YangZhaoJun1's avatar YangZhaoJun1

判空

parent 54ee9ec3
......@@ -92,6 +92,12 @@ public class BChapterServiceImpl implements BChapterService {
int line = 0;
if(model.getBusinessId()==null) {
UserUtil.setCurrentPersistOperation(model);
if(model.getClassHour()==null||model.getClassHour().equals("")){
model.setClassHour("");
}
if(model.getIsTest()==null||model.getIsTest().equals("")){
model.setIsTest("");
}
line = bChapterRepository.insertSelective(model);
}else {
String state = bSlRepository.queryStateById(model.getSlId());
......
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