|
@@ -610,7 +610,11 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
addBo.setTrainStartTime(vo.getTrainStartTime());
|
|
|
addBo.setTrainEndTime(vo.getTrainEndTime());
|
|
|
addBo.setChapterStr(ArrayUtils.toString(vo.getChapterList(), ","));
|
|
|
- addBo.setPublicClassHours(goodsVo.getPublicClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP ));
|
|
|
+ if(Validator.isEmpty(goodsVo.getPublicClassHours())){
|
|
|
+ addBo.setPublicClassHours(BigDecimal.ZERO);
|
|
|
+ }else{
|
|
|
+ addBo.setPublicClassHours(goodsVo.getPublicClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP ));
|
|
|
+ }
|
|
|
return addBo;
|
|
|
}
|
|
|
private String getCertificateCode(){
|