NutzCN Logo
问答 定时任务中使用insertOrUpdate
发布于 80天前 作者 wx_3un8gefq8c8pul4do54f 142 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

FieldFilter ff = FieldFilter.create(F_bull_sale.class, null, "^(status|uid)$", true);
fBullSaleService.insertOrUpdate(bullSale,ff,null);

Failed to invoke the method insertOrUpdate in the service cn.wizzer.app.robot.modules.services.FBullSaleService. Tried 3 times of the providers 192.168.168.165:16811 from the registry 127.0.0.1:2181 on the consumer 192.168.168.165 using the dubbo version 2.6.1. Last error is: Failed to invoke remote method: insertOrUpdate, provider: dubbo://192.168.168.165:16811/cn.wizzer.app.robot.modules.services.FBullSaleService?anyhost=true&application=wk-nb-task&check=false&dubbo=2.6.1&generic=false&interface=cn.wizzer.app.robot.modules.services.FBullSaleService&methods=updateWithVersion,data,insertRelation,insertWith,insertOrUpdate,dao,getMaxId,getSubPath,query,count,getField,vDelete,list,execute,fetchx,getMap,updateAndIncrIfMatch,updateLinks,fetchLinks,updateRelation,fastInsert,update,insert,insertLinks,getParentPath,delete,updateIgnoreNull,clear,getEntity,updateWith,fetch,exists,listPage&pid=56932®ister.ip=192.168.168.165&remote.timestamp=1527829377681&side=consumer×tamp=1527833030856, cause: Failed to send message Request [id=5, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=insertOrUpdate, parameterTypes=[class java.lang.Object, class org.nutz.dao.FieldFilter, class org.nutz.dao.FieldFilter], arguments=[/*cn.wizzer.app.robot.modules.models.F_bull_sale@70b514e2*/{"id":"1aqbjgdl68jeood4qllfrr9dne","uid":111,"bullId":1111,"saleId":0,"status":5}, org.nutz.dao.FieldFilter@7666439c, null], attachments={path=cn.wizzer.app.robot.modules.services.FBullSaleService, interface=cn.wizzer.app.robot.modules.services.FBullSaleService, version=0.0.0}]] to /192.168.168.165:16811, cause: Serialized class org.nutz.dao.FieldFilter must implement java.io.Serializable

1 回复

不要用service直接调dao类的方法,要在service层封装成一个业务方法

添加回复
请先登陆
回到顶部