|
@@ -12,6 +12,7 @@ import cn.cslg.pas.common.utils.Response;
|
|
|
import cn.cslg.pas.common.vo.PatentRightVo;
|
|
|
import cn.cslg.pas.common.vo.business.SplitVO;
|
|
|
import cn.cslg.pas.common.vo.invalidVO.GroupFeatureHistoryVO;
|
|
|
+import cn.cslg.pas.domain.BaseEntity;
|
|
|
import cn.cslg.pas.domain.business.*;
|
|
|
import cn.cslg.pas.exception.XiaoShiException;
|
|
|
import cn.cslg.pas.mapper.InvalidReport.AssoGroupFeatureMapper;
|
|
@@ -19,6 +20,7 @@ import cn.cslg.pas.service.business.FeatureService;
|
|
|
import cn.cslg.pas.service.business.InvalidStatutesService;
|
|
|
import cn.cslg.pas.service.business.ProofGroupService;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -375,15 +377,28 @@ public class AssoGroupFeatureService extends ServiceImpl<AssoGroupFeatureMapper,
|
|
|
throw new XiaoShiException("请输入值");
|
|
|
}
|
|
|
domainFieldDTOS.forEach(item -> {
|
|
|
- try {
|
|
|
- if (item.getValue() != null) {
|
|
|
- GenerateObjectUtil.setObjectProperty(assoGroupFeature, item.getField(), item.getValue());
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- throw new XiaoShiException("装载失败");
|
|
|
+// try {
|
|
|
+// if (item.getValue() != null) {
|
|
|
+// GenerateObjectUtil.setObjectProperty(assoGroupFeature, item.getField(), item.getValue());
|
|
|
+// }
|
|
|
+// } catch (Exception e) {
|
|
|
+// throw new XiaoShiException("装载失败");
|
|
|
+// }
|
|
|
+ Object value = item.getValue();
|
|
|
+ if (value != null && value instanceof Boolean) {
|
|
|
+ LambdaUpdateWrapper<AssoGroupFeature> wrapper = new LambdaUpdateWrapper<AssoGroupFeature>()
|
|
|
+ .eq(BaseEntity::getId, id)
|
|
|
+ .set(AssoGroupFeature::getIfPresentOpinions1, value);
|
|
|
+ assoGroupFeature.update(wrapper);
|
|
|
+ } else if (value != null) {
|
|
|
+ LambdaUpdateWrapper<AssoGroupFeature> wrapper = new LambdaUpdateWrapper<AssoGroupFeature>()
|
|
|
+ .eq(BaseEntity::getId, id)
|
|
|
+ .set(AssoGroupFeature::getIfPresentOpinions1, null);
|
|
|
+ assoGroupFeature.update(wrapper);
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
- assoGroupFeature.updateById();
|
|
|
+// assoGroupFeature.updateById();
|
|
|
}
|
|
|
return true;
|
|
|
}
|