|
|
@ -78,12 +78,24 @@ public class SjController extends BaseController |
|
|
Sj sj = sjService.getSjByBh(form.getBh()); |
|
|
Sj sj = sjService.getSjByBh(form.getBh()); |
|
|
if(sj == null) { |
|
|
if(sj == null) { |
|
|
sj = new Sj(); |
|
|
sj = new Sj(); |
|
|
BeanUtils.copyProperties(form, sj); |
|
|
|
|
|
|
|
|
sj.setBh(form.getBh()); |
|
|
|
|
|
sj.setKc(form.getKc()); |
|
|
|
|
|
sj.setKcdw(form.getKcdw()); |
|
|
|
|
|
sj.setStudyId(form.getStudyId()); |
|
|
|
|
|
sj.setStudyFormId(form.getStudyFormId()); |
|
|
|
|
|
sj.setNd(form.getNd()); |
|
|
|
|
|
sj.setNddw(form.getNddw()); |
|
|
sj.setZjzt(ZjztEnum.rk.getValue()); |
|
|
sj.setZjzt(ZjztEnum.rk.getValue()); |
|
|
sj.setJyzt(JyztEnum.wjy.getValue()); |
|
|
sj.setJyzt(JyztEnum.wjy.getValue()); |
|
|
sjService.save(sj); |
|
|
sjService.save(sj); |
|
|
} else { |
|
|
} else { |
|
|
BeanUtils.copyProperties(form, sj); |
|
|
|
|
|
|
|
|
sj.setBh(form.getBh()); |
|
|
|
|
|
sj.setKc(form.getKc()); |
|
|
|
|
|
sj.setKcdw(form.getKcdw()); |
|
|
|
|
|
sj.setStudyId(form.getStudyId()); |
|
|
|
|
|
sj.setStudyFormId(form.getStudyFormId()); |
|
|
|
|
|
sj.setNd(form.getNd()); |
|
|
|
|
|
sj.setNddw(form.getNddw()); |
|
|
sj.setZjzt(ZjztEnum.rk.getValue()); |
|
|
sj.setZjzt(ZjztEnum.rk.getValue()); |
|
|
sj.setJyzt(JyztEnum.wjy.getValue()); |
|
|
sj.setJyzt(JyztEnum.wjy.getValue()); |
|
|
sjService.updateById(sj); |
|
|
sjService.updateById(sj); |
|
|
|