|
|
@ -37,7 +37,6 @@ 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;
|
|
|
@ -1836,9 +1835,7 @@ public class HrmSelfHelpController {
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
|
|
|
dataMap.put("test","test200");
|
|
|
|
dataMap.put("test","test200");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
String appid = request.getParameter("appid");
|
|
|
|
String pkey = "uf_nj_cyqltjb.appid";
|
|
|
|
|
|
|
|
String appid = jucailinPortalUtils.getUfPropData(pkey,tenant_key);
|
|
|
|
|
|
|
|
List<Obj> list = ietFormDatasetService.getTables(appid);
|
|
|
|
List<Obj> list = ietFormDatasetService.getTables(appid);
|
|
|
|
dataMap.put("datas",list);
|
|
|
|
dataMap.put("datas",list);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -1858,16 +1855,19 @@ public class HrmSelfHelpController {
|
|
|
|
dataMap.put("test","test201");
|
|
|
|
dataMap.put("test","test201");
|
|
|
|
String columnnames = request.getParameter("columnnames");
|
|
|
|
String columnnames = request.getParameter("columnnames");
|
|
|
|
String objid = request.getParameter("objid");
|
|
|
|
String objid = request.getParameter("objid");
|
|
|
|
|
|
|
|
log.error("objid:"+objid);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if(StringUtils.isNotBlank(objid)){
|
|
|
|
if(StringUtils.isNotBlank(objid)){
|
|
|
|
Long obj_id = Long.parseLong(objid);
|
|
|
|
Long obj_id = Long.valueOf(objid);
|
|
|
|
|
|
|
|
log.error("obj_id:"+obj_id);
|
|
|
|
List<String> columnNameList = Arrays.asList(columnnames.split(","));
|
|
|
|
List<String> columnNameList = Arrays.asList(columnnames.split(","));
|
|
|
|
Map<String,String> fieldMap = jucailinPortalUtils.getFieldIdByColumnName(obj_id,columnNameList,false);
|
|
|
|
Map<String,String> fieldMap = jucailinPortalUtils.getFieldIdByColumnName(obj_id,columnNameList,false);
|
|
|
|
dataMap.put("datas",fieldMap);
|
|
|
|
dataMap.put("datas",fieldMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
log.error("testSapi8:"+e);
|
|
|
|
log.error("test201:"+e);
|
|
|
|
|
|
|
|
dataMap.put("test201","1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
return WeaResult.success(dataMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|