Skip to content

Excel按模板导出有Bug #1136

Closed
Closed
@heroghost

Description

@heroghost
版本号:

2.1.4

问题描述:

引用jar包
autopoi 1.0.5
其中
PoiEIUtil.java里的isTrue方法,这个方法里一堆问题

截图&代码:

image

友情提示: 未按格式要求发帖,会直接删掉。

Activity

pypykim

pypykim commented on May 5, 2020

@pypykim

tag:1.1.1 未解决

	/**
	 * 是不是真
	 * 
	 * @param keys
	 * @param map
	 * @return
	 * @throws Exception
	 */
	private static Boolean isTrue(String[] keys, Map<String, Object> map) throws Exception {
		if (keys.length == 0) {
			String constant = null;
			if ((constant = isConstant(keys[0])) != null) {
				return Boolean.valueOf(constant);
			}
			return Boolean.valueOf(PoiPublicUtil.getParamsValue(keys[0], map).toString());
		}
		if (keys.length == 3) {
			Object first = eval(keys[0], map);
			Object second = eval(keys[2], map);
			return PoiFunctionUtil.isTrue(first, keys[1], second);
		}
		throw new ExcelExportException("判断参数不对");
	}
zhangdaiscott

zhangdaiscott commented on Jun 22, 2020

@zhangdaiscott
Member

已经处理,下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @heroghost@zhangdaiscott@pypykim

        Issue actions

          Excel按模板导出有Bug · Issue #1136 · jeecgboot/JeecgBoot