|

楼主 |
发表于 2018-11-22 23:11:26
|
显示全部楼层
我的代码,为了方便把原来的代码注释掉作参考了、
public static void businessActivity4AfterAdvance() {
// try {
// String key = com.justep.system.process.ProcessUtils.getProcessData1();
// 定义更新ksql,由于概念没有主键关系,所以使用概念别名作为概念的主键
// String kSql = "update X5_CostRequest a set a.fState='已审批' where a='" + key + "'";
// KSQL.executeUpdate(kSql,null,"/x5demo/bizDemo/data",null);
// }
// catch (Exception e) {
// throw new RuntimeException (e.getMessage());
// }
try {
String key = com.justep.system.process.ProcessUtils.getProcessData1();
// 定义更新ksql,由于概念没有主键关系,所以使用概念别名作为概念的主键
String kSql = "update HU_CarInfo set HU_CarInfo.CarStatus='已预约' where HU_CarUsing='" + key + "'";
KSQL.executeUpdate(kSql,null,"/huanan/Safety/data",null);
}
catch (Exception e) {
throw new RuntimeException (e.getMessage());
}
|
|