@ -197,44 +197,44 @@ public class HrmSelfHelpController {
}
}
@GetMapping ( "/testSapi15" )
// @GetMapping("/testSapi15")
@WeaPermission ( publicPermission = true )
// @WeaPermission(publicPermission = true)
public WeaResult < Object > testSapi15 ( HttpServletRequest request ) {
// public WeaResult<Object> testSapi15(HttpServletRequest request){
//com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
// //com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
Map < String , Object > dataMap = new HashMap < String , Object > ( ) ;
// Map<String,Object> dataMap = new HashMap<String,Object>();
dataMap . put ( "test" , "testSapi15" ) ;
// dataMap.put("test","testSapi15");
try {
// try {
String tablename = "uf_nj_cyqltjb" ;
// String tablename = "uf_nj_cyqltjb" ;
dataMap . put ( "tablename" , tablename ) ;
// dataMap.put("tablename",tablename);
Map < String , Object > dMap = jucailinPortalUtils . getChatGroup ( tenant_key , tablename ) ;
// Map<String,Object> dMap = jucailinPortalUtils.getChatGroup(tenant_key,tablename);
dataMap . putAll ( dMap ) ;
// dataMap.putAll(dMap);
} catch ( Exception e ) {
// } catch (Exception e) {
e . printStackTrace ( ) ;
// e.printStackTrace();
log . error ( "testSapi14:" + e ) ;
// log.error("testSapi14:"+e);
dataMap . put ( "count" , "-1" ) ;
// dataMap.put("count","-1");
}
// }
return WeaResult . success ( dataMap ) ;
// return WeaResult.success(dataMap);
}
// }
//
//
@GetMapping ( "/testSapi16" )
// @GetMapping("/testSapi16")
@WeaPermission ( publicPermission = true )
// @WeaPermission(publicPermission = true)
public WeaResult < Object > testSapi16 ( HttpServletRequest request ) {
// public WeaResult<Object> testSapi16(HttpServletRequest request){
//com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
// //com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
Map < String , Object > dataMap = new HashMap < String , Object > ( ) ;
// Map<String,Object> dataMap = new HashMap<String,Object>();
dataMap . put ( "test" , "testSapi16" ) ;
// dataMap.put("test","testSapi16");
try {
// try {
String tablename = "uf_nj_pjmrdlhhsl" ;
// String tablename = "uf_nj_pjmrdlhhsl" ;
dataMap . put ( "tablename" , tablename ) ;
// dataMap.put("tablename",tablename);
Map < String , Object > dMap = jucailinPortalUtils . getChatDay ( tenant_key , tablename ) ;
// Map<String,Object> dMap = jucailinPortalUtils.getChatDay(tenant_key,tablename);
dataMap . putAll ( dMap ) ;
// dataMap.putAll(dMap);
} catch ( Exception e ) {
// } catch (Exception e) {
e . printStackTrace ( ) ;
// e.printStackTrace();
log . error ( "testSapi14:" + e ) ;
// log.error("testSapi14:"+e);
dataMap . put ( "count" , "-1" ) ;
// dataMap.put("count","-1");
}
// }
return WeaResult . success ( dataMap ) ;
// return WeaResult.success(dataMap);
}
// }
// @GetMapping("/testSapi30")
// @GetMapping("/testSapi30")
// @WeaPermission(publicPermission = true)
// @WeaPermission(publicPermission = true)
@ -1379,10 +1379,10 @@ public class HrmSelfHelpController {
List < Map < String , Object > > recordList = databaseUtils . getDataSourceList ( result ) ;
List < Map < String , Object > > recordList = databaseUtils . getDataSourceList ( result ) ;
if ( ! recordList . isEmpty ( ) ) {
if ( ! recordList . isEmpty ( ) ) {
log . error ( "!recordList.isEmpty()" ) ;
log . error ( "!recordList.isEmpty()" ) ;
jucailinPortal Utils. updateChatGroupDate ( userid , amount , sourceType , groupId , tenant_key , tablename ) ;
chatGroup Utils. updateChatGroupDate ( userid , amount , sourceType , groupId , tenant_key , tablename , employeeId ) ;
} else {
} else {
log . error ( "recordList.isEmpty()" ) ;
log . error ( "recordList.isEmpty()" ) ;
jucailinPortal Utils. insertChatGroupDate ( userid , amount , employeeId , sourceType , groupId , tenant_key , tablename ) ;
chatGroup Utils. insertChatGroupDate ( userid , amount , employeeId , sourceType , groupId , tenant_key , tablename ) ;
}
}
}
}
}
}
@ -1437,9 +1437,10 @@ public class HrmSelfHelpController {
Map < String , Object > result = databaseUtils . execute ( sourceType , groupId , sql ) ;
Map < String , Object > result = databaseUtils . execute ( sourceType , groupId , sql ) ;
List < Map < String , Object > > recordList = databaseUtils . getDataSourceList ( result ) ;
List < Map < String , Object > > recordList = databaseUtils . getDataSourceList ( result ) ;
if ( ! recordList . isEmpty ( ) ) {
if ( ! recordList . isEmpty ( ) ) {
jucailinPortalUtils . updateChatDayDate ( userid , amount , sourceType , groupId , tenant_key , tablename ) ;
chatDayUtils . updateChatDayDate ( userid , amount , sourceType , groupId , tenant_key , tablename , employeeId ) ;
} else {
} else {
jucailinPortal Utils. insertChatDayDate ( userid , amount , employeeId , sourceType , groupId , tenant_key , tablename ) ;
chatDay Utils. insertChatDayDate ( userid , amount , employeeId , sourceType , groupId , tenant_key , tablename ) ;
}
}
}
}