|
|
@@ -16,6 +16,7 @@ import com.malk.jinlun.service.JinlunService;
|
|
|
import com.malk.server.common.McR;
|
|
|
import com.malk.server.teambition.TBConf;
|
|
|
import com.malk.server.teambition.TBR;
|
|
|
+import com.malk.utils.PublicUtil;
|
|
|
import com.malk.utils.UtilHttp;
|
|
|
import com.malk.utils.UtilMap;
|
|
|
import com.malk.utils.UtilToken;
|
|
|
@@ -196,11 +197,13 @@ public class JinlunServiceImpl implements JinlunService {
|
|
|
try {
|
|
|
resultJson3 = client.audit(formId,JSONObject.toJSONString(audit));
|
|
|
}catch (Exception e){
|
|
|
- throw new RuntimeException(e);
|
|
|
+// throw new RuntimeException(e);
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error(e.getMessage());
|
|
|
}
|
|
|
|
|
|
RepoRet repoRet3 = gson.fromJson(resultJson3, RepoRet.class);
|
|
|
- isTrue(repoRet3);
|
|
|
+// isTrue(repoRet3);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -617,6 +620,22 @@ public class JinlunServiceImpl implements JinlunService {
|
|
|
return McR.success(customerWqqk);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public McR queryFromData(Map map) {
|
|
|
+ if (PublicUtil.isNull(map, "schemaCode","propertyCode","propertyValue")){
|
|
|
+ return McR.error("201","参数不能为空!");
|
|
|
+ }
|
|
|
+ Map cpBoList=cpClient.getCpBoList(UtilMap.getString(map,"schemaCode"), UtilMap.map("queryFilterType, propertyCode, propertyValue", "Eq", UtilMap.getString(map,"propertyCode"), UtilMap.getString(map,"propertyValue")), null, 0, 1, null);
|
|
|
+ Map bizObjectPage = UtilMap.getMap(UtilMap.getMap(cpBoList, "data"),"bizObjectPage");
|
|
|
+ int totalElements = UtilMap.getInt(bizObjectPage, "totalElements");
|
|
|
+ if (totalElements == 1){
|
|
|
+ Map content = ((List<Map>) UtilMap.getList(bizObjectPage, "content")).get(0);
|
|
|
+ Map data = UtilMap.getMap(content, "data");
|
|
|
+ return McR.success(data);
|
|
|
+ }
|
|
|
+ return McR.error("201","未查询到数据!");
|
|
|
+ }
|
|
|
+
|
|
|
private IdentifyInfo initIden(){
|
|
|
//注意 1:此处不再使用参数形式传入用户名及密码等敏感信息,改为在登录配置文件中设置。
|
|
|
//注意 2:必须先配置第三方系统登录授权信息后,再进行业务操作,详情参考各语言版本SDK介绍中的登录配置文件说明。
|