#E10-12# 优化自助服务接口增加日志

main
shilei 1 year ago
parent 1c4d6f8eb3
commit 09c0bf4d76

@ -1101,8 +1101,8 @@ public class HrmSelfHelpController {
*/
public List<Map<String,Object>> getDefaultServiceData(String groupId,String sourceType,String field_id){
String sql = " select name,value_key as taby from field_option where field_id=? and delete_type=0 and tenant_key = '"+tenant_key+"'";
log.info("sql:"+sql);
String sql = " select name,value_key as taby from field_option where field_id=? and delete_type=0 and tenant_key = '"+tenant_key+"'";
log.error("getDefaultServiceData-sql:"+sql);
List<SqlParamEntity> sqlparam = new ArrayList<SqlParamEntity>();
SqlParamEntity sqlParamEntity = new SqlParamEntity();
@ -1112,9 +1112,13 @@ public class HrmSelfHelpController {
Map<String, Object> result = databaseUtils.executeForQuery(sourceType, groupId, sql,sqlparam);
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
log.error("getDefaultServiceData-recordList:"+recordList.size());
for(int i=0;i<recordList.size();i++){
Map<String,Object> recordMap = recordList.get(i);
String taby = String.valueOf(recordMap.get("taby"));
log.error("getDefaultServiceData-taby:"+taby);
List<Map<String,Object>> defaultList = getDefaultServiceDataByType(groupId,sourceType,taby);
recordMap.put("menus",defaultList);
}
@ -1135,7 +1139,7 @@ public class HrmSelfHelpController {
" and t.taby= ? " +
" and t.tenant_key = '"+tenant_key+"'";
log.error("getSelfServiceData--sql:"+sql);
log.error("getDefaultServiceDataByType--sql:"+sql);
List<SqlParamEntity> sqlparam = new ArrayList<SqlParamEntity>();
SqlParamEntity sqlParamEntity = new SqlParamEntity();
@ -1145,6 +1149,9 @@ public class HrmSelfHelpController {
Map<String, Object> result = databaseUtils.executeForQuery(sourceType, groupId, sql,sqlparam);
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
log.error("getDefaultServiceDataByType--recordList:"+recordList.size());
for(int i=0;i<recordList.size();i++){
Map<String,Object> recordMap = recordList.get(i);
String fwtb = String.valueOf(recordMap.get("fwtb"));

Loading…
Cancel
Save