|
@@ -30,6 +30,7 @@ import com.ym.mec.biz.dal.enums.TeachTypeEnum;
|
|
|
import com.ym.mec.biz.service.TeacherDefaultMusicGroupSalaryService;
|
|
|
import com.ym.mec.common.constant.CommonConstants;
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
|
+import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
|
|
@@ -132,7 +133,14 @@ public class TeacherDefaultMusicGroupSalaryServiceImpl extends BaseServiceImpl<L
|
|
|
String salaryRuleJson = tdms.getSalaryRuleJson();
|
|
|
if (StringUtils.isNotBlank(salaryRuleJson)) {
|
|
|
JSONObject obj = JSON.parseObject(salaryRuleJson);
|
|
|
- ts.setExpectSalary(new BigDecimal(obj.getDouble(classGroupStudentNumMap.get(ts.getClassGroupId()) + "")));
|
|
|
+ if(obj == null){
|
|
|
+ throw new BizException("课酬设置不完整");
|
|
|
+ }
|
|
|
+ Integer studentNum = classGroupStudentNumMap.get(ts.getClassGroupId());
|
|
|
+ if(studentNum == null){
|
|
|
+ studentNum = 1;
|
|
|
+ }
|
|
|
+ ts.setExpectSalary(new BigDecimal(obj.getDouble(studentNum + "")));
|
|
|
list.add(ts);
|
|
|
}
|
|
|
|