幼儿评估

This commit is contained in:
paidaxing444
2020-11-06 16:08:18 +08:00
parent 796479c5f1
commit db2ac25df1
3 changed files with 24 additions and 5 deletions

View File

@ -219,6 +219,9 @@ export default {
this.bjmc = response.data.bjmc; this.bjmc = response.data.bjmc;
this.classid = response.data.classid; this.classid = response.data.classid;
this.zbjsxm = response.data.zbjsmc; this.zbjsxm = response.data.zbjsmc;
response.ByAssessmentchild.forEach((item) =>
this.checkList.push(item.contentid)
);
if (response.isAssessment == "0") { if (response.isAssessment == "0") {
this.msgError( this.msgError(
"当前幼儿出生日期不符合评估范围幼儿评估范围为36-72个月" "当前幼儿出生日期不符合评估范围幼儿评估范围为36-72个月"

View File

@ -88,9 +88,17 @@ public class ByAssessmentchildController extends BaseController {
for (int i = 0; i < strArr.length; i++) { for (int i = 0; i < strArr.length; i++) {
//System.out.println("contentid:"+strArr[i]); //System.out.println("contentid:"+strArr[i]);
byAssessmentchild.setContentid(Long.valueOf(strArr[i])); byAssessmentchild.setContentid(Long.valueOf(strArr[i]));
//先判断该项指标是否已添加,添加后不可继续维护
ByAssessmentchild byAssessmentchildNew = new ByAssessmentchild();
byAssessmentchildNew.setContentid(Long.valueOf(strArr[i]));
byAssessmentchildNew.setChildid(byAssessmentchild.getChildid());
List<ByAssessmentchild> list = byAssessmentchildService.selectByAssessmentchildList(byAssessmentchildNew);
if (list != null && list.size() > 0) {
} else {
iCount = byAssessmentchildService.insertByAssessmentchild(byAssessmentchild); iCount = byAssessmentchildService.insertByAssessmentchild(byAssessmentchild);
} }
} }
}
return toAjax(iCount); return toAjax(iCount);
} }

View File

@ -9,7 +9,9 @@ import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.ServletUtils; import com.ruoyi.common.utils.ServletUtils;
import com.ruoyi.framework.security.LoginUser; import com.ruoyi.framework.security.LoginUser;
import com.ruoyi.framework.security.service.TokenService; import com.ruoyi.framework.security.service.TokenService;
import com.ruoyi.project.benyi.domain.ByAssessmentchild;
import com.ruoyi.project.benyi.domain.ByChildContactpeople; import com.ruoyi.project.benyi.domain.ByChildContactpeople;
import com.ruoyi.project.benyi.service.IByAssessmentchildService;
import com.ruoyi.project.benyi.service.IByChildContactpeopleService; import com.ruoyi.project.benyi.service.IByChildContactpeopleService;
import com.ruoyi.project.common.SchoolCommon; import com.ruoyi.project.common.SchoolCommon;
import com.ruoyi.project.system.service.ISysDictDataService; import com.ruoyi.project.system.service.ISysDictDataService;
@ -52,6 +54,8 @@ public class ByChildController extends BaseController {
private IByChildContactpeopleService byChildContactpeopleService; private IByChildContactpeopleService byChildContactpeopleService;
@Autowired @Autowired
private ISysDictDataService sysDictDataService; private ISysDictDataService sysDictDataService;
@Autowired
private IByAssessmentchildService byAssessmentchildService;
/** /**
* 查询幼儿信息列表 * 查询幼儿信息列表
@ -155,7 +159,11 @@ public class ByChildController extends BaseController {
} }
ajax.put("trem", schoolCommon.getCurrentXnXq()); ajax.put("trem", schoolCommon.getCurrentXnXq());
ByAssessmentchild byAssessmentchild = new ByAssessmentchild();
byAssessmentchild.setChildid(id);
byAssessmentchild.setXn(schoolCommon.getCurrentXnXq());
List<ByAssessmentchild> list = byAssessmentchildService.selectByAssessmentchildList(byAssessmentchild);
ajax.put("ByAssessmentchild", list);
return ajax; return ajax;
} }