代码如下:
if(tempStr = '') then
begin
lParam := COMMONUTILS.TCOMMONUTILS.GetParam(Self.Context,'Biz:\CBSGLXT\YWCSZ.ParamGroup', 'GCJLBH');
lRecordId := Variants.VarToStr(lParam.Value);
//lRecordId := JSCommon.CreateGUIDStr;
lContextCurrent := Business.Model.TContextCurrent.Create(Self.Context);
try
lEmployeeId := lContextCurrent.Operator.ID; //当前操作者ID
finally
lContextCurrent.Free;
end;
lQuery.CommandText := 'Insert into T_RECORD_INFO(recordId,recordDate,createDate,recorderId,operatorId,conProId,opinionInfoId) values('''+ lRecordId +''','''+ lRecordTime + ''','''+ Sysutils.DateToStr(Sysutils.now) + ''',''' + lRecorderId + ''','''+ lEmployeeId +''',''' + lContract + ''',''' + lOpinionParentId + ''')';
lQuery.Execute;
end;
想实现if块之间的代码递归调用,请问怎么实现? |