| | |
| | | JSONObject json = new JSONObject(); |
| | | for (int i = 0; i < projectType.getRows(); i++) { |
| | | FieldSetEntity fs = projectType.getFieldSetEntity(i); |
| | | fs.remove("uuid"); |
| | | if (json.getJSONArray(fs.getString("project_task"))==null){ |
| | | JSONArray objects = new JSONArray(); |
| | | objects.add(BaseUtil.fieldSetEntityToJson(fs)); |
| | |
| | | @Transactional |
| | | @Override |
| | | public boolean saveProject(FieldSetEntity fse) { |
| | | if (fse.getString("del").equals("2")){ |
| | | baseDao.delete(CmnConst.PRODUCT_PROJECT_BUSINESS_PLAN,"project_uuid=?",new String[]{fse.getUUID()}); |
| | | } |
| | | return baseDao.saveFieldSetEntity(BaseUtil.createCreatorAndCreationTime(fse)); |
| | | } |
| | | } |