MDM公用文件

This commit is contained in:
yuqh 2024-07-01 11:30:01 +08:00
parent d8d8b42d54
commit 260f562e9b
1 changed files with 31 additions and 3 deletions

View File

@ -199,9 +199,37 @@ public class MasterDataServiceImpl extends BaseService<ComparisonEntity, String>
sb.append(" and a.update_time <> '"+endTime+"'");
}
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select a.id as data_id, a.name as user_name, a.code AS user_code,e.LOGIN_NAME as login_name,CASE WHEN EXT_ATTR_11 = '1' \n" +
"THEN '男' WHEN EXT_ATTR_11 = '2' THEN '女' ELSE NULL END AS gender,CASE WHEN (a.EXT_ATTR_1 IS NULL OR a.EXT_ATTR_1 ='') THEN '11111111111' ELSE a.EXT_ATTR_1 END AS mobile FROM org_member a left join org_principal e on a.id = e.MEMBER_ID\n" +
" WHERE 1=1 and e.LOGIN_NAME IS not null " + sb.toString());
stringBuffer.append("SELECT\n" +
"\ta.id AS data_id,\n" +
"\ta.NAME AS user_name,\n" +
"\ta.CODE AS user_code,\n" +
"\te.LOGIN_NAME AS login_name,\n" +
"\t'hzya@1314' as user_password,\n" +
"\t'N' as islocked,\n" +
"\t'1' as user_type,\n" +
"\t'0' as base_doc_type,\n" +
"\t'静态密码验证' as identityverifycode,\n" +
"\t'0000' as pk_org,\n" +
"\t'ZH-CN' as format,\n" +
"\t'Y' as isca,\n" +
"\t'2' as enablestate,\n" +
"\t'ZH' as contentlang,\n" +
"\ta.CODE as user_code_q,\n" +
"CASE\n" +
"\t\t\n" +
"\t\tWHEN EXT_ATTR_11 = '1' THEN\n" +
"\t\t'男' \n" +
"\t\tWHEN EXT_ATTR_11 = '2' THEN\n" +
"\t\t'女' ELSE NULL \n" +
"\tEND AS gender,\n" +
"CASE\n" +
"\t\t\n" +
"\t\tWHEN ( a.EXT_ATTR_1 IS NULL OR a.EXT_ATTR_1 = '' ) THEN\n" +
"\t\t'11111111111' ELSE a.EXT_ATTR_1 \n" +
"\tEND AS mobile \n" +
"FROM\n" +
"\torg_member a\n" +
"\tLEFT JOIN org_principal e ON a.id = e.MEMBER_ID WHERE 1=1 and e.LOGIN_NAME IS not null"+ sb.toString() );//
// " WHERE 1=1 and a.id = '-2698997042624247722'");
mdmModuleSourceEntity.setDataSourceCode(dbCode);
List<HashMap<String, Object>> hashMaps = masterDataDaoImpl.queryArchivesByDataSource(stringBuffer.toString(),mdmModuleSourceEntity);