|
|
@@ -1226,11 +1226,14 @@ public class TrialSelfInspectionRecordServiceImpl extends BaseServiceImpl<TrialS
|
|
|
//修改对应 BaseInfo 中的数据
|
|
|
String baseInfo = oldData.getBaseInfo();
|
|
|
if (StringUtils.isNotBlank(baseInfo)) {
|
|
|
+ //删除关联
|
|
|
+ baseMapper.delSelfSample(dto.getId());
|
|
|
//设置空值
|
|
|
TrialSeleInspectionRecordBaseInfoDTO trialSeleInspectionRecordBaseInfoDTO = JSONObject.parseObject(baseInfo, TrialSeleInspectionRecordBaseInfoDTO.class);
|
|
|
if (trialSeleInspectionRecordBaseInfoDTO != null) {
|
|
|
trialSeleInspectionRecordBaseInfoDTO.setEntrustId(null);
|
|
|
trialSeleInspectionRecordBaseInfoDTO.setEntrustNo(null);
|
|
|
+ trialSeleInspectionRecordBaseInfoDTO.setTrialSampleInfo(null);
|
|
|
oldData.setBaseInfo(JSON.toJSONString(trialSeleInspectionRecordBaseInfoDTO));
|
|
|
int update = baseMapper.update(null, Wrappers.<TrialSelfInspectionRecord>update().lambda()
|
|
|
.set(TrialSelfInspectionRecord::getBaseInfo, JSON.toJSONString(trialSeleInspectionRecordBaseInfoDTO))
|