Applied validation in PUT api of form

This commit is contained in:
rajesh
2024-09-18 20:48:34 +05:30
parent d03f5ad653
commit 3525cf01ad
12 changed files with 107 additions and 25 deletions

View File

@@ -135,9 +135,13 @@ public class FlowDao {
public FlowDataEntity createFlowDataEntity(FlowDataRequestBean flowDataRequestBean,CallEntity call) {
FlowDataEntity flowDataEntity = new FlowDataEntity();
flowDataEntity.setFormId(flowDataRequestBean.getFormId());
if(Boolean.FALSE.equals(flowDataRequestBean.getChosenField().isEmpty()) || flowDataRequestBean.getChosenField()!=null){
flowDataEntity.setChoosenField(flowDataRequestBean.getChosenField());
flowDataEntity.setChoosenValue(flowDataRequestBean.getChosenValue());
flowDataEntity.setCallId(call.getId());
}
if(Boolean.FALSE.equals(flowDataRequestBean.getChosenValue().isEmpty()) || flowDataRequestBean.getChosenValue()!=null) {
flowDataEntity.setChoosenValue(flowDataRequestBean.getChosenValue());
}
flowDataEntity.setCallId(call.getId());
return flowDataEntity;
}