| | |
| | | string colType = GetJavaType(selectTabInfo); |
| | | string colName = NameConvert(selectTabInfo.col, false); |
| | | string testExpr = colName + " != null"; |
| | | string testWhere = selectTabInfo.col + (colType == "String" ? " like " : " = ") + "#{" + colName + "}"; |
| | | //string testWhere = selectTabInfo.col + (colType == "String" ? " like " : " = ") + "#{" + colName + "}"; |
| | | string testWhere = (colType == "String" ? "upper(" + selectTabInfo.col + ") like " : selectTabInfo.col + " = ") + "#{" + colName + "}"; |
| | | |
| | | string insertCols = GetInsertCols(tabs); |
| | | string insertVal = GetInsertVal(tabs); |
| | |
| | | |
| | | //string where = isString ? "\r\n " + colName + " = \"%\" + (StringHelper.isNull(" + colName + ") ? \"\" : " + colName + ".trim()) + \"%\";\r\n" : ""; |
| | | //string where = colType == "String" ? "\r\n " + colName + " = StringHelper.isNull(" + colName + ") ? null : \"%\" + " + colName + ".trim() + \"%\";\r\n" : ""; |
| | | string where = colType == "String" ? "\r\n " + colName + " = StringHelper.getLikeStr(" + colName + ");\r\n" : ""; |
| | | string where = colType == "String" ? "\r\n " + colName + " = StringHelper.getLikeUpperStr(" + colName + ");\r\n" : ""; |
| | | |
| | | string xml = File.ReadAllText(Path.Combine(baseDir, "SysTemplate\\Service.java")); |
| | | xml = xml |