| | |
| | | public JSONObject findTranslate(FieldSetEntity fse) { |
| | | FieldSetEntity fsData = baseDao.getFieldSetBySQL("SELECT project_type,date FROM product_project_business_translate where project_type=?", new String[]{fse.getString("project_type")}, false); |
| | | JSONObject rejson=BaseUtil.fieldSetEntityToJson(fsData); |
| | | DataTableEntity projectType = baseDao.listTable(CmnConst.PRODUCT_PROJECT_BUSINESS_TRANSLATE, "project_type=? ORDER BY project_task", new String[]{fse.getString("project_type")}); |
| | | DataTableEntity projectType = baseDao.listTable(CmnConst.PRODUCT_PROJECT_BUSINESS_TRANSLATE, "project_type=? ORDER BY project_task,id", new String[]{fse.getString("project_type")}); |
| | | JSONObject json = new JSONObject(); |
| | | for (int i = 0; i < projectType.getRows(); i++) { |
| | | FieldSetEntity fs = projectType.getFieldSetEntity(i); |
| | | fs.remove("uuid"); |
| | | if (!StringUtils.isEmpty(fse.getString("type")) &&fse.getString("type").equals("view")){ |
| | | fs.remove("uuid"); |
| | | } |
| | | if (json.getJSONArray(fs.getString("project_task"))==null){ |
| | | JSONArray objects = new JSONArray(); |
| | | objects.add(BaseUtil.fieldSetEntityToJson(fs)); |