|
|
|
@ -81,6 +81,8 @@ public class HrmSelfHelpController {
|
|
|
|
|
SimpleEmployee employee = UserContext.getCurrentUser();
|
|
|
|
|
log.error("employee:"+employee.getEmployeeId());
|
|
|
|
|
|
|
|
|
|
employee.getFormdata();
|
|
|
|
|
|
|
|
|
|
RequestListConditionApiEntity conditionEntity = new RequestListConditionApiEntity();
|
|
|
|
|
log.error("3333333");
|
|
|
|
|
WeaResult<RequestCountInfoPAEntity> requestCountInfo = wflRequestListRest.getRequestCountByTabId(employee, RequestListInitDimensionTabEnum.DONE_FLOWALL.getTabid(), conditionEntity);
|
|
|
|
@ -1147,5 +1149,40 @@ public class HrmSelfHelpController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/testSapi90")
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
public WeaResult<Object> testSapi90(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
String groupId = "weaver-ebuilder-form-service";
|
|
|
|
|
String sourceType = "LOGIC";
|
|
|
|
|
|
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
|
dataMap.put("test","testSapi90");
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
SimpleEmployee employee = UserContext.getCurrentUser();
|
|
|
|
|
log.error("employee:"+employee.getEmployeeId());
|
|
|
|
|
|
|
|
|
|
long formdata = employee.getFormdata();
|
|
|
|
|
dataMap.put("formdata",formdata);
|
|
|
|
|
|
|
|
|
|
String sql =" select field69,field69_obj from Hrmemployeedefined where form_data_id='"+formdata+"'" ;
|
|
|
|
|
dataMap.put("sql",sql);
|
|
|
|
|
|
|
|
|
|
log.error("getSelfServiceData--sql:"+sql);
|
|
|
|
|
|
|
|
|
|
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
|
|
|
|
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
|
|
|
|
dataMap.put("data90",recordList);
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
log.error("testSapi10:"+e);
|
|
|
|
|
dataMap.put("count","-1");
|
|
|
|
|
}
|
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|