| | |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ZfAncestor zfAncestor) { |
| | | |
| | | zfAncestorService.update(zfAncestor); |
| | | ZfAncestor spouseSex = zfAncestorService.update(zfAncestor); |
| | | updateAncestor(zfAncestor); |
| | | if (spouseSex.getId() != null) |
| | | updateAncestor(spouseSex); |
| | | |
| | | return AjaxResult.success(); |
| | | } |
| | |
| | | Long sysId = zfAncestorService.addData(zfAncestor); |
| | | zfAncestor.setSpouseId(sysId.intValue()); |
| | | zfAncestor.setSysId(addAncestor(zfAncestor)); |
| | | |
| | | zfAncestorService.updateById(zfAncestor); |
| | | |
| | | |
| | | return AjaxResult.success(); |
| | | } |
| | | |