参数代理对象feign调用问题

This commit is contained in:
zhou-hongcheng
2026-03-12 11:12:44 +08:00
parent 18bdc2f931
commit d0d5c4a15b
@@ -88,9 +88,7 @@ public class MaterialBaseInfoImpl extends ServiceImpl<MaterialBaseInfoMapper, Ma
*/
public void synchMaterialBaseInfo(MaterialBaseInfoDO materialBaseInfoDO, Integer updateFeign){
MaterialBaseInfoFeign materialBaseInfoFeign = new MaterialBaseInfoFeign();
// 或者用 JSON 转换后再复制(保证对象是真正的实例)
MaterialBaseInfoFeign temp = JSONUtil.toBean(JSONUtil.toJsonStr(materialBaseInfoDO), MaterialBaseInfoFeign.class);
BeanUtils.copyProperties(temp, materialBaseInfoFeign);
BeanUtils.copyProperties(materialBaseInfoDO, materialBaseInfoFeign);
materialBaseInfoFeign.setUpdateFeign(updateFeign);
AjaxResult ajaxResult = wmsServiceFeign.edit(materialBaseInfoFeign);
if (!"200".equals(String.valueOf(ajaxResult.get("code")))){