| | |
| | | public class OrgTextService extends CommonAppService implements IOrgTextService { |
| | | |
| | | /** |
| | | * 插入OrgText - 单个 |
| | | * 插入OrgText - 单个 |
| | | */ |
| | | @Override |
| | | public Result doInsertOrgText(String key,String tableName,String content){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 保存OrgText - 单个 |
| | | * 保存OrgText - 单个 |
| | | */ |
| | | @Override |
| | | public Result doSaveOrgText(String key,String tableName,String content) { |
| | |
| | | } |
| | | |
| | | OrgText orgText = getOrgText(key, tableName); |
| | | if(orgText == null){// 新增 |
| | | if(orgText == null){// 新增 |
| | | orgText = new OrgText(); |
| | | orgText.setKey(key); |
| | | orgText.setTableName(tableName); |
| | |
| | | orgText.setDeleteFlag(false); |
| | | TraceUtils.setCreateTrace(orgText); |
| | | |
| | | }else{// 编辑 |
| | | }else{// 编辑 |
| | | orgText.setContent(content); |
| | | TraceUtils.setUpdateTrace(orgText); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 保存OrgText - 多个 |
| | | * 保存OrgText - 多个 |
| | | */ |
| | | @Override |
| | | public Result doSaveOrgTexts(List<String> keys,String tableName,String content){ |
| | |
| | | |
| | | for (int i = 0; i < keys.size(); i++) { |
| | | OrgText orgText = (OrgText) map.get(keys.get(i)); |
| | | if(orgText == null){// 新增 |
| | | if(orgText == null){// 新增 |
| | | orgText = new OrgText(); |
| | | orgText.setKey(keys.get(i)); |
| | | orgText.setTableName(tableName); |
| | | orgText.setContent(content); |
| | | orgText.setDeleteFlag(false); |
| | | TraceUtils.setCreateTrace(orgText); |
| | | }else{// 编辑 |
| | | }else{// 编辑 |
| | | orgText.setContent(content); |
| | | TraceUtils.setUpdateTrace(orgText); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取OrgText - 单个 |
| | | * 获取OrgText - 单个 |
| | | */ |
| | | @Override |
| | | public OrgText getOrgText(String key,String tableName){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取OrgText —— 多个(组长Map:key-key,value-OrgText) |
| | | * 获取OrgText —— 多个(组长Map:key-key,value-OrgText) |
| | | */ |
| | | @Override |
| | | public Map<String,Object> getOrgTextMap(List<String> keys,String tableName){ |