@ -14,12 +14,12 @@ import com.weaver.teams.client.doc.remote.DocClientService;
import com.weaver.teams.domain.hr.RemoteHrKpiService ;
import com.weaver.teams.domain.user.SimpleEmployee ;
import com.weaver.teams.security.context.UserContext ;
import com.weaver.workflow.common.constant.list.api.DateTimeConditionEnum ;
import com.weaver.workflow.common.constant.list.listdimension.RequestListInitDimensionTabEnum ;
import com.weaver.workflow.common.entity.list.api.RequestListConditionApiEntity ;
import com.weaver.workflow.common.entity.list.api.publicapi.RequestCountInfoPAEntity ;
import com.weaver.workflow.list.api.rest.publicapi.WflRequestListRest ;
import com.weaver.workrelate.performance.api.rest.RemotePerformanceService ;
import org.apache.commons.collections.CollectionUtils ;
import org.apache.commons.lang3.StringUtils ;
import org.slf4j.Logger ;
import org.slf4j.LoggerFactory ;
@ -639,17 +639,18 @@ public class HrmSelfHelpController {
SimpleEmployee employee = UserContext . getCurrentUser ( ) ;
log . error ( "employee--:" + employee . getEmployeeId ( ) ) ;
LocalDateTime startDateTime = LocalDateTime . of ( LocalDate . from ( LocalDateTime . now ( ) . with ( TemporalAdjusters . firstDayOfYear ( ) ) ) , LocalTime . MIN ) ;
if ( StringUtils . isNotBlank ( startday ) ) {
startDateTime = LocalDateTime . parse ( startday + defineTime , format ) ;
}
// LocalDateTime startDateTime = LocalDateTime.of(LocalDate.from(LocalDateTime.now().with(TemporalAdjusters.firstDayOfYear())), LocalTime.MIN);
// if(StringUtils.isNotBlank(startday)){
// startDateTime = LocalDateTime.parse(startday+defineTime, format);
// }
// LocalDateTime endDateTime = LocalDateTime.now();
// if(StringUtils.isNotBlank(endday)){
// endDateTime = LocalDateTime.parse(endday+defineTime, format);
// }
// conditionEntity.setCusOperateDateStart(startDateTime);
// conditionEntity.setCusOperateDateEnd(endDateTime);
LocalDateTime endDateTime = LocalDateTime . now ( ) ;
if ( StringUtils . isNotBlank ( endday ) ) {
endDateTime = LocalDateTime . parse ( endday + defineTime , format ) ;
}
conditionEntity . setCusOperateDateStart ( startDateTime ) ;
conditionEntity . setCusOperateDateEnd ( endDateTime ) ;
conditionEntity . setOperatedate ( DateTimeConditionEnum . CURRENT_YEAR ) ;
log . error ( "conditionEntity--:" + conditionEntity . toString ( ) ) ;
WeaResult < RequestCountInfoPAEntity > requestCountInfo = wflRequestListRest . getRequestCountByTabId ( employee , RequestListInitDimensionTabEnum . DONE_FLOWALL . getTabid ( ) , conditionEntity ) ;
@ -918,22 +919,25 @@ public class HrmSelfHelpController {
List < Map < String , Object > > dataList = new ArrayList < Map < String , Object > > ( ) ;
try {
String sql = " select distinct taby from uf_zzfwrkpz where ry=? and qy is not null and taby is not null and delete_type=0 and tenant_key ='" + tenant_key + "'" ;
log . error ( "sql:" + sql ) ;
List < SqlParamEntity > sqlparam = new ArrayList < SqlParamEntity > ( ) ;
SqlParamEntity sqlParamEntity = new SqlParamEntity ( ) ;
sqlParamEntity . setParamType ( SqlParamType . VARCHAR ) ;
sqlParamEntity . setValue ( employeeId ) ;
sqlparam . add ( sqlParamEntity ) ;
Map < String , Object > result = databaseUtils . executeForQuery ( sourceType , groupId , sql , sqlparam ) ;
List < Map < String , Object > > recordList = databaseUtils . getDataSourceList ( result ) ;
if ( recordList . size ( ) > 0 ) {
// /api/file/preview?type=redirect&imgFormat=small&fileId=977697615197618177&module=ebuilderform&authModule=ebuilderform&source=form&fieldId=977686869110833154&customParam=%7B%22dataId%22%3A%22977697666574729218%22%7D&refId=977697666574729218&folderId=8120831157448215424
dataList = getCustomeServiceData ( groupId , sourceType , field_id , recordList , employeeId ) ;
} else {
dataList = getDefaultServiceData ( groupId , sourceType , field_id ) ;
if ( StringUtils . isNotBlank ( field_id ) ) {
String sql = " select distinct taby from uf_zzfwrkpz where ry=? and qy is not null and taby is not null and delete_type=0 and tenant_key ='" + tenant_key + "'" ;
log . error ( "sql:" + sql ) ;
List < SqlParamEntity > sqlparam = new ArrayList < SqlParamEntity > ( ) ;
SqlParamEntity sqlParamEntity = new SqlParamEntity ( ) ;
sqlParamEntity . setParamType ( SqlParamType . VARCHAR ) ;
sqlParamEntity . setValue ( employeeId ) ;
sqlparam . add ( sqlParamEntity ) ;
Map < String , Object > result = databaseUtils . executeForQuery ( sourceType , groupId , sql , sqlparam ) ;
List < Map < String , Object > > recordList = databaseUtils . getDataSourceList ( result ) ;
if ( recordList . size ( ) > 0 ) {
// /api/file/preview?type=redirect&imgFormat=small&fileId=977697615197618177&module=ebuilderform&authModule=ebuilderform&source=form&fieldId=977686869110833154&customParam=%7B%22dataId%22%3A%22977697666574729218%22%7D&refId=977697666574729218&folderId=8120831157448215424
dataList = getCustomeServiceData ( groupId , sourceType , field_id , recordList , employeeId ) ;
} else {
dataList = getDefaultServiceData ( groupId , sourceType , field_id ) ;
}
}
} catch ( Exception e ) {
log . error ( "testSapi51-Exception:" + e . getMessage ( ) ) ;