判断指标新增时候预算方案代码只能为01或者02

This commit is contained in:
hecan 2024-10-29 15:35:58 +08:00
parent 715c83ac28
commit 7a90623777
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class GbiZbxmbServiceImpl extends BaseService<GbiZbxmbEntity, String> imp
if(!checkStr(jsonObject.getString("bmmc"))){
return BaseResult.getFailureMessageEntity("请传递部门名称");
}
if(!checkStr(jsonObject.getString("ysfadm")) || !("01").equals(jsonObject.getString("ysfadm")) || !("02").equals(jsonObject.getString("ysfadm"))){
if(!("01").equals(jsonObject.getString("ysfadm")) && !("02").equals(jsonObject.getString("ysfadm"))){
return BaseResult.getFailureMessageEntity("请传递预算方案代码并且值为01或者02");
}
GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class);