|

楼主 |
发表于 2017-8-3 15:53:07
|
显示全部楼层
我是自定义的更新的action,然后再js里调用的,流转更新时就报这个错了,
- //更新的action
- public static Boolean htChange(String HT_info,java.sql.Date beginTime,java.sql.Date endTime,BigDecimal amount,String moneyType,String checkState){
-
- String ksql="update HT_info h set h.beginTime=:beginTime,h.endTime=:endTime,h.amount=:amount,h.moneyType=:moneyType,h.checkState=:checkState where h=:HT_info";
- Map<String,Object> params=new HashMap<String, Object>();
- params.put("HT_info", HT_info);
- params.put("beginTime",beginTime);
- params.put("endTime",endTime);
- params.put("amount", amount);
- params.put("moneyType", moneyType);
- params.put("checkState", checkState);
- KSQL.executeUpdate(ksql,params, "/ht/htmanage/data", null);
- return true;
- }
- //js中调用action
- Model.prototype.processBeforeAdvanceQuery = function(event){
- var data=this.comp("mainData");
- //创建参数对象实例
- var params=new Request.ActionParam();
- params.setString("HT_info",data.getValue("HT_info"));
- params.setData("beginTime",data,getValue("beginTime"));
- params.setData("endTime",data.getValue("endTime"));
- params.setDecimal("amount",data,getValue("amount"));
- params.setString("moneyType",data.getValue("moneyType"));
- params.setString("checkState",data.getValue("checkState"));
- Request.sendBizRequest({
- process:this.getContext().getCurrentProcess(),
- activity:this.getContext().getCurrentActivity(),
- executor:this.getContext().getExecutor(),
- //async:false,//是否异步请求
- contentType:"application/json",
- dataType:"json",
- action:"htChange",
- callback:function(result){
- if(result.state){
- alert("流转成功!");
- }else {
- throw new Error("流转失败!|"+result.response.message);
- }
- }
-
-
- });
- };
复制代码 |
|