|
|
@ -8,6 +8,8 @@ import com.weaver.ebuilder.datasource.api.entity.SqlParamEntity;
|
|
|
|
import com.weaver.ebuilder.datasource.api.enums.SqlParamType;
|
|
|
|
import com.weaver.ebuilder.datasource.api.enums.SqlParamType;
|
|
|
|
import com.weaver.ebuilder.form.client.entity.data.EBDataReqDetailDto;
|
|
|
|
import com.weaver.ebuilder.form.client.entity.data.EBDataReqDetailDto;
|
|
|
|
import com.weaver.ebuilder.form.client.entity.data.EBDataReqDto;
|
|
|
|
import com.weaver.ebuilder.form.client.entity.data.EBDataReqDto;
|
|
|
|
|
|
|
|
import com.weaver.ebuilder.form.client.entity.obj.Obj;
|
|
|
|
|
|
|
|
import com.weaver.ebuilder.form.client.service.emobile.IEtFormDatasetService;
|
|
|
|
import com.weaver.framework.remote.client.rest.RestClient;
|
|
|
|
import com.weaver.framework.remote.client.rest.RestClient;
|
|
|
|
import com.weaver.framework.rpc.annotation.RpcReference;
|
|
|
|
import com.weaver.framework.rpc.annotation.RpcReference;
|
|
|
|
import com.weaver.mc.api.async.AsyncSystemMessageRest;
|
|
|
|
import com.weaver.mc.api.async.AsyncSystemMessageRest;
|
|
|
@ -35,7 +37,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import com.weaver.ebuilder.form.client.entity.field.ModuleField;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
@ -69,6 +71,9 @@ public class HrmSelfHelpController {
|
|
|
|
@RpcReference
|
|
|
|
@RpcReference
|
|
|
|
private RemoteBlogInfoService remoteBlogInfoService ;
|
|
|
|
private RemoteBlogInfoService remoteBlogInfoService ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RpcReference
|
|
|
|
|
|
|
|
private IEtFormDatasetService ietFormDatasetService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private DatabaseUtils databaseUtils;
|
|
|
|
private DatabaseUtils databaseUtils;
|
|
|
|
|
|
|
|
|
|
|
@ -1339,9 +1344,18 @@ public class HrmSelfHelpController {
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
public WeaResult<Object> testSapi8(HttpServletRequest request){
|
|
|
|
public WeaResult<Object> testSapi8(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
|
|
String field_ry = "985460777098248194" ;
|
|
|
|
// String field_ry = "985460777098248194" ;
|
|
|
|
String field_amount = "985460777098248195";
|
|
|
|
// String field_amount = "985460777098248195";
|
|
|
|
String objId = "985460643895541762";
|
|
|
|
// String objId = "985460643895541762";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String pkey = "uf_nj_cyqltjb.ry";
|
|
|
|
|
|
|
|
String field_ry = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_cyqltjb.amount";
|
|
|
|
|
|
|
|
String field_amount = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_cyqltjb.objId";
|
|
|
|
|
|
|
|
String objId = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
//com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
|
|
|
|
//com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
|
|
|
|
log.error("testSapi8");
|
|
|
|
log.error("testSapi8");
|
|
|
@ -1447,10 +1461,18 @@ public class HrmSelfHelpController {
|
|
|
|
Long cid = employee.getCid();
|
|
|
|
Long cid = employee.getCid();
|
|
|
|
long employeeId = employee.getEmployeeId();
|
|
|
|
long employeeId = employee.getEmployeeId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// String field_ry = "985461236726857729" ;
|
|
|
|
|
|
|
|
// String field_amount = "985461236726857730";
|
|
|
|
|
|
|
|
// String objId = "985461167965437954";
|
|
|
|
|
|
|
|
|
|
|
|
String field_ry = "985461236726857729" ;
|
|
|
|
String pkey = "uf_nj_pjmrdlhhsl.ry";
|
|
|
|
String field_amount = "985461236726857730";
|
|
|
|
String field_ry = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
String objId = "985461167965437954";
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_pjmrdlhhsl.amount";
|
|
|
|
|
|
|
|
String field_amount = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_pjmrdlhhsl.objId";
|
|
|
|
|
|
|
|
String objId = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
dataMap.put("test","testSapi9");
|
|
|
|
dataMap.put("test","testSapi9");
|
|
|
@ -1589,9 +1611,19 @@ public class HrmSelfHelpController {
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
public WeaResult<Object> testSapi88(HttpServletRequest request){
|
|
|
|
public WeaResult<Object> testSapi88(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
|
|
String field_ry = "985460777098248194" ;
|
|
|
|
// String field_ry = "985460777098248194" ;
|
|
|
|
String field_amount = "985460777098248195";
|
|
|
|
// String field_amount = "985460777098248195";
|
|
|
|
String objId = "985460643895541762";
|
|
|
|
// String objId = "985460643895541762";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String pkey = "uf_nj_cyqltjb.ry";
|
|
|
|
|
|
|
|
String field_ry = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_cyqltjb.amount";
|
|
|
|
|
|
|
|
String field_amount = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_cyqltjb.objId";
|
|
|
|
|
|
|
|
String objId = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String groupId = "weaver-ebuilder-form-service";
|
|
|
|
String groupId = "weaver-ebuilder-form-service";
|
|
|
|
String sourceType = "LOGIC";
|
|
|
|
String sourceType = "LOGIC";
|
|
|
@ -1670,17 +1702,19 @@ public class HrmSelfHelpController {
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
public WeaResult<Object> testSapi99(HttpServletRequest request){
|
|
|
|
public WeaResult<Object> testSapi99(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
|
|
//com.weaver.workrelate.performance.api.rest.RemotePerformanceService#queryFlowData
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String groupId = "weaver-ebuilder-form-service";
|
|
|
|
String groupId = "weaver-ebuilder-form-service";
|
|
|
|
String sourceType = "LOGIC";
|
|
|
|
String sourceType = "LOGIC";
|
|
|
|
SimpleEmployee employee = UserContext.getCurrentUser();
|
|
|
|
SimpleEmployee employee = UserContext.getCurrentUser();
|
|
|
|
long employeeId = employee.getEmployeeId();
|
|
|
|
long employeeId = employee.getEmployeeId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String pkey = "uf_nj_pjmrdlhhsl.ry";
|
|
|
|
|
|
|
|
String field_ry = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
String field_ry = "985461236726857729" ;
|
|
|
|
pkey = "uf_nj_pjmrdlhhsl.amount";
|
|
|
|
String field_amount = "985461236726857730";
|
|
|
|
String field_amount = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
String objId = "985461167965437954";
|
|
|
|
|
|
|
|
|
|
|
|
pkey = "uf_nj_pjmrdlhhsl.objId";
|
|
|
|
|
|
|
|
String objId = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
dataMap.put("test","testSapi9");
|
|
|
|
dataMap.put("test","testSapi9");
|
|
|
@ -1793,4 +1827,49 @@ public class HrmSelfHelpController {
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/test200")
|
|
|
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
|
|
|
public WeaResult<Object> test200(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
|
|
|
|
dataMap.put("test","test200");
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String pkey = "uf_nj_cyqltjb.appid";
|
|
|
|
|
|
|
|
String appid = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
List<Obj> list = ietFormDatasetService.getTables(appid);
|
|
|
|
|
|
|
|
dataMap.put("datas",list);
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
log.error("testSapi8:"+e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/test201")
|
|
|
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
|
|
|
public WeaResult<Object> test201(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
|
|
|
|
dataMap.put("test","test201");
|
|
|
|
|
|
|
|
String columnnames = request.getParameter("columnnames");
|
|
|
|
|
|
|
|
String objid = request.getParameter("objid");
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(objid)){
|
|
|
|
|
|
|
|
Long obj_id = Long.parseLong(objid);
|
|
|
|
|
|
|
|
List<String> columnNameList = Arrays.asList(columnnames.split(","));
|
|
|
|
|
|
|
|
Map<String,String> fieldMap = jucailinPortalUtils.getFieldIdByColumnName(obj_id,columnNameList,false);
|
|
|
|
|
|
|
|
dataMap.put("datas",fieldMap);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
log.error("testSapi8:"+e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|