#E10人事自助门户-新增接口
parent
aa55a2e63c
commit
8b3e65e28c
@ -0,0 +1,273 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.framework.rpc.annotation.RpcReference;
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
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 org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.TemporalAdjusters;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 开发人员综合信息
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/14
|
||||
*/
|
||||
@Component
|
||||
public class DevCollaborationInfoCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(DevCollaborationInfoCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84";
|
||||
|
||||
@RpcReference(group = "workflow")
|
||||
WflRequestListRest wflRequestListRest;
|
||||
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
Map<String, Object> dataMap = new HashMap<String, Object>();
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Map<String, Object> rtMap = getDaysInfo(startday, endday, employeeId);
|
||||
String rtcount = (String) rtMap.get("count");
|
||||
|
||||
Map<String, Object> wtMap = getQuestInfo(startday, endday, employeeId);
|
||||
String wtcount = (String) wtMap.get("count");
|
||||
|
||||
Map<String, Object> gtxzMap = getInteractInfo(startday, endday, employeeId);
|
||||
int gtxz = (int) gtxzMap.get("count");
|
||||
|
||||
Map<String, Object> wfMap = getWfInfo(startday, endday);
|
||||
Long lccl = (Long) wfMap.get("count");
|
||||
|
||||
dataMap.put("rtcount", rtcount);
|
||||
dataMap.put("wtcount", wtcount);
|
||||
dataMap.put("gtxz", gtxz);
|
||||
dataMap.put("lccl", lccl);
|
||||
return dataMap;
|
||||
}
|
||||
|
||||
public Map<String, Object> getDaysInfo(String startday, String endday, String employeeId) {
|
||||
log.error("DevDaysCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-workflow-report-serviceworkflowreport";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
Map<String, Object> dataMap = new HashMap<String, Object>();
|
||||
String devcou = "0";
|
||||
try {
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if (StringUtils.isBlank(startday)) {
|
||||
startday = year + "-01-01";
|
||||
}
|
||||
if (StringUtils.isBlank(endday)) {
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(employeeId)) {
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(employeeId)) {
|
||||
String dataSql = " select count(1) as devcou \n" +
|
||||
" from wfc_form_data l\n" +
|
||||
" inner join fto_83 d on d.id = l.dataid\n" +
|
||||
" inner join wfc_requestbase p on p.requestid = l.requestid\n" +
|
||||
" where d.mutiresource='" + employeeId + "'\n" +
|
||||
" and d.xsjfrq >='" + startday + "'" +
|
||||
" and d.xsjfrq <='" + endday + "'" +
|
||||
" and d.tenant_key='" + tenant_key + "'\n" +
|
||||
" and d.is_delete='0'\n" +
|
||||
" and l.tenant_key='" + tenant_key + "'\n" +
|
||||
" and l.delete_type=0\n" +
|
||||
" and p.tenant_key='" + tenant_key + "'\n" +
|
||||
" and p.delete_type=0\n" +
|
||||
" order by d.id desc ";
|
||||
|
||||
log.info("DevDaysCountCmd sql:" + dataSql);
|
||||
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, dataSql);
|
||||
List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if (CollectionUtils.isNotEmpty(recordList)) {
|
||||
devcou = String.valueOf(recordList.get(0).get("devcou"));
|
||||
}
|
||||
}
|
||||
dataMap.put("count", devcou);
|
||||
} catch (Exception e) {
|
||||
log.error("DevDaysCountCmd-Exception:" + e);
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
|
||||
public Map<String, Object> getQuestInfo(String startday, String endday, String employeeId) {
|
||||
log.error("DevQuestCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-workflow-report-serviceworkflowreport";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
|
||||
Map<String, Object> dataMap = new HashMap<String, Object>();
|
||||
String devcou = "0";
|
||||
try {
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if (StringUtils.isBlank(startday)) {
|
||||
startday = year + "-01-01";
|
||||
}
|
||||
if (StringUtils.isBlank(endday)) {
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(employeeId)) {
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(employeeId)) {
|
||||
String dataSql = " select ifnull(sum(d.integer2),0) as devcou \n" +
|
||||
" from wfc_form_data l\n" +
|
||||
" inner join fto_62 d on d.id = l.dataid\n" +
|
||||
" inner join wfc_requestbase p on p.requestid = l.requestid\n" +
|
||||
" where d.multiresource5='" + employeeId + "'\n" +
|
||||
" and d.date2 >='" + startday + "'" +
|
||||
" and d.date2 <='" + endday + "'" +
|
||||
" and d.tenant_key='" + tenant_key + "'\n" +
|
||||
" and d.is_delete='0'\n" +
|
||||
" and l.tenant_key='" + tenant_key + "'\n" +
|
||||
" and l.delete_type=0\n" +
|
||||
" and p.tenant_key='" + tenant_key + "'\n" +
|
||||
" and p.delete_type=0\n" +
|
||||
" order by d.id desc ";
|
||||
|
||||
log.info("DevQuestCountCmd dataSql:" + dataSql);
|
||||
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, dataSql);
|
||||
List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if (CollectionUtils.isNotEmpty(recordList)) {
|
||||
devcou = String.valueOf(recordList.get(0).get("devcou"));
|
||||
}
|
||||
}
|
||||
dataMap.put("count", devcou);
|
||||
} catch (Exception e) {
|
||||
log.error("DevQuestCountCmd-Exception:" + e);
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 本年沟通协作数
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> getInteractInfo(String startday, String endday, String employeeId) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-cowork-service";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
try{
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if(StringUtils.isBlank(startday)){
|
||||
startday = year+"-01-01";
|
||||
}
|
||||
if(StringUtils.isBlank(endday)){
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if(StringUtils.isBlank(employeeId)){
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
String sql = " select count(1) as count from cw_content " +
|
||||
" where CREATOR='"+employeeId+"'\n" +
|
||||
" and left(CREATE_TIME,10)>='"+startday+"' and left(CREATE_TIME,10) <= '"+endday+"'" ;
|
||||
|
||||
log.error("getInteractInfo sql:"+sql);
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
||||
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if(recordList.size()>0){
|
||||
dataMap = recordList.get(0);
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
log.error("getInteractInfo-Exception:"+e.getMessage());
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 本年流程处理数量
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> getWfInfo(String startday, String endday) {
|
||||
log.error("PortalWfDealCountCmd");
|
||||
Map<String, Object> data = new HashMap<>(100);
|
||||
DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
|
||||
Long count = 0L;
|
||||
try {
|
||||
RequestListConditionApiEntity conditionEntity = new RequestListConditionApiEntity();
|
||||
SimpleEmployee employee = UserContext.getCurrentUser();
|
||||
LocalDateTime startDateTime = LocalDateTime.of(LocalDate.from(LocalDateTime.now().with(TemporalAdjusters.firstDayOfYear())), LocalTime.MIN);
|
||||
if (StringUtils.isNotBlank(startday)) {
|
||||
startDateTime = LocalDateTime.parse(startday, format);
|
||||
}
|
||||
|
||||
LocalDateTime endDateTime = LocalDateTime.now();
|
||||
if (StringUtils.isNotBlank(endday)) {
|
||||
endDateTime = LocalDateTime.parse(endday, format);
|
||||
}
|
||||
conditionEntity.setCusOperateDateStart(startDateTime);
|
||||
conditionEntity.setCusOperateDateEnd(endDateTime);
|
||||
|
||||
WeaResult<RequestCountInfoPAEntity> RequestCountInfoPAEntity = wflRequestListRest.getRequestCountByTabId(employee, RequestListInitDimensionTabEnum.DONE_FLOWALL.getTabid(), conditionEntity);
|
||||
int code = RequestCountInfoPAEntity.getCode();
|
||||
if (code == 200) {
|
||||
count = RequestCountInfoPAEntity.getData().getCount();
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("PortalWfDealCountCmd-Exception:" + e);
|
||||
|
||||
}
|
||||
data.put("count", count);
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 开发人员数量
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/14
|
||||
*/
|
||||
@Component
|
||||
public class DevDaysCountCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(DevDaysCountCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84";
|
||||
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
log.error("DevDaysCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-workflow-report-serviceworkflowreport";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
Map<String, Object> dataMap = new HashMap<String, Object>();
|
||||
String devcou = "0";
|
||||
try {
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if (StringUtils.isBlank(startday)) {
|
||||
startday = year + "-01-01";
|
||||
}
|
||||
if (StringUtils.isBlank(endday)) {
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(employeeId)) {
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(employeeId)) {
|
||||
String dataSql = " select count(1) as devcou \n" +
|
||||
" from wfc_form_data l\n" +
|
||||
" inner join fto_83 d on d.id = l.dataid\n" +
|
||||
" inner join wfc_requestbase p on p.requestid = l.requestid\n" +
|
||||
" where d.mutiresource='" + employeeId + "'\n" +
|
||||
" and d.xsjfrq >='" + startday + "'" +
|
||||
" and d.xsjfrq <='" + endday + "'" +
|
||||
" and d.tenant_key='" + tenant_key + "'\n" +
|
||||
" and d.is_delete='0'\n" +
|
||||
" and l.tenant_key='" + tenant_key + "'\n" +
|
||||
" and l.delete_type=0\n" +
|
||||
" and p.tenant_key='" + tenant_key + "'\n" +
|
||||
" and p.delete_type=0\n" +
|
||||
" order by d.id desc ";
|
||||
|
||||
log.info("DevDaysCountCmd sql:" + dataSql);
|
||||
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, dataSql);
|
||||
List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if (CollectionUtils.isNotEmpty(recordList)) {
|
||||
devcou = String.valueOf(recordList.get(0).get("devcou"));
|
||||
}
|
||||
}
|
||||
dataMap.put("count", devcou);
|
||||
} catch (Exception e) {
|
||||
log.error("DevDaysCountCmd-Exception:" + e.getMessage());
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 开发人员问题支持数量
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/14
|
||||
*/
|
||||
@Component
|
||||
public class DevQuestCountCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(DevQuestCountCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84";
|
||||
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
log.error("DevQuestCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-workflow-report-serviceworkflowreport";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
|
||||
Map<String, Object> dataMap = new HashMap<String, Object>();
|
||||
String devcou = "0";
|
||||
try {
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if (StringUtils.isBlank(startday)) {
|
||||
startday = year + "-01-01";
|
||||
}
|
||||
if (StringUtils.isBlank(endday)) {
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(employeeId)) {
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(employeeId)) {
|
||||
String dataSql = " select ifnull(sum(d.integer2),0) as devcou \n" +
|
||||
" from wfc_form_data l\n" +
|
||||
" inner join fto_62 d on d.id = l.dataid\n" +
|
||||
" inner join wfc_requestbase p on p.requestid = l.requestid\n" +
|
||||
" where d.multiresource5='" + employeeId + "'\n" +
|
||||
" and d.date2 >='" + startday + "'" +
|
||||
" and d.date2 <='" + endday + "'" +
|
||||
" and d.tenant_key='" + tenant_key + "'\n" +
|
||||
" and d.is_delete='0'\n" +
|
||||
" and l.tenant_key='" + tenant_key + "'\n" +
|
||||
" and l.delete_type=0\n" +
|
||||
" and p.tenant_key='" + tenant_key + "'\n" +
|
||||
" and p.delete_type=0\n" +
|
||||
" order by d.id desc ";
|
||||
|
||||
log.info("DevQuestCountCmd dataSql:" + dataSql);
|
||||
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, dataSql);
|
||||
List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if (CollectionUtils.isNotEmpty(recordList)) {
|
||||
devcou = String.valueOf(recordList.get(0).get("devcou"));
|
||||
}
|
||||
}
|
||||
dataMap.put("count", devcou);
|
||||
} catch (Exception e) {
|
||||
log.error("DevQuestCountCmd-Exception:" + e.getMessage());
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 本年日报微博数量
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/13
|
||||
*/
|
||||
@Component
|
||||
public class PortalDailyCountCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(PortalDailyCountCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84" ;
|
||||
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
log.error("PortalDailyCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-blog-service";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
try{
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if(StringUtils.isBlank(startday)){
|
||||
startday = year+"-01-01";
|
||||
}
|
||||
if(StringUtils.isBlank(endday)){
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if(StringUtils.isBlank(employeeId)){
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
String sql =" select count(1) as count\n" +
|
||||
" from blog " +
|
||||
" where creator='"+employeeId+"'\n" +
|
||||
" and left(BLOG_TIME,10) >='"+startday+"'\n" +
|
||||
" and left(BLOG_TIME,10) <='"+endday+"'\n" +
|
||||
" and type='blog'\n" +
|
||||
" and TENANT_KEY = '"+tenant_key+"'\n" +
|
||||
" and MODULE = 'blog'\n" +
|
||||
" and DELETE_TYPE = 0\n" +
|
||||
" and CONTENT is not null" ;
|
||||
|
||||
log.error("PortalDailyCountCmd sql:"+sql);
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
||||
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if(recordList.size()>0){
|
||||
dataMap = recordList.get(0);
|
||||
}
|
||||
}catch (Exception e){
|
||||
log.error("PortalDailyCountCmd-Exception:"+e.getMessage());
|
||||
dataMap.put("count",0);
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 本年文档创建贡献数
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/13
|
||||
*/
|
||||
@Component
|
||||
public class PortalDocCreateCountCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(PortalDocCreateCountCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84" ;
|
||||
|
||||
/**
|
||||
* 本年文档创建贡献数
|
||||
* @param simpleEmployee
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
log.error("PortalDocCreateCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-doc-service";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
try{
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if(StringUtils.isBlank(startday)){
|
||||
startday = year+"-01-01";
|
||||
}
|
||||
if(StringUtils.isBlank(endday)){
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if(StringUtils.isBlank(employeeId)){
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
String sql = " select count(1) as count from document " +
|
||||
" where CREATOR='"+employeeId+"'\n" +
|
||||
" and left(create_time,10)>='"+startday+"' and left(create_time,10) <= '"+endday+"'" ;
|
||||
|
||||
log.error("PortalDocCreateCountCmd sql:"+sql);
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
||||
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if(recordList.size()>0){
|
||||
dataMap = recordList.get(0);
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
log.error("PortalDocCreateCountCmd-Exception:"+e.getMessage());
|
||||
dataMap.put("count",0);
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 本年沟通协作数
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/13
|
||||
*/
|
||||
@Component
|
||||
public class PortalInteractCountCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(PortalInteractCountCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84" ;
|
||||
|
||||
/**
|
||||
* 本年沟通协作数
|
||||
* @param simpleEmployee
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
log.error("PortalInteractCountCmd");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String groupId = "weaver-cowork-service";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
try{
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if(StringUtils.isBlank(startday)){
|
||||
startday = year+"-01-01";
|
||||
}
|
||||
if(StringUtils.isBlank(endday)){
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if(StringUtils.isBlank(employeeId)){
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
String sql = " select count(1) as count from cw_content " +
|
||||
" where CREATOR='"+employeeId+"'\n" +
|
||||
" and left(CREATE_TIME,10)>='"+startday+"' and left(CREATE_TIME,10) <= '"+endday+"'" ;
|
||||
|
||||
log.error("PortalInteractCountCmd sql:"+sql);
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
||||
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if(recordList.size()>0){
|
||||
dataMap = recordList.get(0);
|
||||
}else{
|
||||
dataMap.put("count",0);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.getMessage();
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.framework.rpc.annotation.RpcReference;
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
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 org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.TemporalAdjusters;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 本年流程处理数量
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/13
|
||||
*/
|
||||
@Component
|
||||
public class PortalWfDealCountCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(PortalWfDealCountCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
@RpcReference(group = "workflow")
|
||||
WflRequestListRest wflRequestListRest;
|
||||
|
||||
/**
|
||||
* 本年流程处理数量
|
||||
* @param simpleEmployee
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
log.error("PortalWfDealCountCmd");
|
||||
Map<String,Object> data = new HashMap<>(100);
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
|
||||
Long count = 0L ;
|
||||
try{
|
||||
RequestListConditionApiEntity conditionEntity = new RequestListConditionApiEntity();
|
||||
SimpleEmployee employee = UserContext.getCurrentUser();
|
||||
LocalDateTime startDateTime = LocalDateTime.of(LocalDate.from(LocalDateTime.now().with(TemporalAdjusters.firstDayOfYear())), LocalTime.MIN);
|
||||
if(StringUtils.isNotBlank(startday)){
|
||||
startDateTime = LocalDateTime.parse(startday, format);
|
||||
}
|
||||
|
||||
LocalDateTime endDateTime = LocalDateTime.now();
|
||||
if(StringUtils.isNotBlank(endday)){
|
||||
endDateTime = LocalDateTime.parse(endday, format);
|
||||
}
|
||||
conditionEntity.setCusOperateDateStart(startDateTime);
|
||||
conditionEntity.setCusOperateDateEnd(endDateTime);
|
||||
|
||||
WeaResult<RequestCountInfoPAEntity> RequestCountInfoPAEntity = wflRequestListRest.getRequestCountByTabId(employee, RequestListInitDimensionTabEnum.DONE_FLOWALL.getTabid(), conditionEntity);
|
||||
int code = RequestCountInfoPAEntity.getCode();
|
||||
if(code == 200){
|
||||
count = RequestCountInfoPAEntity.getData().getCount();
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
log.error("PortalWfDealCountCmd-Exception:"+e.getMessage());
|
||||
}
|
||||
data.put("count",count);
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 项目验收信息
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/14
|
||||
*/
|
||||
@Component
|
||||
public class ProjectAcceptanceInfoCmd {
|
||||
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(ProjectAcceptanceInfoCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84" ;
|
||||
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
try {
|
||||
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if(StringUtils.isBlank(startday)){
|
||||
startday = year+"-01-01";
|
||||
}
|
||||
if(StringUtils.isBlank(endday)){
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
if(StringUtils.isBlank(employeeId)){
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
dataMap.put("employeeId",employeeId);
|
||||
dataMap.put("startday",startday);
|
||||
dataMap.put("endday",endday);
|
||||
|
||||
String groupId = "weaver-ebuilder-form-service";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
String sql =" select CONVERT(ifnull(sum(cast(t1.htzje as decimal(18,2))),0),CHAR) as htzje," +
|
||||
" CONVERT(ifnull(sum(cast(t1.htyxje as decimal(18,2))),0),CHAR) as htyxje," +
|
||||
" CONVERT(ifnull(sum(cast(t1.sumsk as decimal(18,2))),0),CHAR) as sumsk " +
|
||||
" from uf_jxhs_xmys t1 \n" +
|
||||
" where t1.ysrq>='" +startday+"' and t1.ysrq<='"+endday+"' " +
|
||||
" and ( t1.qyjl = '"+employeeId+"' "+
|
||||
" or t1.qyjl in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"')\n" +
|
||||
" or t1.ysry = '"+employeeId+"'\n" +
|
||||
" or t1.ysry in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"')\n" +
|
||||
" or t1.dqfzr = '"+employeeId+"'\n" +
|
||||
" or t1.dqfzr in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"')\n" +
|
||||
" or t1.tdjl = '"+employeeId+"'\n" +
|
||||
" or t1.tdjl in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"')\n" +
|
||||
" or t1.tdfzr = '"+employeeId+"'\n" +
|
||||
" or t1.tdfzr in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"')\n" +
|
||||
" or t1.jgfzr = '"+employeeId+"'\n" +
|
||||
" or t1.jgfzr in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"')\n" +
|
||||
" or t1.dqzj = '"+employeeId+"'\n" +
|
||||
" or t1.dqzj in (select cid from eteams.EMP_LINK where RELATION in ('othersenior','senior') and pid= '"+employeeId+"') " +
|
||||
" ) " ;
|
||||
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
||||
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
dataMap.put("datas",recordList.get(0));
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("PorojectAcceptanceInfoCmd:"+e.getMessage());
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
package com.weaver.seconddev.jcldoor.cmd;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.seconddev.jcldoor.util.DatabaseUtils;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import com.weaver.teams.security.context.UserContext;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 项目收款信息
|
||||
*
|
||||
* @author wangj
|
||||
* @version 1.00版本
|
||||
* @Date 2024/3/14
|
||||
*/
|
||||
@Component
|
||||
public class ProjectReceiptsInfoCmd {
|
||||
//日志
|
||||
private final static Logger log = LoggerFactory.getLogger(ProjectReceiptsInfoCmd.class);
|
||||
|
||||
@Autowired
|
||||
private DatabaseUtils databaseUtils;
|
||||
|
||||
public String tenant_key = "t7akvdnf84" ;
|
||||
|
||||
public Map<String, Object> getInfo(HttpServletRequest request, SimpleEmployee simpleEmployee) {
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
try {
|
||||
String startday = request.getParameter("startday");
|
||||
String endday = request.getParameter("endday");
|
||||
String employeeId = request.getParameter("employeeId");
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int year = calendar.get(Calendar.YEAR);
|
||||
|
||||
if(StringUtils.isBlank(startday)){
|
||||
startday = year+"-01-01";
|
||||
}
|
||||
if(StringUtils.isBlank(endday)){
|
||||
endday = sdf.format(new Date());
|
||||
}
|
||||
|
||||
if(StringUtils.isBlank(employeeId)){
|
||||
employeeId = String.valueOf(UserContext.getCurrentEmployeeId());
|
||||
}
|
||||
|
||||
dataMap.put("employeeId",employeeId);
|
||||
dataMap.put("startday",startday);
|
||||
dataMap.put("endday",endday);
|
||||
|
||||
String groupId = "weaver-ebuilder-form-service";
|
||||
String sourceType = "LOGIC";
|
||||
|
||||
String sql =" SELECT \n" +
|
||||
" CONVERT(ifnull(sum(cast(t1.skje as decimal(18,2))),0),CHAR) as skje,\n" + //收款金额
|
||||
" CONVERT(ifnull(sum(cast(t1.xmskje as decimal(18,2))),0),CHAR) as xmskje,\n" + // 项目收款金额
|
||||
" CONVERT(ifnull(sum(cast(t1.xsyxje as decimal(18,2))),0),CHAR) as xsyxje," + // 销售有效金额
|
||||
" CONVERT(ifnull(sum(cast(t1.xsje as decimal(18,2))),0),CHAR) as xsje," + // 销售金额
|
||||
" CONVERT(ifnull(sum(cast(t1.xmyxje as decimal(18,2))),0),CHAR) as xmyxje," + //项目有效金额
|
||||
" CONVERT(ifnull(sum(cast(t1.xsjxhk as decimal(18,2))),0),CHAR) as xsjxhk," + //有效绩效回款
|
||||
" CONVERT(ifnull(sum(cast(t1.sumsk as decimal(18,2))),0),CHAR) as sumsk," + //总收款金额
|
||||
" CONVERT(ifnull(sum(cast(t1.sjjsk as decimal(18,2))),0),CHAR) as sjjsk," + //实际结算款
|
||||
" CONVERT(ifnull(sum(cast(t1.skjs as decimal(18,2))),0),CHAR) as skjs " + //收款结算
|
||||
" FROM uf_jxhs_skmx t1\n" +
|
||||
" LEFT JOIN uf_jxhs_zxhtzb t2 ON t1.hth = t2.hth AND t2.hth != '' AND t2.hth IS NOT NULL \n" +
|
||||
" LEFT JOIN ebdf_physical_data epd on t1.id = epd.form_data_id and epd.delete_type = 0 \n" +
|
||||
" WHERE t1.skje != 0 \n" +
|
||||
" and t1.skje IS NOT NULL " +
|
||||
" and t1.xshsny >= '" + startday+"' and t1.xshsny <='"+endday+"' "+
|
||||
" and (" +
|
||||
" '"+employeeId+"' IN ( 2, 27, 166, 10285, 11661, 300, 876, 3593, 1416, 1647, 1844,3044480226941419013,794508876297846787 ) \n" +
|
||||
" or cast(t1.xsjl AS decimal(25,0)) in( \n" +
|
||||
" SELECT cid AS id FROM eteams.emp_link WHERE pid = '"+employeeId+"' and RELATION in ('othersenior','senior') \n" +
|
||||
" UNION " +
|
||||
" SELECT id FROM eteams.employee WHERE id = '"+employeeId+"' " +
|
||||
" )\n" +
|
||||
" or cast(t1.kfry AS decimal(25,0)) in(\n" +
|
||||
" SELECT cid AS id FROM eteams.emp_link WHERE pid = '"+employeeId+"' and RELATION in ('othersenior','senior') \n" +
|
||||
" UNION " +
|
||||
" SELECT id FROM eteams.employee WHERE id = '"+employeeId+"' " +
|
||||
" )\n" +
|
||||
" or cast(t1.qdjl AS decimal(25,0)) in(\n" +
|
||||
" SELECT cid AS id FROM eteams.emp_link WHERE pid = '"+employeeId+"' and RELATION in ('othersenior','senior') \n" +
|
||||
" UNION " +
|
||||
" SELECT id FROM eteams.employee WHERE id = '"+employeeId+"' " +
|
||||
" )\n" +
|
||||
" or cast(t1.xmjl AS decimal(25,0)) in(\n" +
|
||||
" SELECT cid AS id FROM eteams.emp_link WHERE pid = '"+employeeId+"' and RELATION in ('othersenior','senior') \n" +
|
||||
" UNION " +
|
||||
" SELECT id FROM eteams.employee WHERE id = '"+employeeId+"' " +
|
||||
" )\n" +
|
||||
" )\n" +
|
||||
" order by t1.id " ;
|
||||
|
||||
log.error("PorojectReceiptsInfoCmd sql:"+sql);
|
||||
Map<String, Object> result = databaseUtils.execute(sourceType, groupId, sql);
|
||||
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
|
||||
if(!CollectionUtils.isEmpty(recordList)){
|
||||
dataMap.put("datas",recordList.get(0));
|
||||
}
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("PorojectReceiptsInfoCmd Exception:"+e);
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue