fix(firstleg): load container overview transport history
This commit is contained in:
@@ -12,11 +12,11 @@ import java.util.List;
|
||||
JSON_UNQUOTE(JSON_EXTRACT(history.after_snapshot,'$.voyageNo')) afterVoyageNo,
|
||||
history.operation_id operationId,history.operation_reason reason,
|
||||
history.operator_id operatorId,history.operator_name operatorName,
|
||||
history.occurred_at createdAt
|
||||
history.created_at createdAt
|
||||
FROM fl_loading_plan_history history
|
||||
JOIN fl_loading_plan plan ON plan.id=history.loading_plan_id
|
||||
WHERE plan.container_booking_id=#{id} AND history.action_type='UPDATE_PRELOAD_TRANSPORT'
|
||||
ORDER BY history.occurred_at,history.id
|
||||
ORDER BY history.created_at,history.id
|
||||
""") List<TransportRow> transport(@Param("id") long id);
|
||||
@Select("SELECT id,action,reason,operator_id operatorId,operator_name operatorName,occurred_at occurredAt,request_hash requestHash FROM fl_container_exception_history WHERE container_booking_id=#{id} ORDER BY occurred_at,id") List<ExceptionRow> exceptions(@Param("id") long id);
|
||||
@Insert("INSERT INTO fl_container_exception_history(id,container_booking_id,action,reason,operator_id,operator_name,operation_id,request_hash,occurred_at) VALUES(#{id},#{bookingId},#{action},#{reason},#{operatorId},#{operatorName},#{operationId},#{requestHash},CURRENT_TIMESTAMP(3))") int insertException(@Param("id") long id,@Param("bookingId") long bookingId,@Param("action") String action,@Param("reason") String reason,@Param("operatorId") long operatorId,@Param("operatorName") String operatorName,@Param("operationId") String operationId,@Param("requestHash") String requestHash);
|
||||
|
||||
Reference in New Issue
Block a user