求指点!使用Minidao插入数据报错:Malformed OGNL expression: 09
本帖最后由 浪里小白虫 于 2018-8-25 19:24 编辑ognl.ExpressionSyntaxException: Malformed OGNL expression: 09 [ognl.ParseException: Encountered " <INT_LITERAL> "9 "" at line 1, column 2.
Was expecting one of:
<EOF>
"," ...
"=" ...
"?" ...
"||" ...
"or" ...
"&&" ...
"and" ...
"|" ...
"bor" ...
"^" ...
"xor" ...
"&" ...
"band" ...
"==" ...
"eq" ...
"!=" ...
"neq" ...
"<" ...
"lt" ...
">" ...
"gt" ...
"<=" ...
"lte" ...
">=" ...
"gte" ...
"in" ...
"not" ...
"<<" ...
"shl" ...
">>" ...
"shr" ...
">>>" ...
"ushr" ...
"+" ...
"-" ...
"*" ...
"/" ...
"%" ...
"instanceof" ...
"." ...
"(" ...
"[" ...
<DYNAMIC_SUBSCRIPT> ...
]
minidao什么版本? 把代码截图出来 admin 发表于 2018-8-26 20:55 static/image/common/back.gif
minidao什么版本? 把代码截图出来
抱歉,现在才看到你的回复。
我用的是minidao-pe-1.6-SNAPSHOT这个版本。
调用的这个方法。下面是插入语句
INSERT INTO
tableName (
id,
schedule_id,
employee_no,
employee_name,
employee_id,
detail_id,
class_name,
area_id,
`level`,
dept_id,
schedule_date,
begin_time,
end_time,
fact_intime,
fact_outtime,
state,
is_work,
departname,
other_day,
is_flight,
is_enable,
create_date,
create_name,
create_by,
update_date,
update_name,
update_by,
sys_org_code,
sys_company_code,
bpm_status,
update_control_id,
remark,
include_child,
is_replace,
replace_emp_id,
replace_emp,
apply_id
) VALUES
<#list scheduleDBakList as scheduleDBak>
<#if !scheduleDBak_has_next>
('${scheduleDBak.id}',
'${scheduleDBak.scheduleId}',
'${scheduleDBak.employeeNo}',
'${scheduleDBak.employeeName}',
'${scheduleDBak.employeeId}',
'${scheduleDBak.detailId}',
'${scheduleDBak.className}',
<#if scheduleDBak.areaId??>
'${scheduleDBak.areaId}',
<#else>
null,
</#if>
'${scheduleDBak.level}',
'${scheduleDBak.deptId}',
'${scheduleDBak.scheduleDate}',
<#if scheduleDBak.beginTime??>
'${scheduleDBak.beginTime}',
<#else>
null,
</#if>
<#if scheduleDBak.endTime??>
'${scheduleDBak.endTime}',
<#else>
null,
</#if>
<#if scheduleDBak.factIntime??>
'${scheduleDBak.factIntime}',
<#else>
null,
</#if>
<#if scheduleDBak.factOuttime??>
'${scheduleDBak.factOuttime}',
<#else>
null,
</#if>
'${scheduleDBak.state}',
'${scheduleDBak.isWork}',
'${scheduleDBak.departname}',
'${scheduleDBak.otherDay}',
'${scheduleDBak.isFlight}',
'${scheduleDBak.isEnable}',
'${scheduleDBak.createDate}',
'${scheduleDBak.createName}',
'${scheduleDBak.createBy}',
'${scheduleDBak.updateDate}',
'${scheduleDBak.updateName}',
'${scheduleDBak.updateBy}',
'${scheduleDBak.sysOrgCode}',
'${scheduleDBak.sysCompanyCode}',
'${scheduleDBak.bpmStatus}',
<#if scheduleDBak.updateControlId??>
'${scheduleDBak.updateControlId}',
<#else>
null,
</#if>
'${scheduleDBak.remark}',
'${scheduleDBak.includeChild}',
'${scheduleDBak.isReplace}',
<#if scheduleDBak.replaceEmpId??>
'${scheduleDBak.replaceEmpId}',
<#else>
null,
</#if>
<#if scheduleDBak.replaceEmp??>
'${scheduleDBak.replaceEmp}',
<#else>
null,
</#if>
'${scheduleDBak.applyId}');
<#else>
('${scheduleDBak.id}',
'${scheduleDBak.scheduleId}',
'${scheduleDBak.employeeNo}',
'${scheduleDBak.employeeName}',
'${scheduleDBak.employeeId}',
'${scheduleDBak.detailId}',
'${scheduleDBak.className}',
<#if scheduleDBak.areaId??>
'${scheduleDBak.areaId}',
<#else>
null,
</#if>
'${scheduleDBak.level}',
'${scheduleDBak.deptId}',
'${scheduleDBak.scheduleDate}',
<#if scheduleDBak.beginTime??>
'${scheduleDBak.beginTime}',
<#else>
null,
</#if>
<#if scheduleDBak.endTime??>
'${scheduleDBak.endTime}',
<#else>
null,
</#if>
<#if scheduleDBak.factIntime??>
'${scheduleDBak.factIntime}',
<#else>
null,
</#if>
<#if scheduleDBak.factOuttime??>
'${scheduleDBak.factOuttime}',
<#else>
null,
</#if>
'${scheduleDBak.state}',
'${scheduleDBak.isWork}',
'${scheduleDBak.departname}',
'${scheduleDBak.otherDay}',
'${scheduleDBak.isFlight}',
'${scheduleDBak.isEnable}',
'${scheduleDBak.createDate}',
'${scheduleDBak.createName}',
'${scheduleDBak.createBy}',
'${scheduleDBak.updateDate}',
'${scheduleDBak.updateName}',
'${scheduleDBak.updateBy}',
'${scheduleDBak.sysOrgCode}',
'${scheduleDBak.sysCompanyCode}',
'${scheduleDBak.bpmStatus}',
<#if scheduleDBak.updateControlId??>
'${scheduleDBak.updateControlId}',
<#else>
null,
</#if>
'${scheduleDBak.remark}',
'${scheduleDBak.includeChild}',
'${scheduleDBak.isReplace}',
<#if scheduleDBak.replaceEmpId??>
'${scheduleDBak.replaceEmpId}',
<#else>
null,
</#if>
<#if scheduleDBak.replaceEmp??>
'${scheduleDBak.replaceEmp}',
<#else>
null,
</#if>
'${scheduleDBak.applyId}'),
</#if>
</#list> 换成最新版本1.6.7<dependency>
<groupId>org.jeecgframework</groupId>
<artifactId>minidao-pe</artifactId>
<version>1.6.7</version>
</dependency>
页:
[1]