Skip to content

Incorrect UIN generation #62

@abrbhat

Description

@abrbhat

The current logic for generating UIN is incorrect.

As per, current logic, the below query fetches the approved drone whose record has the highest id.

@Query("SELECT MAX(id) FROM OperatorDrone od WHERE od.operatorDroneStatus ='UIN_APPROVED'")

This can lead to multiple drones getting same UIN because record with highest id might not have the highest UIN. This will happen when a drone with higher id gets its UIN before a drone with lower id.

@sidd-shetty @sidhantgoel @charan1994 @suraj-shanbhag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions