package cn.ibizlab.sample.logic.ibizsample0019logic.updateygname;
import java.util.Map;
import java.util.HashMap;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.StringUtils;
import org.springframework.util.ObjectUtils;
import cn.ibizlab.util.errors.BadRequestAlertException;
global cn.ibizlab.core.sample.domain.IBIZSample0019 ibizsample0019updateygnamedefault;
global cn.ibizlab.core.sample.service.IIBIZSample0019Service iBzSysIbizsample0019DefaultService;
global cn.ibizlab.util.security.AuthenticationUser curuser;


no-loop

//逻辑处理节点[更新员工名称]
rule "rawsqlcall1"
ruleflow-group "ibizsample0019updateygnamerawsqlcall1"
    when
    then
    Map param =new HashMap();
    param.put("param0",ibizsample0019updateygnamedefault.get("ibizsample0019name"));
    param.put("param1",ibizsample0019updateygnamedefault.get("ibizsample0019id"));
    String strSql="update T_IBIZSAMPLE0020 set IBIZSAMPLE0019NAME=#{et.param0} where IBIZSAMPLE0019ID=#{et.param1}";
    iBzSysIbizsample0019DefaultService.execute(strSql,param);//SQL调用
    update(ibizsample0019updateygnamedefault);//更新fact中变量值
    end

//逻辑处理节点[开始]
rule "begin"
ruleflow-group "ibizsample0019updateygnamebegin"
    when
    then
    end

