切换凭证推送地址,指标新增增加审核人id等条件判断

This commit is contained in:
hecan 2024-10-14 15:19:57 +08:00
parent 7e27fe43fc
commit 715c83ac28
2 changed files with 24 additions and 3 deletions

View File

@ -90,6 +90,27 @@ public class GbiZbxmbServiceImpl extends BaseService<GbiZbxmbEntity, String> imp
if(!checkStr(jsonObject.getString("ysfamc"))){
return BaseResult.getFailureMessageEntity("请传递预算方案名称");
}
if(!checkStr(jsonObject.getString("shrid"))){
return BaseResult.getFailureMessageEntity("请传递审核人id");
}
if(!checkStr(jsonObject.getString("pfrid"))){
return BaseResult.getFailureMessageEntity("请传递批复人id");
}
if(!checkStr(jsonObject.getString("xmdm"))){
return BaseResult.getFailureMessageEntity("请传递项目代码");
}
if(!checkStr(jsonObject.getString("xmmc"))){
return BaseResult.getFailureMessageEntity("请传递项目名称");
}
if(!checkStr(jsonObject.getString("bmdm"))){
return BaseResult.getFailureMessageEntity("请传递部门代码");
}
if(!checkStr(jsonObject.getString("bmmc"))){
return BaseResult.getFailureMessageEntity("请传递部门名称");
}
if(!checkStr(jsonObject.getString("ysfadm")) || !("01").equals(jsonObject.getString("ysfadm")) || !("02").equals(jsonObject.getString("ysfadm"))){
return BaseResult.getFailureMessageEntity("请传递预算方案代码并且值为01或者02");
}
GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class);
/*try {
//查询指标id最大值和指标代码最大值

View File

@ -36,7 +36,7 @@ import java.util.UUID;
public class SenderGlPzmlServiceImpl extends BaseService<SenderGlPzmlEntity, String> implements ISenderGlPzmlService {
private static String URLTest="http://60.205.205.82/";//测试环境 http://39.106.158.149/
private static String URL="http://192.168.42.22/";//正式环境
private static String URL="http://192.168.250.71/";//正式环境 http://192.168.42.22/
private ISenderGlPzmlDao senderGlPzmlDao;
@ -736,7 +736,7 @@ public class SenderGlPzmlServiceImpl extends BaseService<SenderGlPzmlEntity, Str
jsonObjectData.put("data",jsonArray);
String params = jsonObjectData.toJSONString();
logger.info("调用商学院凭证保存接口请求参数:{}",params);
result = HttpRequest.post(URLTest + "nky/service/zsApi/saveZJSYPZReimburse?accessToken="+token).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body();
result = HttpRequest.post(URL + "nky/service/zsApi/saveZJSYPZReimburse?accessToken="+token).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body();
logger.info("调用商学院凭证保存接口返回参数:{}",result);
}
JSONObject jsonObjectResult=new JSONObject();
@ -758,7 +758,7 @@ public class SenderGlPzmlServiceImpl extends BaseService<SenderGlPzmlEntity, Str
String params = jsonObject.toJSONString();
logger.info("=========获取凭证token请求参数:{}========",params);
String urlToken="nky/service/session/getAccessToken";
String result = HttpRequest.post(URLTest + urlToken).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body();
String result = HttpRequest.post(URL + urlToken).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body();
logger.info("=========获取凭证token返回结果:{}========",result);
JSONObject jsonObjectResult=JSONObject.parseObject(result);
String value=jsonObjectResult.getString("value");